Home
last modified time | relevance | path

Searched refs:binding (Results 1 – 25 of 111) sorted by relevance

12345

/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DDataBindingUtilTest.java36 … BasicBindingBinding binding = BasicBindingBinding.inflate(getActivity().getLayoutInflater()); in testFindBinding() local
37 assertEquals(binding, DataBindingUtil.findBinding(binding.textView)); in testFindBinding()
38 assertEquals(binding, DataBindingUtil.findBinding(binding.getRoot())); in testFindBinding()
39 ViewGroup root = (ViewGroup) binding.getRoot(); in testFindBinding()
50 … BasicBindingBinding binding = BasicBindingBinding.inflate(getActivity().getLayoutInflater()); in testGetBinding() local
51 assertNull(DataBindingUtil.getBinding(binding.textView)); in testGetBinding()
52 assertEquals(binding, DataBindingUtil.getBinding(binding.getRoot())); in testGetBinding()
57 CenteredContentBinding binding = DataBindingUtil.setContentView(getActivity(), in testSetContentView() local
59 assertNotNull(binding); in testSetContentView()
60 LayoutParams layoutParams = binding.getRoot().getLayoutParams(); in testSetContentView()
[all …]
DBasicBindingTest.java123 … NoExpressionsBinding binding = NoExpressionsBinding.inflate(getActivity().getLayoutInflater()); in testNoExpressionBinding() local
124 assertNotNull(binding); in testNoExpressionBinding()
129 … NoDataElementBinding binding = NoDataElementBinding.inflate(getActivity().getLayoutInflater()); in testNoDataElement() local
130 assertNotNull(binding); in testNoDataElement()
135 JustIdBinding binding = JustIdBinding.inflate(getActivity().getLayoutInflater()); in testJustIds() local
136 assertNotNull(binding); in testJustIds()
137 assertNotNull(binding.textView); in testJustIds()
149 BasicBindingBinding binding = in testInflation() local
151 assertNotNull(binding); in testInflation()
152 assertNotNull(binding.textView); in testInflation()
[all …]
DLeakTest.java39 LeakTestBinding binding = LeakTestBinding.inflate( in setUp()
41 getActivity().setContentView(binding.getRoot()); in setUp()
42 mWeakReference = new WeakReference<LeakTestBinding>(binding); in setUp()
43 binding.setName("hello world"); in setUp()
44 binding.executePendingBindings(); in setUp()
77 final LeakTestBinding binding = mWeakReference.get(); in testNoChangeWhenDetached() local
84 binding.setName("goodbye world"); in testNoChangeWhenDetached()
94 assertEquals("hello world", binding.textView.getText().toString()); in testNoChangeWhenDetached()
95 getActivity().setContentView(binding.getRoot()); in testNoChangeWhenDetached()
105 assertEquals("goodbye world", binding.textView.getText().toString()); in testNoChangeWhenDetached()
DDefaultBindingTest.java26 UseDefaultBinding binding = UseDefaultBinding.inflate(getActivity().getLayoutInflater()); in testDefaultValue() local
27 assertEquals("Hello World", binding.textView1.getText().toString()); in testDefaultValue()
28 assertEquals("Hello World", binding.textView2.getText().toString()); in testDefaultValue()
29 assertEquals("TestApp", binding.textView3.getText().toString()); in testDefaultValue()
30 assertEquals("Hello ` \"World\"", binding.textView4.getText().toString()); in testDefaultValue()
31 assertEquals("Hello World", binding.textView5.getText().toString()); in testDefaultValue()
33 binding.textView6.getText().toString()); in testDefaultValue()
DInstanceAdapterTest.java124 …IncludeInstanceAdapterBinding binding = IncludeInstanceAdapterBinding.inflate(getActivity().getLay… in testInclude() local
125 binding.setStr("World"); in testInclude()
126 binding.executePendingBindings(); in testInclude()
127 … assertEquals("Hello World foo bar baz", binding.includedLayout.textView1.getText().toString()); in testInclude()
135 IncludeInstanceAdapterBinding binding = DataBindingUtil.setContentView(getActivity(), in testViewStub() local
137 binding.setStr("World"); in testViewStub()
138 binding.executePendingBindings(); in testViewStub()
139 binding.viewStub.getViewStub().inflate(); in testViewStub()
140 TextView view = (TextView) binding.viewStub.getRoot().findViewById(R.id.textView1); in testViewStub()
DDuplicateContextTest.java31 DuplicateContextBinding binding = initBinder(); in testContext() local
32 binding.setContext("Hello World"); in testContext()
33 binding.executePendingBindings(); in testContext()
34 assertEquals("Hello World", binding.textView1.getText().toString()); in testContext()
DAutoContextTest.java31 AutoContextBinding binding = initBinder(); in testContext() local
32 binding.executePendingBindings(); in testContext()
33 assertNotSame("", binding.textView1.getText().toString()); in testContext()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
DBindingTarget.java153 for (Binding binding : mBindings) { in resolveListeners()
154 binding.resolveListeners(); in resolveListeners()
159 for (Binding binding : mBindings) { in resolveTwoWayExpressions()
160 binding.resolveTwoWayExpressions(); in resolveTwoWayExpressions()
177 Binding binding = mBindings.get(i); in resolveMultiSetters() local
179 Scope.enter(binding); in resolveMultiSetters()
180 attributes[i] = binding.getName(); in resolveMultiSetters()
181 types[i] = binding.getExpr().getResolvedType(); in resolveMultiSetters()
192 for (Binding binding : mBindings) { in resolveMultiSetters()
193 String name = binding.getName(); in resolveMultiSetters()
[all …]
DMergedBinding.java57 for (Binding binding : bindings) { in createArgListExpr()
58 args.add(binding.getExpr()); in createArgListExpr()
67 for (Binding binding : bindings) { in createMergedName()
68 sb.append(binding.getName()); in createMergedName()
/frameworks/compile/mclinker/unittests/
DNamePoolTest.cpp68 ResolveInfo::Binding binding = ResolveInfo::Local; in TEST_F() local
74 name, isDyn, type, desc, binding, size, other, NULL, result1); in TEST_F()
81 EXPECT_EQ(binding, result1.info->binding()); in TEST_F()
87 name, isDyn, type, desc, binding, size, other, NULL, result2); in TEST_F()
94 EXPECT_EQ(binding, result1.info->binding()); in TEST_F()
106 ResolveInfo::Binding binding = ResolveInfo::Global; in TEST_F() local
111 name, isDyn, type, desc, binding, size, other, NULL, result1); in TEST_F()
118 EXPECT_EQ(binding, result1.info->binding()); in TEST_F()
124 name, isDyn, type, desc, binding, size, other, NULL, result2); in TEST_F()
133 binding, in TEST_F()
[all …]
DStaticResolverTest.cpp78 ASSERT_TRUE(mcld::ResolveInfo::Global == new_sym->binding()); in TEST_F()
79 ASSERT_TRUE(mcld::ResolveInfo::Global == old_sym->binding()); in TEST_F()
105 ASSERT_TRUE(mcld::ResolveInfo::Global == new_sym->binding()); in TEST_F()
106 ASSERT_TRUE(mcld::ResolveInfo::Global == old_sym->binding()); in TEST_F()
132 ASSERT_TRUE(mcld::ResolveInfo::Global == new_sym->binding()); in TEST_F()
133 ASSERT_TRUE(mcld::ResolveInfo::Global == old_sym->binding()); in TEST_F()
153 ASSERT_TRUE(mcld::ResolveInfo::Global == new_sym->binding()); in TEST_F()
154 ASSERT_TRUE(mcld::ResolveInfo::Weak == old_sym->binding()); in TEST_F()
182 ASSERT_TRUE(mcld::ResolveInfo::Weak == old_sym->binding()); in TEST_F()
183 ASSERT_TRUE(mcld::ResolveInfo::Global == new_sym->binding()); in TEST_F()
[all …]
/frameworks/data-binding/integration-tests/IndependentLibrary/app/src/main/java/android/databinding/test/independentlibrary/
DLibraryActivity.java29 IndependentLibraryBinding binding = IndependentLibraryBinding.inflate(getLayoutInflater()); in onCreate() local
30 setContentView(binding.getRoot()); in onCreate()
33 binding.setFoo(object); in onCreate()
34 binding.executePendingBindings(); in onCreate()
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
DOnRebindCallback.java41 public boolean onPreBind(T binding) { in onPreBind() argument
53 public void onCanceled(T binding) { in onCanceled() argument
65 public void onBound(T binding) { in onBound() argument
DDataBindingUtil.java160 T binding = getBinding(root); in bind() local
161 if (binding != null) { in bind()
162 return binding; in bind()
203 ViewDataBinding binding = ViewDataBinding.getBinding(view); in findBinding() local
204 if (binding != null) { in findBinding()
205 return (T) binding; in findBinding()
/frameworks/base/services/core/java/com/android/server/am/
DConnectionRecord.java29 final AppBindRecord binding; // The application/service binding. field in ConnectionRecord
39 pw.println(prefix + "binding=" + binding); in dump()
50 binding = _binding; in ConnectionRecord()
66 sb.append(binding.client.userId); in toString()
113 sb.append(binding.service.shortName); in toString()
/frameworks/base/core/java/android/view/inputmethod/
DInputBinding.java73 public InputBinding(InputConnection conn, InputBinding binding) { in InputBinding() argument
75 mConnectionToken = binding.getConnectionToken(); in InputBinding()
76 mUid = binding.getUid(); in InputBinding()
77 mPid = binding.getPid(); in InputBinding()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DFakeAdapter.java17 package com.android.layoutlib.bridge.impl.binding;
49 public FakeAdapter(ResourceReference adapterRef, AdapterBinding binding, in FakeAdapter() argument
54 final int repeatCount = binding.getRepeatCount(); in FakeAdapter()
55 final int itemCount = binding.getItemCount(); in FakeAdapter()
64 for (DataBindingItem dataBindingItem : binding) { in FakeAdapter()
DFakeExpandableAdapter.java17 package com.android.layoutlib.bridge.impl.binding;
47 public FakeExpandableAdapter(ResourceReference adapterRef, AdapterBinding binding, in FakeExpandableAdapter() argument
52 createItems(binding, binding.getItemCount(), binding.getRepeatCount(), mGroupTypes, 1); in FakeExpandableAdapter()
/frameworks/data-binding/internal-prebuilts/
DREADME.md1 This maven repository includes prebuilts of data binding libs that
3 b) used druing development of data binding itself.
6 To access data binding prebuilds for your own app, use /platform/prebuilt/ projects.
/frameworks/base/docs/html/topic/libraries/data-binding/
Dindex.jd21 <a href="#writing_expressions">Writing your first set of data binding
164 To use data binding, Android Plugin for Gradle <strong>1.5.0-alpha1</strong>
180 To configure your app to use data binding, add the <code>dataBinding</code>
185 Use the following code snippet to configure data binding:
196 If you have an app module that depends on a library which uses data binding,
197 your app module must configure data binding in its <code>build.gradle</code>
204 binding as described in <a href="#studio_support">Android Studio Support for
213 Writing your first set of data binding expressions
217 Data-binding layout files are slightly different and start with a root tag of
220 be in a non-binding layout file. A sample file looks like this:
[all …]
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
DUT_script_group2_gatherscatter.java81 ScriptGroup.Binding binding; in run() local
83 binding = new ScriptGroup.Binding(s.getFieldID_a_in(), unbound); in run()
85 binding = new ScriptGroup.Binding(s.getFieldID_a_in(), f); in run()
90 binding); in run()
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
DUT_script_group2_gatherscatter.java83 ScriptGroup.Binding binding; in run() local
85 binding = new ScriptGroup.Binding(s.getFieldID_a_in(), unbound); in run()
87 binding = new ScriptGroup.Binding(s.getFieldID_a_in(), f); in run()
92 binding); in run()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierServiceBindHelper.java77 AppBinding binding;
82 binding = (AppBinding) msg.obj;
83 log("Rebinding if necessary for phoneId: " + binding.getPhoneId());
84 binding.rebind();
339 for (AppBinding binding : mBindings) { in dump()
340 binding.dump(fd, pw, args); in dump()
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/
DTestFragment.java37 BasicBindingBinding binding = BasicBindingBinding.inflate(inflater, container, false); in onCreateView() local
38 return binding.getRoot(); in onCreateView()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/
DDataBindingMapperTest.java25 ViewDataBinding binding = mapper.getDataBinder(null, view, 1); in testNotDataBindingId() local
26 assertNull(binding); in testNotDataBindingId()

12345