Home
last modified time | relevance | path

Searched refs:binder (Results 1 – 13 of 13) sorted by relevance

/cts/libs/deviceutil/src/android/cts/util/
DIBinderParcelable.java23 public IBinder binder; field in IBinderParcelable
26 binder = source; in IBinderParcelable()
34 dest.writeStrongBinder(binder); in writeToParcel()
50 binder = source.readStrongBinder(); in IBinderParcelable()
/cts/tests/tests/widget/src/android/widget/cts/
DSimpleAdapterTest.java169 MockViewBinder binder = new MockViewBinder(true); in testGetView() local
170 mSimpleAdapter.setViewBinder(binder); in testGetView()
171 binder.reset(); in testGetView()
173 assertTrue(binder.hasCalledSetViewValue()); in testGetView()
176 binder = new MockViewBinder(false); in testGetView()
177 mSimpleAdapter.setViewBinder(binder); in testGetView()
178 binder.reset(); in testGetView()
180 assertTrue(binder.hasCalledSetViewValue()); in testGetView()
237 MockViewBinder binder = new MockViewBinder(true); in testGetDropDownView() local
238 mSimpleAdapter.setViewBinder(binder); in testGetDropDownView()
[all …]
DSimpleCursorAdapterTest.java127 MockViewBinder binder = new MockViewBinder(true); in testBindView() local
128 simpleCursorAdapter.setViewBinder(binder); in testBindView()
129 binder.reset(); in testBindView()
132 assertTrue(binder.hasCalledSetViewValueCalledCount()); in testBindView()
136 binder = new MockViewBinder(false); in testBindView()
137 simpleCursorAdapter.setViewBinder(binder); in testBindView()
140 assertTrue(binder.hasCalledSetViewValueCalledCount()); in testBindView()
161 MockViewBinder binder = new MockViewBinder(true); in testAccessViewBinder() local
162 simpleCursorAdapter.setViewBinder(binder); in testAccessViewBinder()
163 assertSame(binder, simpleCursorAdapter.getViewBinder()); in testAccessViewBinder()
[all …]
/cts/tests/tests/security/jni/
Dandroid_security_cts_LoadEffectLibraryTest.cpp41 sp<IBinder> binder = sm->getService(String16("media.audio_flinger")); in android_security_cts_LoadEffectLibraryTest_doLoadLibraryTest() local
42 if (binder == 0) { in android_security_cts_LoadEffectLibraryTest_doLoadLibraryTest()
47 sp<IAudioFlinger> af = interface_cast<IAudioFlinger>(binder); in android_security_cts_LoadEffectLibraryTest_doLoadLibraryTest()
58 status_t status = binder->transact(i, data, &reply); in android_security_cts_LoadEffectLibraryTest_doLoadLibraryTest()
Dandroid_security_cts_AudioPolicyBinderTest.cpp47 sp<IBinder> binder = defaultServiceManager()->checkService(String16("media.audio_policy")); in init() local
48 if (binder == 0) { in init()
57 aps = interface_cast<IAudioPolicyService>(binder); in init()
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DInputBindingTest.java32 Binder binder = new Binder(); in testInputBinding() local
35 InputBinding inputBinding = new InputBinding(bic, binder, uid, pid); in testInputBinding()
38 assertSame(binder, inputBinding.getConnectionToken()); in testInputBinding()
51 assertSame(binder, target.getConnectionToken()); in testInputBinding()
/cts/tests/tests/view/src/android/view/cts/
DWindowManager_LayoutParamsTest.java70 IBinder binder = new Binder(); in testConstructor() local
72 mLayoutParams.token = binder; in testConstructor()
198 IBinder binder = new Binder(); in testWriteToParcel() local
207 mLayoutParams.token = binder; in testWriteToParcel()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionActivity.java58 public void onServiceConnected(ComponentName name, IBinder binder) {
59 mService = IProjectionService.Stub.asInterface(binder);
/cts/tests/tests/os/src/android/os/cts/
DLocalService.java69 mReportObject = parcelable.binder; in onStart()
DParcelTest.java437 Binder binder; in testReadValue() local
442 binder = (Binder) p.readValue(mcl); in testReadValue()
443 assertEquals(binder2, binder); in testReadValue()
2652 Binder binder;
2664 binder = (Binder) p.readStrongBinder();
2665 assertEquals(binder2, binder);
2683 mockIInterface2.binder = (Binder) p.readStrongBinder();
2684 assertEquals(mockInterface.binder, mockIInterface2.binder);
2961 public Binder binder;
2964 binder = new Binder();
[all …]
/cts/tests/app/src/android/app/cts/
DLocalService.java69 mReportObject = parcelable.binder; in onStart()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DProjectionOffscreenActivity.java123 public void onServiceConnected(ComponentName name, IBinder binder) {
124 mService = IProjectionService.Stub.asInterface(binder);
/cts/tests/tests/location/src/android/location/cts/
DLocationTest.java440 IBinder binder = service.callOnBind(intent); in testSettingInjectorService() local
441 assertNull("onBind should always fail.", binder); in testSettingInjectorService()