Home
last modified time | relevance | path

Searched refs:mServices (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIApplication.java61 private SystemUI[] mServices; field in SystemUIApplication
119 final int N = mServices.length; in onCreate()
121 mServices[i].onBootCompleted(); in onCreate()
182 mServices = new SystemUI[services.length]; in startServicesIfNeeded()
214 mServices[i] = obj; in startServicesIfNeeded()
223 if (DEBUG) Log.d(TAG, "running: " + mServices[i]); in startServicesIfNeeded()
224 mServices[i].start(); in startServicesIfNeeded()
233 mServices[i].onBootCompleted(); in startServicesIfNeeded()
236 dumpManager.registerDumpable(mServices[i].getClass().getName(), mServices[i]); in startServicesIfNeeded()
248 int len = mServices.length; in onConfigurationChanged()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServices.java58 private final ArrayMap<CustomTile, TileServiceManager> mServices = new ArrayMap<>(); field in TileServices
98 synchronized (mServices) { in getTileWrapper()
99 mServices.put(tile, service); in getTileWrapper()
115 synchronized (mServices) { in freeService()
118 mServices.remove(tile); in freeService()
135 synchronized (mServices) { in recalculateBindAllowance()
136 services = new ArrayList<>(mServices.values()); in recalculateBindAllowance()
174 synchronized (mServices) { in requestListening()
180 TileServiceManager service = mServices.get(customTile); in requestListening()
197 synchronized (mServices) { in updateQsTile()
[all …]
DTileServiceManager.java59 private final TileServices mServices; field in TileServiceManager
85 mServices = tileServices; in TileServiceManager()
93 Context context = mServices.getContext(); in TileServiceManager()
112 Context context = mServices.getContext(); in startLifecycleManagerAndAddTile()
151 mServices.recalculateBindAllowance(); in setBindRequested()
164 mServices.recalculateBindAllowance(); in setLastUpdate()
169 mServices.getContext().unregisterReceiver(mUninstallReceiver); in handleDestroy()
259 mServices.recalculateBindAllowance();
292 mServices.getHost().removeTile(component);
/frameworks/base/services/core/java/com/android/server/am/
DProcessServiceRecord.java92 final ArraySet<ServiceRecord> mServices = new ArraySet<>(); field in ProcessServiceRecord
242 boolean added = mServices.add(record); in startService()
256 return mServices.remove(record); in stopService()
263 mServices.clear(); in stopAllServices()
274 return mServices.size(); in numberOfRunningServices()
283 return mServices.valueAt(index); in getRunningServiceAt()
332 if (mServices.isEmpty()) { in updateBoundClientUids()
338 final int serviceCount = mServices.size(); in updateBoundClientUids()
341 mServices.valueAt(j).getConnections(); in updateBoundClientUids()
424 if (mServices.size() > 0) { in dump()
[all …]
DProcessRecord.java327 final ProcessServiceRecord mServices; field in ProcessRecord
468 mServices.dump(pw, prefix, nowUptime); in dump()
507 mServices = new ProcessServiceRecord(this); in ProcessRecord()
933 mServices.onCleanupApplicationRecordLocked(); in onCleanupApplicationRecordLSP()
948 return mServices.hasForegroundServices(); in isInterestingToUserLocked()
1208 mService.mServices.updateServiceConnectionActivitiesLocked(mServices); in updateServiceConnectionActivities()
1232 mService.mServices.updateServiceConnectionActivitiesLocked(mServices); in updateProcessInfo()
DServiceRecord.java644 app.mServices.updateBoundClientUids(); in setProcess()
648 final ProcessServiceRecord psr = proc.mServices; in setProcess()
668 proc.mServices.updateBoundClientUids(); in setProcess()
686 app.mServices.addBoundClientUid(c.clientUid); in addConnection()
694 app.mServices.updateBoundClientUids(); in removeConnection()
1041 ams.mServices.killMisbehavingService(record, in postNotification()
DActiveServices.java1741 final ProcessServiceRecord psr = r.app.mServices; in setServiceForegroundInnerLocked()
1995 updateServiceForegroundLocked(r.app.mServices, true); in setServiceForegroundInnerLocked()
2568 final ProcessServiceRecord psr = service.app.mServices; in stopServiceAndUpdateAllowlistManagerLocked()
2589 updateServiceClientActivitiesLocked(proc.mServices, null, false); in updateServiceConnectionActivitiesLocked()
2788 final ProcessServiceRecord clientPsr = b.client.mServices; in bindServiceLocked()
2806 updateServiceClientActivitiesLocked(s.app.mServices, c, true); in bindServiceLocked()
2829 ProcessServiceRecord servicePsr = s.app.mServices; in bindServiceLocked()
2960 final ProcessServiceRecord psr = srec.app.mServices; in updateServiceGroupLocked()
3006 final ProcessServiceRecord psr = app.mServices; in unbindServiceLocked()
3404 psr = r.app.mServices; in bumpServiceExecutingLocked()
[all …]
DProcessStatsService.java204 final ArrayMap<String, ServiceState> services = pkg.mServices; in setMemFactorLocked()
419 final int NSRVS = pkgState.mServices.size(); in readLF()
421 Slog.w(TAG, " Service " + pkgState.mServices.keyAt(isvc) in readLF()
422 + ": " + pkgState.mServices.valueAt(isvc)); in readLF()
428 + pkgState.mServices.keyAt(iasc) in readLF()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java59 private MockSystemServices mServices; field in DpmTestBase
71 mServices = new MockSystemServices(mRealTestContext, "test-data"); in setFixtures()
72 mMockContext = new DpmMockContext(mServices, mRealTestContext); in setFixtures()
90 return mServices; in getServices()
152 doReturn(pi).when(mServices.ipackageManager).getPackageInfo(packageName, 0, userId); in markPackageAsInstalled()
154 doReturn(ai.uid).when(mServices.packageManager).getPackageUidAsUser(packageName, userId); in markPackageAsInstalled()
222 doReturn(ai).when(mServices.ipackageManager).getApplicationInfo( in setUpPackageManagerForFakeAdmin()
249 doReturn(aci).when(mServices.ipackageManager).getReceiverInfo( in setUpPackageManagerForFakeAdmin()
254 doReturn(new String[] {admin.getPackageName()}).when(mServices.ipackageManager) in setUpPackageManagerForFakeAdmin()
256 doReturn(new String[] {admin.getPackageName()}).when(mServices.packageManager) in setUpPackageManagerForFakeAdmin()
DDevicePolicyManagerServiceTestable.java76 private final MockSystemServices mServices; field in DevicePolicyManagerServiceTestable.OwnersTestable.MockInjector
79 mServices = services; in MockInjector()
84 return mServices.dataDir; in environmentGetDataSystemDirectory()
89 return mServices.environment.getUserSystemDirectory(userId); in environmentGetUserSystemDirectory()
/frameworks/base/services/core/java/com/android/server/
DSystemServiceManager.java78 private final ArrayList<SystemService> mServices = new ArrayList<SystemService>(); field in SystemServiceManager
201 mServices.add(service); in startService()
229 final int serviceLen = mServices.size(); in startBootPhase()
231 final SystemService service = mServices.get(i); in startBootPhase()
375 final int serviceLen = mServices.size(); in onUser()
377 final SystemService service = mServices.get(i); in onUser()
520 final int startedLen = mServices.size(); in dump()
525 final SystemService service = mServices.get(i); in dump()
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattServer.java59 private List<BluetoothGattService> mServices; field in BluetoothGattServer
145 mServices.add(tmp);
396 mServices = new ArrayList<BluetoothGattService>(); in BluetoothGattServer()
405 for (BluetoothGattService svc : mServices) { in getCharacteristicByHandle()
421 for (BluetoothGattService svc : mServices) { in getDescriptorByHandle()
544 for (BluetoothGattService svc : mServices) { in getService()
795 mServices.remove(intService); in removeService()
816 mServices.clear(); in clearServices()
833 return mServices; in getServices()
850 for (BluetoothGattService service : mServices) { in getService()
DBluetoothGatt.java85 private List<BluetoothGattService> mServices; field in BluetoothGatt
323 mServices.addAll(services);
326 for (BluetoothGattService fixedService : mServices) {
741 mServices = new ArrayList<BluetoothGattService>(); in BluetoothGatt()
770 for (BluetoothGattService svc : mServices) { in getService()
788 for (BluetoothGattService svc : mServices) { in getCharacteristicById()
804 for (BluetoothGattService svc : mServices) { in getDescriptorById()
1067 mServices.clear(); in discoverServices()
1094 mServices.clear(); in discoverServiceByUuid()
1121 for (BluetoothGattService service : mServices) { in getServices()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DRegisteredServicesCacheTest.java214 private SparseArray<Map<ResolveInfo, ServiceInfo<TestServiceType>>> mServices field in RegisteredServicesCacheTest.TestServicesCache
230 Map<ResolveInfo, ServiceInfo<TestServiceType>> map = mServices in queryIntentServices()
264 Map<ResolveInfo, ServiceInfo<TestServiceType>> map = mServices.get(userId); in addServiceForQuerying()
267 mServices.put(userId, map); in addServiceForQuerying()
273 mServices.clear(); in clearServicesForQuerying()
292 int size = mServices.size(); in parseServiceInfo()
294 Map<ResolveInfo, ServiceInfo<TestServiceType>> map = mServices.valueAt(i); in parseServiceInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DServiceListing.java52 private final List<ServiceInfo> mServices = new ArrayList<>(); field in ServiceListing
128 mServices.clear(); in reload()
151 mServices.add(info); in reload()
154 callback.onServicesReloaded(mServices); in reload()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
DXeroxPrintServiceRecommendationPlugin.java35 private final String[] mServices = new String[]{"_ipp._tcp"}; field in XeroxPrintServiceRecommendationPlugin
40 …mServiceResolver = new ServiceResolver(context, this, mVendorInfo, mServices, new String[]{PDL__PD… in XeroxPrintServiceRecommendationPlugin()
/frameworks/base/tests/ActivityManagerPerfTests/stub-app/src/com/android/stubs/am/
DInitService.java60 final ArrayMap<String, MyServiceConnection> mServices = field in InitService.Stub
93 MyServiceConnection c = mServices.remove(pkg); in handleMessage()
143 if (!mServices.containsKey(targetPackage)) { in handleBindService()
154 mServices.put(targetPackage, c); in handleBindService()
166 c = mServices.get(target); in handleUnbindService()
271 MyServiceConnection c = sStub.mServices.remove(name.getPackageName()); in onServiceDisconnected()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DMockingOomAdjusterTests.java328 app.mServices.startExecutingService(mock(ServiceRecord.class)); in testUpdateOomAdj_DoOne_ExecutingService()
411 app.mServices.setHasForegroundServices(true, ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION); in testUpdateOomAdj_DoOne_FgServiceLocation()
424 app.mServices.setHasForegroundServices(true, 0); in testUpdateOomAdj_DoOne_FgService()
450 app.mServices.setHasForegroundServices(true, 0); in testUpdateOomAdj_DoOne_PerceptibleRecent()
536 app.mServices.setHasClientActivities(true); in testUpdateOomAdj_DoOne_ClientActivities()
548 app.mServices.setTreatLikeActivity(true); in testUpdateOomAdj_DoOne_TreatLikeActivity()
565 app.mServices.startService(s); in testUpdateOomAdj_DoOne_ServiceB()
609 app.mServices.startService(s); in testUpdateOomAdj_DoOne_Service_Started()
693 client.mServices.setTreatLikeActivity(true); in testUpdateOomAdj_DoOne_Service_CachedActivity()
747 client.mServices.startExecutingService(mock(ServiceRecord.class)); in testUpdateOomAdj_DoOne_Service_Bound_ImportantFg()
[all …]
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DTransport.java56 private final SparseArray<Callback> mServices = new SparseArray<Callback>(); field in Transport
186 mServices.put(service, callback); in registerService()
199 mServices.remove(service); in unregisterService()
206 callback = mServices.get(service); in dispatchMessageReceived()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DAddPrinterActivity.java423 private @NonNull List<PrintServiceInfo> mServices; field in AddPrinterActivity.PrintServiceInfoAdapter
429 mServices = Collections.emptyList(); in PrintServiceInfoAdapter()
439 mServices = Collections.emptyList(); in updateData()
441 mServices = services; in updateData()
463 if (mServices.isEmpty()) { in getCount()
466 return mServices.size() + 1; in getCount()
475 return mServices.get(position - 1); in getItem()
/frameworks/base/services/core/java/com/android/server/pm/
DComponentResolver.java187 private final ServiceIntentResolver mServices; field in ComponentResolver
221 mServices = new ServiceIntentResolver(); in ComponentResolver()
244 mServices = new ServiceIntentResolver(orig.mServices); in ComponentResolver()
293 return mServices.mServices.get(component); in getService()
308 component = mServices.mServices.get(componentName); in componentExists()
498 return mServices.queryIntent(intent, resolvedType, flags, userId); in queryServices()
506 return mServices.queryIntentForPackage(intent, resolvedType, flags, services, userId); in queryServices()
641 if (mServices.dump(pw, dumpState.getTitlePrinted() ? "\nService Resolver Table:" in dumpServiceResolvers()
697 mServices.filterIterator(); in dumpServicePermissions()
825 mServices.addService(s); in addServicesLocked()
[all …]
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessStats.java299 final int NSRVS = otherState.mServices.size(); in add()
321 ServiceState otherSvc = otherState.mServices.valueAt(isvc); in add()
531 for (int isvc=pkgState.mServices.size()-1; isvc>=0; isvc--) { in resetSafely()
532 final ServiceState ss = pkgState.mServices.valueAt(isvc); in resetSafely()
536 pkgState.mServices.removeAt(isvc); in resetSafely()
547 if (pkgState.mProcesses.size() <= 0 && pkgState.mServices.size() <= 0 in resetSafely()
861 final int NSRVS = pkgState.mServices.size(); in writeToParcel()
863 pkgState.mServices.valueAt(isvc).commitStateTime(now); in writeToParcel()
945 final int NSRVS = pkgState.mServices.size(); in writeToParcel()
948 out.writeString(pkgState.mServices.keyAt(isvc)); in writeToParcel()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java134 private final ArrayList<ManagedServiceInfo> mServices = new ArrayList<>(); field in ManagedServices
200 List<ManagedServiceInfo> services = new ArrayList<>(mServices); in getServices()
377 pw.println(" Live " + getCaption() + "s (" + mServices.size() + "):"); in dump()
379 for (ManagedServiceInfo info : mServices) { in dump()
427 for (ManagedServiceInfo info : mServices) { in dump()
967 final int N = mServices.size(); in getServiceFromTokenLocked()
969 final ManagedServiceInfo info = mServices.get(i); in getServiceFromTokenLocked()
1281 for (ManagedServiceInfo service : mServices) { in getRemovableConnectedServices()
1450 final int N = mServices.size(); in registerServiceLocked()
1452 final ManagedServiceInfo info = mServices.get(i); in registerServiceLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileHost.java89 private final TileServices mServices; field in QSTileHost
138 mServices = new TileServices(this, bgLooper, mBroadcastDispatcher, userTracker); in QSTileHost()
171 mServices.destroy(); in destroy()
252 return mServices; in getTileServices()
441 mContext, mServices, new Tile(), intent, in changeTiles()
/frameworks/base/core/java/android/app/
DLoadedApk.java155 …private final ArrayMap<Context, ArrayMap<ServiceConnection, LoadedApk.ServiceDispatcher>> mServices field in LoadedApk
1452 synchronized (mServices) { in removeContextRegistrations()
1455 mServices.remove(context); in removeContextRegistrations()
1795 synchronized (mServices) { in getServiceDispatcherCommon()
1797 ArrayMap<ServiceConnection, LoadedApk.ServiceDispatcher> map = mServices.get(context); in getServiceDispatcherCommon()
1811 mServices.put(context, map); in getServiceDispatcherCommon()
1824 synchronized (mServices) { in lookupServiceDispatcher()
1826 ArrayMap<ServiceConnection, LoadedApk.ServiceDispatcher> map = mServices.get(context); in lookupServiceDispatcher()
1836 synchronized (mServices) { in forgetServiceDispatcher()
1838 = mServices.get(context); in forgetServiceDispatcher()
[all …]

12