Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/app/
DFragmentController.java48 private final FragmentHostCallback<?> mHost; field in FragmentController
58 mHost = callbacks; in FragmentController()
65 return mHost.getFragmentManagerImpl(); in getFragmentManager()
72 return mHost.getLoaderManagerImpl(); in getLoaderManager()
80 return mHost.mFragmentManager.findFragmentByWho(who); in findFragmentByWho()
88 mHost.mFragmentManager.attachController( in attachHost()
89 mHost, mHost /*container*/, parent); in attachHost()
104 return mHost.mFragmentManager.onCreateView(parent, name, context, attrs); in onCreateView()
111 mHost.mFragmentManager.noteStateNotSaved(); in noteStateNotSaved()
118 return mHost.mFragmentManager.saveAllState(); in saveAllState()
[all …]
DFragment.java339 FragmentHostCallback mHost; field in Fragment
756 return mHost == null ? null : mHost.getContext(); in getContext()
763 return mHost == null ? null : mHost.getActivity(); in getActivity()
772 return mHost == null ? null : mHost.onGetHost(); in getHost()
779 if (mHost == null) { in getResources()
782 return mHost.getContext().getResources(); in getResources()
864 return mHost != null && mAdded; in isAdded()
1023 if (mFragmentManager != null && mFragmentManager.mHost != null) { in setUserVisibleHint()
1024 context = mFragmentManager.mHost.getContext(); in setUserVisibleHint()
1065 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 …]
/frameworks/base/core/java/android/net/
DProxyInfo.java42 private final String mHost; field in ProxyInfo
97 mHost = host; in ProxyInfo()
109 mHost = LOCAL_HOST; in ProxyInfo()
124 mHost = LOCAL_HOST; in ProxyInfo()
136 mHost = LOCAL_HOST; in ProxyInfo()
155 mHost = host; in ProxyInfo()
168 mHost = source.getHost(); in ProxyInfo()
174 mHost = null; in ProxyInfo()
188 inetSocketAddress = new InetSocketAddress(mHost, mPort); in getSocketAddress()
206 return mHost; in getHost()
[all …]
DWebAddress.java53 private String mHost; field in WebAddress
83 mHost = ""; in WebAddress()
96 if (t != null) mHost = t; in WebAddress()
147 return mScheme + "://" + authInfo + mHost + port + mPath; in toString()
164 mHost = host; in setHost()
170 return mHost; in getHost()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/
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 …]
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 …]
/frameworks/base/core/java/android/view/
DInputMonitor.java56 private final IInputMonitorHost mHost; field in InputMonitor
62 mHost = host; in InputMonitor()
68 mHost = IInputMonitorHost.Stub.asInterface(in.readStrongBinder()); in InputMonitor()
96 mHost.pilferPointers(); in pilferPointers()
112 mHost.dispose(); in dispose()
122 out.writeStrongBinder(mHost.asBinder()); in writeToParcel()
132 return "InputMonitor{mName=" + mName + ", mChannel=" + mChannel + ", mHost=" + mHost + "}"; in toString()
DInputFilter.java114 private IInputFilterHost mHost; field in InputFilter
165 if (mHost == null) { in sendInputEvent()
173 mHost.sendInputEvent(event, policyFlags); in sendInputEvent()
225 mHost = (IInputFilterHost) msg.obj; in handleMessage()
239 mHost = null; in handleMessage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeUiTest.java67 private DozeHost mHost; field in DozeUiTest
82 mDozeUi = new DozeUi(mContext, mAlarmManager, mMachine, mWakeLock, mHost, mHandler, in setUp()
108 reset(mHost); in propagatesAnimateScreenOff_noAlwaysOn()
113 verify(mHost).setAnimateScreenOff(eq(false)); in propagatesAnimateScreenOff_noAlwaysOn()
118 reset(mHost); in propagatesAnimateScreenOff_alwaysOn()
124 verify(mHost).setAnimateScreenOff(eq(true)); in propagatesAnimateScreenOff_alwaysOn()
128 verify(mHost).setAnimateScreenOff(eq(false)); in propagatesAnimateScreenOff_alwaysOn()
135 reset(mHost); in neverAnimateScreenOff_whenNotSupported()
137 mDozeUi = new DozeUi(mContext, mAlarmManager, mMachine, mWakeLock, mHost, mHandler, in neverAnimateScreenOff_whenNotSupported()
143 verify(mHost, never()).setAnimateScreenOff(eq(false)); in neverAnimateScreenOff_whenNotSupported()
[all …]
DDozeTriggersTest.java60 private DozeHostFake mHost; field in DozeTriggersTest
80 mHost = new DozeHostFake(); in setUp()
87 mTriggers = new DozeTriggers(mContext, mMachine, mHost, mAlarmManager, mConfig, mParameters, in setUp()
99 mHost.callback.onNotificationAlerted(); in testOnNotification_stillWorksAfterOneFailedProxCheck()
106 mHost.callback.onNotificationAlerted(); in testOnNotification_stillWorksAfterOneFailedProxCheck()
145 verify(mHost).setAodDimmingScrim(eq(255)); in testOnSensor_whenDockedWithNearAndDoubleTapScreen_shouldWakeUp()
DDozeDockHandlerTest.java56 private DozeHostFake mHost; field in DozeDockHandlerTest
71 mHost = spy(new DozeHostFake()); in setUp()
76 mDockHandler = new DozeDockHandler(mContext, mMachine, mHost, mConfig, in setUp()
119 verify(mHost).stopPulsing(); in testOnEvent_dockedHideWhenPulsing_requestPulseOut()
130 verify(mHost).stopPulsing(); in testOnEvent_undockedWhenPulsing_requestPulseOut()
140 verify(mHost, never()).stopPulsing(); in testOnEvent_undockedWhenDoze_neverRequestPulseOut()
213 verify(mHost).stopPulsing(); in testTransitionToPulsing_whenDockedHide_requestPulseOut()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeUi.java44 private final DozeHost mHost; field in DozeUi
71 mHost = host; in DozeUi()
87 mHost.setAnimateScreenOff(controlScreenOff); in updateAnimateScreenOff()
92 mHost.pulseWhileDozing( in pulseWhileDozing()
122 mHost.dozeTimeTick(); in transitionTo()
124 mHandler.postDelayed(mWakeLock.wrap(mHost::dozeTimeTick), 500); in transitionTo()
140 mHost.startDozing(); in transitionTo()
143 mHost.stopDozing(); in transitionTo()
156 mHost.setAnimateWakeup(true); in updateAnimateWakeup()
162 mHost.setAnimateWakeup(mCanAnimateTransition && mDozeParameters.getAlwaysOn()); in updateAnimateWakeup()
[all …]
DDozeBrightnessHostForwarder.java24 private final DozeHost mHost; field in DozeBrightnessHostForwarder
28 mHost = host; in DozeBrightnessHostForwarder()
34 mHost.setDozeScreenBrightness(brightness); in setDozeScreenBrightness()
/frameworks/base/services/core/java/com/android/server/wm/
DDimmer.java52 return mHost.getPendingTransaction(); in getPendingTransaction()
57 mHost.commitPendingTransaction(); in commitPendingTransaction()
70 return mHost.makeAnimationLeash(); in makeAnimationLeash()
75 return mHost.getSurfaceControl(); in getAnimationLeashParent()
85 return mHost.getSurfaceControl(); in getParentSurfaceControl()
95 return mHost.getSurfaceWidth(); in getSurfaceWidth()
101 return mHost.getSurfaceHeight(); in getSurfaceHeight()
141 }, mHost.mWmService); in DimState()
149 private WindowContainer mHost; field in Dimmer
167 mHost = host; in Dimmer()
[all …]
/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/statusbar/phone/
DAutoTileManager.java50 private final QSTileHost mHost; field in AutoTileManager
69 mHost = host; in AutoTileManager()
89 mHost.addTile(INVERSION); in AutoTileManager()
133 mHost.addTile(WORK);
150 mHost.addTile(SAVER);
162 mHost.addTile(HOTSPOT);
189 mHost.addTile(NIGHT);
211 mHost.addTile(CAST);
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDimmerTests.java104 private MockSurfaceBuildingContainer mHost; field in DimmerTests
119 mHost = new MockSurfaceBuildingContainer(mWm); in setUp()
122 mDimmer = new Dimmer(mHost, mSurfaceAnimatorStarter); in setUp()
178 mHost.addChild(child, 0); in testDimAboveWithChildCreatesSurfaceAboveChild()
193 mHost.addChild(child, 0); in testDimBelowWithChildSurfaceCreatesSurfaceBelowChild()
208 mHost.addChild(child, 0); in testDimBelowWithChildSurfaceDestroyedWhenReset()
218 verify(mHost.getPendingTransaction()).remove(dimLayer); in testDimBelowWithChildSurfaceDestroyedWhenReset()
224 mHost.addChild(child, 0); in testDimBelowWithChildSurfaceNotDestroyedWhenPersisted()
241 mHost.addChild(child, 0); in testDimUpdateWhileDimming()
262 mHost.addChild(child, 0); in testRemoveDimImmediately()
/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/native/services/inputflinger/host/
DInputFlinger.cpp41 mHost = new InputHost(); in InputFlinger()
42 mHost->registerInputDriver(new InputDriver(INPUT_INSTANCE_EVDEV)); in InputFlinger()
66 mHost->dump(result); in dumpInternal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServices.java62 private final QSTileHost mHost; field in TileServices
67 mHost = host; in TileServices()
68 mContext = mHost.getContext(); in TileServices()
80 return mHost; in getHost()
109 mMainHandler.post(() -> mHost.getIconController() in freeService()
224 mHost.forceCollapsePanels(); in onShowDialog()
244 mHost.forceCollapsePanels(); in onStartActivity()
267 StatusBarIconController iconController = mHost.getIconController(); in updateStatusIcon()
/frameworks/base/core/java/android/net/nsd/
DNsdServiceInfo.java48 private InetAddress mHost; field in NsdServiceInfo
83 return mHost; in getHost()
88 mHost = s; in setHost()
315 .append(", host: ").append(mHost) in toString()
334 if (mHost != null) { in writeToParcel()
336 dest.writeByteArray(mHost.getAddress()); in writeToParcel()
367 info.mHost = InetAddress.getByAddress(in.createByteArray());
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSPanel.java87 protected QSTileHost mHost; field in QSPanel
184 if (mHost != null) { in onAttachedToWindow()
185 setTiles(mHost.getTiles()); in onAttachedToWindow()
196 if (mHost != null) { in onDetachedFromWindow()
197 mHost.removeCallback(this); in onDetachedFromWindow()
211 setTiles(mHost.getTiles()); in onTilesChanged()
240 return mHost.createTile(subPanel); in getTile()
268 mHost = host; in setHost()
269 mHost.addCallback(this); in setHost()
270 setTiles(mHost.getTiles()); in setHost()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSPanelTest.java63 private QSTileHost mHost; field in QSPanelTest
87 when(mHost.getTiles()).thenReturn(Collections.emptyList()); in setup()
88 when(mHost.createTileView(any(), anyBoolean())).thenReturn(mQSTileView); in setup()
90 mQsPanel.setHost(mHost, mCustomizer); in setup()

123