Home
last modified time | relevance | path

Searched refs:mService (Results 1 – 25 of 83) sorted by relevance

1234

/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java55 private final IDevicePolicyManager mService; field in DevicePolicyManager
59 mService = IDevicePolicyManager.Stub.asInterface( in DevicePolicyManager()
66 return me.mService != null ? me : null; in create()
132 if (mService != null) { in isAdminActive()
134 return mService.isAdminActive(who); in isAdminActive()
148 if (mService != null) { in getActiveAdmins()
150 return mService.getActiveAdmins(); in getActiveAdmins()
162 if (mService != null) { in packageHasActiveAdmins()
164 return mService.packageHasActiveAdmins(packageName); in packageHasActiveAdmins()
179 if (mService != null) { in removeActiveAdmin()
[all …]
/frameworks/base/services/java/com/android/server/wm/
DSession.java51 final WindowManagerService mService; field in Session
63 mService = service; in Session()
76 synchronized (mService.mWindowMap) { in Session()
77 if (mService.mInputMethodManager == null && mService.mHaveInputMethods) { in Session()
80 mService.mInputMethodManager = IInputMethodManager.Stub.asInterface(b); in Session()
87 if (mService.mInputMethodManager != null) { in Session()
88 mService.mInputMethodManager.addClient(client, inputContext, in Session()
97 if (mService.mInputMethodManager != null) { in Session()
98 mService.mInputMethodManager.removeClient(client); in Session()
125 if (mService.mInputMethodManager != null) { in binderDied()
[all …]
DWindowAnimator.java35 final WindowManagerService mService; field in WindowAnimator
83 mService = service; in WindowAnimator()
89 if ((mService.mWallpaperTarget == w && mService.mLowerWallpaperTarget == null) in hideWallpapersLocked()
90 || mService.mWallpaperTarget == null) { in hideWallpapersLocked()
91 for (final WindowToken token : mService.mWallpaperTokens) { in hideWallpapersLocked()
96 mService.dispatchWallpaperVisibility(wallpaper, false); in hideWallpapersLocked()
119 if (mService.mWallpaperTarget == target in testWallpaperAndBackgroundLocked()
120 || mService.mLowerWallpaperTarget == target in testWallpaperAndBackgroundLocked()
121 || mService.mUpperWallpaperTarget == target) { in testWallpaperAndBackgroundLocked()
122 final int N = mService.mWindows.size(); in testWallpaperAndBackgroundLocked()
[all …]
DInputMonitor.java35 private final WindowManagerService mService; field in InputMonitor
61 mService = service; in InputMonitor()
73 synchronized (mService.mWindowMap) { in notifyInputChannelBroken()
77 mService.removeWindowLocked(windowState.mSession, windowState); in notifyInputChannelBroken()
90 synchronized (mService.mWindowMap) { in notifyANR()
112 mService.saveANRStateLocked(appWindowToken, windowState); in notifyANR()
166 final ArrayList<WindowState> windows = mService.mWindows; in updateInputWindowsLw()
169 final boolean inDrag = (mService.mDragState != null); in updateInputWindowsLw()
174 final InputWindowHandle dragWindowHandle = mService.mDragState.mDragWindowHandle; in updateInputWindowsLw()
183 final int NFW = mService.mFakeWindows.size(); in updateInputWindowsLw()
[all …]
DDragState.java44 final WindowManagerService mService; field in DragState
66 mService = service; in DragState()
95 mService.mInputManager.registerInputChannel(mServerChannel, null); in register()
96 mInputEventReceiver = mService.new DragInputEventReceiver(mClientChannel, in register()
97 mService.mH.getLooper()); in register()
128 mDragWindowHandle.frameRight = mService.mCurDisplayWidth; in register()
129 mDragWindowHandle.frameBottom = mService.mCurDisplayHeight; in register()
135 mService.pauseRotationLocked(); in register()
144 mService.mInputManager.unregisterInputChannel(mServerChannel); in unregister()
159 mService.resumeRotationLocked(); in unregister()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothHeadset.java221 private IBluetoothHeadset mService; field in BluetoothHeadset
275 if (mService != null && isEnabled() && in connect()
278 return mService.connect(device); in connect()
284 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in connect()
316 if (mService != null && isEnabled() && in disconnect()
319 return mService.disconnect(device); in disconnect()
325 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in disconnect()
334 if (mService != null && isEnabled()) { in getConnectedDevices()
336 return mService.getConnectedDevices(); in getConnectedDevices()
342 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in getConnectedDevices()
[all …]
DBluetoothA2dp.java106 private IBluetoothA2dp mService; field in BluetoothA2dp
119 mService = IBluetoothA2dp.Stub.asInterface(b); in BluetoothA2dp()
128 mService = null; in BluetoothA2dp()
160 if (mService != null && isEnabled() && in connect()
163 return mService.connect(device); in connect()
169 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in connect()
201 if (mService != null && isEnabled() && in disconnect()
204 return mService.disconnect(device); in disconnect()
210 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in disconnect()
219 if (mService != null && isEnabled()) { in getConnectedDevices()
[all …]
DBluetoothInputDevice.java96 private IBluetooth mService; field in BluetoothInputDevice
108 mService = IBluetooth.Stub.asInterface(b); in BluetoothInputDevice()
117 mService = null; in BluetoothInputDevice()
147 if (mService != null && isEnabled() && in connect()
150 return mService.connectInputDevice(device); in connect()
156 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in connect()
188 if (mService != null && isEnabled() && in disconnect()
191 return mService.disconnectInputDevice(device); in disconnect()
197 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in disconnect()
206 if (mService != null && isEnabled()) { in getConnectedDevices()
[all …]
DBluetoothPan.java117 private IBluetooth mService; field in BluetoothPan
129 mService = IBluetooth.Stub.asInterface(b); in BluetoothPan()
138 mService = null; in BluetoothPan()
166 if (mService != null && isEnabled() && in connect()
169 return mService.connectPanDevice(device); in connect()
175 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in connect()
207 if (mService != null && isEnabled() && in disconnect()
210 return mService.disconnectPanDevice(device); in disconnect()
216 if (mService == null) Log.w(TAG, "Proxy not attached to service"); in disconnect()
225 if (mService != null && isEnabled()) { in getConnectedDevices()
[all …]
DBluetoothHealth.java148 if (mService != null) { in registerAppConfiguration()
150 result = mService.registerAppConfiguration(config, wrapper); in registerAppConfiguration()
172 if (mService != null && isEnabled() && config != null) { in unregisterAppConfiguration()
174 result = mService.unregisterAppConfiguration(config); in unregisterAppConfiguration()
200 if (mService != null && isEnabled() && isValidDevice(device) && in connectChannelToSource()
203 return mService.connectChannelToSource(device, config); in connectChannelToSource()
229 if (mService != null && isEnabled() && isValidDevice(device) && in connectChannelToSink()
232 return mService.connectChannelToSink(device, config, channelType); in connectChannelToSink()
258 if (mService != null && isEnabled() && isValidDevice(device) && in disconnectChannel()
261 return mService.disconnectChannel(device, config, channelId); in disconnectChannel()
[all …]
DBluetoothPbap.java70 private IBluetoothPbap mService; field in BluetoothPbap
151 if (mService != null) { in getState()
153 return mService.getState(); in getState()
170 if (mService != null) { in getClient()
172 return mService.getClient(); in getClient()
188 if (mService != null) { in isConnected()
190 return mService.isConnected(device); in isConnected()
206 if (mService != null) { in disconnect()
208 mService.disconnect(); in disconnect()
241 mService = IBluetoothPbap.Stub.asInterface(service);
[all …]
/frameworks/base/core/java/android/net/
DConnectivityManager.java301 private final IConnectivityManager mService; field in ConnectivityManager
362 mService.setNetworkPreference(preference); in setNetworkPreference()
369 return mService.getNetworkPreference(); in getNetworkPreference()
385 return mService.getActiveNetworkInfo(); in getActiveNetworkInfo()
394 return mService.getActiveNetworkInfoForUid(uid); in getActiveNetworkInfoForUid()
402 return mService.getNetworkInfo(networkType); in getNetworkInfo()
410 return mService.getAllNetworkInfo(); in getAllNetworkInfo()
419 return mService.getActiveLinkProperties(); in getActiveLinkProperties()
428 return mService.getLinkProperties(networkType); in getLinkProperties()
437 return mService.setRadios(turnOn); in setRadios()
[all …]
DThrottleManager.java121 return mService.getResetTime(iface); in getResetTime()
134 return mService.getPeriodStartTime(iface); in getPeriodStartTime()
150 return mService.getByteCount(iface, direction, period, ago); in getByteCount()
163 return mService.getCliffThreshold(iface, cliff); in getCliffThreshold()
176 return mService.getCliffLevel(iface, cliff); in getCliffLevel()
188 return mService.getHelpUri(); in getHelpUri()
195 private IThrottleManager mService; field in ThrottleManager
212 mService = service; in ThrottleManager()
/frameworks/base/test-runner/src/android/test/
DServiceTestCase.java114 private T mService; field in ServiceTestCase
127 return mService; in getService()
154 mService = null; in setupService()
156 mService = mServiceClass.newInstance(); in setupService()
158 assertNotNull(mService); in setupService()
163 mService.attach( in setupService()
172 assertNotNull(mService); in setupService()
192 assertNotNull(mService); in startService()
195 mService.onCreate(); in startService()
198 mService.onStartCommand(intent, 0, mServiceId); in startService()
[all …]
/frameworks/base/core/java/android/app/
DWallpaperInfo.java52 final ResolveInfo mService; field in WallpaperInfo
84 mService = service; in WallpaperInfo()
150 mService = ResolveInfo.CREATOR.createFromParcel(source); in WallpaperInfo()
157 return mService.serviceInfo.packageName; in getPackageName()
165 return mService.serviceInfo.name; in getServiceName()
173 return mService.serviceInfo; in getServiceInfo()
180 return new ComponentName(mService.serviceInfo.packageName, in getComponent()
181 mService.serviceInfo.name); in getComponent()
191 return mService.loadLabel(pm); in loadLabel()
201 return mService.loadIcon(pm); in loadIcon()
[all …]
DUiModeManager.java111 private IUiModeManager mService; field in UiModeManager
114 mService = IUiModeManager.Stub.asInterface( in UiModeManager()
134 if (mService != null) { in enableCarMode()
136 mService.enableCarMode(flags); in enableCarMode()
157 if (mService != null) { in disableCarMode()
159 mService.disableCarMode(flags); in disableCarMode()
174 if (mService != null) { in getCurrentModeType()
176 return mService.getCurrentModeType(); in getCurrentModeType()
199 if (mService != null) { in setNightMode()
201 mService.setNightMode(mode); in setNightMode()
[all …]
DAlarmManager.java83 private final IAlarmManager mService; field in AlarmManager
89 mService = service; in AlarmManager()
137 mService.set(type, triggerAtMillis, operation); in set()
192 mService.setRepeating(type, triggerAtMillis, intervalMillis, operation); in setRepeating()
258 mService.setInexactRepeating(type, triggerAtMillis, intervalMillis, operation); in setInexactRepeating()
275 mService.remove(operation); in cancel()
288 mService.setTime(millis); in setTime()
301 mService.setTimeZone(timeZone); in setTimeZone()
/frameworks/base/wifi/java/android/net/wifi/
DWifiManager.java484 IWifiManager mService; field in WifiManager
507 mService = service; in WifiManager()
531 return mService.getConfiguredNetworks(); in getConfiguredNetworks()
591 return mService.addOrUpdateNetwork(config); in addOrUpdateNetwork()
607 return mService.removeNetwork(netId); in removeNetwork()
627 return mService.enableNetwork(netId, disableOthers); in enableNetwork()
642 return mService.disableNetwork(netId); in disableNetwork()
655 mService.disconnect(); in disconnect()
670 mService.reconnect(); in reconnect()
685 mService.reassociate(); in reassociate()
[all …]
/frameworks/base/core/java/android/os/
DSystemVibrator.java29 private final IVibratorService mService; field in SystemVibrator
33 mService = IVibratorService.Stub.asInterface( in SystemVibrator()
39 if (mService == null) { in hasVibrator()
44 return mService.hasVibrator(); in hasVibrator()
52 if (mService == null) { in vibrate()
57 mService.vibrate(milliseconds, mToken); in vibrate()
65 if (mService == null) { in vibrate()
74 mService.vibratePattern(pattern, repeat, mToken); in vibrate()
85 if (mService == null) { in cancel()
89 mService.cancelVibrate(mToken); in cancel()
DPowerManager.java309 mService.acquireWakeLock(mFlags, mToken, mTag, mWorkSource); in acquireLocked()
343 mService.releaseWakeLock(mToken, flags); in release()
380 mService.updateWakeLockWorkSource(mToken, mWorkSource); in setWorkSource()
402 mService.releaseWakeLock(mToken, 0); in finalize()
464 mService.userActivity(when, noChangeLights); in userActivity()
480 mService.goToSleep(time); in goToSleep()
495 mService.setBacklightBrightness(brightness); in setBacklightBrightness()
520 return mService.getSupportedWakeLockFlags(); in getSupportedWakeLockFlags()
540 return mService.isScreenOn(); in isScreenOn()
557 mService.reboot(reason); in reboot()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java70 private final StatusBarManager mService; field in PhoneStatusBarPolicy
139 mService = (StatusBarManager)context.getSystemService(Context.STATUS_BAR_SERVICE); in PhoneStatusBarPolicy()
158 mService.setIcon("tty", R.drawable.stat_sys_tty_mode, 0, null); in PhoneStatusBarPolicy()
159 mService.setIconVisibility("tty", false); in PhoneStatusBarPolicy()
162 mService.setIcon("cdma_eri", R.drawable.stat_sys_roaming_cdma_0, 0, null); in PhoneStatusBarPolicy()
163 mService.setIconVisibility("cdma_eri", false); in PhoneStatusBarPolicy()
174 mService.setIcon("bluetooth", bluetoothIcon, 0, null); in PhoneStatusBarPolicy()
175 mService.setIconVisibility("bluetooth", mBluetoothEnabled); in PhoneStatusBarPolicy()
178 mService.setIcon("alarm_clock", R.drawable.stat_sys_alarm, 0, null); in PhoneStatusBarPolicy()
179 mService.setIconVisibility("alarm_clock", false); in PhoneStatusBarPolicy()
[all …]
/frameworks/base/services/java/com/android/server/am/
DActivityStack.java142 final ActivityManagerService mService; field in ActivityStack
313 synchronized (mService) {
314 if (mService.isSleeping()) {
326 synchronized (mService) {
328 mService.logAppTooSlow(r.app, r.pauseTime,
336 if (mService.mDidDexOpt) {
337 mService.mDidDexOpt = false;
351 synchronized (mService) {
353 mService.logAppTooSlow(r.app, r.launchTickTime,
370 if (mService.mDidDexOpt) {
[all …]
DCompatModeDialog.java32 final ActivityManagerService mService; field in CompatModeDialog
47 mService = service; in CompatModeDialog()
55 synchronized (mService) { in CompatModeDialog()
56 mService.mCompatModePackages.setPackageScreenCompatModeLocked( in CompatModeDialog()
68 synchronized (mService) { in CompatModeDialog()
69 mService.mCompatModePackages.setPackageAskCompatModeLocked( in CompatModeDialog()
81 synchronized (mService) { in updateControls()
82 int mode = mService.mCompatModePackages.computeCompatModeLocked(mAppInfo); in updateControls()
84 boolean ask = mService.mCompatModePackages.getPackageAskCompatModeLocked( in updateControls()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DBordeauxManagerService.java45 static private IBordeauxService mService = null; field in BordeauxManagerService
65 mService = null; in release()
71 if (mService == null) bindServices(context); in getService()
72 return mService; in getService()
77 if (mService == null) { in getRanker()
84 mService.getRanker(name)); in getRanker()
93 if (mService == null) { in getClassifier()
99 ILearning_MulticlassPA.Stub.asInterface(mService.getClassifier(name)); in getClassifier()
114 mService = IBordeauxService.Stub.asInterface(service);
120 mService = null;
/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java222 private final IUsbManager mService; field in UsbManager
229 mService = service; in UsbManager()
243 mService.getDeviceList(bundle); in getDeviceList()
265 ParcelFileDescriptor pfd = mService.openDevice(deviceName); in openDevice()
288 UsbAccessory accessory = mService.getCurrentAccessory(); in getAccessoryList()
308 return mService.openAccessory(accessory); in openAccessory()
326 return mService.hasDevicePermission(device); in hasPermission()
344 return mService.hasAccessoryPermission(accessory); in hasPermission()
371 mService.requestDevicePermission(device, mContext.getPackageName(), pi); in requestPermission()
397 mService.requestAccessoryPermission(accessory, mContext.getPackageName(), pi); in requestPermission()
[all …]

1234