/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | NativeUtil.java | 57 public static ArrayList<Byte> stringToByteArrayList(String str) { in stringToByteArrayList() 79 public static String stringFromByteArrayList(ArrayList<Byte> byteArrayList) { in stringFromByteArrayList() 85 for (Byte b : byteArrayList) { in stringFromByteArrayList() 247 public static ArrayList<Byte> hexOrQuotedStringToBytes(String str) { in hexOrQuotedStringToBytes() 270 public static String bytesToHexOrQuotedString(ArrayList<Byte> bytes) { in bytesToHexOrQuotedString() 276 if (!bytes.contains(Byte.valueOf((byte) 0))) { in bytesToHexOrQuotedString() 296 public static ArrayList<Byte> decodeSsid(String ssidStr) { in decodeSsid() 297 ArrayList<Byte> ssidBytes = hexOrQuotedStringToBytes(ssidStr); in decodeSsid() 314 public static String encodeSsid(ArrayList<Byte> ssidBytes) { in encodeSsid() 324 public static ArrayList<Byte> byteArrayToArrayList(byte[] bytes) { in byteArrayToArrayList() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | RssiMonitorTest.java | 102 verify(mWifiNative).startRssiMonitoring(eq(TEST_INTERFACE_NAME), eq(Byte.MAX_VALUE), in setUp() 114 eq(Byte.MAX_VALUE), eq((byte) TEST_APP_RSSI_THRESHOLDS[0]), in verifyShortIntervalAndMonitorStatus() 120 verify(mWifiNative).startRssiMonitoring(eq(TEST_INTERFACE_NAME), eq(Byte.MAX_VALUE), in verifyLongIntervalAndMonitorStatus() 212 eq((byte) TEST_APP_RSSI_THRESHOLDS[0]), eq(Byte.MIN_VALUE), in testOnAppRssiThresholdBreached() 220 eq(Byte.MAX_VALUE), eq((byte) TEST_APP_RSSI_THRESHOLDS[0]), in testOnAppRssiThresholdBreached() 234 verify(mWifiNative).startRssiMonitoring(eq(TEST_INTERFACE_NAME), eq(Byte.MAX_VALUE), in testOnRssiThresholdBreachedIdenticalAppFrameworkThreshold() 239 eq(Byte.MAX_VALUE), eq((byte) TEST_CLIENT_RSSI_THRESHOLD), in testOnRssiThresholdBreachedIdenticalAppFrameworkThreshold() 247 eq((byte) TEST_CLIENT_RSSI_THRESHOLD), eq(Byte.MIN_VALUE), in testOnRssiThresholdBreachedIdenticalAppFrameworkThreshold() 272 eq(Byte.MAX_VALUE), eq((byte) TEST_CLIENT_RSSI_THRESHOLD), in testAdjustPollRssiIntervalDisabled() 276 verify(mWifiNative).startRssiMonitoring(eq(TEST_INTERFACE_NAME), eq(Byte.MAX_VALUE), in testAdjustPollRssiIntervalDisabled() [all …]
|
D | PmkCacheManagerTest.java | 120 List<ArrayList<Byte>> pmkDataList; in testGet() 137 List<ArrayList<Byte>> pmkDataList; in testGetWithBssid() 155 List<ArrayList<Byte>> pmkDataList = mPmkCacheManager.get(1); in testRemove() 167 List<ArrayList<Byte>> pmkDataList = mPmkCacheManager.get(1); in testRemoveWithBssid() 178 List<ArrayList<Byte>> pmkDataList; in testRemoveIfNeeded() 204 List<ArrayList<Byte>> pmkDataList; in testRemoveIfNeededWithBssid() 293 List<ArrayList<Byte>> pmkDataList; in testPmkCacheExpiration() 331 List<ArrayList<Byte>> pmkDataList; in testPmkCacheExpirationWithBssid() 365 private ArrayList<Byte> generatePmkDataFromString(String dataStr) { in generatePmkDataFromString() 366 if (TextUtils.isEmpty(dataStr)) return new ArrayList<Byte>(); in generatePmkDataFromString()
|
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/ |
D | TcpInfo.java | 36 STATE(Byte.BYTES), 37 CASTATE(Byte.BYTES), 38 RETRANSMITS(Byte.BYTES), 39 PROBES(Byte.BYTES), 40 BACKOFF(Byte.BYTES), 41 OPTIONS(Byte.BYTES), 42 WSCALE(Byte.BYTES), 43 DELIVERY_RATE_APP_LIMITED(Byte.BYTES),
|
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/info/ |
D | FiraProfileSupportInfo.java | 100 for (int j = 0; j < Byte.SIZE; j++) { in fromBytes() 123 List<Byte> byteList = new ArrayList<>(); // Little-endian in toBytes() 127 int nth_byte = bit_position / Byte.SIZE; in toBytes() 128 byte nth_bit = (byte) (bit_position % Byte.SIZE); in toBytes() 134 byteList.set(nth_byte, Byte.valueOf(b)); in toBytes()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/csml/ |
D | UwbCapability.java | 117 public final Optional<Byte> mRangingMethod; 120 public final Optional<Byte> mRangingTimeStruct; 121 public final Optional<Byte> mScheduledMode; 127 public final Optional<Byte> mCcConstraintLength; 131 public final Optional<Byte> mExtendedMacSupport; 138 Optional<Byte> rangingMethod, in UwbCapability() 141 Optional<Byte> rangingTimeStruct, in UwbCapability() 142 Optional<Byte> scheduledMode, in UwbCapability() 148 Optional<Byte> ccConstraintLength, in UwbCapability() 152 Optional<Byte> extendedMacSupport) { in UwbCapability() [all …]
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/io/ |
D | TypedStreamsTest.java | 53 tos.writeByte(Byte.MIN_VALUE); in writeReadOk() 55 tos.writeByte(Byte.MAX_VALUE); in writeReadOk() 90 assertEquals(Byte.MIN_VALUE, tis.readSignedByte()); in writeReadOk() 92 assertEquals(Byte.MAX_VALUE, tis.readSignedByte()); in writeReadOk() 192 assertThrows(IllegalArgumentException.class, () -> tos.writeByte(Byte.MIN_VALUE - 1)); in writeBoundChecks() 193 assertThrows(IllegalArgumentException.class, () -> tos.writeByte(Byte.MAX_VALUE + 1)); in writeBoundChecks()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | RssiMonitor.java | 103 if (curRssi == Byte.MAX_VALUE || curRssi == Byte.MIN_VALUE) { in handleRssiBreachRestartRssiMonitor() 247 rssiVals[rssiVals.length - 2] = Byte.MIN_VALUE; in updateRssiRangesAndStartMonitor() 248 rssiVals[rssiVals.length - 1] = Byte.MAX_VALUE; in updateRssiRangesAndStartMonitor() 253 if (val <= Byte.MAX_VALUE && val >= Byte.MIN_VALUE) { in updateRssiRangesAndStartMonitor()
|
D | SupplicantStaIfaceCallbackHidlV1_4Impl.java | 67 ArrayList<Byte> ssid) { in onStateChanged() 91 ArrayList<Byte> data) { in onHs20IconQueryDone() 178 public void onDppSuccessConfigReceived(ArrayList<Byte> ssid, String password, in onDppSuccessConfigReceived() 232 public void onPmkCacheAdded(long expirationTimeInSec, ArrayList<Byte> serializedEntry) { in onPmkCacheAdded() 260 ArrayList<Byte> ssid, boolean filsHlpSent) { in onStateChanged_1_3() 276 public void onNetworkNotFound(ArrayList<Byte> ssid) { in onNetworkNotFound()
|
D | ApplicationQosPolicyRequestHandler.java | 53 private static final int HAL_POLICY_ID_MIN = Byte.MIN_VALUE; 54 private static final int HAL_POLICY_ID_MAX = Byte.MAX_VALUE; 101 public @Nullable List<Byte> virtualPolicyIdsToRemove; 177 public final @NonNull List<Byte> policyIds; 179 CallbackParams(@NonNull List<Byte> inPolicyIds) { in CallbackParams() 185 List<Byte> resultPolicyIds = new ArrayList<>(); in matchesResults() 429 List<Byte> virtualPolicyIdBytes = new ArrayList<>(); in queueRequestOnAllIfaces() 580 List<Byte> policiesAwaitingCallback = getPoliciesAwaitingCallback(halStatusList); in processAddRequest() 604 List<Byte> policiesAwaitingCallback = getPoliciesAwaitingCallback(halStatusList); in processRemoveRequest() 620 private List<Byte> getPoliciesAwaitingCallback( in getPoliciesAwaitingCallback() [all …]
|
D | ByteBufferReader.java | 31 public static final int MINIMUM_INTEGER_SIZE = Byte.BYTES; 59 value = (value << Byte.SIZE) | (octets[n] & 0xFF); in readInteger() 63 value = (value << Byte.SIZE) | (octet & 0xFF); in readInteger()
|
D | PmkCacheManager.java | 65 long expirationTimeInSec, ArrayList<Byte> serializedEntry) { in add() 181 public List<ArrayList<Byte>> get(int networkId) { in get() 188 List<ArrayList<Byte>> dataList = new ArrayList<>(); in get() 255 public ArrayList<Byte> data; 258 PmkCacheStoreData(MacAddress macAddr, MacAddress bssAddr, ArrayList<Byte> serializedData, in PmkCacheStoreData()
|
D | SupplicantStaIfaceCallbackHidlV1_1Impl.java | 62 public void onStateChanged(int newState, byte[/* 6 */] bssid, int id, ArrayList<Byte> ssid, in onStateChanged() 69 ArrayList<Byte> ssid) { in onStateChanged() 82 ArrayList<Byte> data) { in onHs20IconQueryDone()
|
D | SupplicantStaIfaceCallbackHidlV1_2Impl.java | 73 public void onStateChanged(int newState, byte[/* 6 */] bssid, int id, ArrayList<Byte> ssid, in onStateChanged() 80 ArrayList<Byte> ssid) { in onStateChanged() 93 ArrayList<Byte> data) { in onHs20IconQueryDone() 167 public void onDppSuccessConfigReceived(ArrayList<Byte> ssid, String password, in onDppSuccessConfigReceived()
|
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/testutils/ |
D | PacketFilter.kt | 46 class OffsetFilter(val offset: Int, vararg val bytes: Byte) : Predicate<ByteArray> { 131 class DhcpOptionFilter(val option: Byte, vararg val bytes: Byte) : Predicate<ByteArray> { 141 fun findDhcpOption(packet: ByteArray, option: Byte): ByteArray? = in findDhcpOption() 147 private tailrec fun findOptionOffset(packet: ByteArray, option: Byte, searchOffset: Int): Int? { in findOptionOffset()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/ |
D | ObexAppParameters.java | 28 private final HashMap<Byte, byte[]> mParams; 31 mParams = new HashMap<Byte, byte[]>(); in ObexAppParameters() 35 mParams = new HashMap<Byte, byte[]>(); in ObexAppParameters() 74 for (Map.Entry<Byte, byte[]> entry : mParams.entrySet()) { in getHeader() 81 for (Map.Entry<Byte, byte[]> entry : mParams.entrySet()) { in getHeader()
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/mschapv2/ |
D | EapMsChapV2TypeData.java | 114 Byte.toUnsignedInt(buffer.get()), in EapMsChapV2ChallengeRequest() 117 int valueSize = Byte.toUnsignedInt(buffer.get()); in EapMsChapV2ChallengeRequest() 217 Byte.toUnsignedInt(buffer.get()), in EapMsChapV2SuccessRequest() 325 Byte.toUnsignedInt(buffer.get()), in EapMsChapV2FailureRequest() 470 return Byte.toUnsignedInt(ByteBuffer.wrap(eapTypeData).get()); in getOpCode() 486 int opCode = Byte.toUnsignedInt(buffer.get()); in decodeChallengeRequest() 517 int opCode = Byte.toUnsignedInt(buffer.get()); in decodeSuccessRequest() 550 int opCode = Byte.toUnsignedInt(buffer.get()); in decodeFailureRequest()
|
/packages/modules/Bluetooth/system/tools/irk-calculator/ |
D | README.mkdn | 43 IRK Byte Array: [01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F, 10] 44 Address Byte Array: [79, CB, 92, 70, BE, B3] 66 IRK Byte Array: [01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F, 10] 67 Address Byte Array: [58, 9B, 3E, A3, 5B, 24]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/sap/ |
D | SapRilReceiverHidl.java | 50 private ArrayList<Byte> primitiveArrayToContainerArrayList(byte[] arr) { in primitiveArrayToContainerArrayList() 51 ArrayList<Byte> arrayList = new ArrayList<>(arr.length); in primitiveArrayToContainerArrayList() 67 ArrayList<Byte> commandHidl = primitiveArrayToContainerArrayList(command); in apduReq() 211 public static byte[] arrayListToPrimitiveArray(List<Byte> bytes) { in arrayListToPrimitiveArray() 261 public void apduResponse(int token, int resultCode, ArrayList<Byte> apduRsp) { in apduResponse() 273 public void transferAtrResponse(int token, int resultCode, ArrayList<Byte> atr) { in transferAtrResponse()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/presence/ |
D | FastAdvertisement.java | 106 private final Byte mTxPower; 113 @Nullable Byte txPower) { in FastAdvertisement() 139 public Byte getTxPower() { in getTxPower()
|
D | DataElementHeader.java | 151 List<Byte> typeIntList = convertTypeMultipleBytes(type); 216 static List<Byte> convertTypeMultipleBytes(int type) { 217 List<Byte> typeBytes = new ArrayList<>();
|
/packages/apps/SecureElement/src/com/android/se/ |
D | Terminal.java | 334 private ArrayList<Byte> byteArrayToArrayList(byte[] array) { in byteArrayToArrayList() 335 ArrayList<Byte> list = new ArrayList<Byte>(); in byteArrayToArrayList() 340 for (Byte b : array) { in byteArrayToArrayList() 346 private byte[] arrayListToByteArray(ArrayList<Byte> list) { in arrayListToByteArray() 347 Byte[] byteArray = list.toArray(new Byte[list.size()]); in arrayListToByteArray() 350 for (Byte b : byteArray) { in arrayListToByteArray() 450 ArrayList<Byte> responseList = mSEHal.getAtr(); in getAtr() 588 public void onValues(ArrayList<Byte> responseObject, in openBasicChannel() 827 ArrayList<Byte> response; in transmitInternal()
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/integration/ |
D | DefaultDataTypeDescriptorSet.kt | 65 FieldType.Byte, in <lambda>() 88 FieldType.Byte -> Byte::class.javaObjectType in <lambda>()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarServiceUtilsTest.java | 197 Byte[] expected = new Byte[] {0, 0, 0, 0, 73, -106, 2, -46}; in testLongToBytes() 220 Byte[] expected = new Byte[] {0, 0, 0, 0, 7, 91, -51, 21, 0, 0, 0, 0, 58, -34, 104, -79}; in testUuidToBytes() 260 Byte[] expected = new Byte[] {1, 2, 3, 4, 5, 6}; in testConcatByteArrays()
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/ttls/ |
D | EapTtlsAvp.java | 208 return (Byte.toUnsignedInt(buffer.get()) << 16) in getAvpLength() 209 | (Byte.toUnsignedInt(buffer.get()) << 8) in getAvpLength() 210 | Byte.toUnsignedInt(buffer.get()); in getAvpLength()
|