Home
last modified time | relevance | path

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

12

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridgeTest.java59 private static final String PACKAGE_NAME = "package.mcpackageface"; field in AppStateUsageStatsBridgeTest
104 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(1000)); in test_appInstalledSameDayNeverUsed_isInvalid()
106 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_appInstalledSameDayNeverUsed_isInvalid()
118 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(1000)); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid()
120 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid()
132 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_unusedApp_isValid()
134 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_unusedApp_isValid()
146 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_noThresholdFilter_unusedApp_isValid()
148 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_noThresholdFilter_unusedApp_isValid()
160 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_unknownLastUse_isFilteredOut()
[all …]
DAppsAsyncLoaderTest.java62 private static final String PACKAGE_NAME = "package.mcpackageface"; field in AppsAsyncLoaderTest
120 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 0); in test_appInstalledSameDayNeverUsed_isInvalid()
128 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 0); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid()
136 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 90); in test_unusedApp_isValid()
144 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 90); in test_noThresholdFilter_unusedApp_isValid()
151 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, -1, 90); in test_unknownLastUse_isFilteredOut()
158 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, -1, 90); in test_noThresholdFilter_unknownLastUse_isFilteredOut()
165 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, 1, 200); in test_oldAppRecentlyUsed_isNotValid()
172 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, 1, 200); in test_noThresholdFilter_oldAppRecentlyUsed_isValid()
179 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, 199, 200); in test_oldUnusedApp_isValid()
[all …]
DAppDeletionTypeTest.java40 private static String PACKAGE_NAME = "com.package.package"; field in AppDeletionTypeTest
64 .setPackageName(PACKAGE_NAME) in uncheckedAppNotReported()
83 .setPackageName(PACKAGE_NAME) in checkedAppIsReported()
90 mDeletion.setChecked(PACKAGE_NAME, true); in checkedAppIsReported()
123 .setPackageName(PACKAGE_NAME) in testLoadingState_completeOnDeletableContentFound()
DDeletionHelperSettingsTest.java51 private static final String PACKAGE_NAME = "com.package"; field in DeletionHelperSettingsTest
65 assertThat(DeletionHelperSettings.getGaugeString(mContext, intent, PACKAGE_NAME)).isNull(); in nullAppHasNoGaugeTitle()
77 assertThat(DeletionHelperSettings.getGaugeString(mContext, intent, PACKAGE_NAME)) in realAppHasGaugeTitle()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DAppButtonsPreferenceControllerTest.java71 private static final String PACKAGE_NAME = "com.android.settings"; field in AppButtonsPreferenceControllerTest
122 mLifecycle, PACKAGE_NAME, mState, mDpm, mUserManager, mPackageManger, in setUp()
127 mAppInfo.packageName = PACKAGE_NAME; in setUp()
129 mPackageInfo.packageName = PACKAGE_NAME; in setUp()
161 doReturn(null).when(mState).getEntry(eq(PACKAGE_NAME), anyInt()); in testRetrieveAppEntry_noAppEntry_null()
244 when(mSettingsActivity.getResources().getString(anyInt())).thenReturn(PACKAGE_NAME); in testUpdateUninstallButton_isDeviceProvisioningApp_setButtonDisable()
263 mController.mHomePackages.add(PACKAGE_NAME); in testUpdateUninstallButton_isHomeAppAndBundled_setButtonDisable()
288 mController.uninstallPkg(PACKAGE_NAME, ALL_USERS, DISABLE_AFTER_INSTALL); in testUninstallPkg_intentSent()
304 mController.forceStopPackage(PACKAGE_NAME); in testForceStopPackage_methodInvokedAndUpdated()
306 verify(mAm).forceStopPackage(PACKAGE_NAME); in testForceStopPackage_methodInvokedAndUpdated()
[all …]
DAdvancedPowerUsageDetailTest.java85 private static final String[] PACKAGE_NAME = {"com.android.app"}; field in AdvancedPowerUsageDetailTest
315 mBatterySipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_NormalApp()
316 mBatteryEntry.defaultPackageName = PACKAGE_NAME[0]; in testStartBatteryDetailPage_NormalApp()
321 PACKAGE_NAME[0]); in testStartBatteryDetailPage_NormalApp()
342 mBatterySipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_WorkApp()
363 AdvancedPowerUsageDetail.startBatteryDetailPage(mTestActivity, null, PACKAGE_NAME[0]); in testStartBatteryDetailPage_noBatteryUsage_hasBasicData()
366 PACKAGE_NAME[0]); in testStartBatteryDetailPage_noBatteryUsage_hasBasicData()
374 doReturn(UID).when(mPackageManager).getPackageUid(PACKAGE_NAME[0], 0 /* no flag */); in testStartBatteryDetailPage_batteryEntryNotExisted_extractUidFromPackageName()
376 AdvancedPowerUsageDetail.startBatteryDetailPage(mTestActivity, null, PACKAGE_NAME[0]); in testStartBatteryDetailPage_batteryEntryNotExisted_extractUidFromPackageName()
384 mBatteryEntry.sipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_defaultPackageNull_chooseFromBatterySipper()
[all …]
DBatteryUtilsTest.java105 private static final String PACKAGE_NAME = "com.android.app"; field in BatteryUtilsTest
414 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(PACKAGE_NAME, in testGetTargetSdkVersion_packageExist_returnSdk()
418 assertThat(mBatteryUtils.getTargetSdkVersion(PACKAGE_NAME)).isEqualTo(SDK_VERSION); in testGetTargetSdkVersion_packageExist_returnSdk()
425 mPackageManager).getApplicationInfo(PACKAGE_NAME, PackageManager.GET_META_DATA); in testGetTargetSdkVersion_packageNotExist_returnSdkNull()
427 assertThat(mBatteryUtils.getTargetSdkVersion(PACKAGE_NAME)).isEqualTo( in testGetTargetSdkVersion_packageNotExist_returnSdkNull()
434 AppOpsManager.OP_RUN_IN_BACKGROUND, UID, PACKAGE_NAME); in testBackgroundRestrictionOn_restrictionOn_returnTrue()
437 PACKAGE_NAME)).isTrue(); in testBackgroundRestrictionOn_restrictionOn_returnTrue()
443 AppOpsManager.OP_RUN_IN_BACKGROUND, UID, PACKAGE_NAME); in testBackgroundRestrictionOn_restrictionOff_returnFalse()
446 PACKAGE_NAME)).isFalse(); in testBackgroundRestrictionOn_restrictionOff_returnFalse()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DLastAccessedProvider.java70 public static final String PACKAGE_NAME = "package_name"; field in LastAccessedProvider.Columns
103 Columns.PACKAGE_NAME + " TEXT NOT NULL PRIMARY KEY," + in onCreate()
148 return db.query(TABLE_LAST_ACCESSED, projection, Columns.PACKAGE_NAME + "=?", in query()
169 key.put(Columns.PACKAGE_NAME, packageName); in insert()
173 db.update(TABLE_LAST_ACCESSED, values, Columns.PACKAGE_NAME + "=?", in insert()
254 cursor, Columns.PACKAGE_NAME); in purgeByAuthority()
255 db.delete(TABLE_LAST_ACCESSED, Columns.PACKAGE_NAME + "=?", in purgeByAuthority()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/anomaly/action/
DBackgroundCheckActionTest.java45 private static final String PACKAGE_NAME = "com.android.app"; field in BackgroundCheckActionTest
67 .setPackageName(PACKAGE_NAME) in setUp()
78 verify(mAppOpsManager).setMode(AppOpsManager.OP_RUN_IN_BACKGROUND, UID, PACKAGE_NAME, in testHandlePositiveAction_forceStopPackage()
85 PACKAGE_NAME); in testIsActionActive_modeAllowed_returnTrue()
93 PACKAGE_NAME); in testIsActionActive_modeIgnored_returnFalse()
DLocationCheckActionTest.java43 private static final String PACKAGE_NAME = "com.android.app"; field in LocationCheckActionTest
58 .setPackageName(PACKAGE_NAME) in setUp()
67 PACKAGE_NAME, PackageManager.PERMISSION_GRANTED); in testIsActionActive_coarseLocationGranted_returnTrue()
75 PACKAGE_NAME, PackageManager.PERMISSION_GRANTED); in testIsActionActive_fineLocationGranted_returnTrue()
DForceStopActionTest.java45 private static final String PACKAGE_NAME = "com.android.app"; field in ForceStopActionTest
65 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(PACKAGE_NAME, in setUp()
69 .setPackageName(PACKAGE_NAME) in setUp()
78 verify(mActivityManager).forceStopPackage(PACKAGE_NAME); in testHandlePositiveAction_forceStopPackage()
DAnomalyActionTest.java43 private static final String PACKAGE_NAME = "com.android.app"; field in AnomalyActionTest
66 .setPackageName(PACKAGE_NAME) in setUp()
75 verify(mFeatureFactory.metricsFeatureProvider).action(mContext, ACTION_KEY, PACKAGE_NAME, in testHandlePositiveAction_logAction()
/packages/apps/Browser2/test/
Drun_tests.sh7 PACKAGE_NAME="org.chromium.webview_shell"
18 $PACKAGE_NAME.WebViewLayoutTest \
19 $PACKAGE_NAME/$PACKAGE_NAME.WebViewLayoutTestRunner
/packages/apps/Settings/tests/app/src/com/android/settings/
DSettingsHookTests.java44 private static final String PACKAGE_NAME = "com.android.settings.tests"; field in SettingsHookTests
72 ApplicationInfo applicationInfo = pm.getApplicationInfo(PACKAGE_NAME, 0); in testSettingsHookTestAppAvailable()
87 if (resolveInfo.activityInfo.packageName.equals(PACKAGE_NAME)) { in testOperatorIntentFilter()
105 if (resolveInfo.activityInfo.packageName.equals(PACKAGE_NAME)) { in testManufacturerIntentFilter()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/anomaly/
DAnomalyDialogFragmentTest.java52 private static final String PACKAGE_NAME = "com.android.app"; field in AnomalyDialogFragmentTest
75 .setPackageName(PACKAGE_NAME) in setUp()
81 .setPackageName(PACKAGE_NAME) in setUp()
87 .setPackageName(PACKAGE_NAME) in setUp()
94 .setPackageName(PACKAGE_NAME) in setUp()
DAnomalyTest.java38 private static String PACKAGE_NAME = "com.android.settings"; field in AnomalyTest
51 .setPackageName(PACKAGE_NAME) in setUp()
65 assertThat(mAnomaly.packageName).isEqualTo(PACKAGE_NAME); in testBuilder_buildCorrectly()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java49 private static final String PACKAGE_NAME = "com.android.app"; field in UtilsTest
211 when(mDevicePolicyManager.isDeviceOwnerAppOnAnyUser(PACKAGE_NAME)).thenReturn(true); in testIsProfileOrDeviceOwner_deviceOwnerApp_returnTrue()
214 PACKAGE_NAME)).isTrue(); in testIsProfileOrDeviceOwner_deviceOwnerApp_returnTrue()
224 new ComponentName(PACKAGE_NAME, "")); in testIsProfileOrDeviceOwner_profileOwnerApp_returnTrue()
227 PACKAGE_NAME)).isTrue(); in testIsProfileOrDeviceOwner_profileOwnerApp_returnTrue()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactDirectoryManager.java134 + Directory.PACKAGE_NAME + "," in areTypeResourceIdsValid()
311 final String wherePart = "(" + Directory.PACKAGE_NAME + "=? AND " in scanAllPackages()
368 values.put(Directory.PACKAGE_NAME, mContext.getPackageName()); in insertDefaultDirectory()
382 values.put(Directory.PACKAGE_NAME, mContext.getPackageName()); in insertLocalInvisibleDirectory()
449 StringBuilder sb = new StringBuilder(Directory.PACKAGE_NAME + "=?"); in updateDirectoriesForPackage()
558 values.put(Directory.PACKAGE_NAME, info.packageName); in updateDirectories()
574 Directory.PACKAGE_NAME + "=? AND " + Directory.DIRECTORY_AUTHORITY + "=? AND " in updateDirectories()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/util/
DPreferenceUtilsTest.java54 private static final String PACKAGE_NAME = "com.android.emergency"; field in PreferenceUtilsTest
58 PACKAGE_NAME,
59 PACKAGE_NAME + PreferenceUtils.SETTINGS_SUGGESTION_ACTIVITY_ALIAS);
74 when(mContext.getPackageName()).thenReturn(PACKAGE_NAME); in setUp()
/packages/apps/ManagedProvisioning/tools/bash/
Dcoverage.sh7 PACKAGE_NAME='com.android.managedprovisioning'
39 REMOTE_COVERAGE_OUTPUT_FILE="/data/data/$PACKAGE_NAME/files/coverage.ec"
40 COVERAGE_OUTPUT_FILE="$ANDROID_BUILD_TOP/out/$PACKAGE_NAME.ec"
/packages/apps/Settings/tests/unit/src/com/android/settings/fuelgauge/anomaly/action/
DLocationCheckActionTest.java35 private static final String PACKAGE_NAME = "com.android.chrome"; field in LocationCheckActionTest
47 .setUid(getPackageUid(mContext, PACKAGE_NAME)) in setUp()
48 .setPackageName(PACKAGE_NAME) in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/codeinspection/
DCodeInspector.java35 protected static final String PACKAGE_NAME = "com.android.settings"; field in CodeInspector
69 if (!packageName.contains(PACKAGE_NAME + ".") && !packageName.endsWith(PACKAGE_NAME)) { in isConcreteSettingsClass()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
DTestUtils.java29 private static final String PACKAGE_NAME = "com.android.settings.anomaly.tester"; field in TestUtils
58 final Intent intent = context.getPackageManager().getLaunchIntentForPackage(PACKAGE_NAME); in startAnomalyApp()
61 uiDevice.wait(Until.hasObject(By.pkg(PACKAGE_NAME).depth(0)), TIME_OUT); in startAnomalyApp()
/packages/apps/Stk/src/com/android/stk/
DStkMain.java44 private static final String PACKAGE_NAME = "com.android.stk"; field in StkMain
45 private static final String STK_LAUNCHER_ACTIVITY_NAME = PACKAGE_NAME + ".StkLauncherActivity";
57 newIntent.setClassName(PACKAGE_NAME, STK_LAUNCHER_ACTIVITY_NAME); in onCreate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DFetchPackageStorageAsyncLoaderTest.java49 private static final String PACKAGE_NAME = "com.test.package"; field in FetchPackageStorageAsyncLoaderTest
71 info.packageName = PACKAGE_NAME; in worksForValidPackageNameAndUid()
83 info.packageName = PACKAGE_NAME; in installerExceptionHandledCleanly()

12