Searched refs:mPackageManagerClient (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | CriticalNotificationExtractorTest.java | 42 private PackageManager mPackageManagerClient; field in CriticalNotificationExtractorTest 49 mContext.setMockPackageManager(mPackageManagerClient); in setUp() 56 when(mPackageManagerClient.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0)) in testExtractCritically_nonsupporting() 74 when(mPackageManagerClient.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0)) in testExtractCritically()
|
D | NotificationManagerServiceTest.java | 192 private PackageManager mPackageManagerClient; field in NotificationManagerServiceTest 346 mContext.setMockPackageManager(mPackageManagerClient); in setUp() 351 when(mPackageManagerClient.getApplicationInfoAsUser(anyString(), anyInt(), anyInt())) in setUp() 353 when(mPackageManagerClient.getPackageUidAsUser(any(), anyInt())).thenReturn(mUid); in setUp() 357 when(mPackageManagerClient.hasSystemFeature(FEATURE_WATCH)).thenReturn(false); in setUp() 360 when(mPackageManagerClient.getPackagesForUid(anyInt())).thenReturn(new String[]{PKG}); in setUp() 390 mPackageManager, mPackageManagerClient, mockLightsManager, in setUp() local 2459 when(mPackageManagerClient.hasSystemFeature(FEATURE_WATCH)).thenReturn(true); in testSetListenerAccess_doesNothingOnLowRam_exceptWatch() 2475 when(mPackageManagerClient.hasSystemFeature(FEATURE_WATCH)).thenReturn(true); in testSetAssistantAccess_doesNothingOnLowRam_exceptWatch() 2496 when(mPackageManagerClient.hasSystemFeature(FEATURE_WATCH)).thenReturn(true); in testSetDndAccess_doesNothingOnLowRam_exceptWatch() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 363 private PackageManager mPackageManagerClient; field in NotificationManagerService 1658 mPackageManagerClient = packageManagerClient; in init() 1709 mPackageManagerClient, in init() 1784 mIsTelevision = mPackageManagerClient.hasSystemFeature(FEATURE_LEANBACK) in init() 1785 || mPackageManagerClient.hasSystemFeature(FEATURE_TELEVISION); in init() 1788 mPackageManagerClient.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0); in init() 2770 targetUid = mPackageManagerClient.getPackageUidAsUser(targetPkg, userId); 2919 targetUid = mPackageManagerClient.getPackageUidAsUser(targetPkg, userId); 3691 String[] packages = mPackageManagerClient.getPackagesForUid(uid); 4918 final ApplicationInfo ai = mPackageManagerClient.getApplicationInfoAsUser( [all …]
|