/packages/services/Car/service-builtin/src/com/android/car/ |
D | UpdatablePackageContext.java | 19 import static android.car.builtin.content.pm.PackageManagerHelper.PROPERTY_CAR_SERVICE_PACKAGE_NAME; 23 import android.car.builtin.content.pm.PackageManagerHelper; 121 PackageManagerHelper.PROPERTY_CAR_SERVICE_OVERLAY_PACKAGES, in getEligibleRROPackages() 126 PackageManagerHelper.PROPERTY_CAR_SERVICE_OVERLAY_PACKAGES); in getEligibleRROPackages() 157 || !(PackageManagerHelper.isSystemApp(info.applicationInfo) in getEligibleRROPackages() 158 || PackageManagerHelper.isUpdatedSystemApp(info.applicationInfo) in getEligibleRROPackages() 159 || PackageManagerHelper.isOemApp(info.applicationInfo) in getEligibleRROPackages() 160 || PackageManagerHelper.isOdmApp(info.applicationInfo) in getEligibleRROPackages() 161 || PackageManagerHelper.isVendorApp(info.applicationInfo) in getEligibleRROPackages() 162 || PackageManagerHelper.isProductApp(info.applicationInfo) in getEligibleRROPackages() [all …]
|
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/ |
D | SdkSandboxRestrictionManagerUnitTest.java | 31 import com.android.server.sdksandbox.helpers.PackageManagerHelper; 46 private PackageManagerHelper mPackageManagerHelper; 58 PackageManagerHelper packageManagerHelper = in setUp() 59 new PackageManagerHelper(context, mClientAppUid); in setUp() 201 private PackageManagerHelper mPackageManagerHelper; 203 FakeInjector(Context context, PackageManagerHelper packageManagerHelper) { in FakeInjector() 208 PackageManagerHelper getPackageManagerHelper(int callingUid) { in getPackageManagerHelper()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | PackageInfoHandler.java | 25 import android.car.builtin.content.pm.PackageManagerHelper; 90 String[] genericPackageNames = PackageManagerHelper.getNamesForUids(mPackageManager, in getNamesForUids() 125 return getNameForPackage(PackageManagerHelper.getPackageInfoAsUser( in getNameForUserPackage() 304 if (PackageManagerHelper.isOemApp(applicationInfo) in getComponentType() 305 || PackageManagerHelper.isVendorApp(applicationInfo) in getComponentType() 306 || PackageManagerHelper.isOdmApp(applicationInfo)) { in getComponentType() 309 if (PackageManagerHelper.isSystemApp(applicationInfo) in getComponentType() 310 || PackageManagerHelper.isUpdatedSystemApp(applicationInfo) in getComponentType() 311 || PackageManagerHelper.isProductApp(applicationInfo) in getComponentType() 312 || PackageManagerHelper.isSystemExtApp(applicationInfo)) { in getComponentType()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | ModelDelegate.java | 18 import static com.android.launcher3.util.PackageManagerHelper.hasShortcutsPermission; 29 import com.android.launcher3.util.PackageManagerHelper; 45 Context context, LauncherAppState app, PackageManagerHelper pmHelper, in newInstance() 54 protected PackageManagerHelper mPmHelper; 67 private void init(LauncherAppState app, PackageManagerHelper pmHelper, AllAppsList appsList, in init()
|
D | SdCardAvailableReceiver.java | 27 import com.android.launcher3.util.PackageManagerHelper; 55 final PackageManagerHelper pmHelper = PackageManagerHelper.INSTANCE.get(context); in onReceive()
|
D | ShortcutsChangedTask.java | 31 import com.android.launcher3.util.PackageManagerHelper; 83 PackageManagerHelper packageManagerHelper = in execute() 84 PackageManagerHelper.INSTANCE.get(context); in execute()
|
D | AllAppsList.java | 44 import com.android.launcher3.util.PackageManagerHelper; 172 if (PackageManagerHelper.INSTANCE.get(context) in addPromiseApp() 309 final PackageManagerHelper pmHelper = PackageManagerHelper.INSTANCE.get(context); in updatePackage()
|
D | FirstScreenBroadcastHelper.kt | 35 import com.android.launcher3.util.PackageManagerHelper in <lambda>() 80 packageManagerHelper: PackageManagerHelper, in <lambda>() 194 packageManagerHelper: PackageManagerHelper in <lambda>() 214 packageManagerHelper: PackageManagerHelper in <lambda>()
|
D | AddWorkspaceItemsTask.java | 45 import com.android.launcher3.util.PackageManagerHelper; 106 if (PackageManagerHelper.isSystemApp(context, in execute() 266 boolean isLauncherAppTarget = PackageManagerHelper.isLauncherAppTarget(intent); in shortcutExists()
|
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/ |
D | SdkSandboxRestrictionManager.java | 27 import com.android.server.sdksandbox.helpers.PackageManagerHelper; 65 PackageManagerHelper getPackageManagerHelper(int callingUid) { in getPackageManagerHelper() 66 return new PackageManagerHelper(mContext, callingUid); in getPackageManagerHelper() 77 PackageManagerHelper packageManagerHelper = mInjector.getPackageManagerHelper(appUid); in getEffectiveTargetSdkVersion() 98 CallingInfo callingInfo, PackageManagerHelper packageManagerHelper) in getEffectiveTargetSdkVersion()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | AppInfo.java | 39 import com.android.launcher3.util.PackageManagerHelper; 93 ApiWrapper.INSTANCE.get(context), PackageManagerHelper.INSTANCE.get(context), in AppInfo() 98 ApiWrapper apiWrapper, PackageManagerHelper pmHelper, boolean quietModeEnabled) { in AppInfo() 187 ApiWrapper apiWrapper, PackageManagerHelper pmHelper) { in updateRuntimeFlagsForActivityTarget() 191 if (PackageManagerHelper.isAppSuspended(appInfo)) { in updateRuntimeFlagsForActivityTarget() 216 PackageManagerHelper.getLoadingProgress(lai), in updateRuntimeFlagsForActivityTarget()
|
/packages/services/Car/service/src/com/android/car/oem/ |
D | CarOemProxyService.java | 22 import android.car.builtin.content.pm.PackageManagerHelper; 241 || !(PackageManagerHelper.isSystemApp(info.applicationInfo) in isInvalidComponentName() 242 || PackageManagerHelper.isUpdatedSystemApp(info.applicationInfo) in isInvalidComponentName() 243 || PackageManagerHelper.isOemApp(info.applicationInfo) in isInvalidComponentName() 244 || PackageManagerHelper.isOdmApp(info.applicationInfo) in isInvalidComponentName() 245 || PackageManagerHelper.isVendorApp(info.applicationInfo) in isInvalidComponentName() 246 || PackageManagerHelper.isProductApp(info.applicationInfo) in isInvalidComponentName() 247 || PackageManagerHelper.isSystemExtApp(info.applicationInfo))) { in isInvalidComponentName()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetRecommendationCategoryProvider.java | 27 import com.android.launcher3.util.PackageManagerHelper; 65 try (PackageManagerHelper pmHelper = new PackageManagerHelper(context)) { in getWidgetRecommendationCategory()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | LoaderCursorTest.java | 66 import com.android.launcher3.util.PackageManagerHelper; 82 private PackageManagerHelper mPmHelper; 96 mPmHelper = PackageManagerHelper.INSTANCE.get(mContext); in setup() 144 assertTrue(PackageManagerHelper.isLauncherAppTarget(info.getIntent())); in getAppShortcutInfo_dontAllowMissing_validComponent() 158 assertTrue(PackageManagerHelper.isLauncherAppTarget(info.getIntent())); in getAppShortcutInfo_allowMissing_invalidComponent()
|
D | WorkspaceItemProcessorTest.kt | 55 import com.android.launcher3.util.PackageManagerHelper 86 @Mock private lateinit var mockPmHelper: PackageManagerHelper 133 mock<PackageManagerHelper>().apply { in setup() 189 pmHelper: PackageManagerHelper = mockPmHelper, in createWorkspaceItemProcessorUnderTest() 306 mock<PackageManagerHelper>().apply { in When fallback Activity found for app then mark restored() 334 mock<PackageManagerHelper>().apply { in When app with disabled activity and no fallback found then mark deleted() 762 mock<PackageManagerHelper>().apply { in When Archived Pending App Widget then checkAndAddItem() 811 mock<PackageManagerHelper>().apply { in When widget inflation result is TYPE_DELETE then mark deleted()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | PackageManagerHelper.java | 61 public class PackageManagerHelper implements SafeCloseable{ class 66 public static final MainThreadInitializedObject<PackageManagerHelper> INSTANCE = 67 new MainThreadInitializedObject<>(PackageManagerHelper::new); 80 public PackageManagerHelper(@NonNull final Context context) { in PackageManagerHelper() method in PackageManagerHelper
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/ |
D | PackageManagerHelperTest.java | 60 private PackageManagerHelper mPackageManagerHelper; 69 mPackageManagerHelper = new PackageManagerHelper(mContext); in setup()
|
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/helpers/ |
D | PackageManagerHelper.java | 35 public class PackageManagerHelper { class 39 public PackageManagerHelper(Context context, int callingUid) { in PackageManagerHelper() method in PackageManagerHelper
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | LauncherDbUtils.java | 47 import com.android.launcher3.util.PackageManagerHelper; 111 PackageManagerHelper pmHelper = PackageManagerHelper.INSTANCE.get(context); in migrateLegacyShortcuts()
|
/packages/apps/Launcher3/src/com/android/launcher3/pm/ |
D | InstallSessionHelper.java | 40 import com.android.launcher3.util.PackageManagerHelper; 174 || PackageManagerHelper.INSTANCE.get(mAppContext) in isTrustedPackage() 248 && !PackageManagerHelper.INSTANCE.get(mAppContext).isAppInstalled( in verifySessionInfo()
|
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/helpers/ |
D | PackageManagerHelperUnitTest.java | 54 private PackageManagerHelper mPackageManagerHelper; 61 mPackageManagerHelper = new PackageManagerHelper(context, mClientAppUid); in setUp()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | TaskUtils.java | 35 import com.android.launcher3.util.PackageManagerHelper; 73 ApplicationInfo applicationInfo = PackageManagerHelper.INSTANCE.get(context) in getTitle()
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | AppBlockingPolicyProxy.java | 18 import android.car.builtin.content.pm.PackageManagerHelper; 85 intent.setComponent(PackageManagerHelper.getComponentName(mServiceInfo)); in connect()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/oem/ |
D | CarOemProxyServiceTest.java | 33 import android.car.builtin.content.pm.PackageManagerHelper; 88 session.spyStatic(PackageManagerHelper.class); in onSessionBuilder() 261 doReturn(true).when(() -> PackageManagerHelper.isSystemApp(any())); in mockOemCarServiceComponent()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/content/pm/ |
D | PackageManagerHelper.java | 41 public final class PackageManagerHelper { class 66 private PackageManagerHelper() { in PackageManagerHelper() method in PackageManagerHelper
|