/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 | 90 private static final String PACKAGE_NAME = "com.android.car.settings.test"; field in ApplicationDetailsFragmentTest 113 mFragment = ApplicationDetailsFragment.getInstance(PACKAGE_NAME); in setUp() 130 getShadowPackageManager().addPackage(createPackageInfoWithApplicationInfo(PACKAGE_NAME)); in onStart_packageNotExplicitlyStopped_enablesForceStopButton() 140 getShadowPackageManager().addPackage(createPackageInfoWithApplicationInfo(PACKAGE_NAME)); in onStart_packageHasActiveAdmins_disablesForceStopButton() 144 PACKAGE_NAME, /* hasActiveAdmins= */ true); in onStart_packageHasActiveAdmins_disablesForceStopButton() 152 getShadowPackageManager().addPackage(createPackageInfoWithApplicationInfo(PACKAGE_NAME)); in onStart_appsControlUserRestriction_disablesForceStopButton() 165 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_packageExplicitlyStopped_queriesPackageRestart() 177 new String[]{PACKAGE_NAME}); in onStart_packageExplicitlyStopped_queriesPackageRestart() 183 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_packageExplicitlyStopped_success_enablesForceStopButton() 207 PackageInfo packageInfo = createPackageInfoWithApplicationInfo(PACKAGE_NAME); in onStart_packageExplicitlyStopped_failure_disablesForceStopButton() [all …]
|
D | ApplicationsUtilsTest.java | 48 private static final String PACKAGE_NAME = "com.android.car.settings.test"; field in ApplicationsUtilsTest 59 ShadowDefaultDialerManager.setDefaultDialerApplication(PACKAGE_NAME); in isKeepEnabledPackage_defaultDialerApplication_returnsTrue() 62 PACKAGE_NAME)).isTrue(); in isKeepEnabledPackage_defaultDialerApplication_returnsTrue() 67 ShadowSmsApplication.setDefaultSmsApplication(new ComponentName(PACKAGE_NAME, "cls")); in isKeepEnabledPackage_defaultSmsApplication_returnsTrue() 70 PACKAGE_NAME)).isTrue(); in isKeepEnabledPackage_defaultSmsApplication_returnsTrue() 76 PACKAGE_NAME)).isFalse(); in isKeepEnabledPackage_returnsFalse() 88 new ComponentName(PACKAGE_NAME, "cls")); in isProfileOrDeviceOwner_profileOwner_returnsTrue() 90 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, dpm, userHelper)) in isProfileOrDeviceOwner_profileOwner_returnsTrue() 97 when(dpm.isDeviceOwnerAppOnAnyUser(PACKAGE_NAME)).thenReturn(true); in isProfileOrDeviceOwner_deviceOwner_returnsTrue() 99 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/bugreporthandler/ |
D | BugReportHandlerPickerTest.java | 60 private static final String PACKAGE_NAME = "com.example.test"; field in BugReportHandlerPickerTest 78 applicationInfo.name = PACKAGE_NAME; in setUp() 81 applicationInfo.packageName = PACKAGE_NAME; in setUp() 84 packageInfo.packageName = PACKAGE_NAME; in setUp() 87 mPackageManager.setUnbadgedApplicationIcon(PACKAGE_NAME, new ColorDrawable()); in setUp() 102 mPackageManager.removePackage(PACKAGE_NAME); in tearDown() 137 createApplicationInfo(PACKAGE_NAME), USER_ID))); in testClickingItemSuccess() 138 when(mBugReportHandlerUtil.setCurrentBugReportHandlerAppAndUser(any(), eq(PACKAGE_NAME), in testClickingItemSuccess() 143 BugReportHandlerPicker.getKey(PACKAGE_NAME, USER_ID)); in testClickingItemSuccess() 147 eq(PACKAGE_NAME), eq(USER_ID)); in testClickingItemSuccess() [all …]
|
/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 | 117 private static final String PACKAGE_NAME = "com.android.app"; field in BatteryUtilsTest 470 doReturn(mApplicationInfo).when(mPackageManager).getApplicationInfo(PACKAGE_NAME, in testGetTargetSdkVersion_packageExist_returnSdk() 474 assertThat(mBatteryUtils.getTargetSdkVersion(PACKAGE_NAME)).isEqualTo(SDK_VERSION); in testGetTargetSdkVersion_packageExist_returnSdk() 481 mPackageManager).getApplicationInfo(PACKAGE_NAME, PackageManager.GET_META_DATA); in testGetTargetSdkVersion_packageNotExist_returnSdkNull() 483 assertThat(mBatteryUtils.getTargetSdkVersion(PACKAGE_NAME)).isEqualTo( in testGetTargetSdkVersion_packageNotExist_returnSdkNull() 490 AppOpsManager.OP_RUN_IN_BACKGROUND, UID, PACKAGE_NAME); in testBackgroundRestrictionOn_restrictionOn_returnTrue() 493 PACKAGE_NAME)).isTrue(); in testBackgroundRestrictionOn_restrictionOn_returnTrue() 499 AppOpsManager.OP_RUN_IN_BACKGROUND, UID, PACKAGE_NAME); in testBackgroundRestrictionOn_restrictionOff_returnFalse() 501 assertThat(mBatteryUtils.isBackgroundRestrictionEnabled(SDK_VERSION, UID, PACKAGE_NAME)) in testBackgroundRestrictionOn_restrictionOff_returnFalse() 621 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/fuelgauge/batterytip/ |
D | BatteryTipDialogFragmentTest.java | 64 private static final String PACKAGE_NAME = "com.android.app"; field in BatteryTipDialogFragmentTest 86 ShadowUtils.setApplicationLabel(PACKAGE_NAME, DISPLAY_NAME); in setUp() 92 applicationInfo.packageName = PACKAGE_NAME; in setUp() 95 packageInfo.packageName = PACKAGE_NAME; in setUp() 98 mPackageManager.setApplicationIcon(PACKAGE_NAME, new ColorDrawable()); in setUp() 103 .setPackageName(PACKAGE_NAME) in setUp() 123 mPackageManager.removePackage(PACKAGE_NAME); in tearDown() 217 ShadowUtils.setApplicationLabel(PACKAGE_NAME, DISPLAY_NAME); in testOnCreateDialog_unRestrictAppTip_fireUnRestrictDialog()
|
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/search/ |
D | SettingsSearchIndexablesProviderTest.java | 35 private static final String PACKAGE_NAME = "com.android.settings"; field in SettingsSearchIndexablesProviderTest 36 private static final String BASE_AUTHORITY = "content://" + PACKAGE_NAME + "/"; 47 info.authority = PACKAGE_NAME; in setUp() 126 activityInfo.packageName = PACKAGE_NAME; in testIsEligibleForIndexing_isSettingsInjectedItem_ShouldBeFalse() 131 assertThat(mProvider.isEligibleForIndexing(PACKAGE_NAME, activityTile)).isFalse(); in testIsEligibleForIndexing_isSettingsInjectedItem_ShouldBeFalse() 142 assertThat(mProvider.isEligibleForIndexing(PACKAGE_NAME, activityTile)).isFalse(); in testIsEligibleForIndexing_isHomepageInjectedItem_ShouldBeFalse() 153 assertThat(mProvider.isEligibleForIndexing(PACKAGE_NAME, activityTile)).isTrue(); in testIsEligibleForIndexing_normalInjectedItem_ShouldBeTrue()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | AccessibilityDetailsSettingsFragmentTest.java | 57 private final static String PACKAGE_NAME = "com.foo.bar"; field in AccessibilityDetailsSettingsFragmentTest 58 private final static String CLASS_NAME = PACKAGE_NAME + ".fake_a11y_service"; 59 private final static String COMPONENT_NAME = PACKAGE_NAME + "/" + CLASS_NAME; 92 intent.putExtra(Intent.EXTRA_COMPONENT_NAME, PACKAGE_NAME + "/.service"); in onCreate_hasInvalidExtraComponentName_shouldOpenAccessibilityServicesList() 125 applicationInfo.packageName = PACKAGE_NAME; in getMockAccessibilityServiceInfo() 126 serviceInfo.packageName = PACKAGE_NAME; in getMockAccessibilityServiceInfo()
|
/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/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 | 70 public static final String PACKAGE_NAME = "package_name"; field in LastAccessedProvider.Columns 103 Columns.PACKAGE_NAME + " TEXT NOT NULL PRIMARY KEY," + in onCreate() 154 return db.query(TABLE_LAST_ACCESSED, projection, Columns.PACKAGE_NAME + "=?", in query() 175 key.put(Columns.PACKAGE_NAME, packageName); in insert() 179 db.update(TABLE_LAST_ACCESSED, values, Columns.PACKAGE_NAME + "=?", in insert() 262 cursor, Columns.PACKAGE_NAME); in purgeByAuthority() 263 db.delete(TABLE_LAST_ACCESSED, Columns.PACKAGE_NAME + "=?", in purgeByAuthority()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceControllerTest.java | 87 private static final String PACKAGE_NAME = "com.android.settings"; field in AppButtonsPreferenceControllerTest 146 mLifecycle, PACKAGE_NAME, mState, REQUEST_UNINSTALL, REQUEST_REMOVE_DEVICE_ADMIN)); in setUp() 149 mAppInfo.packageName = PACKAGE_NAME; in setUp() 151 mPackageInfo.packageName = PACKAGE_NAME; in setUp() 199 doReturn(null).when(mState).getEntry(eq(PACKAGE_NAME), anyInt()); in retrieveAppEntry_noAppEntry_null() 325 when(mSettingsActivity.getResources().getString(anyInt())).thenReturn(PACKAGE_NAME); in updateUninstallButton_isDeviceProvisioningApp_setButtonDisable() 344 mController.mHomePackages.add(PACKAGE_NAME); in updateUninstallButton_isHomeAppAndBundled_setButtonDisable() 404 mController.uninstallPkg(PACKAGE_NAME, ALL_USERS, DISABLE_AFTER_INSTALL); in uninstallPkg_intentSent() 420 mController.forceStopPackage(PACKAGE_NAME); in forceStopPackage_methodInvokedAndUpdated() 422 verify(mAm).forceStopPackage(PACKAGE_NAME); in forceStopPackage_methodInvokedAndUpdated() [all …]
|