Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/app/
DFragmentController.java49 private final FragmentHostCallback<?> mHost; field in FragmentController
59 mHost = callbacks; in FragmentController()
66 return mHost.getFragmentManagerImpl(); in getFragmentManager()
73 return mHost.getLoaderManagerImpl(); in getLoaderManager()
81 return mHost.mFragmentManager.findFragmentByWho(who); in findFragmentByWho()
89 mHost.mFragmentManager.attachController( in attachHost()
90 mHost, mHost /*container*/, parent); in attachHost()
105 return mHost.mFragmentManager.onCreateView(parent, name, context, attrs); in onCreateView()
112 mHost.mFragmentManager.noteStateNotSaved(); in noteStateNotSaved()
119 return mHost.mFragmentManager.saveAllState(); in saveAllState()
[all …]
DFragment.java344 FragmentHostCallback mHost; field in Fragment
761 return mHost == null ? null : mHost.getContext(); in getContext()
768 return mHost == null ? null : mHost.getActivity(); in getActivity()
777 return mHost == null ? null : mHost.onGetHost(); in getHost()
784 if (mHost == null) { in getResources()
787 return mHost.getContext().getResources(); in getResources()
869 return mHost != null && mAdded; in isAdded()
1028 if (mFragmentManager != null && mFragmentManager.mHost != null) { in setUserVisibleHint()
1029 context = mFragmentManager.mHost.getContext(); in setUserVisibleHint()
1070 if (mHost == null) {
[all …]
DLoaderManager.java233 private FragmentHostCallback mHost; field in LoaderManagerImpl
373 if (mHost != null) { in destroy()
374 lastBecause = mHost.mFragmentManager.mNoTransactionsBecause; in destroy()
375 mHost.mFragmentManager.mNoTransactionsBecause = "onLoaderReset"; in destroy()
380 if (mHost != null) { in destroy()
381 mHost.mFragmentManager.mNoTransactionsBecause = lastBecause; in destroy()
482 if (mHost != null && !hasRunningLoaders()) { in onLoadComplete()
483 mHost.mFragmentManager.startPendingDeferredFragments(); in onLoadComplete()
490 if (mHost != null) { in callOnLoadFinished()
491 lastBecause = mHost.mFragmentManager.mNoTransactionsBecause; in callOnLoadFinished()
[all …]
DFragmentManager.java708 FragmentHostCallback<?> mHost; field in FragmentManagerImpl
750 if (mHost != null) { in throwException()
753 mHost.onDump(" ", null, pw, new String[] { }); in throwException()
987 DebugUtils.buildShortClassTag(mHost, sb); in toString()
1086 writer.print(prefix); writer.print(" mHost="); writer.println(mHost); in dump()
1113 Animator anim = AnimatorInflater.loadAnimator(mHost.getContext(), in loadAnimator()
1129 if (transitionStyle == 0 && mHost.onHasWindowAnimations()) { in loadAnimator()
1130 transitionStyle = mHost.onGetWindowAnimations(); in loadAnimator()
1136 TypedArray attrs = mHost.getContext().obtainStyledAttributes(transitionStyle, in loadAnimator()
1145 return AnimatorInflater.loadAnimator(mHost.getContext(), anim); in loadAnimator()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/
DSuggestionControllerMixinTest.java51 private SuggestionControllerMixin.SuggestionControllerHost mHost; field in SuggestionControllerMixinTest
76 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in goThroughLifecycle_onStartStop_shouldStartStopController()
88 when(mHost.getLoaderManager()).thenReturn(loaderManager); in onServiceConnected_shouldGetSuggestion()
90 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in onServiceConnected_shouldGetSuggestion()
99 when(mHost.getLoaderManager()).thenReturn(null); in onServiceConnected_hostNotAttached_shouldDoNothing()
101 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in onServiceConnected_hostNotAttached_shouldDoNothing()
104 verify(mHost).getLoaderManager(); in onServiceConnected_hostNotAttached_shouldDoNothing()
109 when(mHost.getLoaderManager()).thenReturn(null); in onServiceDisconnected_hostNotAttached_shouldDoNothing()
111 mMixin = new SuggestionControllerMixin(mContext, mHost, mLifecycle, mComponentName); in onServiceDisconnected_hostNotAttached_shouldDoNothing()
114 verify(mHost).getLoaderManager(); in onServiceDisconnected_hostNotAttached_shouldDoNothing()
[all …]
DSuggestionControllerMixinCompatTest.java51 private SuggestionControllerMixinCompat.SuggestionControllerHost mHost; field in SuggestionControllerMixinCompatTest
76 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in goThroughLifecycle_onStartStop_shouldStartStopController()
88 when(mHost.getLoaderManager()).thenReturn(loaderManager); in onServiceConnected_shouldGetSuggestion()
90 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in onServiceConnected_shouldGetSuggestion()
99 when(mHost.getLoaderManager()).thenReturn(null); in onServiceConnected_hostNotAttached_shouldDoNothing()
101 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in onServiceConnected_hostNotAttached_shouldDoNothing()
104 verify(mHost).getLoaderManager(); in onServiceConnected_hostNotAttached_shouldDoNothing()
109 when(mHost.getLoaderManager()).thenReturn(null); in onServiceDisconnected_hostNotAttached_shouldDoNothing()
111 mMixin = new SuggestionControllerMixinCompat(mContext, mHost, mLifecycle, mComponentName); in onServiceDisconnected_hostNotAttached_shouldDoNothing()
114 verify(mHost).getLoaderManager(); in onServiceDisconnected_hostNotAttached_shouldDoNothing()
[all …]
/frameworks/base/core/java/android/view/
DInputMonitor.java45 private final IInputMonitorHost mHost; field in InputMonitor
59 mHost.pilferPointers(); in pilferPointers()
76 mHost.dispose(); in dispose()
105 this.mHost = host; in InputMonitor()
107 NonNull.class, null, mHost); in InputMonitor()
122 return mHost; in getHost()
138 "host = " + mHost + ", " + in toString()
150 dest.writeStrongInterface(mHost); in writeToParcel()
172 this.mHost = host; in InputMonitor()
174 NonNull.class, null, mHost); in InputMonitor()
DInputFilter.java115 private IInputFilterHost mHost; field in InputFilter
166 if (mHost == null) { in sendInputEvent()
174 mHost.sendInputEvent(event, policyFlags); in sendInputEvent()
226 mHost = (IInputFilterHost) msg.obj; in handleMessage()
240 mHost = null; in handleMessage()
DInsetsController.java346 return mHost != null ? mHost.getRootViewContext() : null;
357 return mHost != null ? mHost.getRootViewContext().getPackageName() : null;
627 private final Host mHost; field in InsetsController
759 mHost.notifyAnimationRunningStateChanged(true);
781 mHost = host; in InsetsController()
816 mHost.dispatchWindowInsetsAnimationProgress(insets, in InsetsController()
842 mHost.notifyInsetsChanged(); in onFrameChanged()
876 mHost.notifyInsetsChanged(); in onStateChanged()
1039 mHost.isHandlingPointerEvent() /* fromUser */); in onControlsChanged()
1047 mHost.isHandlingPointerEvent() /* fromUser */); in onControlsChanged()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDimmerTests.java142 private MockSurfaceBuildingContainer mHost; field in DimmerTests
151 mHost = new MockSurfaceBuildingContainer(mWm); in setUp()
156 mDimmer = new SmoothDimmer(mHost, new MockAnimationAdapterFactory()); in setUp()
159 mDimmer = new LegacyDimmer(mHost, sSurfaceAnimatorStarter); in setUp()
165 mHost.addChild(mChild, 0); in testUpdateDimsAppliesCrop()
184 mHost.addChild(mChild, 0); in testDimBelowWithChildSurfaceCreatesSurfaceBelowChild_Smooth()
203 mHost.addChild(mChild, 0); in testDimBelowWithChildSurfaceCreatesSurfaceBelowChild_Legacy()
210 verify(mHost.getPendingTransaction()).setAlpha(dimLayer, alpha); in testDimBelowWithChildSurfaceCreatesSurfaceBelowChild_Legacy()
211 verify(mHost.getPendingTransaction()).setRelativeLayer(dimLayer, mChild.mControl, -1); in testDimBelowWithChildSurfaceCreatesSurfaceBelowChild_Legacy()
217 mHost.addChild(mChild, 0); in testDimBelowWithChildSurfaceDestroyedWhenReset_Smooth()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DLegacyDimmer.java54 return mHost.getSyncTransaction(); in getSyncTransaction()
59 return mHost.getPendingTransaction(); in getPendingTransaction()
64 mHost.commitPendingTransaction(); in commitPendingTransaction()
77 return mHost.makeAnimationLeash(); in makeAnimationLeash()
82 return mHost.getSurfaceControl(); in getAnimationLeashParent()
92 return mHost.getSurfaceControl(); in getParentSurfaceControl()
102 return mHost.getSurfaceWidth(); in getSurfaceWidth()
108 return mHost.getSurfaceHeight(); in getSurfaceHeight()
152 }, mHost.mWmService); in DimState()
186 return mHost.makeChildSurface(null) in makeDimLayer()
[all …]
DDimmer.java38 protected final WindowContainer mHost; field in Dimmer
41 mHost = host; in Dimmer()
51 return mHost; in getHost()
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
DAppWidgetHostActivity.java58 mHost = new AppWidgetHost(this, HOST_ID) { in onCreate()
70 mHost.deleteHost(); in onCreate()
85 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mHost.allocateAppWidgetId()); in discoverAppWidget()
115 mHost.deleteAppWidgetId(appWidgetId); in handleAppWidgetPickResult()
130 mHost.deleteAppWidgetId(appWidgetId); in handleAppWidgetConfigureResult()
136 AppWidgetHostView view = mHost.createView(this, appWidgetId, appWidget); in addAppWidgetView()
159 mHost.startListening(); in onStart()
164 mHost.stopListening(); in onStop()
179 mHost.deleteAppWidgetId(view.appWidgetId); in onContextItemSelected()
199 AppWidgetHost mHost; field in AppWidgetHostActivity
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeUi.java49 private final DozeHost mHost; field in DozeUi
80 mHost = host; in DozeUi()
101 mHost.pulseWhileDozing( in pulseWhileDozing()
132 mHost.dozeTimeTick(); in transitionTo()
134 mHandler.postDelayed(mWakeLock.wrap(mHost::dozeTimeTick), 500); in transitionTo()
151 mHost.startDozing(); in transitionTo()
154 mHost.stopDozing(); in transitionTo()
167 mHost.setAnimateWakeup(true); in updateAnimateWakeup()
173 mHost.setAnimateWakeup(mCanAnimateTransition && mDozeParameters.getAlwaysOn()); in updateAnimateWakeup()
224 mHost.dozeTimeTick(); in onTimeTick()
DDozeBrightnessHostForwarder.java26 private final DozeHost mHost; field in DozeBrightnessHostForwarder
31 mHost = host; in DozeBrightnessHostForwarder()
37 mHost.setDozeScreenBrightness(brightness); in setDozeScreenBrightness()
/frameworks/base/tests/utils/hostutils/src/com/android/tests/rollback/host/
DAbandonSessionsRule.java25 private final BaseHostJUnit4Test mHost; field in AbandonSessionsRule
28 mHost = host; in AbandonSessionsRule()
33 abandonSessions(mHost.getDevice()); in before()
39 abandonSessions(mHost.getDevice()); in after()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeTriggersTest.java90 private DozeHost mHost; field in DozeTriggersTest
144 mTriggers = new DozeTriggers(mContext, mHost, config, dozeParameters, in setupDozeTriggers()
157 doAnswer(invocation -> null).when(mHost).addCallback(captor.capture()); in testOnNotification_stillWorksAfterOneFailedProxCheck()
165 when(mHost.isPulsePending()).thenReturn(boolCaptor.getValue()) in testOnNotification_stillWorksAfterOneFailedProxCheck()
166 ).when(mHost).setPulsePending(boolCaptor.capture()); in testOnNotification_stillWorksAfterOneFailedProxCheck()
168 when(mHost.isPulsingBlocked()).thenReturn(false); in testOnNotification_stillWorksAfterOneFailedProxCheck()
189 doAnswer(invocation -> null).when(mHost).addCallback(mHostCallbackCaptor.capture()); in testOnNotification_startsPulseRequest()
198 verify(mHost).setPulsePending(true); in testOnNotification_startsPulseRequest()
208 doAnswer(invocation -> null).when(mHost).addCallback(mHostCallbackCaptor.capture()); in testOnNotification_cannotPulse_notificationSuppressed()
219 verify(mHost, never()).setPulsePending(anyBoolean()); in testOnNotification_cannotPulse_notificationSuppressed()
[all …]
DDozeUiTest.java67 private DozeHost mHost; field in DozeUiTest
87 mDozeUi = new DozeUi(mContext, mAlarmManager, mWakeLock, mHost, mHandler, in setUp()
116 verify(mHost).setAnimateWakeup(eq(false)); in transitionSetsAnimateWakeup_noAlwaysOn()
124 verify(mHost).setAnimateWakeup(eq(true)); in transitionSetsAnimateWakeup_alwaysOn()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java81 protected final QSHost mHost; field in AutoTileManager
113 mHost = host; in AutoTileManager()
115 mCurrentUser = mHost.getUserContext().getUser(); in AutoTileManager()
296 mHost.addTile(WORK, position);
300 mHost.removeTile(WORK);
315 mHost.addTile(SAVER);
327 mHost.addTile(HOTSPOT);
340 mHost.addTile(DEVICE_CONTROLS, position);
354 Collection<QSTile> tiles = mHost.getTiles(); in hasTile()
368 mHost.addTile(WALLET, position); in initWalletController()
[all …]
/frameworks/base/core/java/android/net/
DWebAddress.java54 private String mHost; field in WebAddress
84 mHost = ""; in WebAddress()
97 if (t != null) mHost = t; in WebAddress()
149 return mScheme + "://" + authInfo + mHost + port + mPath; in toString()
166 mHost = host; in setHost()
172 return mHost; in getHost()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
DSuggestionControllerMixin.java62 private final SuggestionControllerHost mHost; field in SuggestionControllerMixin
69 mHost = host; in SuggestionControllerMixin()
95 final LoaderManager loaderManager = mHost.getLoaderManager(); in onServiceConnected()
107 final LoaderManager loaderManager = mHost.getLoaderManager(); in onServiceDisconnected()
125 mHost.onSuggestionReady(data); in onLoadFinished()
DSuggestionControllerMixinCompat.java61 private final SuggestionControllerHost mHost; field in SuggestionControllerMixinCompat
68 mHost = host; in SuggestionControllerMixinCompat()
94 final LoaderManager loaderManager = mHost.getLoaderManager(); in onServiceConnected()
106 final LoaderManager loaderManager = mHost.getLoaderManager(); in onServiceDisconnected()
124 mHost.onSuggestionReady(data); in onLoadFinished()
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
DComplicationViewModel.java29 private final Complication.Host mHost; field in ComplicationViewModel
42 mHost = host; in ComplicationViewModel()
65 mHost.requestExitDream(); in exitDream()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DNightDisplayTileTest.kt52 @Mock private lateinit var mHost: QSHost variable in com.android.systemui.qs.tiles.NightDisplayTileTest
81 whenever(mHost.context).thenReturn(mContext) in setUp()
82 whenever(mHost.userContext).thenReturn(mContext) in setUp()
89 mHost, in setUp()
DAirplaneModeTileTest.kt59 private lateinit var mHost: QSHost variable in com.android.systemui.qs.tiles.AirplaneModeTileTest
89 Mockito.`when`(mHost.context).thenReturn(mContext) in setUp()
90 Mockito.`when`(mHost.userContext).thenReturn(mContext) in setUp()
93 mHost, in setUp()

123