/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppStateUsageStatsBridgeTest.java | 57 private static final String PACKAGE_NAME = "package.mcpackageface"; field in AppStateUsageStatsBridgeTest 100 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(1000)); in test_appInstalledSameDayNeverUsed_isInvalid() 102 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_appInstalledSameDayNeverUsed_isInvalid() 114 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(1000)); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() 116 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() 128 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_unusedApp_isValid() 130 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_unusedApp_isValid() 142 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_noThresholdFilter_unusedApp_isValid() 144 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_noThresholdFilter_unusedApp_isValid() 156 addPackageToPackageManager(PACKAGE_NAME, TimeUnit.DAYS.toMillis(910)); in test_unknownLastUse_isFilteredOut() [all …]
|
D | AppsAsyncLoaderTest.java | 60 private static final String PACKAGE_NAME = "package.mcpackageface"; field in AppsAsyncLoaderTest 118 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 0); in test_appInstalledSameDayNeverUsed_isInvalid() 126 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 0); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() 134 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 90); in test_unusedApp_isValid() 142 createPackage(PACKAGE_NAME, AppsAsyncLoader.NEVER_USED, 90); in test_noThresholdFilter_unusedApp_isValid() 149 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, -1, 90); in test_unknownLastUse_isFilteredOut() 156 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, -1, 90); in test_noThresholdFilter_unknownLastUse_isFilteredOut() 163 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, 1, 200); in test_oldAppRecentlyUsed_isNotValid() 170 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, 1, 200); in test_noThresholdFilter_oldAppRecentlyUsed_isValid() 177 AppsAsyncLoader.PackageInfo app = createPackage(PACKAGE_NAME, 199, 200); in test_oldUnusedApp_isValid() [all …]
|
D | AppDeletionTypeTest.java | 37 private static String PACKAGE_NAME = "com.package.package"; field in AppDeletionTypeTest 61 .setPackageName(PACKAGE_NAME) in uncheckedAppNotReported() 80 .setPackageName(PACKAGE_NAME) in checkedAppIsReported() 87 mDeletion.setChecked(PACKAGE_NAME, true); in checkedAppIsReported() 120 .setPackageName(PACKAGE_NAME) in testLoadingState_completeOnDeletableContentFound()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/webview/ |
D | WebViewAppPickerTest.java | 68 private final static String PACKAGE_NAME = "com.example.test"; field in WebViewAppPickerTest 90 applicationInfo.name = PACKAGE_NAME; in setUp() 93 applicationInfo.packageName = PACKAGE_NAME; in setUp() 96 packageInfo.packageName = PACKAGE_NAME; in setUp() 100 mPackageManager.setUnbadgedApplicationIcon(PACKAGE_NAME, new ColorDrawable()); in setUp() 118 mPackageManager.removePackage(PACKAGE_NAME); in tearDown() 148 createApplicationInfo(PACKAGE_NAME), "disabled"); in testDisabledPackageShownAsDisabled() 151 mPicker.bindPreference(preference, PACKAGE_NAME, webviewAppInfo, null); in testDisabledPackageShownAsDisabled() 152 mPicker.bindPreferenceExtra(preference, PACKAGE_NAME, webviewAppInfo, null, null); in testDisabledPackageShownAsDisabled() 162 createApplicationInfo(PACKAGE_NAME), disabledReason); in testEnabledPackageShownAsEnabled() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/ |
D | ApplicationDetailsFragmentTest.java | 93 private static final String PACKAGE_NAME = "com.android.car.settings.test"; field in ApplicationDetailsFragmentTest 123 mFragment = ApplicationDetailsFragment.getInstance(PACKAGE_NAME); in setUp() 141 getShadowPackageManager().addPackage(createPackageInfoWithApplicationInfo(PACKAGE_NAME)); in onStart_packageNotExplicitlyStopped_enablesForceStopButton() 151 getShadowPackageManager().addPackage(createPackageInfoWithApplicationInfo(PACKAGE_NAME)); in onStart_packageHasActiveAdmins_disablesForceStopButton() 155 PACKAGE_NAME, /* hasActiveAdmins= */ true); in onStart_packageHasActiveAdmins_disablesForceStopButton() 163 getShadowPackageManager().addPackage(createPackageInfoWithApplicationInfo(PACKAGE_NAME)); in onStart_appsControlUserRestriction_disablesForceStopButton() 176 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_packageExplicitlyStopped_queriesPackageRestart() 188 new String[]{PACKAGE_NAME}); in onStart_packageExplicitlyStopped_queriesPackageRestart() 194 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_packageExplicitlyStopped_success_enablesForceStopButton() 218 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_packageExplicitlyStopped_failure_disablesForceStopButton() [all …]
|
D | ApplicationsUtilsTest.java | 46 private static final String PACKAGE_NAME = "com.android.car.settings.test"; field in ApplicationsUtilsTest 56 ShadowDefaultDialerManager.setDefaultDialerApplication(PACKAGE_NAME); in isKeepEnabledPackage_defaultDialerApplication_returnsTrue() 59 PACKAGE_NAME)).isTrue(); in isKeepEnabledPackage_defaultDialerApplication_returnsTrue() 64 ShadowSmsApplication.setDefaultSmsApplication(new ComponentName(PACKAGE_NAME, "cls")); in isKeepEnabledPackage_defaultSmsApplication_returnsTrue() 67 PACKAGE_NAME)).isTrue(); in isKeepEnabledPackage_defaultSmsApplication_returnsTrue() 73 PACKAGE_NAME)).isFalse(); in isKeepEnabledPackage_returnsFalse() 84 new ComponentName(PACKAGE_NAME, "cls")); in isProfileOrDeviceOwner_profileOwner_returnsTrue() 86 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, dpm, um)).isTrue(); in isProfileOrDeviceOwner_profileOwner_returnsTrue() 92 when(dpm.isDeviceOwnerAppOnAnyUser(PACKAGE_NAME)).thenReturn(true); in isProfileOrDeviceOwner_deviceOwner_returnsTrue() 94 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, dpm, in isProfileOrDeviceOwner_deviceOwner_returnsTrue() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/ |
D | ModuleLicenseProviderTest.java | 53 public static final String PACKAGE_NAME = "com.android.test_package"; field in ModuleLicenseProviderTest 90 .appendPath(PACKAGE_NAME) in getType_notContentScheme_throwsIllegalArgumentException() 101 .appendPath(PACKAGE_NAME) in getType_invalidAuthority_throwsIllegalArgumentException() 131 .appendPath(PACKAGE_NAME) in getType_missingFileName_throwsIllegalArgumentException() 141 .appendPath(PACKAGE_NAME) in getType_incorrectFileName_throwsIllegalArgumentException() 154 when(packageManager.getModuleInfo(PACKAGE_NAME, 0)) in getType_packageNotAModule_throwsIllegalArgumentException() 160 .appendPath(PACKAGE_NAME) in getType_packageNotAModule_throwsIllegalArgumentException() 173 when(packageManager.getModuleInfo(PACKAGE_NAME, 0)) in getType_validUri_returnsHtmlMimeType() 179 .appendPath(PACKAGE_NAME) in getType_validUri_returnsHtmlMimeType() 190 .appendPath(PACKAGE_NAME) in openFile_notContentScheme_throwsIllegalArgumentException() [all …]
|
D | ModuleLicensesListPreferenceControllerTest.java | 46 private static final String PACKAGE_NAME = "com.android.test_package"; field in ModuleLicensesListPreferenceControllerTest 55 moduleInfo.setPackageName(PACKAGE_NAME); in getAvailabilityStatus_validLicenses_returnsAvailable() 61 when(packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.MATCH_APEX)).thenReturn( in getAvailabilityStatus_validLicenses_returnsAvailable() 96 moduleInfo.setPackageName(PACKAGE_NAME); in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable() 102 when(packageManager.getPackageInfo(PACKAGE_NAME, PackageManager.MATCH_APEX)).thenReturn( in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | UtilsTest.java | 78 private static final String PACKAGE_NAME = "com.android.app"; field in UtilsTest 173 when(mDevicePolicyManager.isDeviceOwnerAppOnAnyUser(PACKAGE_NAME)).thenReturn(true); in isProfileOrDeviceOwner_deviceOwnerApp_returnTrue() 175 assertThat(Utils.isProfileOrDeviceOwner(mUserManager, mDevicePolicyManager, PACKAGE_NAME)) in isProfileOrDeviceOwner_deviceOwnerApp_returnTrue() 186 .thenReturn(new ComponentName(PACKAGE_NAME, "")); in isProfileOrDeviceOwner_profileOwnerApp_returnTrue() 188 assertThat(Utils.isProfileOrDeviceOwner(mUserManager, mDevicePolicyManager, PACKAGE_NAME)) in isProfileOrDeviceOwner_profileOwnerApp_returnTrue() 236 PACKAGE_NAME, PackageManager.GET_META_DATA, USER_ID); in getBadgedIcon_usePackageNameAndUserId() 238 Utils.getBadgedIcon(mIconDrawableFactory, mPackageManager, PACKAGE_NAME, USER_ID); in getBadgedIcon_usePackageNameAndUserId() 241 verify(mPackageManager).getApplicationInfoAsUser(eq(PACKAGE_NAME), anyInt(), eq(USER_ID)); in getBadgedIcon_usePackageNameAndUserId() 249 when(mPackageManager.getApplicationInfo(PACKAGE_NAME, 0)).thenReturn(mApplicationInfo); in isPackageEnabled_appEnabled_returnTrue() 251 assertThat(Utils.isPackageEnabled(mContext, PACKAGE_NAME)).isTrue(); in isPackageEnabled_appEnabled_returnTrue() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryUtilsTest.java | 116 private static final String PACKAGE_NAME = "com.android.app"; field in BatteryUtilsTest 469 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(PACKAGE_NAME, in testGetTargetSdkVersion_packageExist_returnSdk() 473 assertThat(mBatteryUtils.getTargetSdkVersion(PACKAGE_NAME)).isEqualTo(SDK_VERSION); in testGetTargetSdkVersion_packageExist_returnSdk() 480 mPackageManager).getApplicationInfo(PACKAGE_NAME, PackageManager.GET_META_DATA); in testGetTargetSdkVersion_packageNotExist_returnSdkNull() 482 assertThat(mBatteryUtils.getTargetSdkVersion(PACKAGE_NAME)).isEqualTo( in testGetTargetSdkVersion_packageNotExist_returnSdkNull() 489 AppOpsManager.OP_RUN_IN_BACKGROUND, UID, PACKAGE_NAME); in testBackgroundRestrictionOn_restrictionOn_returnTrue() 492 PACKAGE_NAME)).isTrue(); in testBackgroundRestrictionOn_restrictionOn_returnTrue() 498 AppOpsManager.OP_RUN_IN_BACKGROUND, UID, PACKAGE_NAME); in testBackgroundRestrictionOn_restrictionOff_returnFalse() 500 assertThat(mBatteryUtils.isBackgroundRestrictionEnabled(SDK_VERSION, UID, PACKAGE_NAME)) in testBackgroundRestrictionOn_restrictionOff_returnFalse() 618 PACKAGE_NAME)).thenReturn(AppOpsManager.MODE_IGNORED); in testIsForceAppStandbyEnabled_enabled_returnTrue() [all …]
|
D | AdvancedPowerUsageDetailTest.java | 83 private static final String[] PACKAGE_NAME = {"com.android.app"}; field in AdvancedPowerUsageDetailTest 296 mBatterySipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_NormalApp() 297 mBatteryEntry.defaultPackageName = PACKAGE_NAME[0]; in testStartBatteryDetailPage_NormalApp() 302 PACKAGE_NAME[0]); in testStartBatteryDetailPage_NormalApp() 319 mBatterySipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_WorkApp() 344 AdvancedPowerUsageDetail.startBatteryDetailPage(mActivity, mFragment, PACKAGE_NAME[0]); in testStartBatteryDetailPage_noBatteryUsage_hasBasicData() 350 .isEqualTo(PACKAGE_NAME[0]); in testStartBatteryDetailPage_noBatteryUsage_hasBasicData() 360 doReturn(UID).when(mPackageManager).getPackageUid(PACKAGE_NAME[0], 0 /* no flag */); in testStartBatteryDetailPage_batteryEntryNotExisted_extractUidFromPackageName() 362 AdvancedPowerUsageDetail.startBatteryDetailPage(mActivity, mFragment, PACKAGE_NAME[0]); in testStartBatteryDetailPage_batteryEntryNotExisted_extractUidFromPackageName() 370 mBatteryEntry.sipper.mPackages = PACKAGE_NAME; in testStartBatteryDetailPage_defaultPackageNull_chooseFromBatterySipper() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAddTest.java | 49 private static final String PACKAGE_NAME = "com.android.test.device.admin"; field in DeviceAdminAddTest 66 doReturn(UID).when(mBatteryUtils).getPackageUid(PACKAGE_NAME); in setUp() 67 when(mDeviceAdmin.getComponent().getPackageName()).thenReturn(PACKAGE_NAME); in setUp() 92 doReturn(true).when(mBatteryUtils).isForceAppStandbyEnabled(UID, PACKAGE_NAME); in unrestrictAppIfPossible_appRestricted_unrestrictApp() 96 verify(mBatteryUtils).setForceAppStandby(UID, PACKAGE_NAME, AppOpsManager.MODE_ALLOWED); in unrestrictAppIfPossible_appRestricted_unrestrictApp() 101 doReturn(false).when(mBatteryUtils).isForceAppStandbyEnabled(UID, PACKAGE_NAME); in unrestrictAppIfPossible_appUnrestricted_doNothing() 105 verify(mBatteryUtils, never()).setForceAppStandby(UID, PACKAGE_NAME, in unrestrictAppIfPossible_appUnrestricted_doNothing()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | PasswordUtilsTest.java | 56 private static final String PACKAGE_NAME = "com.android.app"; field in PasswordUtilsTest 101 .thenReturn(PACKAGE_NAME); in getCallingAppLabel_packageManagerThrowsNameNotFound_returnsNull() 102 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getCallingAppLabel_packageManagerThrowsNameNotFound_returnsNull() 111 .thenReturn(PACKAGE_NAME); in getCallingAppLabel_returnsLabel() 112 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getCallingAppLabel_returnsLabel() 131 .thenReturn(PACKAGE_NAME); in getCallingAppPackageName_returnsPackageName() 133 assertThat(getCallingAppPackageName(mActivityToken)).isEqualTo(PACKAGE_NAME); in getCallingAppPackageName_returnsPackageName()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | NotificationChannelWorkerTest.java | 47 private static final String PACKAGE_NAME = "com.test.notification.channel.slice"; field in NotificationChannelWorkerTest 69 mPackageManager.removePackage(PACKAGE_NAME); in tearDown() 79 assertThat(interactedPackages.contains(PACKAGE_NAME)).isFalse(); in onSliceUnpinned_interactedPackageIsUninstalled_shouldRemovePackage() 90 assertThat(interactedPackages.contains(PACKAGE_NAME)).isTrue(); in onSliceUnpinned_interactedPackageIsInstalled_shouldKeepPackage() 95 packageInfo.packageName = PACKAGE_NAME; in mockInteractedPackageAsInstalled() 101 interactedPackages.add(PACKAGE_NAME); in addInteractedPackageToSharedPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceControllerTest.java | 86 private static final String PACKAGE_NAME = "com.android.settings"; field in AppButtonsPreferenceControllerTest 143 mLifecycle, PACKAGE_NAME, mState, REQUEST_UNINSTALL, REQUEST_REMOVE_DEVICE_ADMIN)); in setUp() 146 mAppInfo.packageName = PACKAGE_NAME; in setUp() 148 mPackageInfo.packageName = PACKAGE_NAME; in setUp() 196 doReturn(null).when(mState).getEntry(eq(PACKAGE_NAME), anyInt()); in retrieveAppEntry_noAppEntry_null() 289 when(mSettingsActivity.getResources().getString(anyInt())).thenReturn(PACKAGE_NAME); in updateUninstallButton_isDeviceProvisioningApp_setButtonDisable() 308 mController.mHomePackages.add(PACKAGE_NAME); in updateUninstallButton_isHomeAppAndBundled_setButtonDisable() 368 mController.uninstallPkg(PACKAGE_NAME, ALL_USERS, DISABLE_AFTER_INSTALL); in uninstallPkg_intentSent() 384 mController.forceStopPackage(PACKAGE_NAME); in forceStopPackage_methodInvokedAndUpdated() 386 verify(mAm).forceStopPackage(PACKAGE_NAME); in forceStopPackage_methodInvokedAndUpdated() [all …]
|
D | AppInfoDashboardFragmentTest.java | 79 private static final String PACKAGE_NAME = "test_package_name"; field in AppInfoDashboardFragmentTest 202 ShadowAppUtils.addHiddenModule(PACKAGE_NAME); in ensureDisplayableModule_hiddenModule_shouldReturnFalse() 203 ReflectionHelpers.setField(mFragment, "mPackageName", PACKAGE_NAME); in ensureDisplayableModule_hiddenModule_shouldReturnFalse() 212 ReflectionHelpers.setField(mFragment, "mPackageName", PACKAGE_NAME); in ensureDisplayableModule_regularApp_shouldReturnTrue() 229 ReflectionHelpers.setField(mFragment, "mPackageName", PACKAGE_NAME); in packageSizeChange_isOtherPackage_shouldNotRefreshUi() 230 mFragment.onPackageSizeChanged("Not_" + PACKAGE_NAME); in packageSizeChange_isOtherPackage_shouldNotRefreshUi() 238 ReflectionHelpers.setField(mFragment, "mPackageName", PACKAGE_NAME); in packageSizeChange_isOwnPackage_shouldRefreshUi() 240 mFragment.onPackageSizeChanged(PACKAGE_NAME); in packageSizeChange_isOwnPackage_shouldRefreshUi()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | AccessibilityDetailsSettingsFragmentTest.java | 52 private final static String PACKAGE_NAME = "com.foo.bar"; field in AccessibilityDetailsSettingsFragmentTest 53 private final static String CLASS_NAME = PACKAGE_NAME + ".fake_a11y_service"; 54 private final static String COMPONENT_NAME = PACKAGE_NAME + "/" + CLASS_NAME; 87 intent.putExtra(Intent.EXTRA_COMPONENT_NAME, PACKAGE_NAME + "/.service"); in onCreate_hasInvalidExtraComponentName_shouldOpenAccessibilityServicesList() 120 applicationInfo.packageName = PACKAGE_NAME; in getMockAccessibilityServiceInfo() 121 serviceInfo.packageName = PACKAGE_NAME; in getMockAccessibilityServiceInfo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/ |
D | BatteryDatabaseManager.java | 24 …ndroid.car.developeroptions.fuelgauge.batterytip.AnomalyDatabaseHelper.AnomalyColumns.PACKAGE_NAME; 90 values.put(PACKAGE_NAME, packageName); in insertAnomaly() 104 final String[] projection = {PACKAGE_NAME, ANOMALY_TYPE, UID}; in queryAllAnomalies() 119 cursor.getString(cursor.getColumnIndex(PACKAGE_NAME))); in queryAllAnomalies() 157 db.update(TABLE_ANOMALY, values, PACKAGE_NAME + " IN (" + TextUtils.join(",", in updateAnomalies() 199 values.put(ActionColumns.PACKAGE_NAME, packageName); in insertAction() 214 + ActionColumns.PACKAGE_NAME + " = ? "; in deleteAction()
|
D | AnomalyDatabaseHelper.java | 63 String PACKAGE_NAME = "package_name"; field 89 AnomalyColumns.PACKAGE_NAME + 106 String PACKAGE_NAME = "package_name"; field 127 ActionColumns.PACKAGE_NAME + 134 + ActionColumns.PACKAGE_NAME + ")"
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryDatabaseManager.java | 24 …static com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper.AnomalyColumns.PACKAGE_NAME; 90 values.put(PACKAGE_NAME, packageName); in insertAnomaly() 104 final String[] projection = {PACKAGE_NAME, ANOMALY_TYPE, UID}; in queryAllAnomalies() 119 cursor.getString(cursor.getColumnIndex(PACKAGE_NAME))); in queryAllAnomalies() 157 db.update(TABLE_ANOMALY, values, PACKAGE_NAME + " IN (" + TextUtils.join(",", in updateAnomalies() 199 values.put(ActionColumns.PACKAGE_NAME, packageName); in insertAction() 214 + ActionColumns.PACKAGE_NAME + " = ? "; in deleteAction()
|
D | AnomalyDatabaseHelper.java | 63 String PACKAGE_NAME = "package_name"; field 89 AnomalyColumns.PACKAGE_NAME + 106 String PACKAGE_NAME = "package_name"; field 127 ActionColumns.PACKAGE_NAME + 134 + ActionColumns.PACKAGE_NAME + ")"
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | LastAccessedProvider.java | 69 public static final String PACKAGE_NAME = "package_name"; field in LastAccessedProvider.Columns 102 Columns.PACKAGE_NAME + " TEXT NOT NULL PRIMARY KEY," + in onCreate() 147 return db.query(TABLE_LAST_ACCESSED, projection, Columns.PACKAGE_NAME + "=?", in query() 168 key.put(Columns.PACKAGE_NAME, packageName); in insert() 172 db.update(TABLE_LAST_ACCESSED, values, Columns.PACKAGE_NAME + "=?", in insert() 255 cursor, Columns.PACKAGE_NAME); in purgeByAuthority() 256 db.delete(TABLE_LAST_ACCESSED, Columns.PACKAGE_NAME + "=?", in purgeByAuthority()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | ChangeWifiStateDetailsTest.java | 42 private static final String PACKAGE_NAME = "app"; field in ChangeWifiStateDetailsTest 61 mFragment.logSpecialPermissionChange(true /*newState*/, PACKAGE_NAME); in testLogSpecialPermissionChange_setTrue_returnAllow() 64 eq(PACKAGE_NAME)); in testLogSpecialPermissionChange_setTrue_returnAllow() 69 mFragment.logSpecialPermissionChange(false /*newState*/, PACKAGE_NAME); in testLogSpecialPermissionChange_setFalse_returnDeny() 72 eq(PACKAGE_NAME)); in testLogSpecialPermissionChange_setFalse_returnDeny()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | AppInfoTest.java | 36 private static final String PACKAGE_NAME = "com.android.app"; field in AppInfoTest 49 .setPackageName(PACKAGE_NAME) in setUp() 65 assertThat(appInfo.packageName).isEqualTo(PACKAGE_NAME); in testParcel() 74 .setPackageName(PACKAGE_NAME) in testCompareTo_hasCorrectOrder() 89 assertThat(mAppInfo.packageName).isEqualTo(PACKAGE_NAME); in testBuilder()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/ |
D | RestrictAppTipTest.java | 55 private static final String PACKAGE_NAME = "com.android.app"; field in RestrictAppTipTest 82 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(PACKAGE_NAME, in setUp() 90 .setPackageName(PACKAGE_NAME) in setUp() 123 assertThat(app.packageName).isEqualTo(PACKAGE_NAME); in parcelable() 233 PACKAGE_NAME, in testLog_stateNew_logAppInfo() 238 PACKAGE_NAME, in testLog_stateNew_logAppInfo()
|