Home
last modified time | relevance | path

Searched refs:appInfo (Results 1 – 25 of 118) sorted by relevance

12345

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRestrictedAppDetails.java153 final AppInfo appInfo = mAppInfos.get(i); in refreshUi() local
156 appInfo.packageName, 0 /* flags */, UserHandle.getUserId(appInfo.uid)); in refreshUi()
158 mBatteryUtils.isForceAppStandbyEnabled(appInfo.uid, appInfo.packageName)); in refreshUi()
162 appInfo.packageName, in refreshUi()
163 UserHandle.getUserId(appInfo.uid))); in refreshUi()
164 checkBoxPreference.setKey(getKeyFromAppInfo(appInfo)); in refreshUi()
166 final BatteryTipDialogFragment fragment = createDialogFragment(appInfo, in refreshUi()
174 final long timestamp = timestampArray.get(appInfo.uid, TIME_NULL); in refreshUi()
182 Log.e(TAG, "Can't find package: " + appInfo.packageName); in refreshUi()
189 final AppInfo appInfo; in onBatteryTipHandled() local
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DRestrictedAppDetails.java153 final AppInfo appInfo = mAppInfos.get(i); in refreshUi() local
156 appInfo.packageName, 0 /* flags */, UserHandle.getUserId(appInfo.uid)); in refreshUi()
158 mBatteryUtils.isForceAppStandbyEnabled(appInfo.uid, appInfo.packageName)); in refreshUi()
162 appInfo.packageName, in refreshUi()
163 UserHandle.getUserId(appInfo.uid))); in refreshUi()
164 checkBoxPreference.setKey(getKeyFromAppInfo(appInfo)); in refreshUi()
166 final BatteryTipDialogFragment fragment = createDialogFragment(appInfo, in refreshUi()
174 final long timestamp = timestampArray.get(appInfo.uid, TIME_NULL); in refreshUi()
182 Log.e(TAG, "Can't find package: " + appInfo.packageName); in refreshUi()
189 final AppInfo appInfo; in onBatteryTipHandled() local
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationListItemManagerTest.java88 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 …]
DApplicationsSettingsPreferenceControllerTest.java76 ApplicationInfo appInfo = new ApplicationInfo(); in onDataLoaded_addPreference_hasOnePreference() local
77 appInfo.uid = UID; in onDataLoaded_addPreference_hasOnePreference()
78 appInfo.sourceDir = SOURCE; in onDataLoaded_addPreference_hasOnePreference()
80 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_addPreference_hasOnePreference()
97 ApplicationInfo appInfo = new ApplicationInfo(); in preferenceClick_launchesDetailFragment() local
98 appInfo.uid = UID; in preferenceClick_launchesDetailFragment()
99 appInfo.sourceDir = SOURCE; in preferenceClick_launchesDetailFragment()
101 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in preferenceClick_launchesDetailFragment()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/
DPaymentBackend.java94 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 …]
DNfcPaymentPreferenceController.java209 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/
DPaymentBackend.java94 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 …]
DNfcPaymentPreferenceController.java209 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/
DAppLinkCardView.java112 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/
DAppOpsState.java504 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/
DAppOpsState.java504 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/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageApplicationListPreferenceControllerTest.java74 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/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DAdjustUserSensitiveFragment.java150 ApplicationInfo appInfo = mSortedNonSensitivityPackages.get(i); in updateOverrideUi() local
151 mLabelCache.put(appInfo.packageName, getFullAppLabel(appInfo, getContext())); in updateOverrideUi()
189 ApplicationInfo appInfo = mSortedNonSensitivityPackages.get(pkgNum); in updatePerPackageOverrideSwitches() local
191 NonUserSensitiveAppPreference pref = oldPrefs.remove(appInfo.packageName + appInfo.uid); in updatePerPackageOverrideSwitches()
194 mLabelCache.get(appInfo.packageName), in updatePerPackageOverrideSwitches()
195 Utils.getBadgedIcon(context, appInfo)); in updatePerPackageOverrideSwitches()
196 pref.setKey(appInfo.packageName + appInfo.uid); in updatePerPackageOverrideSwitches()
200 mViewModel.setUidUserSensitive(appInfo.uid, (Boolean) isChecked); in updatePerPackageOverrideSwitches()
209 appInfo.uid) >= 0); in updatePerPackageOverrideSwitches()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/autofill/
DAutofillHelper.java95 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/
DAppInfoTest.java63 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/
DDomainAppPreferenceControllerTest.java60 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/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/
DRestrictAppTip.java47 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/tips/
DRestrictAppTip.java47 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/
DTermsProvider.java122 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DUserAppInfo.java31 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/
DUserAppInfo.java31 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/PermissionController/src/com/android/packageinstaller/permission/ui/
DReviewAccessibilityServicesActivity.java84 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/
DRestrictAppAction.java59 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/
DRestrictAppAction.java59 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/Launcher3/src/com/android/launcher3/icons/
DLauncherIcons.java174 AppInfo appInfo = new AppInfo(); in getShortcutInfoBadge() local
175 appInfo.user = shortcutInfo.getUserHandle(); in getShortcutInfoBadge()
176 appInfo.componentName = cn; in getShortcutInfoBadge()
177 appInfo.intent = new Intent(Intent.ACTION_MAIN) in getShortcutInfoBadge()
180 cache.getTitleAndIcon(appInfo, false); in getShortcutInfoBadge()
181 return appInfo; in getShortcutInfoBadge()

12345