Home
last modified time | relevance | path

Searched refs:mHost (Results 1 – 25 of 67) sorted by relevance

123

/packages/apps/DocumentsUI/src/com/android/documentsui/
DViewAutoScroller.java33 private ScrollHost mHost; field in ViewAutoScroller
40 mHost = scrollHost; in ViewAutoScroller()
58 final int topBottomThreshold = (int) (mHost.getViewHeight() in run()
61 if (mHost.getCurrentPosition().y <= topBottomThreshold) { in run()
62 pixelsPastView = mHost.getCurrentPosition().y - topBottomThreshold; in run()
63 } else if (mHost.getCurrentPosition().y >= mHost.getViewHeight() in run()
65 pixelsPastView = mHost.getCurrentPosition().y - mHost.getViewHeight() in run()
69 if (!mHost.isActive() || pixelsPastView == 0) { in run()
96 (int) (mHost.getViewHeight() * TOP_BOTTOM_THRESHOLD_RATIO); in computeScrollDistance()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationInputManager.java81 private final ConversationInputHost mHost; field in ConversationInputManager
126 mHost = host; in ConversationInputManager()
313 mHost.dismissActionMode(); in handleOnShow()
316 mHost.onStartComposeMessage(); in handleOnShow()
331 mHost.invalidateActionBar(); in endUpdate()
336 mHost.setOptionsMenuVisibility(!mMediaInput.isOpen()); in updateHostOptionsMenu()
354 mMediaPicker.setSubscriptionDataProvider(mHost); in show()
381 mHost.invalidateActionBar(); in show()
389 mHost.invalidateActionBar(); in show()
398 mHost.invalidateActionBar(); in show()
[all …]
DComposeMessageView.java129 private IComposeMessageViewHost mHost; field in ComposeMessageView
171 mHost = host; in bind()
176 final int counterColor = mHost.overrideCounterColor(); in bind()
187 mHost = null; in unbind()
201 mHost.onComposeEditTextFocused(); in onFinishInflate()
208 if (mHost.shouldHideAttachmentsWhenSimSelectorShown()) { in onFinishInflate()
232 if (mHost.shouldShowSubjectEditor()) { in onFinishInflate()
279 if (mHost.shouldShowSubjectEditor()) { in onFinishInflate()
321 if (!mHost.shouldHideAttachmentsWhenSimSelectorShown()) { in hideAttachmentsWhenShowingSims()
326 mHost.onAttachmentsChanged(false); in hideAttachmentsWhenShowingSims()
[all …]
DConversationFragment.java166 private ConversationFragmentHost mHost; field in ConversationFragment
322 mHost.dismissActionMode();
337 mHost.dismissActionMode();
343 mHost.dismissActionMode();
352 mHost.dismissActionMode();
358 mHost.dismissActionMode();
362 mHost.dismissActionMode();
370 mHost.dismissActionMode();
457 getActivity(), this, mComposeMessageView, mHost, getFragmentManagerToUse(), in onActivityCreated()
461 mHost.invalidateActionBar(); in onActivityCreated()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/support/actionbar/
DHelpMenuControllerTest.java40 private TestFragment mHost; field in HelpMenuControllerTest
45 mHost = spy(new TestFragment()); in setUp()
46 doReturn(mContext).when(mHost).getContext(); in setUp()
53 mHost.setArguments(bundle); in onCreateOptionsMenu_withArgumentOverride_shouldPrepareHelpUsingOverride()
55 HelpMenuController.init(mHost); in onCreateOptionsMenu_withArgumentOverride_shouldPrepareHelpUsingOverride()
57 mHost.getSettingsLifecycle().onCreateOptionsMenu(null /* menu */, null /* inflater */); in onCreateOptionsMenu_withArgumentOverride_shouldPrepareHelpUsingOverride()
64 HelpMenuController.init(mHost); in onCreateOptionsMenu_noArgumentOverride_shouldPrepareHelpUsingProvider()
66 mHost.getSettingsLifecycle().onCreateOptionsMenu(null /* menu */, null /* inflater */); in onCreateOptionsMenu_noArgumentOverride_shouldPrepareHelpUsingProvider()
68 verify(mContext).getString(mHost.getHelpResource()); in onCreateOptionsMenu_noArgumentOverride_shouldPrepareHelpUsingProvider()
/packages/apps/Settings/src/com/android/settings/security/
DLockUnificationPreferenceController.java68 private final SecuritySettings mHost; field in LockUnificationPreferenceController
85 mHost = host; in LockUnificationPreferenceController()
118 UnificationConfirmationDialog.newInstance(!mKeepDeviceLock).show(mHost); in onPreferenceChange()
122 new ChooseLockSettingsHelper(mHost.getActivity(), mHost); in onPreferenceChange()
173 .setSourceMetricsCategory(mHost.getMetricsCategory())
183 new ChooseLockSettingsHelper(mHost.getActivity(), mHost);
194 new ChooseLockSettingsHelper(mHost.getActivity(), mHost);
251 .setSourceMetricsCategory(mHost.getMetricsCategory())
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DLockUnificationPreferenceController.java68 private final SecuritySettings mHost; field in LockUnificationPreferenceController
85 mHost = host; in LockUnificationPreferenceController()
118 UnificationConfirmationDialog.newInstance(!mKeepDeviceLock).show(mHost); in onPreferenceChange()
122 new ChooseLockSettingsHelper(mHost.getActivity(), mHost); in onPreferenceChange()
173 .setSourceMetricsCategory(mHost.getMetricsCategory())
183 new ChooseLockSettingsHelper(mHost.getActivity(), mHost);
194 new ChooseLockSettingsHelper(mHost.getActivity(), mHost);
251 .setSourceMetricsCategory(mHost.getMetricsCategory())
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/actionbar/
DSearchMenuControllerTest.java52 private InstrumentedFragment mHost; field in SearchMenuControllerTest
59 mHost = new InstrumentedFragment() { in setUp()
87 SearchMenuController.init(mHost); in init_observableFragment_shouldAddMenu()
88 mHost.getSettingsLifecycle().onCreateOptionsMenu(mMenu, null /* inflater */); in init_observableFragment_shouldAddMenu()
97 mHost.setArguments(args); in init_doNotNeedSearchIcon_shouldNotAddMenu()
99 SearchMenuController.init(mHost); in init_doNotNeedSearchIcon_shouldNotAddMenu()
100 mHost.getSettingsLifecycle().onCreateOptionsMenu(mMenu, null /* inflater */); in init_doNotNeedSearchIcon_shouldNotAddMenu()
107 SearchMenuController.init(mHost); in init_deviceNotProvisioned_shouldNotAddMenu()
108 mHost.getSettingsLifecycle().onCreateOptionsMenu(mMenu, null /* inflater */); in init_deviceNotProvisioned_shouldNotAddMenu()
/packages/apps/Settings/src/com/android/settings/support/actionbar/
DHelpMenuController.java40 private final Fragment mHost; field in HelpMenuController
51 mHost = host; in HelpMenuController()
56 final Bundle arguments = mHost.getArguments(); in onCreateOptionsMenu()
60 } else if (mHost instanceof HelpResourceProvider) { in onCreateOptionsMenu()
61 helpResourceId = ((HelpResourceProvider) mHost).getHelpResource(); in onCreateOptionsMenu()
66 helpUri = mHost.getContext().getString(helpResourceId); in onCreateOptionsMenu()
68 final Activity activity = mHost.getActivity(); in onCreateOptionsMenu()
70 HelpUtils.prepareHelpMenuItem(activity, menu, helpUri, mHost.getClass().getName()); in onCreateOptionsMenu()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/support/actionbar/
DHelpMenuController.java40 private final Fragment mHost; field in HelpMenuController
51 mHost = host; in HelpMenuController()
56 final Bundle arguments = mHost.getArguments(); in onCreateOptionsMenu()
60 } else if (mHost instanceof HelpResourceProvider) { in onCreateOptionsMenu()
61 helpResourceId = ((HelpResourceProvider) mHost).getHelpResource(); in onCreateOptionsMenu()
66 helpUri = mHost.getContext().getString(helpResourceId); in onCreateOptionsMenu()
68 final Activity activity = mHost.getActivity(); in onCreateOptionsMenu()
70 HelpUtils.prepareHelpMenuItem(activity, menu, helpUri, mHost.getClass().getName()); in onCreateOptionsMenu()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraPreview.java45 private final CameraPreviewHost mHost; field in CameraPreview
50 mHost = host; in CameraPreview()
66 mHost.getView().requestLayout(); in setSize()
106 return mHost.getView().getContext(); in getContext()
110 mHost.getView().setOnTouchListener(listener); in setOnTouchListener()
114 return mHost.getView().getHeight(); in getHeight()
141 return mHost.isValid(); in isValid()
150 mHost.startPreview(camera); in startPreview()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/savedaccesspoints/
DSavedAccessPointsPreferenceController.java57 private SavedAccessPointsWifiSettings mHost; field in SavedAccessPointsPreferenceController
68 mHost = host; in setHost()
94 if (mHost != null) { in onPreferenceClick()
95 mHost.showWifiDialog((AccessPointPreference) preference); in onPreferenceClick()
127 if (mHost != null && mHost.isSubscriptionsFeatureEnabled() in refreshSavedAccessPoints()
154 if (mHost != null && !mHost.isSubscriptionsFeatureEnabled()) { in refreshSavedAccessPoints()
DSubscribedAccessPointsPreferenceController.java56 private SavedAccessPointsWifiSettings mHost; field in SubscribedAccessPointsPreferenceController
67 mHost = host; in setHost()
93 if (mHost != null) { in onPreferenceClick()
94 mHost.showWifiDialog((AccessPointPreference) preference); in onPreferenceClick()
116 if (mHost != null && !mHost.isSubscriptionsFeatureEnabled()) { in refreshSubscribedAccessPoints()
/packages/apps/Settings/src/com/android/settings/wifi/savedaccesspoints/
DSavedAccessPointsPreferenceController.java57 private SavedAccessPointsWifiSettings mHost; field in SavedAccessPointsPreferenceController
68 mHost = host; in setHost()
94 if (mHost != null) { in onPreferenceClick()
95 mHost.showWifiPage((AccessPointPreference) preference); in onPreferenceClick()
127 if (mHost != null && mHost.isSubscriptionsFeatureEnabled() in refreshSavedAccessPoints()
154 if (mHost != null && !mHost.isSubscriptionsFeatureEnabled()) { in refreshSavedAccessPoints()
DSubscribedAccessPointsPreferenceController.java56 private SavedAccessPointsWifiSettings mHost; field in SubscribedAccessPointsPreferenceController
67 mHost = host; in setHost()
93 if (mHost != null) { in onPreferenceClick()
94 mHost.showWifiPage((AccessPointPreference) preference); in onPreferenceClick()
116 if (mHost != null && !mHost.isSubscriptionsFeatureEnabled()) { in refreshSubscribedAccessPoints()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListFragment.java91 private ConversationListFragmentHost mHost; field in ConversationListFragment
136 Assert.notNull(mHost); in onResume()
146 && mHost.hasWindowFocus()) { in setScrolledToNewestConversationIfNeeded()
164 mHost = null; in onDestroy()
230 mHost.onCreateConversationClick(); in onCreateView()
280 Assert.isNull(mHost); in setHost()
281 mHost = host; in setHost()
347 mHost.onConversationClick(listData, conversationListItemData, isLongClick, in onConversationClicked()
356 return mHost.isConversationSelected(conversationId); in isConversationSelected()
361 return mHost.isSwipeAnimatable(); in isSwipeAnimatable()
[all …]
/packages/apps/Settings/src/com/android/settings/search/actionbar/
DSearchMenuController.java44 private final Fragment mHost; field in SearchMenuController
58 mHost = host; in SearchMenuController()
64 final Context context = mHost.getContext(); in onCreateOptionsMenu()
67 if (!Utils.isDeviceProvisioned(mHost.getContext())) { in onCreateOptionsMenu()
70 if (!Utils.isPackageEnabled(mHost.getContext(), SettingsIntelligencePkgName)) { in onCreateOptionsMenu()
76 final Bundle arguments = mHost.getArguments(); in onCreateOptionsMenu()
97 mHost.startActivityForResult(intent, SearchFeatureProvider.REQUEST_CODE); in onCreateOptionsMenu()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/search/actionbar/
DSearchMenuController.java44 private final Fragment mHost; field in SearchMenuController
58 mHost = host; in SearchMenuController()
64 final Context context = mHost.getContext(); in onCreateOptionsMenu()
67 if (!Utils.isDeviceProvisioned(mHost.getContext())) { in onCreateOptionsMenu()
70 if (!Utils.isPackageEnabled(mHost.getContext(), SettingsIntelligencePkgName)) { in onCreateOptionsMenu()
76 final Bundle arguments = mHost.getArguments(); in onCreateOptionsMenu()
97 mHost.startActivityForResult(intent, SearchFeatureProvider.REQUEST_CODE); in onCreateOptionsMenu()
/packages/apps/ThemePicker/src/com/android/customization/picker/theme/
DCustomThemeStepFragment.java26 protected CustomThemeComponentStepHost mHost; field in CustomThemeStepFragment
37 mHost = (CustomThemeComponentStepHost) context; in onAttach()
43 mHost.setCurrentStep(mPosition); in onResume()
51 mCustomThemeManager = mHost.getCustomThemeManager(); in onCreate()
73 mToolbar.setNavigationOnClickListener(v -> mHost.cancel()); in onCreateView()
85 (dialogInterface, i) -> mHost.delete()) in onMenuItemClick()
/packages/apps/Settings/src/com/android/settings/security/trustagent/
DTrustAgentListPreferenceController.java63 private final SecuritySettings mHost; field in TrustAgentListPreferenceController
73 mHost = host; in TrustAgentListPreferenceController()
119 mHost.getActivity(), mHost); in handlePreferenceTreeClick()
126 mHost.startActivity(mTrustAgentClickIntent); in handlePreferenceTreeClick()
183 mHost.startActivity(mTrustAgentClickIntent); in handleActivityResult()
/packages/apps/Settings/src/com/android/settings/network/
DMobilePlanPreferenceController.java66 private final MobilePlanPreferenceHost mHost; field in MobilePlanPreferenceController
76 mHost = host; in MobilePlanPreferenceController()
85 if (mHost != null && KEY_MANAGE_MOBILE_PLAN.equals(preference.getKey())) { in handlePreferenceTreeClick()
187 if (mHost != null) { in onManageMobilePlanClick()
188 mHost.showMobilePlanMessageDialog(); in onManageMobilePlanClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DMobilePlanPreferenceController.java66 private final MobilePlanPreferenceHost mHost; field in MobilePlanPreferenceController
76 mHost = host; in MobilePlanPreferenceController()
85 if (mHost != null && KEY_MANAGE_MOBILE_PLAN.equals(preference.getKey())) { in handlePreferenceTreeClick()
186 if (mHost != null) { in onManageMobilePlanClick()
187 mHost.showMobilePlanMessageDialog(); in onManageMobilePlanClick()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DWebAddress.java45 private String mHost; field in WebAddress
71 mHost = ""; in WebAddress()
84 if (t != null) mHost = t; in WebAddress()
135 return mScheme + "://" + authInfo + mHost + port + mPath; in toString()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/
DDatePreferenceControllerTest.java45 private DatePreferenceController.DatePreferenceHost mHost; field in DatePreferenceControllerTest
57 mController = new DatePreferenceController(mContext, mHost, mAutoTimePreferenceController); in setUp()
68 verify(mHost).updateTimeAndDateDisplay(mContext); in shouldHandleDateSetCallback()
103 verify(mHost).showDatePicker(); in clickPreference_showDatePicker()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactPickerFragment.java108 private ContactPickerFragmentHost mHost; field in ContactPickerFragment
189 mHost.onBackButtonPressed(); in onCreateView()
212 mHost.invalidateActionBar(); in onActivityCreated()
246 mHost.onInitiateAddMoreParticipants(); in onMenuItemClick()
302 mHost = host; in setHost()
461 mHost.onInitiateAddMoreParticipants(); in onContactChipsChanged()
464 mHost.onParticipantCountChanged(ContactPickerData.getCanAddMoreParticipants(newCount)); in onContactChipsChanged()
594 mHost.onGetOrCreateNewConversation(conversationId); in onGetOrCreateConversationSucceeded()

123