Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/
DNotificationListenerCheck.kt78 import com.android.permissioncontroller.permission.utils.Utils.getSystemServiceSafe in <lambda>()
169 getSystemServiceSafe(context, SafetyCenterManager::class.java).isSafetyCenterEnabled in checkNotificationListenerCheckEnabled()
206 getSystemServiceSafe(parentUserContext, RoleManager::class.java), in <lambda>()
316 getSystemServiceSafe(parentUserContext, NotificationManager::class.java) in getEnabledNotificationListeners()
502 getSystemServiceSafe(parentUserContext, NotificationManager::class.java) in createPermissionReminderChannel()
558 getSystemServiceSafe(parentUserContext, NotificationManager::class.java) in createNotificationForNotificationListener()
647 getSystemServiceSafe(parentUserContext, NotificationManager::class.java) in getCurrentlyShownNotificationLocked()
679 getSystemServiceSafe(parentUserContext, NotificationManager::class.java) in cancelNotification()
684 getSystemServiceSafe(parentUserContext, NotificationManager::class.java) in cancelNotification()
709 getSystemServiceSafe(parentUserContext, SafetyCenterManager::class.java) in sendIssuesToSafetyCenter()
[all …]
DAccessibilitySourceService.kt66 import com.android.permissioncontroller.permission.utils.Utils.getSystemServiceSafe in <lambda>()
100 return getSystemServiceSafe(context, SafetyCenterManager::class.java).isSafetyCenterEnabled in isSafetyCenterEnabled()
112 getSystemServiceSafe(parentUserContext, NotificationManager::class.java)
114 getSystemServiceSafe(parentUserContext, SafetyCenterManager::class.java)
475 getSystemServiceSafe(parentUserContext, AccessibilityManager::class.java)
593 getSystemServiceSafe(parentUserContext, NotificationManager::class.java) in cancelNotification()
856 val jobScheduler = getSystemServiceSafe(context, JobScheduler::class.java) in onReceive()
DPrivacySourcesUtils.kt50 val userManager = Utils.getSystemServiceSafe(context, UserManager::class.java) in isProfile()
DWorkPolicyInfo.kt72 Utils.getSystemServiceSafe(context, SafetyCenterManager::class.java) in rescanAndPushSafetyCenterData()
DSafetyCenterReceiver.kt83 Utils.getSystemServiceSafe( in onReceive()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DLocationAccessCheck.java73 import static com.android.permissioncontroller.permission.utils.Utils.getSystemServiceSafe;
374 NotificationManager notificationManager = getSystemServiceSafe(mContext, in createPermissionReminderChannel()
400 mJobScheduler = getSystemServiceSafe(mContext, JobScheduler.class); in LocationAccessCheck()
401 mAppOpsManager = getSystemServiceSafe(mContext, AppOpsManager.class); in LocationAccessCheck()
403 mUserManager = getSystemServiceSafe(mContext, UserManager.class); in LocationAccessCheck()
485 LocationManager locationManager = getSystemServiceSafe(mContext, in addLocationNotificationIfNeeded()
641 NotificationManager notificationManager = getSystemServiceSafe(mContext, in createNotificationForLocationUser()
750 notificationManager = getSystemServiceSafe(mContext, NotificationManager.class, in getCurrentlyShownNotificationLocked()
808 getSystemServiceSafe(mContext, NotificationManager.class, user).cancel( in forgetAboutPackage()
847 getSystemServiceSafe(mContext, NotificationManager.class, user).cancel( in cancelBackgroundAccessWarningNotification()
[all …]
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/
DNotificationListenerPrivacySourceTest.kt139 Utils.getSystemServiceSafe( in setup()
149 Utils.getSystemServiceSafe( in setup()
159 Utils.getSystemServiceSafe( in setup()
169 Utils.getSystemServiceSafe( in setup()
DSafetyCenterReceiverTest.kt111 Utils.getSystemServiceSafe( in privacySourceMap()
118 Utils.getSystemServiceSafe( in privacySourceMap()
DWorkPolicyInfoTest.kt87 Utils.getSystemServiceSafe( in setup()
94 Utils.getSystemServiceSafe( in setup()
DAppDataSharingUpdatesPrivacySourceTest.kt84 Utils.getSystemServiceSafe( in setup()
DNotificationListenerCheckInternalTest.kt97 Utils.getSystemServiceSafe( in setup()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/v34/
DSafetyLabelChangesJobService.kt69 import com.android.permissioncontroller.permission.utils.Utils.getSystemServiceSafe in <lambda>()
539 val notificationManager = getSystemServiceSafe(context, NotificationManager::class.java) in <lambda>()
584 val notificationManager = getSystemServiceSafe(context, NotificationManager::class.java) in <lambda>()
649 val jobScheduler = getSystemServiceSafe(context, JobScheduler::class.java) in <lambda>()
681 val jobScheduler = getSystemServiceSafe(context, JobScheduler::class.java) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DPermGroupsPackagesUiInfoLiveData.kt67 Utils.getSystemServiceSafe(app.applicationContext, UserManager::class.java) in <lambda>()
156 Utils.getSystemServiceSafe( in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DAutoGrantPermissionsNotifier.java37 import static com.android.permissioncontroller.permission.utils.Utils.getSystemServiceSafe;
104 mNotificationManager = getSystemServiceSafe(context, NotificationManager.class); in AutoGrantPermissionsNotifier()
DGrantPermissionsActivity.java490 EnhancedConfirmationManager ecm = Utils.getSystemServiceSafe(userContext, in blockRestrictedPermissions()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/
DPermissionControllerApplication.java95 AccessibilityManager a11yManager = Utils.getSystemServiceSafe( in addAccessibilityListener()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/v34/
DAppDataSharingUpdatesPrivacySource.kt65 Utils.getSystemServiceSafe(context, SafetyCenterManager::class.java) in rescanAndPushSafetyCenterData()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetylabel/
DSafetyLabelChangedBroadcastReceiver.kt84 val userManager = Utils.getSystemServiceSafe(context, UserManager::class.java) in onReceive()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/dashboard/
DAutoPermissionUsageFragment.kt85 val roleManager = Utils.getSystemServiceSafe(context, RoleManager::class.java) in onCreate()
DAutoPermissionUsageDetailsFragment.kt138 roleManager = Utils.getSystemServiceSafe(context, RoleManager::class.java) in onCreate()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DUtils.java432 public static @NonNull <M> M getSystemServiceSafe(@NonNull Context context, Class<M> clazz) { in getSystemServiceSafe() method in Utils
440 public static @NonNull <M> M getSystemServiceSafe(@NonNull Context context, Class<M> clazz, in getSystemServiceSafe() method in Utils
1173 UserHandle parentUser = getSystemServiceSafe(context, UserManager.class) in getParentUserContext()
1578 DevicePolicyManager dpm = getSystemServiceSafe(context, DevicePolicyManager.class); in getUpdatableEnterpriseString()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v31/
DPermissionUsageDetailsViewModel.kt89 Utils.getSystemServiceSafe(application.applicationContext, RoleManager::class.java) in <lambda>()
91 Utils.getSystemServiceSafe(application.applicationContext, UserManager::class.java) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/ecm/
DEnhancedConfirmationDialogActivity.kt98 val ecm = Utils.getSystemServiceSafe(userContext, EnhancedConfirmationManager::class.java) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DPermissionAppsFragment.java174 mUserManager = Utils.getSystemServiceSafe(getContext(), UserManager.class); in onCreate()
DAppPermissionFragment.java228 mRoleManager = Utils.getSystemServiceSafe(getContext(), RoleManager.class); in onCreate()