/packages/apps/Launcher3/tests/src/com/android/launcher3/search/ |
D | StringMatcherUtilityTest.java | 148 assertEquals(IntArray.wrap(), getListOfBreakpoints("", MATCHER)); in testStringWithProperBreaks() 151 assertEquals(IntArray.wrap(0), getListOfBreakpoints("DDz", MATCHER)); in testStringWithProperBreaks() 154 assertEquals(IntArray.wrap(), getListOfBreakpoints("SNKRS", MATCHER)); in testStringWithProperBreaks() 155 assertEquals(IntArray.wrap(), getListOfBreakpoints("flutterappflorafy", MATCHER)); in testStringWithProperBreaks() 156 assertEquals(IntArray.wrap(), getListOfBreakpoints("LEGO®", MATCHER)); in testStringWithProperBreaks() 160 assertEquals(IntArray.wrap(9), getListOfBreakpoints("flutterappFlorafy", MATCHER)); in testStringWithProperBreaks() 162 assertEquals(IntArray.wrap(4), getListOfBreakpoints("MetroZone", MATCHER)); in testStringWithProperBreaks() 164 assertEquals(IntArray.wrap(4,5), getListOfBreakpoints("metroXZone", MATCHER)); in testStringWithProperBreaks() 166 assertEquals(IntArray.wrap(0), getListOfBreakpoints("GPay", MATCHER)); in testStringWithProperBreaks() 168 assertEquals(IntArray.wrap(4), getListOfBreakpoints("WhatsApp", MATCHER)); in testStringWithProperBreaks() [all …]
|
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/ |
D | TaskGridNavHelperTest.java | 32 IntArray topIds = IntArray.wrap(1, 3, 5); in equalLengthRows_noFocused_onTop_pressDown_goesToBottom() 33 IntArray bottomIds = IntArray.wrap(2, 4, 6); in equalLengthRows_noFocused_onTop_pressDown_goesToBottom() 49 IntArray topIds = IntArray.wrap(1, 3, 5); in equalLengthRows_noFocused_onTop_pressUp_goesToBottom() 50 IntArray bottomIds = IntArray.wrap(2, 4, 6); in equalLengthRows_noFocused_onTop_pressUp_goesToBottom() 66 IntArray topIds = IntArray.wrap(1, 3, 5); in equalLengthRows_noFocused_onBottom_pressDown_goesToTop() 67 IntArray bottomIds = IntArray.wrap(2, 4, 6); in equalLengthRows_noFocused_onBottom_pressDown_goesToTop() 83 IntArray topIds = IntArray.wrap(1, 3, 5); in equalLengthRows_noFocused_onBottom_pressUp_goesToTop() 84 IntArray bottomIds = IntArray.wrap(2, 4, 6); in equalLengthRows_noFocused_onBottom_pressUp_goesToTop() 100 IntArray topIds = IntArray.wrap(1, 3, 5); in equalLengthRows_noFocused_onTop_pressLeft_goesLeft() 101 IntArray bottomIds = IntArray.wrap(2, 4, 6); in equalLengthRows_noFocused_onTop_pressLeft_goesLeft() [all …]
|
/packages/modules/adb/ |
D | adb_utils_test.cpp | 90 auto wrap = [](const std::string& x) { return '\'' + x + '\''; }; local 92 EXPECT_EQ(wrap(q), escape_arg("'")); 93 EXPECT_EQ(wrap(q + q), escape_arg("''")); 94 EXPECT_EQ(wrap(q + "abc" + q), escape_arg("'abc'")); 95 EXPECT_EQ(wrap(q + "abc"), escape_arg("'abc")); 96 EXPECT_EQ(wrap("abc" + q), escape_arg("abc'")); 97 EXPECT_EQ(wrap("abc" + q + "def"), escape_arg("abc'def")); 98 EXPECT_EQ(wrap("a" + q + "b" + q + "c"), escape_arg("a'b'c")); 99 EXPECT_EQ(wrap("a" + q + "bcde" + q + "f"), escape_arg("a'bcde'f"));
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ByteBufferReaderTest.java | 45 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerWithBufferUnderflow() 59 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerExceedingMaximumLength() 73 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerLessThanMinimumLength() 86 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerWithMinimumSize() 102 ByteBuffer leBuffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerWithMaximumSize() 108 ByteBuffer beBuffer = ByteBuffer.wrap(data).order(ByteOrder.BIG_ENDIAN); in readIntegerWithMaximumSize() 122 ByteBufferReader.readString(ByteBuffer.wrap(new byte[10]), -1, StandardCharsets.US_ASCII); in readStringWithNegativeSize() 133 ByteBuffer.wrap(new byte[10]), 0, StandardCharsets.US_ASCII); in readStringWithZeroSize() 146 ByteBuffer buffer = ByteBuffer.wrap(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readString()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | VenueUrlElementTest.java | 108 ByteBuffer buffer = ByteBuffer.wrap(getTestData(urlList)); in parseTruncatedBuffer() 119 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, new String())); in parseBufferWithEmptyVenueUrl() 128 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, TEST_VENUE_URL_INVALID)); in parseBufferWithInvalidVenueUrl() 145 VenueUrlElement.parse(ByteBuffer.wrap(stream.toByteArray())); in parseBufferWithInvalidLength() 154 ByteBuffer buffer = ByteBuffer.wrap(getTestData(0, new String())); in parseBufferWithZeroVenueNumber() 164 ByteBuffer buffer = ByteBuffer.wrap(getTestData(0, TEST_VENUE_URL1)); in parseBufferWithZeroVenueNumberAndUrlData() 180 ByteBuffer buffer = ByteBuffer.wrap(getTestData(-7, TEST_VENUE_URL1)); in parseBufferWithNegativeVenueNumberAndUrlData() 207 ByteBuffer buffer = ByteBuffer.wrap(getTestData(urlList)); in parseBufferWithValidVenueUrls() 225 ByteBuffer buffer = ByteBuffer.wrap(getTestData(urlList)); in parseBufferWithValidVenueUrlsAndCapsUrls() 235 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, TEST_VENUE_URL_INSECURE)); in parseBufferWithInsecureUrlData() [all …]
|
D | ANQPParserTest.java | 281 ByteBuffer buffer = ByteBuffer.wrap(getVenueNamePayload(language, text)); in parseVenueNameElement() 303 ByteBuffer buffer = ByteBuffer.wrap(new byte[] {(byte) ipAddressAvailability}); in parseIPAddressTypeAvailabilityElement() 319 ByteBuffer buffer = ByteBuffer.wrap(getDomainNamePayload(testNames)); in parseDomainNameElement() 336 ByteBuffer buffer = ByteBuffer.wrap(getRoamingConsortiumPayload(ois, oisLength)); in parseRoamingConsortium() 353 ByteBuffer buffer = ByteBuffer.wrap(getNAIRealmPayload(testBytes)); in parseNAIRealmElement() 373 ByteBuffer buffer = ByteBuffer.wrap(getThreeGPPNetworkPayload( in parseThreeGPPNetworkElement() 387 ByteBuffer buffer = ByteBuffer.wrap( in parseNonHS20VendorSpecificElement() 414 Constants.ANQPElementType.ANQPVendorSpec, ByteBuffer.wrap(data))); in parseVendorSpecificElementWithHSFriendlyName() 434 ByteBuffer buffer = ByteBuffer.wrap(getHSFriendlyNamePayload(language, text)); in parseHSFrendlyNameElement() 461 ByteBuffer buffer = ByteBuffer.wrap(data); in parseHSWANMetricsElement() [all …]
|
D | NAIRealmDataTest.java | 43 NAIRealmData.parse(ByteBuffer.wrap(new byte[0])); in parseEmptyBuffer() 54 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); in parseTruncatedBuffer() 67 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); in parseBufferWithUTF8EncodedNAIRealmData() 79 ByteBuffer buffer = ByteBuffer.wrap( in parseBufferWithNonUTF8EncodedNAIRealmData()
|
D | VenueNameElementTest.java | 99 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {TEST_VENUE_NAME1})); in parseTruncatedBuffer() 113 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[0])); in parseBufferWithEmptyVenueName() 130 ByteBuffer buffer = ByteBuffer.wrap( in parseBufferWithValidVenueNames() 147 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {text})); in parseBufferWithMaxLengthVenueName() 168 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {text})); in parseBufferWithVenueNameLengthExceedMax()
|
D | CellularNetworkTest.java | 63 assertNull(CellularNetwork.parse(ByteBuffer.wrap(testData))); in parseBufferWithInvalidIEIType() 76 CellularNetwork.parse(ByteBuffer.wrap(testData, 0, testData.length - 1)); in parseBufferWithIncompleteData() 91 CellularNetwork.parse(ByteBuffer.wrap(testData)); in parseBufferWithMismatchIEISizeAndPLMNCount() 111 assertEquals(expected, CellularNetwork.parse(ByteBuffer.wrap(testData))); in parseBufferWithTestData()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/ |
D | MediaPlayerWrapperTest.java | 176 MediaPlayerWrapperFactory.wrap(mMockContext, null, mThread.getLooper()); in testNullControllerLooper() 179 wrapper = MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, null); in testNullControllerLooper() 190 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testIsReady() 219 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testControllerUpdate() 252 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testNoQueueMediaUpdates() 313 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testDataOnUpdateNoQueue() 356 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testNullMetadata() 386 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testNullPlayback() 417 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testNullQueue() 443 MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, mThread.getLooper()); in testQueueCached() [all …]
|
D | BrowserPlayerWrapperTest.java | 180 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testWrap() 195 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testConnect_Successful() 209 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testConnect_Suspended() 226 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testConnect_Failed() 240 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testEmptyRoot() 258 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testDisconnect() 269 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testGetRootId() 282 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testPlayItem() 319 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testPlayItem_Timeout() 346 BrowsedPlayerWrapper.wrap(mMockContext, mThread.getLooper(), "test", "test"); in testGetFolderItems() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/crypto/ |
D | TlsSessionHandshakeTest.java | 71 verify(mMockSslEngine).wrap(eq(EMPTY_APPLICATION_BUFFER), eq(PACKET_BUFFER_POSITION_LIMIT)); in testStartHandshake() 76 when(mMockSslEngine.wrap(eq(EMPTY_APPLICATION_BUFFER), eq(EMPTY_PACKET_BUFFER))) in testStartHandshake_fail() 83 verify(mMockSslEngine).wrap(eq(EMPTY_APPLICATION_BUFFER), eq(EMPTY_PACKET_BUFFER)); in testStartHandshake_fail() 107 .wrap(eq(APPLICATION_BUFFER_AVP_POSITION_RESET), eq(PACKET_BUFFER_POSITION_LIMIT)); in testprocessHandshakeData_success() 116 when(mMockSslEngine.wrap( in testprocessHandshakeData_wrapFailure() 135 .wrap(eq(APPLICATION_BUFFER_AVP_CLEARED), eq(PACKET_BUFFER_POSITION_LIMIT)); in testprocessHandshakeData_wrapFailure() 184 .wrap(eq(APPLICATION_BUFFER_AVP_POSITION_RESET), eq(PACKET_BUFFER_POSITION_LIMIT)); in testprocessHandshakeData_wrapClosed() 219 .wrap(eq(APPLICATION_BUFFER_AVP_POSITION_RESET), eq(PACKET_BUFFER_POSITION_LIMIT)); in testprocessHandshakeData_wrapFinished() 249 .wrap(eq(APPLICATION_BUFFER_AVP_POSITION_RESET), eq(PACKET_BUFFER_POSITION_LIMIT)); in testprocessHandshakeData_delegatedTasks() 270 .wrap(eq(APPLICATION_BUFFER_AVP_CLEARED), eq(PACKET_BUFFER_POSITION_LIMIT)); in verifyCloseConnection()
|
D | TlsSessionTunnelTest.java | 48 .wrap(eq(APPLICATION_BUFFER_POSITION_RESET), eq(PACKET_BUFFER_POSITION_LIMIT)); in testEncryptMessage_success() 65 .wrap(eq(APPLICATION_BUFFER_POSITION_RESET), eq(PACKET_BUFFER_POSITION_LIMIT)); in testEncryptMessage_failure() 83 .wrap(eq(APPLICATION_BUFFER_POSITION_RESET), eq(PACKET_BUFFER_POSITION_LIMIT)); in testEncryptMessage_overflow() 101 .wrap(eq(APPLICATION_BUFFER_POSITION_RESET), eq(PACKET_BUFFER_POSITION_LIMIT)); in testEncryptMessage_underflow() 106 when(mMockSslEngine.wrap(eq(APPLICATION_BUFFER_POSITION_RESET), eq(EMPTY_PACKET_BUFFER))) in testEncryptMessage_closed() 147 verify(mMockSslEngine).wrap(eq(EMPTY_APPLICATION_BUFFER), eq(PACKET_BUFFER_POSITION_LIMIT)); in testDecryptMessage_failure() 167 verify(mMockSslEngine).wrap(eq(EMPTY_APPLICATION_BUFFER), eq(PACKET_BUFFER_POSITION_LIMIT)); in testDecryptMessage_overflow()
|
D | TlsSessionTest.java | 144 verify(mMockSslEngine).wrap(eq(EMPTY_APPLICATION_BUFFER), eq(PACKET_BUFFER_POSITION_LIMIT)); in testCloseConnection_success_withData() 160 when(mMockSslEngine.wrap(eq(EMPTY_APPLICATION_BUFFER), eq(EMPTY_PACKET_BUFFER))) in testCloseConnection_failure_sslException() 167 verify(mMockSslEngine).wrap(eq(EMPTY_APPLICATION_BUFFER), eq(EMPTY_PACKET_BUFFER)); in testCloseConnection_failure_sslException() 173 when(mMockSslEngine.wrap(eq(EMPTY_APPLICATION_BUFFER), eq(EMPTY_PACKET_BUFFER))) in testCloseConnection_failure_bufferOverflow() 180 verify(mMockSslEngine).wrap(eq(EMPTY_APPLICATION_BUFFER), eq(EMPTY_PACKET_BUFFER)); in testCloseConnection_failure_bufferOverflow() 200 when(mMockSslEngine.wrap(eq(applicationBuffer), eq(packetBuffer))) in setupWrap() 223 when(mMockSslEngine.wrap(eq(applicationBuffer), eq(packetBuffer))) in setupChainedWrap() 263 when(mMockSslEngine.wrap(eq(applicationBuffer), eq(packetBuffer))) in setupChainedWrap_exception()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/eap/ |
D | ExpandedEAPMethodTest.java | 49 ByteBuffer.wrap(new byte[0]), ExpandedEAPMethod.EXPECTED_LENGTH_VALUE, false); in parseEmptyBuffer() 60 ExpandedEAPMethod.parse(ByteBuffer.wrap(TEST_DATA_BYTES), in parseBufferWithInvalidLength() 71 ExpandedEAPMethod.parse(ByteBuffer.wrap(TEST_DATA_BYTES, 0, TEST_DATA_BYTES.length - 1), in parseBufferWithTruncatedBuffer() 86 ByteBuffer.wrap(TEST_DATA_BYTES), ExpandedEAPMethod.EXPECTED_LENGTH_VALUE, false); in parseBufferForNonInnerEAPMethod() 101 ByteBuffer.wrap(TEST_DATA_BYTES), ExpandedEAPMethod.EXPECTED_LENGTH_VALUE, true); in parseBufferForTunneledEAPMethod()
|
D | VendorSpecificAuthTest.java | 44 VendorSpecificAuth.parse(ByteBuffer.wrap(new byte[0]), 1); in parseEmptyBuffer() 55 ByteBuffer.wrap(TEST_DATA, 0, TEST_DATA.length - 1), TEST_DATA.length); in parseTruncatedBuffer() 67 assertEquals(expected, VendorSpecificAuth.parse(ByteBuffer.wrap(TEST_DATA), 0)); in parseBufferWithZeroLength() 80 VendorSpecificAuth.parse(ByteBuffer.wrap(TEST_DATA), TEST_DATA.length); in parseBuffer()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | IntSet.java | 99 public static IntSet wrap(IntArray array) { in wrap() method in IntSet 109 public static IntSet wrap(int... array) { in wrap() method in IntSet 110 return wrap(IntArray.wrap(array)); in wrap() 116 public static IntSet wrap(Iterable<Integer> iterable) { in wrap() method in IntSet
|
/packages/modules/Uwb/service/java/com/android/server/uwb/util/ |
D | DataTypeConversionUtil.java | 103 return ByteBuffer.wrap(bytes).order(ByteOrder.BIG_ENDIAN).getShort(); in byteArrayToI16() 113 return ByteBuffer.wrap(bytes).order(ByteOrder.BIG_ENDIAN).getInt(); in byteArrayToI32() 150 return ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN).getShort(); in macAddressByteArrayToLong() 152 return ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN).getInt(); in macAddressByteArrayToLong() 155 return ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN).getShort(); in macAddressByteArrayToLong() 157 return ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN).getLong(); in macAddressByteArrayToLong()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/params/ |
D | TlvDecoderBuffer.java | 82 mBuffer = ByteBuffer.wrap(tlvArray); in TlvDecoderBuffer() 144 return ByteBuffer.wrap(tlv.value).get(); in getByte() 157 return ByteBuffer.wrap(tlv.value).order(ByteOrder.LITTLE_ENDIAN).getShort(); in getShort() 170 return ByteBuffer.wrap(tlv.value).order(ByteOrder.LITTLE_ENDIAN).getInt(); in getInt() 183 return ByteBuffer.wrap(tlv.value).order(ByteOrder.LITTLE_ENDIAN).getLong(); in getLong() 193 ByteBuffer.wrap(tlv.value).get(value); in getByteArray()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/ |
D | AtIdReqTest.java | 59 ByteBuffer input = ByteBuffer.wrap(AT_PERMANENT_ID_REQ); in testDecodeAtPermanentIdReq() 71 ByteBuffer input = ByteBuffer.wrap(PERMANENT_ID_INVALID_LENGTH); in testDecodeAtPermanentIdReqInvalidLength() 90 ByteBuffer input = ByteBuffer.wrap(AT_ANY_ID_REQ); in testDecodeAtAnyIdReq() 102 ByteBuffer input = ByteBuffer.wrap(ANY_ID_INVALID_LENGTH); in testDecodeAtAnyIdReqInvalidLength() 121 ByteBuffer input = ByteBuffer.wrap(AT_FULL_AUTH_ID_REQ); in testDecodeAtFullauthIdReq() 133 ByteBuffer input = ByteBuffer.wrap(FULL_AUTH_ID_INVALID_LENGTH); in testDecodeAtFullauthIdReqInvalidLength()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | DnsPacketTest.java | 190 ByteBuffer.wrap(testHeader.getBytes())); in testDnsHeaderSynthesize() 215 ByteBuffer.wrap(svcbQuestionRecord)) instanceof DnsSvcbRecord); in testDnsRecordParse() 227 ByteBuffer.wrap(svcbAnswerRecord)) instanceof DnsSvcbRecord); in testDnsRecordParse() 246 DnsPacket.DnsRecord.parse(DnsPacket.QDSECTION, ByteBuffer.wrap(qdWithTTLRData)); in testDnsRecordTTLRDataErrorHandling() 257 DnsPacket.DnsRecord.parse(DnsPacket.ANSECTION, ByteBuffer.wrap(anWithoutTTLRData))); in testDnsRecordTTLRDataErrorHandling() 263 ByteBuffer.wrap(before.getBytes())); in assertDnsRecordRoundTrip() 407 new DnsPacket.DnsHeader(ByteBuffer.wrap(testHeader.getBytes())); in testEqualsAndHashCode() 421 ByteBuffer.wrap(testQuestion.getBytes())); in testEqualsAndHashCode()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/ttls/ |
D | EapTtlsAvpTest.java | 133 private static final ByteBuffer AVP_LENGTH_BUFFER = ByteBuffer.wrap(AVP_LENGTH_BYTE_ARRAY); 142 ByteBuffer.wrap(EAP_MESSAGE_AVP_WITHOUT_VENDOR_ID_PADDING_REQUIRED_BYTES)); in testEapTtlsAvp_success_withoutVendorId() 156 ByteBuffer.wrap(EAP_MESSAGE_AVP_WITH_VENDOR_ID_PADDING_REQUIRED_BYTES)); in testEapTtlsAvp_success_withVendorId() 168 EapTtlsAvp avp = new EapTtlsAvp(ByteBuffer.wrap(EAP_MESSAGE_AVP_INVALID_UNDERFLOW_BYTES)); in testEapTtlsAvp_failure_invalidUnderflow() 173 EapTtlsAvp avp = new EapTtlsAvp(ByteBuffer.wrap(EAP_MESSAGE_AVP_INVALID_PADDING_BYTES)); in testEapTtlsAvp_failure_invalidPadding() 178 EapTtlsAvp avp = new EapTtlsAvp(ByteBuffer.wrap(EAP_MESSAGE_AVP_INVALID_LENGTH_BYTES)); in testEapTtlsAvp_failure_invalidLength()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/ |
D | ConntrackMessageTest.java | 149 final ByteBuffer byteBuffer = ByteBuffer.wrap(tcp); in testConntrackParseIPv4TcpTimeoutUpdate() 198 final ByteBuffer byteBuffer = ByteBuffer.wrap(udp); in testConntrackParseIPv4UdpTimeoutUpdate() 292 final ByteBuffer byteBuffer = ByteBuffer.wrap(CT_V4NEW_TCP_BYTES); in testParseCtNew() 343 final ByteBuffer byteBuffer = ByteBuffer.wrap(truncated); in testParseTruncation() 362 final ByteBuffer byteBuffer = ByteBuffer.wrap(truncated); in testParseTruncationWithInvalidByte() 393 final ByteBuffer byteBuffer = ByteBuffer.wrap(CT_MALFORMED_BYTES); in testParseMalformation() 410 final ByteBuffer byteBuffer = ByteBuffer.wrap(CT_V4NEW_TCP_BYTES); in testToString()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/ |
D | UpdateProcessingOrchestratorTest.java | 171 toReturn.getKeysTouched().add(ByteBuffer.wrap(KEY_1)); in testUpdatesProcessorSingleInsert() 201 toReturn.getKeysTouched().add(ByteBuffer.wrap(KEY_1)); in testUpdatesProcessorSingleInsertJsonArray() 233 toReturn.getKeysTouched().add(ByteBuffer.wrap(KEY_1)); in testUpdatesProcessorSingleRemove() 259 toReturnFirst.getKeysTouched().add(ByteBuffer.wrap(KEY_1)); in testUpdatesProcessorTwoInserts() 267 toReturnSecond.getKeysTouched().add(ByteBuffer.wrap(KEY_2)); in testUpdatesProcessorTwoInserts() 287 toEvictOutput.getKeysTouched().add(ByteBuffer.wrap(KEY_1)); in testUpdatesProcessorTwoInserts() 288 toEvictOutput.getKeysTouched().add(ByteBuffer.wrap(KEY_2)); in testUpdatesProcessorTwoInserts() 308 toReturnFirst.getKeysTouched().add(ByteBuffer.wrap(KEY_1)); in testUpdatesProcessorTwoInsertsSameKey() 314 toReturnSecond.getKeysTouched().add(ByteBuffer.wrap(KEY_1)); in testUpdatesProcessorTwoInsertsSameKey() 345 toReturn.getKeysTouched().add(ByteBuffer.wrap(KEY_1)); in testUpdatesProcessorTwoDeletesSameKey() [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/utils/ |
D | StorageUtils.java | 416 ByteBuffer byteBuffer = ByteBuffer.wrap(bytes); in convertBytesToUUID() 423 ByteBuffer byteBuffer = ByteBuffer.wrap(new byte[16]); in convertUUIDToBytes() 431 ByteBuffer byteBuffer = ByteBuffer.wrap(new byte[8]); in convertDoubleToBytes() 438 return ByteBuffer.wrap(bytes).getDouble(); in convertBytesToDouble() 443 ByteBuffer byteBuffer = ByteBuffer.wrap(new byte[4]); in convertIntToBytes() 450 return ByteBuffer.wrap(bytes).getInt(); in convertBytesToInt() 455 ByteBuffer byteBuffer = ByteBuffer.wrap(new byte[8]); in convertLongToBytes() 462 return ByteBuffer.wrap(bytes).getLong(); in convertBytesToLong() 500 ByteBuffer byteBuffer = ByteBuffer.wrap(allByteArray); in getSingleByteArray() 516 ByteBuffer byteBuffer = ByteBuffer.wrap(bytes); in bytesToUuids()
|