Home
last modified time | relevance | path

Searched refs:mBinder (Results 1 – 25 of 134) sorted by relevance

123456

/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DExpressionTest.java35 mBinder.setVar1(0); in testOr()
36 mBinder.setVar2(0); in testOr()
37 mBinder.executePendingBindings(); in testOr()
38 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr()
39 mBinder.setVar2(1); in testOr()
40 mBinder.executePendingBindings(); in testOr()
41 assertEquals("hello", mBinder.textView0.getText().toString()); in testOr()
42 mBinder.setVar1(1); in testOr()
43 mBinder.setVar2(0); in testOr()
44 mBinder.executePendingBindings(); in testOr()
[all …]
DBracketTest.java51 mBinder.setArray(mArray); in setUp()
52 mBinder.setSparseArray(mSparseArray); in setUp()
53 mBinder.setSparseIntArray(mSparseIntArray); in setUp()
54 mBinder.setSparseBooleanArray(mSparseBooleanArray); in setUp()
55 mBinder.setSparseLongArray(mSparseLongArray); in setUp()
56 mBinder.setLongSparseArray(mLongSparseArray); in setUp()
57 mBinder.setIndexObj((Integer) 0); in setUp()
59 mBinder.executePendingBindings(); in setUp()
66 assertEquals("Hello World", mBinder.arrayText.getText().toString()); in testBrackets()
67 assertEquals("Hello", mBinder.sparseArrayText.getText().toString()); in testBrackets()
[all …]
DMultiArgAdapterTest.java41 mBinder.setObj1(obj1); in testMultiArgIsCalled()
42 mBinder.setObj2(obj2); in testMultiArgIsCalled()
43 mBinder.setObj3(obj3); in testMultiArgIsCalled()
44 mBinder.setObj4(obj4); in testMultiArgIsCalled()
45 mBinder.executePendingBindings(); in testMultiArgIsCalled()
47 assertEquals(mBinder.merged.getText().toString(), join(obj1, obj2)); in testMultiArgIsCalled()
48 assertEquals(mBinder.view2.getText().toString(), join(obj2)); in testMultiArgIsCalled()
49 assertEquals(mBinder.view3.getText().toString(), join(obj3)); in testMultiArgIsCalled()
50 assertEquals(mBinder.view4.getText().toString(), join(obj4)); in testMultiArgIsCalled()
51 String prev2 = mBinder.view2.getText().toString(); in testMultiArgIsCalled()
[all …]
DFindMethodTest.java32 TextView textView = mBinder.textView6; in testNoArg()
37 TextView textView = mBinder.textView0; in testIntArg()
42 TextView textView = mBinder.textView1; in testFloatArg()
47 TextView textView = mBinder.textView2; in testStringArg()
52 TextView textView = mBinder.textView3; in testBoxedArg()
57 TextView textView = mBinder.textView4; in testInheritedMethod()
62 TextView textView = mBinder.textView5; in testInheritedMethodInt()
67 TextView textView = mBinder.textView7; in testStaticMethod()
72 TextView textView = mBinder.textView8; in testStaticField()
77 TextView textView = mBinder.textView9; in testImportStaticMethod()
[all …]
DInstanceAdapterTest.java68 mBinder.executePendingBindings(); in initNormal()
74 mBinder.setStr("World"); in testOneAttr()
75 mBinder.executePendingBindings(); in testOneAttr()
76 assertEquals("Hello World foo bar baz", mBinder.textView1.getText().toString()); in testOneAttr()
82 mBinder.setStr("World"); in testTwoAttr()
83 mBinder.executePendingBindings(); in testTwoAttr()
84 assertEquals("Hello World baz foo bar", mBinder.textView2.getText().toString()); in testTwoAttr()
90 mBinder.setStr("World"); in testOneAttrOld()
91 mBinder.executePendingBindings(); in testOneAttrOld()
92 assertEquals("Hello null World foo bar", mBinder.textView3.getText().toString()); in testOneAttrOld()
[all …]
DConditionalBindingTest.java25 mBinder.setObj4(obj4); in testTernary()
26 mBinder.executePendingBindings(); in testTernary()
27 assertEquals("hello", mBinder.textView1.getText().toString()); in testTernary()
29 mBinder.executePendingBindings(); in testTernary()
30 assertEquals("Hello World", mBinder.textView1.getText().toString()); in testTernary()
37 mBinder.setObj4(obj4); in testNullListener()
38 mBinder.executePendingBindings(); in testNullListener()
39 mBinder.view1.callOnClick(); in testNullListener()
41 mBinder.setCond1(true); in testNullListener()
42 mBinder.executePendingBindings(); in testNullListener()
[all …]
DObservableFieldTest.java36 mBinder.setObj(mObj); in setUp()
37 mBinder.executePendingBindings(); in setUp()
44 TextView view = mBinder.bField; in testBoolean()
48 mBinder.executePendingBindings(); in testBoolean()
55 TextView view = mBinder.tField; in testByte()
59 mBinder.executePendingBindings(); in testByte()
66 TextView view = mBinder.sField; in testShort()
70 mBinder.executePendingBindings(); in testShort()
77 TextView view = mBinder.cField; in testChar()
81 mBinder.executePendingBindings(); in testChar()
[all …]
DResourceTest.java35 mBinder.setCount(0); in setUp()
36 mBinder.setTitle("Mrs."); in setUp()
37 mBinder.setLastName("Doubtfire"); in setUp()
38 mBinder.setBase(2); in setUp()
39 mBinder.setPbase(3); in setUp()
40 mBinder.executePendingBindings(); in setUp()
47 TextView view = mBinder.textView0; in testStringFormat()
50 mBinder.setTitle("Mr."); in testStringFormat()
51 mBinder.executePendingBindings(); in testStringFormat()
57 TextView view = mBinder.textView1; in testQuantityString()
[all …]
DConstantWithConditionalTest.java32 mBinder.executePendingBindings(); in testValues()
37 mBinder.setVm(obj); in testValues()
38 mBinder.executePendingBindings(); in testValues()
39 assertTrue(mBinder.myTextView.hasFixedSize()); in testValues()
40 assertTrue(mBinder.progressBar.isIndeterminate()); in testValues()
43 mBinder.invalidateAll(); in testValues()
44 mBinder.executePendingBindings(); in testValues()
45 assertFalse(mBinder.progressBar.isIndeterminate()); in testValues()
50 mBinder.invalidateAll(); in testValues()
51 mBinder.executePendingBindings(); in testValues()
[all …]
DMultiArgAdapterEvaluationTest.java38 mBinder.setObj1(obj1); in testMultiArgIsCalled()
39 mBinder.setObj2(obj2); in testMultiArgIsCalled()
40 mBinder.executePendingBindings(); in testMultiArgIsCalled()
42 assertEquals(mBinder.merged.getText().toString(), join(obj1.getValue(), obj2.getValue())); in testMultiArgIsCalled()
43 assertEquals(mBinder.view2.getText().toString(), join(obj2.getValue())); in testMultiArgIsCalled()
44 assertEquals(mBinder.view2text.getText().toString(), obj2.getValue()); in testMultiArgIsCalled()
46 String prev2 = mBinder.view2.getText().toString(); in testMultiArgIsCalled()
47 String prevValue = mBinder.merged.getText().toString(); in testMultiArgIsCalled()
49 mBinder.executePendingBindings(); in testMultiArgIsCalled()
50 assertEquals(prevValue, mBinder.merged.getText().toString()); in testMultiArgIsCalled()
[all …]
DNewApiTest.java39 mBinder.setElevation(3); in testSetElevation()
40 mBinder.setName("foo"); in testSetElevation()
41 mBinder.setChildren(new ArrayList<View>()); in testSetElevation()
42 mBinder.executePendingBindings(); in testSetElevation()
43 assertEquals("foo", mBinder.textView.getText().toString()); in testSetElevation()
44 assertEquals(3f, mBinder.textView.getElevation()); in testSetElevation()
52 TextView textView = mBinder.textView; in testSetElevationOlderAPI()
54 mBinder.setElevation(3); in testSetElevationOlderAPI()
55 mBinder.setName("foo2"); in testSetElevationOlderAPI()
56 mBinder.executePendingBindings(); in testSetElevationOlderAPI()
[all …]
DImageViewBindingAdapterTest.java39 mView = mBinder.view; in setUp()
56 assertNull(mBinder.view2.getDrawable()); in testImageSource()
57 assertNull(mBinder.view3.getDrawable()); in testImageSource()
62 mBinder.setUriString(uriString); in testImageSource()
63 mBinder.setUri(Uri.parse(uriString)); in testImageSource()
64 mBinder.executePendingBindings(); in testImageSource()
66 assertNotNull(mBinder.view2.getDrawable()); in testImageSource()
67 assertNotNull(mBinder.view3.getDrawable()); in testImageSource()
72 mBinder.setObj(null); in testConditionalSource()
73 mBinder.executePendingBindings(); in testConditionalSource()
[all …]
DUnnecessaryCalculationTest.java42 mBinder.setObja(obja); in testDontSetUnnecessaryFlags()
43 mBinder.setObjb(objb); in testDontSetUnnecessaryFlags()
44 mBinder.setObjc(objc); in testDontSetUnnecessaryFlags()
45 mBinder.setA(true); in testDontSetUnnecessaryFlags()
46 mBinder.setB(true); in testDontSetUnnecessaryFlags()
47 mBinder.setC(false); in testDontSetUnnecessaryFlags()
48 mBinder.executePendingBindings(); in testDontSetUnnecessaryFlags()
49 assertEquals("true", mBinder.textView.getText().toString()); in testDontSetUnnecessaryFlags()
50 assertEquals("true", mBinder.textView2.getText().toString()); in testDontSetUnnecessaryFlags()
55 mBinder.setObja(obja); in testDontSetUnnecessaryFlags()
[all …]
DViewStubTest.java40 mBinder.setViewStubVisibility(View.GONE); in setUp()
41 mBinder.setFirstName("Hello"); in setUp()
42 mBinder.setLastName("World"); in setUp()
43 mBinder.executePendingBindings(); in setUp()
50 ViewStubProxy viewStubProxy = mBinder.viewStub; in testInflation()
54 assertNull(mBinder.getRoot().findViewById(R.id.firstNameContents)); in testInflation()
55 assertNull(mBinder.getRoot().findViewById(R.id.lastNameContents)); in testInflation()
56 mBinder.setViewStubVisibility(View.VISIBLE); in testInflation()
57 mBinder.executePendingBindings(); in testInflation()
71 ViewStubProxy viewStubProxy = mBinder.viewStub; in testChangeValues()
[all …]
DNoIdTest.java33 mBinder.setName("hello"); in setUp()
34 mBinder.setOrientation(LinearLayout.VERTICAL); in setUp()
35 mBinder.executePendingBindings(); in setUp()
42 LinearLayout linearLayout = (LinearLayout) mBinder.getRoot(); in testOnRoot()
44 mBinder.setOrientation(LinearLayout.HORIZONTAL); in testOnRoot()
45 mBinder.executePendingBindings(); in testOnRoot()
51 LinearLayout linearLayout = (LinearLayout) mBinder.getRoot(); in testNormal()
55 mBinder.setName("world"); in testNormal()
56 mBinder.executePendingBindings(); in testNormal()
62 LinearLayout linearLayout = (LinearLayout) mBinder.getRoot(); in testNoTag()
[all …]
DListenerTest.java37 mBinder.setObj(mBindingObject); in setUp()
45 View view = mBinder.click1; in testInstanceClick()
53 View view = mBinder.click2; in testStaticClick()
61 View view = mBinder.click3; in testInstanceClickTwoArgs()
68 mBinder.executePendingBindings(); in testInstanceClickTwoArgs()
71 mBinder.executePendingBindings(); in testInstanceClickTwoArgs()
74 mBinder.executePendingBindings(); in testInstanceClickTwoArgs()
81 View view = mBinder.click4; in testStaticClickTwoArgs()
88 mBinder.executePendingBindings(); in testStaticClickTwoArgs()
97 View view = mBinder.click5; in testClickExpression()
[all …]
DIncludeTagTest.java34 assertNotNull(mBinder.includedPlainLayout); in testIncludeTag()
35 assertTrue(mBinder.includedPlainLayout instanceof FrameLayout); in testIncludeTag()
37 mBinder.setOuterObject(vo); in testIncludeTag()
38 mBinder.executePendingBindings(); in testIncludeTag()
39 final TextView outerText = (TextView) mBinder.getRoot().findViewById(R.id.outerTextView); in testIncludeTag()
41 final TextView innerText = (TextView) mBinder.getRoot().findViewById(R.id.innerTextView); in testIncludeTag()
43 TextView textView1 = (TextView) mBinder.getRoot().findViewById(R.id.innerTextView1); in testIncludeTag()
44 assertEquals(mBinder.getRoot(), textView1.getParent().getParent()); in testIncludeTag()
45 TextView textView2 = (TextView) mBinder.getRoot().findViewById(R.id.innerTextView2); in testIncludeTag()
46 assertEquals(mBinder.getRoot(), textView2.getParent().getParent()); in testIncludeTag()
[all …]
DInnerCannotReadDependencyTest.java35 mBinder.setObj(object); in testBinding()
36 mBinder.executePendingBindings(); in testBinding()
37 assertEquals("a ", mBinder.textView.getText().toString()); in testBinding()
39 mBinder.executePendingBindings(); in testBinding()
40 assertEquals("null ", mBinder.textView.getText().toString()); in testBinding()
42 mBinder.executePendingBindings(); in testBinding()
43 assertEquals("null b", mBinder.textView.getText().toString()); in testBinding()
45 mBinder.executePendingBindings(); in testBinding()
46 assertEquals("c b", mBinder.textView.getText().toString()); in testBinding()
DCustomNamespaceAdapterTest.java14 mBinder.setStr1("a"); in testAndroidNs()
15 mBinder.setStr2("b"); in testAndroidNs()
16 mBinder.executePendingBindings(); in testAndroidNs()
17 assertEquals("a", mBinder.textView1.getText().toString()); in testAndroidNs()
23 mBinder.setStr1("a"); in testCustomNs()
24 mBinder.setStr2("b"); in testCustomNs()
25 mBinder.executePendingBindings(); in testCustomNs()
26 assertEquals("b", mBinder.textView2.getText().toString()); in testCustomNs()
DNameMappingTest.java48 mBinder.setObj(object); in testChanges()
49 mBinder.executePendingBindings(); in testChanges()
61 mBinder.executePendingBindings(); in testChanges()
62 assertEquals(f2.get(), mBinder.textView.isEnabled()); in testChanges()
63 assertEquals(f2.get(), mBinder.textView2.isEnabled()); in testChanges()
64 assertEquals(false, mBinder.textView3.isEnabled()); in testChanges()
66 assertEquals(f1.get(), mBinder.textView.isFocusable()); in testChanges()
67 assertEquals(f1.get(), mBinder.textView2.isFocusable()); in testChanges()
68 assertEquals(false, mBinder.textView3.isFocusable()); in testChanges()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/testapp/
DStaticAccessTest.java33 mBinder.setVo(vo); in testAccessStatics()
38 mBinder.executePendingBindings(); in assertStaticContents()
39 assertText(StaticTestsVo.ourStaticField, mBinder.staticFieldOverVo); in assertStaticContents()
40 assertText(StaticTestsVo.ourStaticMethod(), mBinder.staticMethodOverVo); in assertStaticContents()
41 assertText(StaticTestsVo.ourStaticObservable.get(), mBinder.obsStaticOverVo); in assertStaticContents()
43 assertText(StaticTestsVo.ourStaticField, mBinder.staticFieldOverClass); in assertStaticContents()
44 assertText(StaticTestsVo.ourStaticMethod(), mBinder.staticMethodOverClass); in assertStaticContents()
45 assertText(StaticTestsVo.ourStaticObservable.get(), mBinder.obsStaticOverClass); in assertStaticContents()
49 mBinder.executePendingBindings(); in assertStaticContents()
50 assertText(StaticTestsVo.ourStaticObservable.get(), mBinder.obsStaticOverVo); in assertStaticContents()
[all …]
DBaseDataBinderTest.java32 protected T mBinder; field in BaseDataBinderTest
55 return mBinder; in getBinder()
75 assertNull("should not initialize binder twice", mBinder); in initBinder()
89 mBinder = (T) method[0].invoke(null, getActivity().getLayoutInflater()); in initBinder()
90 getActivity().setContentView(mBinder.getRoot()); in initBinder()
106 assertNotNull(mBinder); in initBinder()
107 return mBinder; in initBinder()
111 mBinder = null; in reCreateBinder()
116 assertEquals(klass, mBinder.getClass().getDeclaredMethod(methodName).getReturnType()); in assertMethod()
120 assertEquals(klass, mBinder.getClass().getDeclaredField(fieldName).getType()); in assertField()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/
DMetricsLoggerServiceTest.java72 assertArrayEquals(NO_EVENTS, mService.mBinder.getEvents(r)); in testGetNoEvents()
77 mService.mBinder.logEvents(EVENTS); in testLogAndGetEvents()
81 assertArrayEquals(EVENTS, mService.mBinder.getEvents(r)); in testLogAndGetEvents()
84 assertArrayEquals(NO_EVENTS, mService.mBinder.getEvents(r)); in testLogAndGetEvents()
90 mService.mBinder.logEvent(ev); in testLogOneByOne()
95 assertArrayEquals(EVENTS, mService.mBinder.getEvents(r)); in testLogOneByOne()
98 assertArrayEquals(NO_EVENTS, mService.mBinder.getEvents(r)); in testLogOneByOne()
103 mService.mBinder.logEvents(Arrays.copyOfRange(EVENTS, 0, 3)); in testInterleavedLogAndGet()
107 assertArrayEquals(Arrays.copyOfRange(EVENTS, 0, 3), mService.mBinder.getEvents(r)); in testInterleavedLogAndGet()
110 mService.mBinder.logEvents(Arrays.copyOfRange(EVENTS, 3, 8)); in testInterleavedLogAndGet()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLockManagerTest.java55 @Mock IBinder mBinder; field in WifiLockManagerTest
109 mWifiLockManager.acquireWifiLock(WIFI_LOCK_MODE_INVALID, "", mBinder, mWorkSource); in acquireWifiLockShouldThrowExceptionOnInivalidLockMode()
121 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL, "", mBinder, mWorkSource); in acquireWifiLockWithValidParamsShouldSucceed()
134 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_SCAN_ONLY, "", mBinder, mWorkSource); in secondCallToAcquireWifiLockWithSameBinderShouldFail()
137 WifiManager.WIFI_MODE_SCAN_ONLY, "", mBinder, mWorkSource)); in secondCallToAcquireWifiLockWithSameBinderShouldFail()
149 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_FULL, "", mBinder, mWorkSource); in releaseWifiLockShouldSucceed()
150 releaseWifiLockSuccessful(mBinder); in releaseWifiLockShouldSucceed()
168 acquireWifiLockSuccessful(WifiManager.WIFI_MODE_SCAN_ONLY, "", mBinder, toKeepWS); in releaseLocksForOneCallerNotImpactOtherCallers()
172 releaseWifiLockSuccessful(mBinder); in releaseLocksForOneCallerNotImpactOtherCallers()
184 assertFalse(mWifiLockManager.releaseWifiLock(mBinder)); in releaseWifiLockWithoutAcquireWillReturnFalse()
[all …]
/frameworks/base/keystore/java/android/security/
DKeyStore.java101 private final IKeystoreService mBinder; field in KeyStore
107 mBinder = binder; in KeyStore()
136 ret = mBinder.getState(userId); in state()
160 return mBinder.get(key, uid); in get()
177 return mBinder.insert(key, value, uid, flags); in insert()
186 int ret = mBinder.del(key, uid); in delete()
200 return mBinder.exist(key, uid) == NO_ERROR; in contains()
216 return mBinder.list(prefix, uid); in list()
229 return mBinder.reset() == NO_ERROR; in reset()
244 return mBinder.lock(userId) == NO_ERROR; in lock()
[all …]

123456