Home
last modified time | relevance | path

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

123456789

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationCustomViewWrapperTest.java54 NotificationViewWrapper wrap = NotificationCustomViewWrapper.wrap(mContext, v, mRow); in testBackgroundPersists() local
55 wrap.onContentUpdated(mRow); in testBackgroundPersists()
57 wrap.getCustomBackgroundColor() != 0); in testBackgroundPersists()
59 wrap.onReinflated(); in testBackgroundPersists()
60 wrap.onContentUpdated(mRow); in testBackgroundPersists()
62 wrap.getCustomBackgroundColor() != 0); in testBackgroundPersists()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/
DNavigationBarButton.java54 drawables[i] = TintedDrawable.wrap(drawables[i]); in init()
65 left = TintedDrawable.wrap(left); in setCompoundDrawables()
68 top = TintedDrawable.wrap(top); in setCompoundDrawables()
71 right = TintedDrawable.wrap(right); in setCompoundDrawables()
74 bottom = TintedDrawable.wrap(bottom); in setCompoundDrawables()
84 start = TintedDrawable.wrap(start); in setCompoundDrawablesRelative()
87 top = TintedDrawable.wrap(top); in setCompoundDrawablesRelative()
90 end = TintedDrawable.wrap(end); in setCompoundDrawablesRelative()
93 bottom = TintedDrawable.wrap(bottom); in setCompoundDrawablesRelative()
136 public static TintedDrawable wrap(Drawable drawable) { in wrap() method in NavigationBarButton.TintedDrawable
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DByteBufferReaderTest.java45 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()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/eap/
DExpandedEAPMethodTest.java47 ByteBuffer.wrap(new byte[0]), ExpandedEAPMethod.EXPECTED_LENGTH_VALUE, false); in parseEmptyBuffer()
58 ExpandedEAPMethod.parse(ByteBuffer.wrap(TEST_DATA_BYTES), in parseBufferWithInvalidLength()
69 ExpandedEAPMethod.parse(ByteBuffer.wrap(TEST_DATA_BYTES, 0, TEST_DATA_BYTES.length - 1), in parseBufferWithTruncatedBuffer()
84 ByteBuffer.wrap(TEST_DATA_BYTES), ExpandedEAPMethod.EXPECTED_LENGTH_VALUE, false); in parseBufferForNonInnerEAPMethod()
99 ByteBuffer.wrap(TEST_DATA_BYTES), ExpandedEAPMethod.EXPECTED_LENGTH_VALUE, true); in parseBufferForTunneledEAPMethod()
DVendorSpecificAuthTest.java42 VendorSpecificAuth.parse(ByteBuffer.wrap(new byte[0]), 1); in parseEmptyBuffer()
53 ByteBuffer.wrap(TEST_DATA, 0, TEST_DATA.length - 1), TEST_DATA.length); in parseTruncatedBuffer()
65 assertEquals(expected, VendorSpecificAuth.parse(ByteBuffer.wrap(TEST_DATA), 0)); in parseBufferWithZeroLength()
78 VendorSpecificAuth.parse(ByteBuffer.wrap(TEST_DATA), TEST_DATA.length); in parseBuffer()
DEAPMethodTest.java141 EAPMethod.parse(ByteBuffer.wrap(new byte[0])); in parseEmptyBuffer()
152 ByteBuffer buffer = ByteBuffer.wrap(TEST_DATA1_BYTES, 0, TEST_DATA1_BYTES.length - 1); in parseTruncatedBuffer()
164 assertEquals(TEST_DATA1_EAP_METHOD, EAPMethod.parse(ByteBuffer.wrap(TEST_DATA1_BYTES))); in parseBufferWithTestData1()
175 assertEquals(TEST_DATA2_EAP_METHOD, EAPMethod.parse(ByteBuffer.wrap(TEST_DATA2_BYTES))); in parseBufferWithTestData2()
DNonEAPInnerAuthTest.java42 return ByteBuffer.wrap(new byte[] {(byte) TEST_AUTH_TYPE}); in getTestBuffer()
52 NonEAPInnerAuth.parse(ByteBuffer.wrap(new byte[0]), NonEAPInnerAuth.EXPECTED_LENGTH_VALUE); in parseEmptyBuffer()
DInnerAuthEAPTest.java44 return ByteBuffer.wrap(new byte[] {(byte) TEST_EAP_METHOD_ID}); in getTestBuffer()
54 InnerAuthEAP.parse(ByteBuffer.wrap(new byte[0]), InnerAuthEAP.EXPECTED_LENGTH_VALUE); in parseEmptyBuffer()
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/message/
DIkeDeletePayloadTest.java44 ByteBuffer.wrap(TestUtils.hexStringToByteArray(DELETE_IKE_PAYLOAD_HEX_STRING)); in testDecodeDeleteIkePayload()
63 ByteBuffer.wrap(TestUtils.hexStringToByteArray(DELETE_CHILD_PAYLOAD_HEX_STRING)); in testDecodeDeleteChildPayload()
78 ByteBuffer buffer = ByteBuffer.wrap(childSpiBytes); in testDecodeDeleteChildPayload()
88 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidProtocol()
103 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidSpiSize()
118 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidNumSpi()
134 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidNumSpiAndSpiSize()
DIkeSaPayloadTest.java176 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeAttribute()
199 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeEncryptionTransform()
215 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeEncryptionTransformWithInvalidKeyLength()
262 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodePrfTransform()
297 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeIntegrityTransform()
313 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeIntegrityTransformWithUnrecognizedAttribute()
348 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeDhGroupTransform()
383 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeEsnTransform()
400 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeEsnTransformWithUnsupportedId()
415 ByteBuffer inputBuffer = ByteBuffer.wrap(inputPacket); in testDecodeEsnTransformWithUnrecognizedAttribute()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DNAIRealmDataTest.java41 NAIRealmData.parse(ByteBuffer.wrap(new byte[0])); in parseEmptyBuffer()
52 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); in parseTruncatedBuffer()
65 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); in parseBufferWithUTF8EncodedNAIRealmData()
77 ByteBuffer buffer = ByteBuffer.wrap( in parseBufferWithNonUTF8EncodedNAIRealmData()
DCellularNetworkTest.java61 assertNull(CellularNetwork.parse(ByteBuffer.wrap(testData))); in parseBufferWithInvalidIEIType()
74 CellularNetwork.parse(ByteBuffer.wrap(testData, 0, testData.length - 1)); in parseBufferWithIncompleteData()
89 CellularNetwork.parse(ByteBuffer.wrap(testData)); in parseBufferWithMismatchIEISizeAndPLMNCount()
109 assertEquals(expected, CellularNetwork.parse(ByteBuffer.wrap(testData))); in parseBufferWithTestData()
DANQPParserTest.java279 ByteBuffer buffer = ByteBuffer.wrap(getVenueNamePayload(language, text)); in parseVenueNameElement()
301 ByteBuffer buffer = ByteBuffer.wrap(new byte[] {(byte) ipAddressAvailability}); in parseIPAddressTypeAvailabilityElement()
317 ByteBuffer buffer = ByteBuffer.wrap(getDomainNamePayload(testNames)); in parseDomainNameElement()
334 ByteBuffer buffer = ByteBuffer.wrap(getRoamingConsortiumPayload(ois, oisLength)); in parseRoamingConsortium()
351 ByteBuffer buffer = ByteBuffer.wrap(getNAIRealmPayload(testBytes)); in parseNAIRealmElement()
371 ByteBuffer buffer = ByteBuffer.wrap(getThreeGPPNetworkPayload( in parseThreeGPPNetworkElement()
385 ByteBuffer buffer = ByteBuffer.wrap( in parseNonHS20VendorSpecificElement()
412 Constants.ANQPElementType.ANQPVendorSpec, ByteBuffer.wrap(data))); in parseVendorSpecificElementWithHSFriendlyName()
432 ByteBuffer buffer = ByteBuffer.wrap(getHSFriendlyNamePayload(language, text)); in parseHSFrendlyNameElement()
459 ByteBuffer buffer = ByteBuffer.wrap(data); in parseHSWANMetricsElement()
[all …]
DVenueNameElementTest.java97 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {TEST_VENUE_NAME1})); in parseTruncatedBuffer()
111 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[0])); in parseBufferWithEmptyVenueName()
128 ByteBuffer buffer = ByteBuffer.wrap( in parseBufferWithValidVenueNames()
145 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {text})); in parseBufferWithMaxLengthVenueName()
166 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {text})); in parseBufferWithVenueNameLengthExceedMax()
DHSIconFileElementTest.java79 ByteBuffer buffer = ByteBuffer.wrap(getTestData(HSIconFileElement.STATUS_CODE_SUCCESS)); in parseTruncatedBuffer()
92 ByteBuffer buffer = ByteBuffer.wrap(getTestData(HSIconFileElement.STATUS_CODE_SUCCESS)); in parseBufferWithIconData()
107 ByteBuffer.wrap(getTestData(HSIconFileElement.STATUS_CODE_FILE_NOT_FOUND)); in parseBufferWithoutIconData()
DHSOsuProvidersElementTest.java86 ByteBuffer buffer = ByteBuffer.wrap(getTestData(TEST_OSU_SSID_BYTES)); in parseTruncatedBuffer()
100 ByteBuffer buffer = ByteBuffer.wrap(getTestData(invalidSsidBytes)); in parseBufferWithInvalidLength()
112 ByteBuffer buffer = ByteBuffer.wrap(getTestData(TEST_OSU_SSID_BYTES)); in parseBufferWithTestData()
DThreeGPPNetworkElementTest.java101 ThreeGPPNetworkElement.parse(ByteBuffer.wrap(testData)); in parseBufferWithUnsupportedVersionNumber()
116 ThreeGPPNetworkElement.parse(ByteBuffer.wrap(testData, 0, testData.length - 1)); in parseBufferWithIncompleteData()
138 assertEquals(expected, ThreeGPPNetworkElement.parse(ByteBuffer.wrap(testData))); in parseBufferWithTestData()
DRawByteElementTest.java44 RawByteElement actual = RawByteElement.parse(TEST_ELEMENT_ID, ByteBuffer.wrap(data)); in parseEmptyBuffer()
58 RawByteElement actual = RawByteElement.parse(TEST_ELEMENT_ID, ByteBuffer.wrap(data)); in parseNonEmptyBuffer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DWakeLock.java51 Runnable wrap(Runnable r); in wrap() method
61 return wrap(createPartialInner(context, tag), maxTimeout); in createPartial()
88 static WakeLock wrap(final PowerManager.WakeLock inner, long maxTimeout) {
114 public Runnable wrap(Runnable runnable) {
/frameworks/av/media/libstagefright/
DInterfaceUtils.cpp37 return RemoteDataSource::wrap(source); in CreateIDataSourceFromDataSource()
47 return RemoteMediaExtractor::wrap(extractor, source, plugin); in CreateIMediaExtractorFromMediaExtractor()
63 return RemoteMediaSource::wrap(extractor, source, plugin); in CreateIMediaSourceFromMediaSourceBase()
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
DBitReader.cpp24 return LLVMParseBitcodeInContext(wrap(&getGlobalContext()), MemBuf, OutModule, in LLVMParseBitcode()
34 *OutModule = wrap(ParseBitcodeFile(unwrap(MemBuf), *unwrap(ContextRef), in LLVMParseBitcodeInContext()
54 *OutM = wrap(getLazyBitcodeModule(unwrap(MemBuf), *unwrap(ContextRef), in LLVMGetBitcodeModuleInContext()
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/
DBitReader.cpp24 return LLVMParseBitcodeInContext(wrap(&getGlobalContext()), MemBuf, OutModule, in LLVMParseBitcode()
34 *OutModule = wrap(ParseBitcodeFile(unwrap(MemBuf), *unwrap(ContextRef), in LLVMParseBitcodeInContext()
54 *OutM = wrap(getLazyBitcodeModule(unwrap(MemBuf), *unwrap(ContextRef), in LLVMGetBitcodeModuleInContext()
/frameworks/av/media/extractors/mpeg2/
DExtractorBundle.cpp59 return wrap(new MPEG2TSExtractor(new DataSourceHelper(source)));}; in GETEXTRACTORDEF()
64 return wrap(new MPEG2PSExtractor(new DataSourceHelper(source)));}; in GETEXTRACTORDEF()
/frameworks/base/opengl/java/android/opengl/
DGLDebugHelper.java79 public static GL wrap(GL gl, int configFlags, Writer log) { in wrap() method in GLDebugHelper
100 public static EGL wrap(EGL egl, int configFlags, Writer log) { in wrap() method in GLDebugHelper
/frameworks/base/tests/net/java/android/net/
DTcpKeepalivePacketDataTest.java93 ByteBuffer buf = ByteBuffer.wrap(packet, 12, 4); in testV4TcpKeepalivePacket()
97 buf = ByteBuffer.wrap(packet, 16, 4); in testV4TcpKeepalivePacket()
101 buf = ByteBuffer.wrap(packet, 20, 12); in testV4TcpKeepalivePacket()
111 buf = ByteBuffer.wrap(packet, 34, 2); in testV4TcpKeepalivePacket()

123456789