/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | AppButtonsPreferenceController.java | 94 ApplicationsState.AppEntry mAppEntry; field in AppButtonsPreferenceController 150 mAppEntry = mState.getEntry(packageName, mUserId); in AppButtonsPreferenceController() 161 return mAppEntry != null && !AppUtils.isInstant(mAppEntry.info); in isAvailable() 212 final String packageName = mAppEntry.info.packageName; in onClick() 233 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in onClick() 234 if (mAppEntry.info.enabled && !isDisabledUntilUsed()) { in onClick() 246 mAppEntry.info.enabled in onClick() 249 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in onClick() 252 } else if ((mAppEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) == 0) { in onClick() 272 AsyncTask.execute(new DisableChangerRunnable(mPm, mAppEntry.info.packageName, in handleActivityResult() [all …]
|
D | AdvancedPowerUsageDetail.java | 97 ApplicationsState.AppEntry mAppEntry; field in AdvancedPowerUsageDetail 206 mAppEntry = mState.getEntry(mPackageName, UserHandle.myUserId()); in onCreate() 240 if (mAppEntry == null) { in initHeader() 250 mState.ensureIcon(mAppEntry); in initHeader() 251 controller.setLabel(mAppEntry); in initHeader() 252 controller.setIcon(mAppEntry); in initHeader() 253 boolean isInstantApp = AppUtils.isInstant(mAppEntry.info); in initHeader() 255 ? null : getString(Utils.getInstallationStatus(mAppEntry.info)); in initHeader() 256 controller.setIsInstantApp(AppUtils.isInstant(mAppEntry.info)); in initHeader()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | InstalledAppDetails.java | 239 if (mHomePackages.contains(mAppEntry.info.packageName) in handleDisableable() 243 } else if (mAppEntry.info.enabled && !isDisabledUntilUsed()) { in handleDisableable() 246 .contains(mAppEntry.info.packageName); in handleDisableable() 256 return mAppEntry.info.enabledSetting in isDisabledUntilUsed() 261 final boolean isBundled = (mAppEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in initUninstallButtons() 282 if (Utils.isDeviceProvisioningPackage(getResources(), mAppEntry.info.packageName)) { in initUninstallButtons() 322 if (webviewUpdateService.isFallbackPackage(mAppEntry.info.packageName)) { in initUninstallButtons() 393 AppItem app = new AppItem(mAppEntry.info.uid); in onResume() 394 app.addUid(mAppEntry.info.uid); in onResume() 464 if (mAppEntry != null && mAppEntry.info != null) { in onActivityCreated() [all …]
|
D | PremiumSmsAccess.java | 96 logSpecialPermissionChange(smsState, pref.mAppEntry.info.packageName); in onPreferenceChange() 97 mSmsBackend.setSmsState(pref.mAppEntry.info.packageName, smsState); in onPreferenceChange() 198 private final AppEntry mAppEntry; field in PremiumSmsAccess.PremiumSmsPreference 202 mAppEntry = appEntry; in PremiumSmsPreference() 203 mAppEntry.ensureLabel(context); in PremiumSmsPreference() 204 setTitle(mAppEntry.label); in PremiumSmsPreference() 205 if (mAppEntry.icon != null) { in PremiumSmsPreference() 206 setIcon(mAppEntry.icon); in PremiumSmsPreference() 219 return mAppEntry.extraInfo instanceof SmsState in getCurrentValue() 220 ? ((SmsState) mAppEntry.extraInfo).smsState in getCurrentValue() [all …]
|
D | AppStorageSettings.java | 208 } else if (mAppEntry.info.manageSpaceActivityName != null) { in onClick() 211 intent.setClassName(mAppEntry.info.packageName, in onClick() 212 mAppEntry.info.manageSpaceActivityName); in onClick() 248 mAppEntry.info); in onClick() 252 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, mAppEntry.info.packageName); in onClick() 261 if (mAppEntry == null) { in refreshUi() 268 .getPackageCurrentVolume(mAppEntry.info); in refreshUi() 283 final boolean appHasSpaceManagementUI = mAppEntry.info.manageSpaceActivityName != null; in initDataButtons() 287 (mAppEntry.info.flags & (FLAG_SYSTEM | FLAG_ALLOW_CLEAR_USER_DATA)) == FLAG_SYSTEM; in initDataButtons() 292 intent.setClassName(mAppEntry.info.packageName, mAppEntry.info.manageSpaceActivityName); in initDataButtons() [all …]
|
D | AppInfoBase.java | 72 protected ApplicationsState.AppEntry mAppEntry; field in AppInfoBase 146 mAppEntry = mState.getEntry(mPackageName, mUserId); in retrieveAppEntry() 147 if (mAppEntry != null) { in retrieveAppEntry() 150 mPackageInfo = mPm.getPackageInfo(mAppEntry.info.packageName, in retrieveAppEntry() 156 Log.e(TAG, "Exception when retrieving package:" + mAppEntry.info.packageName, e); in retrieveAppEntry() 298 if (!mFinishing && (mAppEntry == null || mAppEntry.info == null 299 || TextUtils.equals(mAppEntry.info.packageName, packageName))) {
|
D | ClearDefaultsPreference.java | 53 protected ApplicationsState.AppEntry mAppEntry; field in ClearDefaultsPreference 86 mAppEntry = entry; in setAppEntry() 120 mAppWidgetManager.hasBindAppWidgetPermission(mAppEntry.info.packageName); in updateUI()
|
D | AppLaunchSettings.java | 85 (mAppEntry.info.privateFlags & ApplicationInfo.PRIVATE_FLAG_HAS_DOMAIN_URLS) != 0; in onCreate() 193 mClearDefaultsPreference.setAppEntry(mAppEntry); in refreshUi()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | AppButtonsPreferenceControllerTest.java | 86 private ApplicationsState.AppEntry mAppEntry; field in AppButtonsPreferenceControllerTest 117 doReturn(mAppEntry).when(mState).getEntry(anyString(), anyInt()); in setUp() 126 mAppEntry.info = mAppInfo; in setUp() 154 assertThat(mController.mAppEntry).isNotNull(); in testRetrieveAppEntry_hasAppEntry_notNull() 166 assertThat(mController.mAppEntry).isNull(); in testRetrieveAppEntry_noAppEntry_null() 173 doReturn(mAppEntry).when(mState).getEntry(anyString(), anyInt()); in testRetrieveAppEntry_throwException_null() 179 assertThat(mController.mAppEntry).isNotNull(); in testRetrieveAppEntry_throwException_null() 196 mController.mAppEntry = mAppEntry; in testIsAvailable_nonInstantApp() 209 mController.mAppEntry = mAppEntry; in testIsAvailable_instantApp() 307 assertThat(mController.mAppEntry).isSameAs(appEntry); in testForceStopPackage_methodInvokedAndUpdated() [all …]
|
D | AdvancedPowerUsageDetailTest.java | 113 private ApplicationsState.AppEntry mAppEntry; field in AdvancedPowerUsageDetailTest 196 mAppEntry.info = mock(ApplicationInfo.class); in setUp() 236 mFragment.mAppEntry = null; in testInitHeader_NoAppEntry_BuildByBundle() 252 mFragment.mAppEntry = mAppEntry; in testInitHeader_HasAppEntry_BuildByAppEntry() 255 verify(mEntityHeaderController).setIcon(mAppEntry); in testInitHeader_HasAppEntry_BuildByAppEntry() 256 verify(mEntityHeaderController).setLabel(mAppEntry); in testInitHeader_HasAppEntry_BuildByAppEntry() 269 mFragment.mAppEntry = mAppEntry; in testInitHeader_HasAppEntry_InstantApp() 272 verify(mEntityHeaderController).setIcon(mAppEntry); in testInitHeader_HasAppEntry_InstantApp() 273 verify(mEntityHeaderController).setLabel(mAppEntry); in testInitHeader_HasAppEntry_InstantApp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | UnrestrictedDataAccessTest.java | 50 private ApplicationsState.AppEntry mAppEntry; field in UnrestrictedDataAccessTest 64 mAppEntry.info = new ApplicationInfo(); in testShouldAddPreferenceForApps() 65 mAppEntry.info.uid = Process.FIRST_APPLICATION_UID + 10; in testShouldAddPreferenceForApps() 67 assertThat(mFragment.shouldAddPreference(mAppEntry)).isTrue(); in testShouldAddPreferenceForApps() 72 mAppEntry.info = new ApplicationInfo(); in testShouldNotAddPreferenceForNonApps() 73 mAppEntry.info.uid = Process.FIRST_APPLICATION_UID - 10; in testShouldNotAddPreferenceForNonApps() 75 assertThat(mFragment.shouldAddPreference(mAppEntry)).isFalse(); in testShouldNotAddPreferenceForNonApps()
|