Home
last modified time | relevance | path

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

12345678910

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationCustomViewWrapperTest.java51 NotificationViewWrapper wrap = NotificationCustomViewWrapper.wrap(mContext, v, mRow); in testBackgroundPersists() local
52 wrap.onContentUpdated(mRow); in testBackgroundPersists()
54 wrap.getCustomBackgroundColor() != 0); in testBackgroundPersists()
56 wrap.onReinflated(); in testBackgroundPersists()
57 wrap.onContentUpdated(mRow); in testBackgroundPersists()
59 wrap.getCustomBackgroundColor() != 0); in testBackgroundPersists()
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/view/
DNavigationBarButton.java52 drawables[i] = TintedDrawable.wrap(drawables[i]); in init()
62 if (left != null) left = TintedDrawable.wrap(left); in setCompoundDrawables()
63 if (top != null) top = TintedDrawable.wrap(top); in setCompoundDrawables()
64 if (right != null) right = TintedDrawable.wrap(right); in setCompoundDrawables()
65 if (bottom != null) bottom = TintedDrawable.wrap(bottom); in setCompoundDrawables()
73 if (start != null) start = TintedDrawable.wrap(start); in setCompoundDrawablesRelative()
74 if (top != null) top = TintedDrawable.wrap(top); in setCompoundDrawablesRelative()
75 if (end != null) end = TintedDrawable.wrap(end); in setCompoundDrawablesRelative()
76 if (bottom != null) bottom = TintedDrawable.wrap(bottom); in setCompoundDrawablesRelative()
118 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/support/compat/tests/java/android/support/v4/graphics/
DDrawableCompatTest.java47 final Drawable wrappedDrawable = DrawableCompat.wrap(original); in testDrawableWrap()
59 final Drawable wrappedDrawable = DrawableCompat.wrap(original); in testDrawableUnwrap()
69 final Drawable wrapper = DrawableCompat.wrap(drawable); in testDrawableChangeBoundsCopy()
85 final Drawable wrapper = DrawableCompat.wrap(drawable); in testWrapCopiesDrawableState()
93 final Drawable wrappedDrawable = DrawableCompat.wrap(new GradientDrawable()); in testDrawableWrapOnlyWrapsOnce()
94 assertSame(wrappedDrawable, DrawableCompat.wrap(wrappedDrawable)); in testDrawableWrapOnlyWrapsOnce()
105 final Drawable wrapper = DrawableCompat.wrap(drawable); in testWrapMutatedDrawableHasConstantState()
115 final Drawable wrapper = DrawableCompat.wrap(drawable); in testWrappedDrawableHasCallbackSet()
129 final Drawable wrapped = DrawableCompat.wrap(tintAwareDrawable); in testDoesNotWrapTintAwareDrawable()
/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.java140 EAPMethod.parse(ByteBuffer.wrap(new byte[0])); in parseEmptyBuffer()
151 ByteBuffer buffer = ByteBuffer.wrap(TEST_DATA1_BYTES, 0, TEST_DATA1_BYTES.length - 1); in parseTruncatedBuffer()
163 assertEquals(TEST_DATA1_EAP_METHOD, EAPMethod.parse(ByteBuffer.wrap(TEST_DATA1_BYTES))); in parseBufferWithTestData1()
174 assertEquals(TEST_DATA2_EAP_METHOD, EAPMethod.parse(ByteBuffer.wrap(TEST_DATA2_BYTES))); in parseBufferWithTestData2()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DDrawerLayoutActions.java99 public static ViewAction wrap(final ViewAction baseAction) { in wrap() method in DrawerLayoutActions
148 return wrap(new ViewAction() {
173 return wrap(new ViewAction() {
198 return wrap(new ViewAction() {
223 return wrap(new ViewAction() {
248 return wrap(new ViewAction() {
273 return wrap(new ViewAction() {
298 return wrap(new ViewAction() {
325 return wrap(new ViewAction() {
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DWakeLock.java33 Runnable wrap(Runnable r); in wrap() method
36 return wrap(createPartialInner(context, tag)); in createPartial()
56 static WakeLock wrap(final PowerManager.WakeLock inner) {
69 public Runnable wrap(Runnable runnable) {
/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()
DANQPParserTest.java278 ByteBuffer buffer = ByteBuffer.wrap(getVenueNamePayload(language, text)); in parseVenueNameElement()
300 ByteBuffer buffer = ByteBuffer.wrap(new byte[] {(byte) ipAddressAvailability}); in parseIPAddressTypeAvailabilityElement()
316 ByteBuffer buffer = ByteBuffer.wrap(getDomainNamePayload(testNames)); in parseDomainNameElement()
333 ByteBuffer buffer = ByteBuffer.wrap(getRoamingConsortiumPayload(ois, oisLength)); in parseRoamingConsortium()
350 ByteBuffer buffer = ByteBuffer.wrap(getNAIRealmPayload(testBytes)); in parseNAIRealmElement()
370 ByteBuffer buffer = ByteBuffer.wrap(getThreeGPPNetworkPayload( in parseThreeGPPNetworkElement()
384 ByteBuffer buffer = ByteBuffer.wrap( in parseNonHS20VendorSpecificElement()
411 Constants.ANQPElementType.ANQPVendorSpec, ByteBuffer.wrap(data))); in parseVendorSpecificElementWithHSFriendlyName()
431 ByteBuffer buffer = ByteBuffer.wrap(getHSFriendlyNamePayload(language, text)); in parseHSFrendlyNameElement()
458 ByteBuffer buffer = ByteBuffer.wrap(data); in parseHSWANMetricsElement()
[all …]
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()
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.java85 ByteBuffer buffer = ByteBuffer.wrap(getTestData(TEST_OSU_SSID_BYTES)); in parseTruncatedBuffer()
99 ByteBuffer buffer = ByteBuffer.wrap(getTestData(invalidSsidBytes)); in parseBufferWithInvalidLength()
111 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()
DIconInfoTest.java50 ByteBuffer buffer = ByteBuffer.wrap(IconInfoTestUtil.TEST_ICON_INFO_RAW_BYTES); in parseTruncatedBuffer()
63 ByteBuffer buffer = ByteBuffer.wrap(IconInfoTestUtil.TEST_ICON_INFO_RAW_BYTES); in parseBufferWithTestData()
/frameworks/support/core-ui/tests/java/android/support/v4/view/
DViewPagerActions.java95 public static ViewAction wrap(final ViewAction baseAction) { in wrap() method in ViewPagerActions
144 return wrap(new ViewAction() {
170 return wrap(new ViewAction() {
198 return wrap(new ViewAction() {
226 return wrap(new ViewAction() {
256 return wrap(new ViewAction() {
286 return wrap(new ViewAction() {
/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/base/libs/hwui/
DTexture.h64 inline void setWrap(GLenum wrap, bool bindTexture = false, bool force = false) {
65 setWrapST(wrap, wrap, bindTexture, force);
113 void wrap(GLuint id, uint32_t width, uint32_t height, GLint internalFormat,
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DInformationElementUtil.java39 ByteBuffer data = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN); in parseInformationElements()
146 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN); in from()
233 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN); in from()
265 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN); in from()
305 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN); in from()
440 ByteBuffer buf = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN); in parseRsnElement()
538 ByteBuffer buf = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN); in isWpsElement()
549 ByteBuffer buf = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN); in isWpaOneElement()
575 ByteBuffer buf = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN); in parseWpaOneElement()
789 ByteBuffer data = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN); in from()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DItemBridgeAdapterShadowOverlayWrapper.java39 public void wrap(View wrapper, View wrapped) { in wrap() method in ItemBridgeAdapterShadowOverlayWrapper
40 ((ShadowOverlayContainer) wrapper).wrap(wrapped); in wrap()
/frameworks/support/core-ui/java/android/support/v4/widget/
DFocusStrategy.java39 boolean wrap) { in findNextFocusInRelativeDirection() argument
51 return getNextFocusable(focused, sortedFocusables, wrap); in findNextFocusInRelativeDirection()
53 return getPreviousFocusable(focused, sortedFocusables, wrap); in findNextFocusInRelativeDirection()
60 private static <T> T getNextFocusable(T focused, ArrayList<T> focusables, boolean wrap) { in getNextFocusable() argument
68 } else if (wrap && count > 0) { in getNextFocusable()
75 private static <T> T getPreviousFocusable(T focused, ArrayList<T> focusables, boolean wrap) { in getPreviousFocusable() argument
83 } else if (wrap && count > 0) { in getPreviousFocusable()
/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

12345678910