/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsAddressTest.java | 31 String address = "3141592653"; in testNumberAddress() local 32 CdmaSmsAddress cdmaAddress = CdmaSmsAddress.parse(address); in testNumberAddress() 33 assertEquals(address, cdmaAddress.address); in testNumberAddress() 36 assertArrayEquals(CdmaSmsAddress.parseToDtmf(address), cdmaAddress.origBytes); in testNumberAddress() 41 String address = "(314)1592653"; in testNumberWithSugar() local 42 CdmaSmsAddress cdmaAddress = CdmaSmsAddress.parse(address); in testNumberWithSugar() 43 assertEquals(address, cdmaAddress.address); in testNumberWithSugar() 51 String address = "+10068"; in testInternationalAddress() local 52 CdmaSmsAddress cdmaAddress = CdmaSmsAddress.parse(address); in testInternationalAddress() 53 assertEquals(address, cdmaAddress.address); in testInternationalAddress() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/ |
D | CdmaSmsAddress.java | 111 builder.append(", address=\"" + address + "\""); in toString() 123 public static byte[] parseToDtmf(String address) { in parseToDtmf() argument 124 int digits = address.length(); in parseToDtmf() 127 char c = address.charAt(i); in parseToDtmf() 164 private static String filterNumericSugar(String address) { in filterNumericSugar() argument 166 int len = address.length(); in filterNumericSugar() 168 char c = address.charAt(i); in filterNumericSugar() 181 private static String filterWhitespace(String address) { in filterWhitespace() argument 183 int len = address.length(); in filterWhitespace() 185 char c = address.charAt(i); in filterWhitespace() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/ |
D | BluetoothLogger.kt | 28 fun logActiveDeviceChanged(address: String?, profileId: Int) = in logActiveDeviceChanged() 33 str1 = address in logActiveDeviceChanged() 39 fun logDeviceConnectionStateChanged(address: String?, state: String) = in logDeviceConnectionStateChanged() 44 str1 = address in logDeviceConnectionStateChanged() 50 fun logAclConnectionStateChanged(address: String, state: String) = in logAclConnectionStateChanged() 55 str1 = address in logAclConnectionStateChanged() 61 fun logProfileConnectionStateChanged(address: String?, state: String, profileId: Int) = in logProfileConnectionStateChanged() 66 str1 = address in logProfileConnectionStateChanged() 81 fun logBondStateChange(address: String, state: Int) = in logBondStateChange() 86 str1 = address in logBondStateChange() [all …]
|
/frameworks/base/core/java/com/android/server/net/ |
D | NetlinkTracker.java | 94 private void maybeLog(String operation, String iface, LinkAddress address) { in maybeLog() argument 96 Log.d(TAG, operation + ": " + address + " on " + iface + in maybeLog() 97 " flags " + address.getFlags() + " scope " + address.getScope()); in maybeLog() 121 public void addressUpdated(String iface, LinkAddress address) { in addressUpdated() argument 123 maybeLog("addressUpdated", iface, address); in addressUpdated() 126 changed = mLinkProperties.addLinkAddress(address); in addressUpdated() 135 public void addressRemoved(String iface, LinkAddress address) { in addressRemoved() argument 137 maybeLog("addressRemoved", iface, address); in addressRemoved() 140 changed = mLinkProperties.removeLinkAddress(address); in addressRemoved() 221 public final InetAddress address; field in DnsServerEntry [all …]
|
/frameworks/base/core/java/android/net/ |
D | VpnService.java | 303 public boolean addAddress(InetAddress address, int prefixLength) { in addAddress() argument 304 check(address, prefixLength); in addAddress() 306 return getService().addVpnAddress(address.getHostAddress(), prefixLength); in addAddress() 333 public boolean removeAddress(InetAddress address, int prefixLength) { in removeAddress() argument 334 check(address, prefixLength); in removeAddress() 336 return getService().removeVpnAddress(address.getHostAddress(), prefixLength); in removeAddress() 459 private static void check(InetAddress address, int prefixLength) { in check() argument 460 if (address.isLoopbackAddress()) { in check() 463 if (address instanceof Inet4Address) { in check() 467 } else if (address instanceof Inet6Address) { in check() [all …]
|
/frameworks/av/media/module/codecs/amrwb/enc/src/asm/ARMV7/ |
D | residu_asm_neon.s | 41 ADD r9, r1, r7, LSL #1 @copy the address 47 SUB r8, r9, #2 @get the x[i-1] address 51 SUB r8, r9, #4 @load the x[i-2] address 55 SUB r8, r9, #6 @load the x[i-3] address 59 SUB r8, r9, #8 @load the x[i-4] address 63 SUB r8, r9, #10 @load the x[i-5] address 67 SUB r8, r9, #12 @load the x[i-6] address 71 SUB r8, r9, #14 @load the x[i-7] address 75 SUB r8, r9, #16 @load the x[i-8] address 79 SUB r8, r9, #18 @load the x[i-9] address [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | DeviceDiscoveryAction.java | 185 private boolean verifyValidLogicalAddress(int address) { in verifyValidLogicalAddress() argument 186 return address >= Constants.ADDR_TV && address < Constants.ADDR_UNREGISTERED; in verifyValidLogicalAddress() 189 private void queryPhysicalAddress(int address) { in queryPhysicalAddress() argument 190 if (!verifyValidLogicalAddress(address)) { in queryPhysicalAddress() 198 if (mayProcessMessageIfCached(address, Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS)) { in queryPhysicalAddress() 201 sendCommand(HdmiCecMessageBuilder.buildGivePhysicalAddress(getSourceAddress(), address)); in queryPhysicalAddress() local 218 private void queryOsdName(int address) { in queryOsdName() argument 219 if (!verifyValidLogicalAddress(address)) { in queryOsdName() 226 if (mayProcessMessageIfCached(address, Constants.MESSAGE_SET_OSD_NAME)) { in queryOsdName() 229 sendCommand(HdmiCecMessageBuilder.buildGiveOsdNameCommand(getSourceAddress(), address)); in queryOsdName() local [all …]
|
D | DelayedMessageBuffer.java | 106 void processMessagesForDevice(int address) { in processMessagesForDevice() argument 109 HdmiLogger.debug("Checking message for address:" + address); in processMessagesForDevice() 111 if (message.getSource() != address) { in processMessagesForDevice() 116 && !mDevice.isInputReady(HdmiDeviceInfo.idForCecDevice(address))) { in processMessagesForDevice() 136 void processActiveSource(int address) { in processActiveSource() argument 141 && message.getSource() == address) { in processActiveSource()
|
D | HotplugDetectionAction.java | 251 private void mayChangeRoutingPath(int address) { in mayChangeRoutingPath() argument 252 HdmiDeviceInfo info = localDevice().mService.getHdmiCecNetwork().getCecDeviceInfo(address); in mayChangeRoutingPath() 258 private void mayCancelDeviceSelect(int address) { in mayCancelDeviceSelect() argument 261 if (action.getTargetAddress() == address) { in mayCancelDeviceSelect() 269 if (action.getTargetAddress() == address) { in mayCancelDeviceSelect() 275 private void mayCancelOneTouchRecord(int address) { in mayCancelOneTouchRecord() argument 278 if (action.getRecorderAddress() == address) { in mayCancelOneTouchRecord() 284 private void mayDisableSystemAudioAndARC(int address) { in mayDisableSystemAudioAndARC() argument 285 if (!HdmiUtils.isEligibleAddressForDevice(HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM, address)) { in mayDisableSystemAudioAndARC() 292 addAndStartAction(new RequestArcTerminationAction(localDevice(), address)); in mayDisableSystemAudioAndARC()
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
D | RtpStream.java | 72 RtpStream(InetAddress address) throws SocketException { in RtpStream() argument 73 mLocalPort = create(address.getHostAddress()); in RtpStream() 74 mLocalAddress = address; in RtpStream() 77 private native int create(String address) throws SocketException; in create() argument 155 public void associate(InetAddress address, int port) { in associate() argument 159 if (!(address instanceof Inet4Address && mLocalAddress instanceof Inet4Address) && in associate() 160 !(address instanceof Inet6Address && mLocalAddress instanceof Inet6Address)) { in associate() 166 mRemoteAddress = address; in associate()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | util.cpp | 35 const char *address = env->GetStringUTFChars(jAddress, NULL); in parse() local 36 if (!address) { in parse() 43 if (inet_pton(AF_INET, address, &(sin->sin_addr)) > 0) { in parse() 46 env->ReleaseStringUTFChars(jAddress, address); in parse() 51 if (inet_pton(AF_INET6, address, &(sin6->sin6_addr)) > 0) { in parse() 54 env->ReleaseStringUTFChars(jAddress, address); in parse() 58 env->ReleaseStringUTFChars(jAddress, address); in parse()
|
/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/ |
D | HdmiPortInfoTest.java | 39 int address = 0x123456; in testEquals() local 47 new HdmiPortInfo.Builder(portId, portType, address) in testEquals() 53 new HdmiPortInfo.Builder(portId, portType, address) in testEquals() 60 new HdmiPortInfo.Builder(portId + 1, portType, address) in testEquals() 67 new HdmiPortInfo.Builder(portId, portType + 1, address) in testEquals() 74 new HdmiPortInfo.Builder(portId, portType, address + 1) in testEquals() 81 new HdmiPortInfo.Builder(portId, portType, address) in testEquals() 88 new HdmiPortInfo.Builder(portId, portType, address) in testEquals() 95 new HdmiPortInfo.Builder(portId, portType, address) in testEquals() 102 new HdmiPortInfo.Builder(portId, portType, address) in testEquals()
|
/frameworks/base/core/java/android/net/vcn/persistablebundleutils/ |
D | TunnelModeChildSessionParamsUtils.java | 84 @Nullable public final InetAddress address; field in TunnelModeChildSessionParamsUtils.ConfigRequest 91 address = ((ConfigRequestIpv4Address) config).getAddress(); in ConfigRequest() 94 address = ((ConfigRequestIpv6Address) config).getAddress(); in ConfigRequest() 95 if (address != null) { in ConfigRequest() 100 address = null; in ConfigRequest() 103 address = null; in ConfigRequest() 106 address = null; in ConfigRequest() 109 address = null; in ConfigRequest() 125 address = null; in ConfigRequest() 127 address = InetAddresses.parseNumericAddress(addressStr); in ConfigRequest() [all …]
|
/frameworks/av/media/libaudiofoundation/ |
D | AudioDeviceTypeAddr.cpp | 36 bool isSenstiveAddress(const std::string &address) { in isSenstiveAddress() argument 37 if (std::regex_match(address, MAC_ADDRESS_REGEX)) { in isSenstiveAddress() 42 if (inet_pton(AF_INET, address.c_str(), &ss4) > 0) { in isSenstiveAddress() 47 if (inet_pton(AF_INET6, address.c_str(), &ss6) > 0) { in isSenstiveAddress() 56 AudioDeviceTypeAddr::AudioDeviceTypeAddr(audio_devices_t type, const std::string &address) : in AudioDeviceTypeAddr() argument 57 mType(type), mAddress(address) { in AudioDeviceTypeAddr() 65 const std::string& AudioDeviceTypeAddr::address() const { in address() function in android::AudioDeviceTypeAddr 69 void AudioDeviceTypeAddr::setAddress(const std::string& address) { in setAddress() argument 70 mAddress = address; in setAddress() 182 std::string address; in aidl2legacy_AudioDeviceTypeAddress() local [all …]
|
/frameworks/av/services/audioflinger/sounddose/tests/ |
D | sounddosemanager_tests.cpp | 212 audioDevice.address.set<AudioDeviceAddress::id>("test"); in TEST_F() 234 audioDevice.address.set<AudioDeviceAddress::id>("test"); in TEST_F() 255 audioDevice.address.set<AudioDeviceAddress::id>("test"); in TEST_F() 261 const std::string address = "testAddress"; in TEST_F() local 264 const AudioDeviceTypeAddr adt{deviceType, address}; in TEST_F() 266 deviceType, address.c_str()); in TEST_F() 275 const std::string address = "testAddress"; in TEST_F() local 277 const AudioDeviceTypeAddr adt{deviceType, address}; in TEST_F() 280 deviceType, address.c_str()); in TEST_F() 290 const std::string address = "testAddress"; in TEST_F() local [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_connectivity_Vpn.cpp | 133 char address[65]; in set_addresses() local 138 while (sscanf(addresses, " %64[^/]/%d %n", address, &prefix, &chars) == 2) { in set_addresses() 141 if (strchr(address, ':')) { in set_addresses() 143 if (inet_pton(AF_INET6, address, &ifr6.ifr6_addr) != 1 || in set_addresses() 156 if (inet_pton(AF_INET, address, as_in_addr(&ifr4.ifr_addr)) != 1 || in set_addresses() 177 ALOGD("Address added on %s: %s/%d", name, address, prefix); in set_addresses() 182 ALOGE("Invalid address: %s/%d", address, prefix); in set_addresses() 184 ALOGE("Cannot add address: %s/%d: %s", address, prefix, strerror(errno)); in set_addresses() 223 const char *address = jAddress ? env->GetStringUTFChars(jAddress, NULL) : NULL; in modifyAddress() local 227 } else if (!address) { in modifyAddress() [all …]
|
/frameworks/base/media/java/android/media/ |
D | AudioDevicePort.java | 48 int type, @NonNull String name, @NonNull String address) { in createForTesting() argument 58 address, in createForTesting() 71 int[] formats, AudioGain[] gains, int type, String address, int[] encapsulationModes, in AudioDevicePort() argument 78 mAddress = address; in AudioDevicePort() 84 AudioGain[] gains, int type, String address, int[] encapsulationModes, in AudioDevicePort() argument 91 mAddress = address; in AudioDevicePort() 118 public String address() { in address() method in AudioDevicePort 165 if (mAddress == null && other.address() != null) { in equals() 168 if (!mAddress.equals(other.address())) { in equals()
|
D | AudioDeviceAttributes.java | 121 @NonNull String address) { in AudioDeviceAttributes() argument 122 this(role, type, address, "", new ArrayList<>(), new ArrayList<>()); in AudioDeviceAttributes() 137 @NonNull String address, @NonNull String name, @NonNull List<AudioProfile> profiles, in AudioDeviceAttributes() argument 139 Objects.requireNonNull(address); in AudioDeviceAttributes() 148 mNativeType = AudioDeviceInfo.convertDeviceTypeToInternalInputDevice(type, address); in AudioDeviceAttributes() 155 mAddress = address; in AudioDeviceAttributes() 168 public AudioDeviceAttributes(int nativeType, @NonNull String address) { in AudioDeviceAttributes() argument 169 this(nativeType, address, ""); in AudioDeviceAttributes() 179 public AudioDeviceAttributes(int nativeType, @NonNull String address, @NonNull String name) { in AudioDeviceAttributes() argument 182 mAddress = address; in AudioDeviceAttributes() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | UuidUtils.java | 52 String address = device.getAddress().replace(":", ""); in uuidFromAudioDeviceAttributes() local 53 if (address.length() != 12) { in uuidFromAudioDeviceAttributes() 56 address = "0x" + address; in uuidFromAudioDeviceAttributes() 59 lsb |= Long.decode(address).longValue(); in uuidFromAudioDeviceAttributes()
|
D | AudioDeviceInventory.java | 162 void addAudioDeviceInInventoryIfNeeded(int deviceType, String address, String peerAddress, in addAudioDeviceInInventoryIfNeeded() argument 168 AdiDeviceState ads = findBtDeviceStateForAddress(address, deviceType); in addAudioDeviceInInventoryIfNeeded() 186 deviceType, address); in addAudioDeviceInInventoryIfNeeded() 230 void addAudioDeviceWithCategoryInInventoryIfNeeded(@NonNull String address, in addAudioDeviceWithCategoryInInventoryIfNeeded() argument 233 address, "", btAudioDeviceCategory, /*userDefined=*/true); in addAudioDeviceWithCategoryInInventoryIfNeeded() 235 address, "", btAudioDeviceCategory, /*userDefined=*/true); in addAudioDeviceWithCategoryInInventoryIfNeeded() 239 int getAndUpdateBtAdiDeviceStateCategoryForAddress(@NonNull String address) { in getAndUpdateBtAdiDeviceStateCategoryForAddress() argument 242 AdiDeviceState deviceState = findBtDeviceStateForAddress(address, DEVICE_OUT_BLE_HEADSET); in getAndUpdateBtAdiDeviceStateCategoryForAddress() 249 deviceState = findBtDeviceStateForAddress(address, DEVICE_OUT_BLUETOOTH_A2DP); in getAndUpdateBtAdiDeviceStateCategoryForAddress() 255 + "address " + address); in getAndUpdateBtAdiDeviceStateCategoryForAddress() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/layout/ |
D | Layout.java | 78 public void createDefaultDisplayLocked(@NonNull DisplayAddress address, in createDefaultDisplayLocked() argument 80 createDisplayLocked(address, /* isDefault= */ true, /* isEnabled= */ true, in createDefaultDisplayLocked() 107 @NonNull DisplayAddress address, boolean isDefault, boolean isEnabled, in createDisplayLocked() 113 if (contains(address)) { in createDisplayLocked() 114 Slog.w(TAG, "Attempting to add second definition for display-device: " + address); in createDisplayLocked() 120 Slog.w(TAG, "Ignoring attempt to add a second default display: " + address); in createDisplayLocked() 133 if (address.equals(leadDisplayAddress)) { in createDisplayLocked() 143 final Display display = new Display(address, logicalDisplayId, isEnabled, displayGroupName, in createDisplayLocked() 202 public boolean contains(@NonNull DisplayAddress address) { in contains() argument 203 return getByAddress(address) != null; in contains() [all …]
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
D | SimpleSessionDescription.java | 67 public SimpleSessionDescription(long sessionId, String address) { in SimpleSessionDescription() argument 68 address = (address.indexOf(':') < 0 ? "IN IP4 " : "IN IP6 ") + address; in SimpleSessionDescription() 71 System.currentTimeMillis(), address)); in SimpleSessionDescription() 74 mFields.parse("c=" + address); in SimpleSessionDescription() 157 public void setAddress(String address) { in setAddress() argument 158 mFields.setAddress(address); in setAddress() 402 String address = get("c", '='); in getAddress() local 403 if (address == null) { in getAddress() 406 String[] parts = address.split(" "); in getAddress() 418 public void setAddress(String address) { in setAddress() argument [all …]
|
/frameworks/libs/binary_translation/tools/ |
D | symbolize_trace.py | 125 def addr2line(self, address, file): argument 131 ["addr2line", "-e", self.symbols_dir + file, hex(address)], 152 address = int(msg.split("@")[1].strip(), 16) 154 pos = bisect.bisect_right(sorted_start_addresses, address) 157 if address > map.end: 158 print("%x (not maped)" % address) 161 relative_addr = address - map.base_addr 166 "%x (%s+%x) %s" % (address, map.file, relative_addr, file_and_line) 169 print("%x (%s+%x)" % (address, map.file, relative_addr))
|
/frameworks/opt/net/ims/src/java/com/android/ims/internal/ |
D | ConferenceParticipant.java | 145 Uri address = getHandle(); in getParticipantPresentation() local 146 if (address == null) { in getParticipantPresentation() 150 String number = address.getSchemeSpecificPart(); in getParticipantPresentation() 313 public static Uri getParticipantAddress(Uri address, String countryIso) { in getParticipantAddress() argument 314 if (address == null) { in getParticipantAddress() 315 return address; in getParticipantAddress() 333 String number = address.getSchemeSpecificPart(); in getParticipantAddress() 335 return address; in getParticipantAddress() 340 return address; in getParticipantAddress()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/ |
D | BluetoothTileDialogLogger.kt | 59 fun logDeviceClick(address: String, type: DeviceItemType) = in logDeviceClick() 64 str1 = address in logDeviceClick() 70 fun logActiveDeviceChanged(address: String?, profileId: Int) = in logActiveDeviceChanged() 75 str1 = address in logActiveDeviceChanged() 81 fun logProfileConnectionStateChanged(address: String, state: String, profileId: Int) = in logProfileConnectionStateChanged() 86 str1 = address in logProfileConnectionStateChanged()
|