Home
last modified time | relevance | path

Searched refs:mServiceInfo (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilitySettingsTest.java79 private AccessibilityServiceInfo mServiceInfo; field in AccessibilitySettingsTest
89 mServiceInfo = spy(getMockAccessibilityServiceInfo()); in setup()
123 mServiceInfo.crashed = true; in getServiceSummary_serviceCrash_showsStopped()
126 mServiceInfo, SERVICE_ENABLED); in getServiceSummary_serviceCrash_showsStopped()
134 setInvisibleToggleFragmentType(mServiceInfo); in getServiceSummary_invisibleToggle_shortcutDisabled_showsOffSummary()
135 doReturn(DEFAULT_SUMMARY).when(mServiceInfo).loadSummary(any()); in getServiceSummary_invisibleToggle_shortcutDisabled_showsOffSummary()
138 mServiceInfo, SERVICE_ENABLED); in getServiceSummary_invisibleToggle_shortcutDisabled_showsOffSummary()
148 doReturn(EMPTY_STRING).when(mServiceInfo).loadSummary(any()); in getServiceSummary_enableService_showsEnabled()
151 mServiceInfo, SERVICE_ENABLED); in getServiceSummary_enableService_showsEnabled()
159 doReturn(EMPTY_STRING).when(mServiceInfo).loadSummary(any()); in getServiceSummary_disableService_showsDisabled()
[all …]
/packages/services/Car/service/src/com/android/car/pm/
DAppBlockingPolicyProxy.java39 private final ServiceInfo mServiceInfo; field in AppBlockingPolicyProxy
61 Log.w(CarLog.TAG_PACKAGE, "Timeout for policy setting for service:" + mServiceInfo);
71 mServiceInfo = serviceInfo; in AppBlockingPolicyProxy()
77 return mServiceInfo.packageName; in getPackageName()
82 intent.setComponent(mServiceInfo.getComponentName()); in connect()
148 return "AppBlockingPolicyProxy [mServiceInfo=" + mServiceInfo + ", mCrashCount=" in toString()
159 mServiceInfo); in setAppBlockingPolicy()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowVoiceInteractionServiceInfo.java36 private ServiceInfo mServiceInfo; field in ShadowVoiceInteractionServiceInfo
39 mServiceInfo = si; in __constructor__()
56 return sSupportsAssistMap.get(mServiceInfo); in getSupportsAssist()
61 return sRecognitionServiceMap.get(mServiceInfo); in getRecognitionService()
66 return sSettingsActivityMap.get(mServiceInfo); in getSettingsActivity()
71 return mServiceInfo; in getServiceInfo()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/
DVoiceInputInfoProvider.java154 private final ServiceInfo mServiceInfo; field in VoiceInputInfoProvider.VoiceInputInfo
158 mServiceInfo = serviceInfo; in VoiceInputInfo()
166 return mServiceInfo; in getServiceInfo()
180 return (activity != null) ? new ComponentName(mServiceInfo.packageName, activity) in getSettingsActivityComponentName()
186 return mServiceInfo.packageName; in getPackageName()
193 return new ComponentName(mServiceInfo.packageName, mServiceInfo.name); in getComponentName()
211 return mServiceInfo.loadLabel(mContext.getPackageManager()); in getTag()
/packages/apps/Settings/src/com/android/settings/applications/
DRunningServiceDetails.java98 if ((si.mServiceInfo.applicationInfo.flags&ApplicationInfo.FLAG_SYSTEM) != 0) { in stopActiveService()
122 report.packageName = mServiceItem.mServiceInfo.packageName; in onClick()
126 report.systemApp = (mServiceItem.mServiceInfo.applicationInfo.flags in onClick()
135 ComponentName comp = new ComponentName(mServiceItem.mServiceInfo.packageName, in onClick()
136 mServiceItem.mServiceInfo.name); in onClick()
290 if (si != null && si.mServiceInfo.descriptionRes != 0) { in addServiceDetailsView()
292 si.mServiceInfo.packageName, si.mServiceInfo.descriptionRes, in addServiceDetailsView()
293 si.mServiceInfo.applicationInfo)); in addServiceDetailsView()
323 getActivity(), si.mServiceInfo.packageName, in addServiceDetailsView()
324 si.mServiceInfo.applicationInfo.flags); in addServiceDetailsView()
DRunningState.java373 ServiceInfo mServiceInfo; field in RunningState.ServiceItem
473 .mServiceInfo.applicationInfo; in ensureLabel()
502 si.mServiceInfo = ActivityThread.getPackageManager().getServiceInfo( in updateService()
506 if (si.mServiceInfo == null) { in updateService()
514 si.mRunningService.service.getClassName(), si.mServiceInfo); in updateService()
516 si.mPackageInfo = si.mServiceInfo.applicationInfo; in updateService()
1167 if (si.mServiceInfo != null in update()
1168 && (si.mServiceInfo.applicationInfo.flags in update()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRunningServiceDetails.java98 if ((si.mServiceInfo.applicationInfo.flags&ApplicationInfo.FLAG_SYSTEM) != 0) { in stopActiveService()
122 report.packageName = mServiceItem.mServiceInfo.packageName; in onClick()
126 report.systemApp = (mServiceItem.mServiceInfo.applicationInfo.flags in onClick()
135 ComponentName comp = new ComponentName(mServiceItem.mServiceInfo.packageName, in onClick()
136 mServiceItem.mServiceInfo.name); in onClick()
290 if (si != null && si.mServiceInfo.descriptionRes != 0) { in addServiceDetailsView()
292 si.mServiceInfo.packageName, si.mServiceInfo.descriptionRes, in addServiceDetailsView()
293 si.mServiceInfo.applicationInfo)); in addServiceDetailsView()
323 getActivity(), si.mServiceInfo.packageName, in addServiceDetailsView()
324 si.mServiceInfo.applicationInfo.flags); in addServiceDetailsView()
DRunningState.java373 ServiceInfo mServiceInfo; field in RunningState.ServiceItem
473 .mServiceInfo.applicationInfo; in ensureLabel()
502 si.mServiceInfo = ActivityThread.getPackageManager().getServiceInfo( in updateService()
506 if (si.mServiceInfo == null) { in updateService()
514 si.mRunningService.service.getClassName(), si.mServiceInfo); in updateService()
516 si.mPackageInfo = si.mServiceInfo.applicationInfo; in updateService()
1167 if (si.mServiceInfo != null in update()
1168 && (si.mServiceInfo.applicationInfo.flags in update()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DShortcutServicePickerFragment.java225 final AccessibilityServiceInfo mServiceInfo; field in ShortcutServicePickerFragment.ServiceCandidateInfo
229 mServiceInfo = serviceInfo; in ServiceCandidateInfo()
236 mServiceInfo.getResolveInfo().serviceInfo.loadLabel(pmw); in loadLabel()
241 final ComponentName componentName = mServiceInfo.getComponentName(); in loadLabel()
256 final ResolveInfo resolveInfo = mServiceInfo.getResolveInfo(); in loadIcon()
264 return mServiceInfo.getComponentName().flattenToString(); in getKey()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DNsdResolveQueue.java84 private final NsdServiceInfo mServiceInfo; field in NsdResolveQueue.NsdResolveRequest
92 mServiceInfo = serviceInfo; in NsdResolveRequest()
98 if (DEBUG) Log.d(TAG, "resolveService " + mServiceInfo.getServiceName()); in start()
99 mNsdManager.resolveService(mServiceInfo, this); in start()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DSuppressorHelperTest.java44 private ServiceInfo mServiceInfo; field in SuppressorHelperTest
53 when(mPackageManager.getServiceInfo(mSuppressor, 0)).thenReturn(mServiceInfo); in setUp()
54 when(mServiceInfo.loadLabel(mPackageManager)).thenReturn(SUPPRESSOR_NAME); in setUp()