Home
last modified time | relevance | path

Searched refs:isBound (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DBindingTest.java42 assertFalse(data.isBound()); in testDataStartsUnbound()
49 assertTrue(binding.isBound()); in testBindingUpdatesDataAndBindee()
51 assertTrue(data.isBound(binding.getBindingId())); in testBindingUpdatesDataAndBindee()
52 assertFalse(data.isBound("SomeRandomString")); in testBindingUpdatesDataAndBindee()
62 assertTrue(yours.isBound(binding.getBindingId())); in testRebindingFails()
69 assertTrue(binding.isBound()); in testRebindingFails()
71 assertTrue(yours.isBound(binding.getBindingId())); in testRebindingFails()
78 assertTrue(data.isBound(binding.getBindingId())); in testUnbindingClearsDataAndBindee()
79 assertTrue(binding.isBound()); in testUnbindingClearsDataAndBindee()
86 assertFalse(data.isBound()); in testUnbindingClearsDataAndBindee()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/binding/
DBinding.java43 public boolean isBound() { in isBound() method in Binding
44 return (mData != null && mData.isBound(mBindingId)); in isBound()
48 public boolean isBound(final T data) { in isBound() method in Binding
49 return (isBound() && data == mData); in isBound()
54 if (!isBound()) { in ensureBound()
61 if (!isBound()) { in ensureBound()
75 if (mData != null || data.isBound()) { in bind()
87 if (mData == null || !mData.isBound(mBindingId)) { in unbind()
DBindableData.java38 if (isBound() || bindingId == null) { in bind()
48 if (!isBound(bindingId)) { in unbind()
62 protected boolean isBound() { in isBound() method in BindableData
69 public boolean isBound(final String bindingId) { in isBound() method in BindableData
DImmutableBindingRef.java46 public boolean isBound() { in isBound() method in ImmutableBindingRef
47 return mBinding.isBound(); in isBound()
51 public boolean isBound(final T data) { in isBound() method in ImmutableBindingRef
52 return mBinding.isBound(data); in isBound()
DBindableOnceData.java39 public boolean isBound() { in isBound() method in BindableOnceData
40 return super.isBound(); in isBound()
DDetachableBinding.java44 Assert.isTrue(isBound()); in detach()
51 Assert.isFalse(isBound()); in reAttachIfPossible()
DBindingBase.java63 public abstract boolean isBound(); in isBound() method in BindingBase
68 public abstract boolean isBound(final T data); in isBound() method in BindingBase
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DPeopleAndOptionsData.java71 if (isBound(bindingId)) { in onCreateLoader()
104 if (isBound(cursorLoader.getBindingId())) { in onLoadFinished()
132 if (isBound(cursorLoader.getBindingId())) { in onLoaderReset()
175 if (isBound(bindingId)) { in enableConversationNotifications()
184 if (isBound(bindingId)) { in setConversationNotificationSound()
193 if (isBound(bindingId)) { in enableConversationNotificationVibration()
203 if (isBound(bindingId) && participantData != null) { in setDestinationBlocked()
DConversationData.java190 if (isBound(bindingId)) { in onCreateLoader()
207 if (isBound(loader.getBindingId())) { in onLoadFinished()
234 if (isBound(loader.getBindingId())) { in onLoaderReset()
256 if (isBound(bindingId)) { in onCreateLoader()
275 if (isBound(loader.getBindingId())) { in onLoadFinished()
323 if (isBound(loader.getBindingId())) { in onLoaderReset()
359 if (isBound(bindingId)) { in onCreateLoader()
376 if (isBound(loader.getBindingId())) { in onLoadFinished()
390 if (isBound(loader.getBindingId())) { in onLoaderReset()
410 if (isBound(bindingId)) { in onCreateLoader()
[all …]
DPersonItemData.java46 if (isBound()) { in setListener()
52 if (isBound() && mListener != null) { in notifyDataUpdated()
58 if (isBound() && mListener != null) { in notifyDataFailed()
DLaunchConversationData.java57 if (isBound(bindingId) && mMonitor == null) { in getOrCreateConversation()
71 if (isBound(bindingId) && mListener != null) { in onGetOrCreateConversationSucceeded()
84 if (isBound(bindingId) && mListener != null) { in onGetOrCreateConversationFailed()
DBlockedParticipantsData.java58 if (isBound(bindingId)) { in onCreateLoader()
71 Assert.isTrue(isBound(cursorLoader.getBindingId())); in onLoadFinished()
79 Assert.isTrue(isBound(cursorLoader.getBindingId())); in onLoaderReset()
DPendingAttachmentData.java124 if (draftMessageData.isBound(bindingId)) { in loadAttachmentForDraft()
133 if (draftMessageData.isBound(bindingId)) { in loadAttachmentForDraft()
144 if (draftMessageData.isBound(bindingId)) { in loadAttachmentForDraft()
DMediaPickerData.java64 if (isBound(bindingId)) { in onCreateLoader()
85 if (isBound(cursorLoader.getBindingId())) { in onLoadFinished()
107 if (isBound(cursorLoader.getBindingId())) { in onLoaderReset()
DContactPickerData.java68 if (isBound(bindingId)) { in onCreateLoader()
96 if (isBound(cursorLoader.getBindingId())) { in onLoadFinished()
134 if (isBound(cursorLoader.getBindingId())) { in onLoaderReset()
DConversationListData.java88 if (isBound(bindingId)) { in onCreateLoader()
120 if (isBound(loader.getBindingId())) { in onLoadFinished()
149 if (isBound(loader.getBindingId())) { in onLoaderReset()
DSettingsData.java137 if (isBound(bindingId)) { in onCreateLoader()
155 if (isBound(loader.getBindingId())) { in onLoadFinished()
168 if (isBound(loader.getBindingId())) { in onLoaderReset()
/packages/apps/Messaging/src/com/android/messaging/ui/
DPersonItemView.java79 if (mBinding.isBound()) { in onDetachedFromWindow()
95 if (mBinding.isBound()) { in bind()
141 if (mBinding.isBound() && v == mNameTextView) { in onLayoutChange()
174 if (mListener != null && mBinding.isBound()) { in setListener()
182 if (mListener != null && mBinding.isBound()) { in setListener()
197 if (mBinding.isBound()) { in updateViewAppearance()
DAsyncImageView.java90 if (mImageRequestBinding.isBound()) {
122 if (mImageRequestBinding.isBound()) { in setImageResourceId()
152 Assert.isTrue(mImageRequestBinding.isBound()); in resumeLoading()
286 if (!mImageRequestBinding.isBound() && mDetachedRequestDescriptor != null) { in onAttachedToWindow()
398 if (mImageRequestBinding.isBound()) { in unbindView()
DVCardDetailFragment.java113 if (mBinding.isBound()) { in onDestroy()
120 return mBinding.isBound() && mBinding.getData().hasValidVCard(); in shouldShowAddToContactsItem()
171 Assert.isTrue(!mBinding.isBound()); in setVCardUri()
/packages/services/Telecomm/src/com/android/server/telecom/
DServiceBinder.java87 final boolean isBound; in bind()
89 isBound = mContext.bindServiceAsUser(serviceIntent, connection, bindingFlags, in bind()
92 isBound = mContext.bindService(serviceIntent, connection, bindingFlags); in bind()
94 if (!isBound) { in bind()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DBindableMediaRequest.java43 if (isBound() && mListener != null) { in onMediaResourceLoaded()
54 if (isBound() && mListener != null) { in onMediaResourceLoadError()
DMediaResourceManager.java234 if (bindableRequest != null && !bindableRequest.isBound()) { in scheduleAsyncMediaRequest()
246 if (bindableRequest != null && !bindableRequest.isBound()) { in scheduleAsyncMediaRequest()
278 Assert.isTrue(bindableRequest == null || !bindableRequest.isBound()); in scheduleAsyncMediaRequest()
/packages/apps/TV/tests/common/src/com/android/tv/testing/testinput/
DTestInputControlConnection.java53 public boolean isBound() { in isBound() method in TestInputControlConnection
76 while (!isBound()) { in waitUntilBound()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/
DContactPickerFragmentTest.java84 Mockito.when(mMockContactPickerData.isBound(Matchers.anyString())) in initFragment()
108 Mockito.when(mMockContactPickerData.isBound(Matchers.anyString())) in loadWithAllContactsCursor()
126 Mockito.when(mMockContactPickerData.isBound(Matchers.anyString())) in loadWithFrequentContactsCursor()

12