Home
last modified time | relevance | path

Searched refs:wrapper (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableWrapperTest.java73 DrawableWrapper wrapper = new MyWrapper(d); in testConstructor() local
74 assertSame(d, wrapper.getDrawable()); in testConstructor()
83 DrawableWrapper wrapper = new MyWrapper(d); in testGetDrawable() local
84 assertSame(d, wrapper.getDrawable()); in testGetDrawable()
91 DrawableWrapper wrapper = new MyWrapper(null); in testSetDrawable() local
92 assertSame(null, wrapper.getDrawable()); in testSetDrawable()
94 wrapper.setDrawable(d); in testSetDrawable()
95 assertSame(d, wrapper.getDrawable()); in testSetDrawable()
101 DrawableWrapper wrapper = new MyWrapper(new BitmapDrawable()); in testInvalidateDrawable() local
104 wrapper.setCallback(cb); in testInvalidateDrawable()
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java69 InputConnectionWrapper wrapper = new InputConnectionWrapper(null, true); in testInputConnectionWrapper() local
71 wrapper.beginBatchEdit(); in testInputConnectionWrapper()
76 wrapper.setTarget(inputConnection); in testInputConnectionWrapper()
78 wrapper.beginBatchEdit(); in testInputConnectionWrapper()
81 wrapper.clearMetaKeyStates(KeyEvent.META_ALT_ON); in testInputConnectionWrapper()
84 wrapper.commitCompletion(new CompletionInfo(1, 1, "testText")); in testInputConnectionWrapper()
92 wrapper.commitCorrection(new CorrectionInfo(0, "oldText", "newText")); in testInputConnectionWrapper()
100 wrapper.commitText("Text", 1); in testInputConnectionWrapper()
103 wrapper.deleteSurroundingText(10, 100); in testInputConnectionWrapper()
106 wrapper.deleteSurroundingTextInCodePoints(10, 100); in testInputConnectionWrapper()
[all …]
/cts/tests/tests/os/jni/
Dandroid_os_cts_PerformanceHintManagerTest.cpp96 SessionWrapper wrapper = createSession(manager); in nativeTestGetPreferredUpdateRateNanos() local
97 if (wrapper.session() != nullptr) { in nativeTestGetPreferredUpdateRateNanos()
111 SessionWrapper wrapper = createSession(manager); in nativeUpdateTargetWorkDuration() local
112 if (wrapper.session() == nullptr) return nullptr; in nativeUpdateTargetWorkDuration()
114 int result = APerformanceHint_updateTargetWorkDuration(wrapper.session(), 100); in nativeUpdateTargetWorkDuration()
124 SessionWrapper wrapper = createSession(manager); in nativeUpdateTargetWorkDurationWithNegativeDuration() local
125 if (wrapper.session() == nullptr) return nullptr; in nativeUpdateTargetWorkDurationWithNegativeDuration()
127 int result = APerformanceHint_updateTargetWorkDuration(wrapper.session(), -1); in nativeUpdateTargetWorkDurationWithNegativeDuration()
137 SessionWrapper wrapper = createSession(manager); in nativeReportActualWorkDuration() local
138 if (wrapper.session() == nullptr) return nullptr; in nativeReportActualWorkDuration()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DBitmapTest.java125 BitmapWrapper wrapper = new BitmapWrapper( in test_inplace_213169612() local
127 final int expectedAllocationSize = wrapper.getBitmap().getAllocationByteCount(); in test_inplace_213169612()
128 int allocationSize = remote.getAllocationSize(wrapper); in test_inplace_213169612()
133 wrapper.reset() in test_inplace_213169612()
135 allocationSize = remote.getAllocationSize(wrapper); in test_inplace_213169612()
140 wrapper.reset() in test_inplace_213169612()
144 remote.didReceiveBitmap(wrapper)); in test_inplace_213169612()
151 wrapper.reset() in test_inplace_213169612()
156 remote.didReceiveBitmap(wrapper)); in test_inplace_213169612()
168 BitmapWrapper wrapper = new BitmapWrapper( in test_ashmem_213169612() local
[all …]
DBitmapService.java29 public int getAllocationSize(BitmapWrapper wrapper) {
30 return wrapper.getBitmap().getAllocationByteCount();
34 public boolean didReceiveBitmap(BitmapWrapper wrapper) {
/cts/tests/tests/view/src/android/view/cts/
DTextureViewCtsActivity.java131 RunSignalAndCatch wrapper = new RunSignalAndCatch(() -> { in setWideColorGamut() local
134 runOnUiThread(wrapper); in setWideColorGamut()
138 if (wrapper.error != null) { in setWideColorGamut()
139 throw wrapper.error; in setWideColorGamut()
148 RunSignalAndCatch wrapper = new RunSignalAndCatch(() -> { in getContents() local
151 runOnUiThread(wrapper); in getContents()
155 if (wrapper.error != null) { in getContents()
156 throw wrapper.error; in getContents()
185 RunSignalAndCatch wrapper = new RunSignalAndCatch(r, fence); in runOnGLThread() local
186 mGLThread.post(wrapper); in runOnGLThread()
[all …]
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechWrapper.java122 TextToSpeechWrapper wrapper = new TextToSpeechWrapper(context); in createTextToSpeechWrapper() local
123 if (wrapper.initTts()) { in createTextToSpeechWrapper()
124 return wrapper; in createTextToSpeechWrapper()
132 TextToSpeechWrapper wrapper = new TextToSpeechWrapper(context); in createTextToSpeechMockWrapper() local
133 if (wrapper.initTts(MOCK_TTS_ENGINE)) { in createTextToSpeechMockWrapper()
134 return wrapper; in createTextToSpeechMockWrapper()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DTestAppSystemServiceFactory.java206 ServiceManagerWrapper<T> wrapper = null; in getSystemService() local
218 wrapper = safeCastWrapper; in getSystemService()
223 wrapper = safeCastWrapper; in getSystemService()
230 wrapper = safeCastWrapper; in getSystemService()
236 wrapper = safeCastWrapper; in getSystemService()
244 wrapper = safeCastWrapper; in getSystemService()
368 T spy = wrapper.getWrapper(context, manager, answer); in getSystemService()
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DBindUtils.java209 AppControlWrapper wrapper = new AppControlWrapper(iAppControl, appName); in waitOnBindForApp() local
210 sTelecomAppToService.put(appName, new Pair<>(serviceConnection, wrapper)); in waitOnBindForApp()
211 return wrapper; in waitOnBindForApp()
/cts/tests/tests/content/src/android/content/wm/cts/
DContextGetDisplayTest.java142 ContextWrapper wrapper = new ContextWrapper(mApplicationContext); in testGetDisplayFromNonVisualWrapper() local
143 wrapper.getDisplay(); in testGetDisplayFromNonVisualWrapper()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/settings/
DAutoCloseableRule.java26 try (final AutoCloseable wrapper = mSupplier.get()) { in apply()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DPresentationSyncTest.java273 ChoreographedWrapper wrapper = new ChoreographedWrapper(obj, output, frameDelay); in runTest() local
274 Thread th = new Thread(wrapper, "sync test"); in runTest()
277 if (wrapper.mThrowable != null) { in runTest()
278 throw wrapper.mThrowable; in runTest()
/cts/tools/cts-api-coverage/
DAndroid.bp48 wrapper: "etc/cts-api-coverage",
55 wrapper: "etc/ndk-api-report",
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/util/
DSerializableParcelWrapperTest.java65 private byte[] serialize(SerializableParcelWrapper<?> wrapper) throws Exception { in serialize() argument
68 outputStream.writeObject(wrapper); in serialize()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/parcelablewrappers/
DNullParcelableRemoteDevicePolicyManager.java.txt28 * This parcelable wrapper just passes null to callers.
37 * Create a wrapper for a given {@link RemoteDevicePolicyManager}.
DNullParcelableAccountManagerCallback.java.txt28 * This parcelable wrapper just passes null to callers.
37 * Create a wrapper for a given {@link AccountManagerCallback}.
DNullParcelableRemoteBluetoothAdapter.java.txt28 * This parcelable wrapper just passes null to callers.
37 * Create a wrapper for a given {@link RemoteBluetoothAdapter}.
DNullParcelableActivity.java.txt28 * This parcelable wrapper just passes null to callers.
37 * Create a wrapper for a given {@link Activity}.
DNullParcelableRemoteContentResolver.java.txt28 * This parcelable wrapper just passes null to callers.
37 * Create a wrapper for a given {@link RemoteContentResolver}.
DNullParcelableHandler.java.txt28 * This parcelable wrapper just passes null to callers.
37 * Create a wrapper for a given {@link Handler}.
/cts/tests/vr/src/android/vr/cts/
DOpenGLESActivity.java103 RunSignalAndCatch wrapper = new RunSignalAndCatch(r, fence); in runOnGlThread() local
105 mView.queueEvent(wrapper); in runOnGlThread()
107 if (wrapper.error != null) { in runOnGlThread()
108 throw wrapper.error; in runOnGlThread()
/cts/tools/cfassembler/
DAndroid.bp26 wrapper: "etc/cfassembler",
/cts/tools/cts-tradefed/
DAndroid.bp34 wrapper: "etc/cts-tradefed",
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DEncodeDecodeTest.java234 BufferToSurfaceWrapper wrapper = new BufferToSurfaceWrapper(obj); in runTest() local
235 Thread th = new Thread(wrapper, "codec test"); in runTest()
238 if (wrapper.mThrowable != null) { in runTest()
239 throw wrapper.mThrowable; in runTest()
304 SurfaceToSurfaceWrapper wrapper = in runTest() local
306 Thread th = new Thread(wrapper, "codec test"); in runTest()
309 if (wrapper.mThrowable != null) { in runTest()
310 throw wrapper.mThrowable; in runTest()
DEncodeVirtualDisplayTest.java243 EncodeVirtualWrapper wrapper = new EncodeVirtualWrapper(obj); in runTest() local
244 Thread th = new Thread(wrapper, "codec test"); in runTest()
247 if (wrapper.mThrowable != null) { in runTest()
248 throw wrapper.mThrowable; in runTest()

12