Home
last modified time | relevance | path

Searched refs:wrap (Results 1 – 25 of 182) sorted by relevance

12345678

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DMediaPlayerWrapperTest.java141 MediaPlayerWrapper wrapper = MediaPlayerWrapperFactory.wrap(null, mThread.getLooper()); in testNullControllerLooper()
144 wrapper = MediaPlayerWrapperFactory.wrap(mMockController, null); in testNullControllerLooper()
155 MediaPlayerWrapperFactory.wrap(mMockController, mThread.getLooper()); in testIsReady()
184 MediaPlayerWrapperFactory.wrap(mMockController, mThread.getLooper()); in testControllerUpdate()
218 MediaPlayerWrapperFactory.wrap(mMockController, mThread.getLooper()); in testNoQueueMediaUpdates()
280 MediaPlayerWrapperFactory.wrap(mMockController, mThread.getLooper()); in testDataOnUpdateNoQueue()
324 MediaPlayerWrapperFactory.wrap(mMockController, mThread.getLooper()); in testNullMetadata()
353 MediaPlayerWrapperFactory.wrap(mMockController, mThread.getLooper()); in testNullQueue()
380 MediaPlayerWrapperFactory.wrap(mMockController, mThread.getLooper()); in testQueueCached()
403 MediaPlayerWrapperFactory.wrap(mMockController, mThread.getLooper()); in testPlaybackStateUpdateSpam()
[all …]
DBrowserPlayerWrapperTest.java72 BrowsedPlayerWrapper.wrap(null, mThread.getLooper(), "test", "test"); in testWrap()
87 BrowsedPlayerWrapper.wrap(null, mThread.getLooper(), "test", "test"); in testConnect_Successful()
101 BrowsedPlayerWrapper.wrap(null, mThread.getLooper(), "test", "test"); in testConnect_Suspended()
118 BrowsedPlayerWrapper.wrap(null, mThread.getLooper(), "test", "test"); in testConnect_Failed()
132 BrowsedPlayerWrapper.wrap(null, mThread.getLooper(), "test", "test"); in testEmptyRoot()
150 BrowsedPlayerWrapper.wrap(null, mThread.getLooper(), "test", "test"); in testDisconnect()
161 BrowsedPlayerWrapper.wrap(null, mThread.getLooper(), "test", "test"); in testGetRootId()
174 BrowsedPlayerWrapper.wrap(null, mThread.getLooper(), "test", "test"); in testPlayItem()
211 BrowsedPlayerWrapper.wrap(null, mThread.getLooper(), "test", "test"); in testPlayItem_Timeout()
238 BrowsedPlayerWrapper.wrap(null, mThread.getLooper(), "test", "test"); in testGetFolderItems()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtIdReqTest.java59 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()
DAtResTest.java52 ByteBuffer input = ByteBuffer.wrap(AT_RES); in testDecode()
64 ByteBuffer input = ByteBuffer.wrap(AT_RES_INVALID_RES_LENGTH); in testDecodeInvalidResLength()
74 ByteBuffer input = ByteBuffer.wrap(AT_RES_SHORT_RES); in testDecodeShortResLength()
84 ByteBuffer input = ByteBuffer.wrap(AT_RES_LONG_RES); in testDecodeLongResLength()
DAtCounterTest.java56 ByteBuffer input = ByteBuffer.wrap(AT_COUNTER); in testDecodeAtCounter()
69 ByteBuffer input = ByteBuffer.wrap(AT_COUNTER_INVALID_LENGTH); in testDecodeAtCounterInvalidLength()
95 ByteBuffer input = ByteBuffer.wrap(AT_COUNTER_TOO_SMALL); in testDecodeAtCounterTooSmall()
107 ByteBuffer input = ByteBuffer.wrap(AT_COUNTER_TOO_SMALL_INVALID_LENGTH); in testDecodeAtCounterTooSmallInvalidLength()
DAtBiddingTest.java50 ByteBuffer input = ByteBuffer.wrap(AT_BIDDING_SUPPORTS_AKA_PRIME); in testDecodeServerSupportsAkaPrime()
62 ByteBuffer input = ByteBuffer.wrap(AT_BIDDING_DOES_NOT_SUPPORT_AKA_PRIME); in testDecodeDoesNotSupportAkaPrime()
74 ByteBuffer input = ByteBuffer.wrap(AT_BIDDING_INVALID_LENGTH); in testDecodeInvalidLength()
DAtRandSimTest.java56 ByteBuffer input = ByteBuffer.wrap(AT_RAND_SIM); in testDecode()
71 ByteBuffer input = ByteBuffer.wrap(AT_RAND_SIM_INVALID_NUM_RANDS); in testDecodeInvalidNumRands()
81 ByteBuffer input = ByteBuffer.wrap(AT_RAND_SIM_DUPLICATE_RANDS); in testDecodeDuplicateRands()
DAtNotificationTest.java58 ByteBuffer input = ByteBuffer.wrap(AT_NOTIFICATION); in testDecode()
73 ByteBuffer input = ByteBuffer.wrap(AT_NOTIFICATION_INVALID_LENGTH); in testDecodeInvalidLength()
83 ByteBuffer input = ByteBuffer.wrap(AT_NOTIFICATION_INVALID_STATE); in testDecodeInvalidState()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayloadTest.java267 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeAttribute()
290 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeEncryptionTransform()
306 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeEncryptionTransformWithInvalidKeyLength()
352 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodePrfTransform()
387 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeIntegrityTransform()
403 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeIntegrityTransformWithUnrecognizedAttribute()
438 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeDhGroupTransform()
473 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeEsnTransform()
490 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeEsnTransformWithUnsupportedId()
505 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeEsnTransformWithUnrecognizedAttribute()
[all …]
DIkeDeletePayloadTest.java55 ByteBuffer.wrap(TestUtils.hexStringToByteArray(DELETE_IKE_PAYLOAD_HEX_STRING)); in testDecodeDeleteIkePayload()
74 ByteBuffer.wrap(TestUtils.hexStringToByteArray(DELETE_CHILD_PAYLOAD_HEX_STRING)); in testDecodeDeleteChildPayload()
96 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidProtocol()
111 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidSpiSize()
126 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidNumSpi()
142 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidNumSpiAndSpiSize()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java339 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer1()
372 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testOffer2()
407 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in runCapportOptionTest()
452 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testCapportOption_Invalid()
696 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testMtu()
769 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testBadHwaddrLength()
848 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testPadAndOverloadedOptionsOffer()
883 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testBug2111()
916 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testBug2136()
952 final ByteBuffer packet = ByteBuffer.wrap(HexDump.hexStringToByteArray( in testUdpServerAnySourcePort()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1151 ByteBuffer packet = ByteBuffer.wrap(new byte[100]); in makeIpv4Packet()
1158 ByteBuffer packet = ByteBuffer.wrap(new byte[100]); in makeIpv6Packet()
1179 ByteBuffer packet = ByteBuffer.wrap(new byte[100]); in testApfFilterIPv4()
1366 ByteBuffer raPacket = ByteBuffer.wrap(packet.array().clone()); in testApfFilterMulticastPingWhileDozing()
1389 ByteBuffer packet = ByteBuffer.wrap(new byte[100]); in testApfFilter802_3()
1436 ByteBuffer packet = ByteBuffer.wrap(new byte[100]); in testApfFilterEthTypeBL()
1531 ByteBuffer packet = ByteBuffer.wrap(new byte[100]); in arpReply()
1540 ByteBuffer packet = ByteBuffer.wrap(new byte[100]); in arpRequestBroadcast()
1549 ByteBuffer packet = ByteBuffer.wrap(new byte[100]); in garpReply()
1726 ByteBuffer packet = ByteBuffer.wrap(new byte[totalLength + ETH_HEADER_LEN]); in ipv4TcpPacket()
[all …]
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverDataParser.java244 bluetoothData = parseBtOob(ByteBuffer.wrap(dataRecord.getPayload())); in getIncomingHandoverData()
300 ByteBuffer buf = ByteBuffer.wrap(acPayload); in isCarrierActivating()
324 BluetoothHandoverData data = parseBtOob(ByteBuffer.wrap(oob.getPayload())); in parseBluetoothHandoverSelect()
333 return parseBleOob(ByteBuffer.wrap(oob.getPayload())); in parseBluetoothHandoverSelect()
347 return parseBtOob(ByteBuffer.wrap(r.getPayload())); in parseBluetooth()
352 return parseBleOob(ByteBuffer.wrap(r.getPayload())); in parseBluetooth()
363 return parseNokia(ByteBuffer.wrap(r.getPayload())); in parseBluetooth()
/packages/apps/Camera2/jni/
Dtinyplanet.cc88 inline float wrap(float value, float dimension) { in wrap() function
123 px = wrap(px, input_width); in StereographicProjection()
124 py = wrap(py, input_height); in StereographicProjection()
/packages/apps/Gallery2/jni/filters/
Dtinyplanet.cc87 inline float wrap(float value, float dimension) { in wrap() function
122 px = wrap(px, input_width); in StereographicProjection()
123 py = wrap(py, input_height); in StereographicProjection()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DSwipeUpGestureTutorialController.java129 mRunningWindowAnim = RunningWindowAnim.wrap(animset); in fadeOutFakeTaskView()
141 mRunningWindowAnim = RunningWindowAnim.wrap(animset); in fadeOutFakeTaskView()
153 mRunningWindowAnim = RunningWindowAnim.wrap(rectAnim); in animateFakeTaskViewHome()
208 return AnimatorPlaybackController.wrap(new AnimatorSet(), duration); in handleSwipeUpToHome()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DObexAppParameters.java139 return ByteBuffer.wrap(bval).get(); in getByte()
149 return ByteBuffer.wrap(bval).getShort(); in getShort()
159 return ByteBuffer.wrap(bval).getInt(); in getInt()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DObexAppParameters.java139 return ByteBuffer.wrap(bval).get(); in getByte()
149 return ByteBuffer.wrap(bval).getShort(); in getShort()
159 return ByteBuffer.wrap(bval).getInt(); in getInt()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunUtils.java102 return ByteBuffer.wrap(address).order(ByteOrder.LITTLE_ENDIAN).getInt(); in addressToInt()
124 ByteBuffer buffer = ByteBuffer.wrap(data); in openFrame()
148 ByteBuffer buffer = ByteBuffer.wrap(result); in sealFrame()
DHdHomeRunDiscover.java319 ByteBuffer buffer = ByteBuffer.wrap(data); in send()
381 ByteBuffer buffer = ByteBuffer.wrap(data.second); in receive()
392 result.mDeviceType = ByteBuffer.wrap(tagAndValue.second).getInt(); in receive()
399 result.mDeviceId = ByteBuffer.wrap(tagAndValue.second).getInt(); in receive()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DRtNetlinkNeighborMessageTest.java82 final ByteBuffer byteBuffer = ByteBuffer.wrap(RTM_DELNEIGH); in testParseRtmDelNeigh()
109 final ByteBuffer byteBuffer = ByteBuffer.wrap(RTM_NEWNEIGH); in testParseRtmNewNeigh()
136 final ByteBuffer byteBuffer = ByteBuffer.wrap(RTM_GETNEIGH_RESPONSE); in testParseRtmGetNeighResponse()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDocumentsAccess.java19 import static android.content.ContentResolver.wrap;
148 return DocumentsContract.findDocumentPath(wrap(client), docUri); in findDocumentPath()
158 wrap(client), parentDoc.derivedUri, mimeType, displayName); in createDocument()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java19 import static android.content.ContentResolver.wrap;
356 if (DocumentsContract.copyDocument(wrap(getClient(src)), src.derivedUri, in processDocument()
432 wrap(getClient(dest)), dest.derivedUri, dstMimeType, dstDisplayName); in byteCopyDocument()
847 return isChildDocument(wrap(getClient(doc)), doc.derivedUri, parent.derivedUri); in isDescendantOf()
879 final Path targetPath = findDocumentPath(wrap(getClient(target)), targetUri); in isRecursiveCopy()
884 ContentResolver cr = wrap(getClient(source)); in isRecursiveCopy()
893 cr = wrap(getClient(target)); in isRecursiveCopy()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/mschapv2/
DEapMsChapV2TypeData.java470 return Byte.toUnsignedInt(ByteBuffer.wrap(eapTypeData).get()); in getOpCode()
485 ByteBuffer buffer = ByteBuffer.wrap(eapTypeData); in decodeChallengeRequest()
516 ByteBuffer buffer = ByteBuffer.wrap(eapTypeData); in decodeSuccessRequest()
549 ByteBuffer buffer = ByteBuffer.wrap(eapTypeData); in decodeFailureRequest()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/
DTcpInfoTest.java104 final ByteBuffer buffer = ByteBuffer.wrap(TCP_INFO_BYTES); in testParseTcpInfo()
132 final ByteBuffer buffer = ByteBuffer.wrap(EXPANDED_TCP_INFO_BYTES); in testParseTcpInfoExpanded()
168 final ByteBuffer buffer = ByteBuffer.wrap(MALFORMED_TCP_INFO_BYTES); in testMalformedTcpInfo()

12345678