/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | RestrictedAppDetails.java | 148 final AppInfo appInfo = mAppInfos.get(i); in refreshUi() local 151 appInfo.packageName, 0 /* flags */, UserHandle.getUserId(appInfo.uid)); in refreshUi() 153 mBatteryUtils.isForceAppStandbyEnabled(appInfo.uid, appInfo.packageName)); in refreshUi() 157 appInfo.packageName, in refreshUi() 158 UserHandle.getUserId(appInfo.uid))); in refreshUi() 159 checkBoxPreference.setKey(getKeyFromAppInfo(appInfo)); in refreshUi() 161 final BatteryTipDialogFragment fragment = createDialogFragment(appInfo, in refreshUi() 169 final long timestamp = timestampArray.get(appInfo.uid, TIME_NULL); in refreshUi() 177 Log.e(TAG, "Can't find package: " + appInfo.packageName); in refreshUi() 184 final AppInfo appInfo; in onBatteryTipHandled() local [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | RestrictedAppDetails.java | 148 final AppInfo appInfo = mAppInfos.get(i); in refreshUi() local 151 appInfo.packageName, 0 /* flags */, UserHandle.getUserId(appInfo.uid)); in refreshUi() 153 mBatteryUtils.isForceAppStandbyEnabled(appInfo.uid, appInfo.packageName)); in refreshUi() 157 appInfo.packageName, in refreshUi() 158 UserHandle.getUserId(appInfo.uid))); in refreshUi() 159 checkBoxPreference.setKey(getKeyFromAppInfo(appInfo)); in refreshUi() 161 final BatteryTipDialogFragment fragment = createDialogFragment(appInfo, in refreshUi() 169 final long timestamp = timestampArray.get(appInfo.uid, TIME_NULL); in refreshUi() 177 Log.e(TAG, "Can't find package: " + appInfo.packageName); in refreshUi() 184 final AppInfo appInfo; in onBatteryTipHandled() local [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/ |
D | ApplicationListItemManagerTest.java | 88 ApplicationInfo appInfo = new ApplicationInfo(); in onRebuildComplete_shouldNotifyRegisteredListener() local 89 appInfo.uid = UID; in onRebuildComplete_shouldNotifyRegisteredListener() 90 appInfo.sourceDir = SOURCE; in onRebuildComplete_shouldNotifyRegisteredListener() 92 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onRebuildComplete_shouldNotifyRegisteredListener() 110 ApplicationInfo appInfo = new ApplicationInfo(); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() local 111 appInfo.uid = UID; in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() 112 appInfo.sourceDir = SOURCE; in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() 114 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() 133 ApplicationInfo appInfo = new ApplicationInfo(); in onRebuildComplete_calledAgainImmediately_shouldNotRunSecondCallImmediately() local 134 appInfo.uid = UID; in onRebuildComplete_calledAgainImmediately_shouldNotRunSecondCallImmediately() [all …]
|
D | ApplicationsSettingsPreferenceControllerTest.java | 77 ApplicationInfo appInfo = new ApplicationInfo(); in onDataLoaded_addPreference_hasOnePreference() local 78 appInfo.uid = UID; in onDataLoaded_addPreference_hasOnePreference() 79 appInfo.sourceDir = SOURCE; in onDataLoaded_addPreference_hasOnePreference() 81 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_addPreference_hasOnePreference() 98 ApplicationInfo appInfo = new ApplicationInfo(); in preferenceClick_launchesDetailFragment() local 99 appInfo.uid = UID; in preferenceClick_launchesDetailFragment() 100 appInfo.sourceDir = SOURCE; in preferenceClick_launchesDetailFragment() 102 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in preferenceClick_launchesDetailFragment()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/ |
D | PaymentBackend.java | 94 PaymentAppInfo appInfo = new PaymentAppInfo(); in refresh() local 95 appInfo.label = service.loadLabel(pm); in refresh() 96 if (appInfo.label == null) { in refresh() 97 appInfo.label = service.loadAppLabel(pm); in refresh() 99 appInfo.isDefault = service.getComponent().equals(defaultAppName); in refresh() 100 if (appInfo.isDefault) { in refresh() 101 foundDefaultApp = appInfo; in refresh() 103 appInfo.componentName = service.getComponent(); in refresh() 106 appInfo.settingsComponent = new ComponentName( in refresh() 107 appInfo.componentName.getPackageName(), in refresh() [all …]
|
D | NfcPaymentPreferenceController.java | 209 final PaymentAppInfo appInfo = appInfos[position]; in getView() local 222 holder.radioButton.setChecked(appInfo.isDefault); in getView() 223 holder.radioButton.setContentDescription(appInfo.label); in getView() 225 holder.radioButton.setTag(appInfo); in getView() 226 holder.radioButton.setText(appInfo.label); in getView() 236 PaymentAppInfo appInfo = (PaymentAppInfo) compoundButton.getTag(); in onCheckedChanged() local 237 makeDefault(appInfo); in onCheckedChanged() 242 PaymentAppInfo appInfo = (PaymentAppInfo) view.getTag(); in onClick() local 243 makeDefault(appInfo); in onClick() 246 private void makeDefault(PaymentAppInfo appInfo) { in makeDefault() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | PaymentBackend.java | 94 PaymentAppInfo appInfo = new PaymentAppInfo(); in refresh() local 95 appInfo.label = service.loadLabel(pm); in refresh() 96 if (appInfo.label == null) { in refresh() 97 appInfo.label = service.loadAppLabel(pm); in refresh() 99 appInfo.isDefault = service.getComponent().equals(defaultAppName); in refresh() 100 if (appInfo.isDefault) { in refresh() 101 foundDefaultApp = appInfo; in refresh() 103 appInfo.componentName = service.getComponent(); in refresh() 106 appInfo.settingsComponent = new ComponentName( in refresh() 107 appInfo.componentName.getPackageName(), in refresh() [all …]
|
D | NfcPaymentPreferenceController.java | 209 final PaymentAppInfo appInfo = appInfos[position]; in getView() local 222 holder.radioButton.setChecked(appInfo.isDefault); in getView() 223 holder.radioButton.setContentDescription(appInfo.label); in getView() 225 holder.radioButton.setTag(appInfo); in getView() 226 holder.radioButton.setText(appInfo.label); in getView() 236 PaymentAppInfo appInfo = (PaymentAppInfo) compoundButton.getTag(); in onCheckedChanged() local 237 makeDefault(appInfo); in onCheckedChanged() 242 PaymentAppInfo appInfo = (PaymentAppInfo) view.getTag(); in onClick() local 243 makeDefault(appInfo); in onClick() 246 private void makeDefault(PaymentAppInfo appInfo) { in makeDefault() argument [all …]
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | AppLinkCardView.java | 112 ApplicationInfo appInfo = mTvInputManagerHelper.getTvInputAppInfo(mChannel.getInputId()); in onBind() local 134 if (appInfo != null) { in onBind() 135 return mPackageManager.getApplicationLabel(appInfo); in onBind() 160 } else if (appInfo.icon != 0) { in onBind() 174 return mPackageManager.getApplicationIcon(appInfo); in onBind() 209 if (appInfo != null) { in onBind() 210 return mPackageManager.getApplicationLabel(appInfo); in onBind() 257 setCardImageWithBanner(appInfo); in onBind() 320 private void setCardImageWithBanner(ApplicationInfo appInfo) { 348 setCardImageWithApplicationInfoBanner(appInfo); [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/appops/ |
D | AppOpsState.java | 504 final String packageName, ApplicationInfo appInfo) { in getAppEntry() argument 507 if (appInfo == null) { in getAppEntry() 509 appInfo = mPm.getApplicationInfo(packageName, in getAppEntry() 517 appEntry = new AppEntry(this, appInfo); in getAppEntry() 585 PackageInfo appInfo = apps.get(i); in buildState() local 586 AppEntry appEntry = getAppEntry(context, appEntries, appInfo.packageName, in buildState() 587 appInfo.applicationInfo); in buildState() 593 if (appInfo.requestedPermissions != null) { in buildState() 594 for (int j=0; j<appInfo.requestedPermissions.length; j++) { in buildState() 595 if (appInfo.requestedPermissionsFlags != null) { in buildState() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/ |
D | AppOpsState.java | 505 final String packageName, ApplicationInfo appInfo) { in getAppEntry() argument 508 if (appInfo == null) { in getAppEntry() 510 appInfo = mPm.getApplicationInfo(packageName, in getAppEntry() 518 appEntry = new AppEntry(this, appInfo); in getAppEntry() 586 PackageInfo appInfo = apps.get(i); in buildState() local 587 AppEntry appEntry = getAppEntry(context, appEntries, appInfo.packageName, in buildState() 588 appInfo.applicationInfo); in buildState() 594 if (appInfo.requestedPermissions != null) { in buildState() 595 for (int j=0; j<appInfo.requestedPermissions.length; j++) { in buildState() 596 if (appInfo.requestedPermissionsFlags != null) { in buildState() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | StorageApplicationListPreferenceControllerTest.java | 74 ApplicationInfo appInfo = new ApplicationInfo(); in onDataLoaded_addPreference_hasOnePreference() local 75 appInfo.uid = UID; in onDataLoaded_addPreference_hasOnePreference() 76 appInfo.sourceDir = SOURCE; in onDataLoaded_addPreference_hasOnePreference() 78 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_addPreference_hasOnePreference() 96 ApplicationInfo appInfo = new ApplicationInfo(); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() local 97 appInfo.uid = UID; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() 98 appInfo.sourceDir = SOURCE; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() 100 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() 111 appEntry = new ApplicationsState.AppEntry(mContext, appInfo, 1234L); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/autofill/ |
D | AutofillHelper.java | 95 DefaultAppInfo appInfo = candidates.get(i); in getCurrentAutofill() local 96 if ((name == null && appInfo.componentName == null) in getCurrentAutofill() 97 || (name != null && name.equals(appInfo.componentName))) { in getCurrentAutofill() 98 return appInfo; in getCurrentAutofill() 109 @NonNull PackageManager pm, @Nullable DefaultAppInfo appInfo) { in getAutofillSettingsIntent() argument 110 if (appInfo == null || appInfo.componentName == null) { in getAutofillSettingsIntent() 113 String plattenString = appInfo.componentName.flattenToString(); in getAutofillSettingsIntent()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | AppInfoTest.java | 63 final AppInfo appInfo = new AppInfo(parcel); in testParcel() local 65 assertThat(appInfo.packageName).isEqualTo(PACKAGE_NAME); in testParcel() 66 assertThat(appInfo.anomalyTypes).containsExactly(TYPE_WAKELOCK, TYPE_WAKEUP); in testParcel() 67 assertThat(appInfo.screenOnTimeMs).isEqualTo(SCREEN_TIME_MS); in testParcel() 68 assertThat(appInfo.uid).isEqualTo(UID); in testParcel() 73 final AppInfo appInfo = new AppInfo.Builder() in testCompareTo_hasCorrectOrder() local 80 appInfos.add(appInfo); in testCompareTo_hasCorrectOrder()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/managedomainurls/ |
D | DomainAppPreferenceControllerTest.java | 60 ApplicationInfo appInfo = new ApplicationInfo(); in createApplicationInfo() local 61 appInfo.sourceDir = "foo"; in createApplicationInfo() 62 appInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in createApplicationInfo() 63 appInfo.storageUuid = UUID.randomUUID(); in createApplicationInfo() 64 appInfo.packageName = packageName; in createApplicationInfo() 65 return appInfo; in createApplicationInfo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | UserAppInfo.java | 31 public final ApplicationInfo appInfo; field in UserAppInfo 35 this.appInfo = mAppInfo; in UserAppInfo() 50 return that.userInfo.id == userInfo.id && TextUtils.equals(that.appInfo.packageName, in equals() 51 appInfo.packageName); in equals() 56 return Objects.hash(userInfo.id, appInfo.packageName); in hashCode()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | UserAppInfo.java | 31 public final ApplicationInfo appInfo; field in UserAppInfo 35 this.appInfo = mAppInfo; in UserAppInfo() 50 return that.userInfo.id == userInfo.id && TextUtils.equals(that.appInfo.packageName, in equals() 51 appInfo.packageName); in equals() 56 return Objects.hash(userInfo.id, appInfo.packageName); in hashCode()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/tips/ |
D | RestrictAppTip.java | 47 public RestrictAppTip(@StateType int state, AppInfo appInfo) { in RestrictAppTip() argument 50 mRestrictAppList.add(appInfo); in RestrictAppTip() 126 final AppInfo appInfo = mRestrictAppList.get(i); in log() local 127 for (Integer anomalyType : appInfo.anomalyTypes) { in log() 131 appInfo.packageName, in log() 160 final AppInfo appInfo = mRestrictAppList.get(i); in toString() local 161 stringBuilder.append(" " + appInfo.toString() + " "); in toString()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/ |
D | TermsProvider.java | 122 for (ApplicationInfo appInfo : appInfos) { in getSystemAppTerms() 123 String header = getStringMetaData(appInfo, EXTRA_PROVISIONING_DISCLAIMER_HEADER); in getSystemAppTerms() 124 String content = getStringMetaData(appInfo, EXTRA_PROVISIONING_DISCLAIMER_CONTENT); in getSystemAppTerms() 152 private String getStringMetaData(ApplicationInfo appInfo, String key) { in getStringMetaData() argument 153 if (appInfo.metaData != null) { in getStringMetaData() 154 int resId = appInfo.metaData.getInt(key); in getStringMetaData() 158 appInfo).getString(resId); in getStringMetaData()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/ |
D | RestrictAppTip.java | 47 public RestrictAppTip(@StateType int state, AppInfo appInfo) { in RestrictAppTip() argument 50 mRestrictAppList.add(appInfo); in RestrictAppTip() 126 final AppInfo appInfo = mRestrictAppList.get(i); in log() local 127 for (Integer anomalyType : appInfo.anomalyTypes) { in log() 131 appInfo.packageName, in log() 160 final AppInfo appInfo = mRestrictAppList.get(i); in toString() local 161 stringBuilder.append(" " + appInfo.toString() + " "); in toString()
|
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/ |
D | ReviewAccessibilityServicesActivity.java | 84 ApplicationInfo appInfo = serviceInfo.applicationInfo; in createDialogView() local 86 long lastAccessTime = getLastAccessTime(appInfo, appOpsManager); in createDialogView() 97 headerIcon.setImageDrawable(Utils.getBadgedIcon(this, appInfo)); in createDialogView() 121 Utils.getBadgedIcon(this, appInfo)); in createDialogView() 154 private static long getLastAccessTime(@NonNull ApplicationInfo appInfo, in getLastAccessTime() argument 156 List<AppOpsManager.PackageOps> ops = appOpsManager.getOpsForPackage(appInfo.uid, in getLastAccessTime() 157 appInfo.packageName, AppOpsManager.OPSTR_ACCESS_ACCESSIBILITY); in getLastAccessTime()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/ |
D | RestrictAppAction.java | 59 final AppInfo appInfo = appInfos.get(i); in handlePositiveAction() local 60 final String packageName = appInfo.packageName; in handlePositiveAction() 62 mBatteryUtils.setForceAppStandby(appInfo.uid, packageName, in handlePositiveAction() 64 if (CollectionUtils.isEmpty(appInfo.anomalyTypes)) { in handlePositiveAction() 72 for (int type : appInfo.anomalyTypes) { in handlePositiveAction()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/actions/ |
D | RestrictAppAction.java | 59 final AppInfo appInfo = appInfos.get(i); in handlePositiveAction() local 60 final String packageName = appInfo.packageName; in handlePositiveAction() 62 mBatteryUtils.setForceAppStandby(appInfo.uid, packageName, in handlePositiveAction() 64 if (CollectionUtils.isEmpty(appInfo.anomalyTypes)) { in handlePositiveAction() 72 for (int type : appInfo.anomalyTypes) { in handlePositiveAction()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | Util.java | 57 public static Uri getResourceUri(Context context, ApplicationInfo appInfo, int res) { in getResourceUri() argument 59 Resources resources = context.getPackageManager().getResourcesForApplication(appInfo); in getResourceUri() 60 return getResourceUri(resources, appInfo.packageName, res); in getResourceUri() 62 Log.e(TAG, "Resources not found for " + appInfo.packageName); in getResourceUri() 65 Log.e(TAG, "Resource not found: " + res + " in " + appInfo.packageName); in getResourceUri()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | LocationFooterPreferenceController.java | 115 ApplicationInfo appInfo = activityInfo.applicationInfo; in getFooterData() local 118 if ((appInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { in getFooterData() 141 footerDataList.add(new FooterData(footerTextRes, appInfo)); in getFooterData() 157 FooterData(int footerRes, ApplicationInfo appInfo) { in FooterData() argument 159 this.applicationInfo = appInfo; in FooterData()
|