/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationCustomViewWrapperTest.java | 54 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/ |
D | NavigationBarButton.java | 54 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/ |
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()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/eap/ |
D | ExpandedEAPMethodTest.java | 47 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()
|
D | VendorSpecificAuthTest.java | 42 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()
|
D | EAPMethodTest.java | 141 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()
|
D | NonEAPInnerAuthTest.java | 42 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()
|
D | InnerAuthEAPTest.java | 44 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/ |
D | IkeDeletePayloadTest.java | 44 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()
|
D | IkeSaPayloadTest.java | 176 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/ |
D | NAIRealmDataTest.java | 41 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()
|
D | CellularNetworkTest.java | 61 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()
|
D | ANQPParserTest.java | 279 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 …]
|
D | VenueNameElementTest.java | 97 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()
|
D | HSIconFileElementTest.java | 79 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()
|
D | HSOsuProvidersElementTest.java | 86 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()
|
D | ThreeGPPNetworkElementTest.java | 101 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()
|
D | RawByteElementTest.java | 44 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/ |
D | WakeLock.java | 51 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/ |
D | InterfaceUtils.cpp | 37 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/ |
D | BitReader.cpp | 24 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/ |
D | BitReader.cpp | 24 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/ |
D | ExtractorBundle.cpp | 59 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/ |
D | GLDebugHelper.java | 79 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/ |
D | TcpKeepalivePacketDataTest.java | 93 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()
|