Home
last modified time | relevance | path

Searched refs:mBinding (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/ui/
DPersonItemView.java53 protected final DetachableBinding<PersonItemData> mBinding; field in PersonItemView
63 mBinding = BindingBase.createDetachableBinding(this); in PersonItemView()
79 if (mBinding.isBound()) { in onDetachedFromWindow()
80 mBinding.detach(); in onDetachedFromWindow()
87 mBinding.reAttachIfPossible(); in onAttachedToWindow()
95 if (mBinding.isBound()) { in bind()
96 if (mBinding.getData().equals(personData)) { in bind()
100 mBinding.unbind(); in bind()
104 mBinding.bind(personData); in bind()
105 mBinding.getData().setListener(this); in bind()
[all …]
DVCardDetailFragment.java51 private final Binding<VCardContactItemData> mBinding = field in VCardDetailFragment
105 mBinding.bind(DataModel.get().createVCardContactItemData(getActivity(), mVCardUri)); in onCreateView()
106 mBinding.getData().setListener(this); in onCreateView()
113 if (mBinding.isBound()) { in onDestroy()
114 mBinding.unbind(); in onDestroy()
120 return mBinding.isBound() && mBinding.getData().hasValidVCard(); in shouldShowAddToContactsItem()
135 mBinding.ensureBound(); in onOptionsItemSelected()
136 final Uri vCardUri = mBinding.getData().getVCardUri(); in onOptionsItemSelected()
156 result, mBinding.getData().getDisplayName()); in onOptionsItemSelected()
171 Assert.isTrue(!mBinding.isBound()); in setVCardUri()
[all …]
DBlockedParticipantsFragment.java44 private final Binding<BlockedParticipantsData> mBinding = field in BlockedParticipantsFragment
60 mBinding.bind(DataModel.get().createBlockedParticipantsData(getActivity(), this)); in onCreateView()
61 mBinding.getData().init(getLoaderManager(), mBinding); in onCreateView() local
73 mBinding.unbind(); in onDestroy()
94 mBinding.getData().createParticipantListItemData(cursor)); in bindView()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DComposeMessageView.java128 private final Binding<DraftMessageData> mBinding; field in ComposeMessageView
164 mBinding = BindingBase.createBinding(this); in ComposeMessageView()
172 mBinding.bind(data); in bind()
186 mBinding.unbind(); in unbind()
260 mBinding.getData().setMessageSubject(null); in onFinishInflate()
324 final boolean haveAttachments = mBinding.getData().hasAttachments(); in hideAttachmentsWhenShowingSims()
330 mAttachmentPreview.onAttachmentsChanged(mBinding.getData()); in hideAttachmentsWhenShowingSims()
344 return BindingBase.createBindingReference(mBinding); in getDraftDataModel()
377 mBinding.getData().getConversationId()); in sendMessageInternal()
378 if (mBinding.getData().isCheckingDraft()) { in sendMessageInternal()
[all …]
DConversationFragment.java159 final Binding<ConversationData> mBinding = BindingBase.createBinding(this); field in ConversationFragment
196 .equals(mBinding.getData().getConversationId(), conversationId)) {
356 getActivity(), data, mBinding.getData().getParticipants(),
357 mBinding.getData().getSelfParticipantById(data.getSelfParticipantId()));
368 final MessageData message = mBinding.getData().createForwardedMessage(data);
451 mBinding.ensureBound(); in onActivityCreated()
452 mBinding.getData().init(getLoaderManager(), mBinding); in onActivityCreated() local
458 mBinding, mComposeMessageView.getDraftDataModel(), savedInstanceState); in onActivityCreated()
460 mComposeMessageView.setConversationDataModel(BindingBase.createBindingReference(mBinding)); in onActivityCreated()
617 mBinding.getData().getConversationId()), this); in onCreateView()
[all …]
DLaunchConversationActivity.java51 final Binding<LaunchConversationData> mBinding = BindingBase.createBinding(this); field in LaunchConversationActivity
91 mBinding.bind(DataModel.get().createLaunchConversationData(this)); in onCreate()
92 mBinding.getData().getOrCreateConversation(mBinding, recipients); in onCreate()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
DPeopleAndOptionsFragment.java65 private final Binding<PeopleAndOptionsData> mBinding = field in PeopleAndOptionsFragment
73 mBinding.getData().init(getLoaderManager(), mBinding); in onCreate() local
99 mBinding.getData().setConversationNotificationSound(mBinding, pickedUri); in onActivityResult()
106 mBinding.unbind(); in onDestroy()
112 mBinding.bind(DataModel.get().createPeopleAndOptionsData(conversationId, getActivity(), in setConversationId()
119 mBinding.ensureBound(data); in onOptionsCursorUpdated()
126 mBinding.ensureBound(data); in onParticipantsListLoaded()
138 mBinding.getData().enableConversationNotifications(mBinding, isChecked); in onOptionsItemViewClicked()
150 mBinding.getData().enableConversationNotificationVibration(mBinding, in onOptionsItemViewClicked()
156 mBinding.getData().setDestinationBlocked(mBinding, false); in onOptionsItemViewClicked()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/binding/
DImmutableBindingRef.java31 private final BindingBase<T> mBinding; field in ImmutableBindingRef
37 mBinding = resolveBinding(binding); in ImmutableBindingRef()
42 return mBinding.getData(); in getData()
47 return mBinding.isBound(); in isBound()
52 return mBinding.isBound(data); in isBound()
57 mBinding.ensureBound(); in ensureBound()
62 mBinding.ensureBound(data); in ensureBound()
67 return mBinding.getBindingId(); in getBindingId()
78 resolvedBinding = ((ImmutableBindingRef<T>) resolvedBinding).mBinding; in resolveBinding()
/packages/apps/Messaging/src/com/android/messaging/ui/attachmentchooser/
DAttachmentChooserFragment.java59 Binding<DraftMessageData> mBinding = BindingBase.createBinding(this); field in AttachmentChooserFragment
76 mBinding.unbind(); in onDestroy()
99 if (mBinding.isBound()) { in confirmSelection()
100 mBinding.getData().removeExistingAttachments( in confirmSelection()
102 mBinding.getData().saveToStorage(mBinding); in confirmSelection()
108 mBinding.bind(DataModel.get().createDraftMessageData(conversationId)); in setConversationId()
109 mBinding.getData().addListener(this); in setConversationId()
110 mBinding.getData().loadFromStorage(mBinding, null, false); in setConversationId()
119 mBinding.ensureBound(data); in onDraftChanged()
139 mBinding.getData().getConversationId()); in displayPhoto()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMediaPicker.java158 final Binding<MediaPickerData> mBinding = BindingBase.createBinding(this); field in MediaPicker
171 mBinding.bind(DataModel.get().createMediaPickerData(context)); in MediaPicker()
201 mBinding.getData().init(getLoaderManager()); in onCreate()
291 mBinding.unbind(); in onDestroy()
359 final int selectedChooserIndex = mBinding.getData().getSelectedChooserIndex(); in doOpen()
438 if (mBinding.isBound() && getActivity() != null) { in setSupportedMediaTypes()
439 mBinding.unbind(); in setSupportedMediaTypes()
440 mBinding.bind(DataModel.get().createMediaPickerData(getActivity())); in setSupportedMediaTypes()
441 mBinding.getData().init(getLoaderManager()); in setSupportedMediaTypes()
516 mBinding.getData().saveSelectedChooserIndex(chooserIndex); in selectChooser()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DVCardContactItemData.java46 private final Binding<BindableMediaRequest<VCardResource>> mBinding = field in VCardContactItemData
139 mBinding.bind(new VCardRequestDescriptor(mVCardUri).buildAsyncMediaRequest(mContext, this)); in bind()
140 MediaResourceManager.get().requestMediaResourceAsync(mBinding.getData()); in bind()
146 mBinding.unbind(); in unbind()
171 mBinding.ensureBound(); in onMediaResourceLoaded()
181 mBinding.ensureBound(); in onMediaResourceLoadError()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DSettingsActivity.java86 private final Binding<SettingsData> mBinding = BindingBase.createBinding(this); field in SettingsActivity.SettingsFragment
91 mBinding.bind(DataModel.get().createSettingsData(getActivity(), this)); in onCreate()
92 mBinding.getData().init(getLoaderManager(), mBinding); in onCreate() local
108 mBinding.unbind(); in onDestroy()
113 mBinding.ensureBound(data); in onSelfParticipantDataLoaded()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactPickerFragment.java106 final Binding<ContactPickerData> mBinding = BindingBase.createBinding(this); field in ContactPickerFragment
132 mBinding.bind(DataModel.get().createContactPickerData(getActivity(), this)); in onCreate()
133 mBinding.getData().init(getLoaderManager(), mBinding); in onCreate() local
219 if (mBinding.isBound()) { in onDestroy()
220 mBinding.unbind(); in onDestroy()
263 mBinding.ensureBound(); in onAllContactsCursorUpdated()
269 mBinding.ensureBound(); in onFrequentContactsCursorUpdated()
571 mBinding.ensureBound(data); in onContactCustomColorLoaded()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/
DAttachmentChooserFragmentTest.java125 Matchers.eq(fragment.mBinding), Matchers.eq((MessageData) null), in loadWith()
167 Mockito.verify(mockDraftMessageData).saveToStorage(Matchers.eq(getFragment().mBinding)); in testUnselect()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
DConversationFragmentTest.java125 fragment.mBinding); in loadWith()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/
DContactPickerFragmentTest.java98 fragment.mBinding); in initFragment()