/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | RestrictedAppDetails.java | 153 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() 172 appInfo.packageName); in refreshUi() 176 final long timestamp = timestampArray.get(appInfo.uid, TIME_NULL); in refreshUi() 184 Log.e(TAG, "Can't find package: " + appInfo.packageName); in refreshUi() [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 …]
|
/packages/modules/NeuralNetworks/runtime/ |
D | AppInfoFetcher.cpp | 43 bool fetchAppPackageLocationInfo(uid_t uid, AppInfoFetcher::AppInfo* appInfo) { in fetchAppPackageLocationInfo() argument 48 appInfo->appPackageName = packageInfo.appPackageName; in fetchAppPackageLocationInfo() 49 appInfo->appIsSystemApp = packageInfo.appIsSystemApp; in fetchAppPackageLocationInfo() 50 appInfo->appIsOnVendorImage = packageInfo.appIsOnVendorImage; in fetchAppPackageLocationInfo() 51 appInfo->appIsOnProductImage = packageInfo.appIsOnProductImage; in fetchAppPackageLocationInfo() 60 : appInfo({.binaryPath = ::android::procpartition::getExe(getpid()), in AppInfoFetcher() 65 if (appInfo.binaryPath == "/system/bin/app_process64" || 66 appInfo.binaryPath == "/system/bin/app_process32") { 67 if (!fetchAppPackageLocationInfo(getuid(), &appInfo)) {
|
/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/tests/componenttests/src/com/android/settingslib/applications/ |
D | ApplicationStateComponentTest.java | 54 ApplicationInfo appInfo = createApplicationInfo(packageName, id); in createAppEntry() local 56 appInfo, id); in createAppEntry() 63 ApplicationInfo appInfo = new ApplicationInfo(); in createApplicationInfo() local 64 appInfo.sourceDir = "foo"; in createApplicationInfo() 65 appInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in createApplicationInfo() 66 appInfo.storageUuid = UUID.randomUUID(); in createApplicationInfo() 67 appInfo.packageName = packageName; in createApplicationInfo() 68 appInfo.uid = uid; in createApplicationInfo() 69 return appInfo; in createApplicationInfo()
|
/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/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/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/sharedlibrarysupport/ |
D | SharedLibraryFactorySingleton.java | 182 private static AdapterClassLoader instantiateClassLoader(@NonNull ApplicationInfo appInfo, in instantiateClassLoader() argument 186 if (appInfo.nativeLibraryDir != null) { in instantiateClassLoader() 187 libraryPaths.add(appInfo.nativeLibraryDir); in instantiateClassLoader() 189 if ((appInfo.flags & ApplicationInfo.FLAG_EXTRACT_NATIVE_LIBS) == 0) { in instantiateClassLoader() 191 libraryPaths.add(appInfo.sourceDir + "!/lib/" + abi); in instantiateClassLoader() 198 String apkPaths = appInfo.sourceDir; in instantiateClassLoader() 199 if (appInfo.sharedLibraryFiles != null && appInfo.sharedLibraryFiles.length > 0) { in instantiateClassLoader() 206 appInfo.sharedLibraryFiles); in instantiateClassLoader()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/fuelgauge/batterytip/ |
D | AppInfoTest.java | 64 final AppInfo appInfo = new AppInfo(parcel); in testParcel() local 66 assertThat(appInfo.packageName).isEqualTo(PACKAGE_NAME); in testParcel() 67 assertThat(appInfo.anomalyTypes).containsExactly(TYPE_WAKELOCK, TYPE_WAKEUP); in testParcel() 68 assertThat(appInfo.screenOnTimeMs).isEqualTo(SCREEN_TIME_MS); in testParcel() 69 assertThat(appInfo.uid).isEqualTo(UID); in testParcel() 74 final AppInfo appInfo = new AppInfo.Builder() in testCompareTo_hasCorrectOrder() local 81 appInfos.add(appInfo); in testCompareTo_hasCorrectOrder()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
D | ApplicationsSettingsPreferenceControllerTest.java | 95 ApplicationInfo appInfo = new ApplicationInfo(); in onDataLoaded_addPreference_hasOnePreference() local 96 appInfo.uid = UID; in onDataLoaded_addPreference_hasOnePreference() 97 appInfo.sourceDir = SOURCE; in onDataLoaded_addPreference_hasOnePreference() 99 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_addPreference_hasOnePreference() 117 ApplicationInfo appInfo = new ApplicationInfo(); in preferenceClick_launchesDetailFragment() local 118 appInfo.uid = UID; in preferenceClick_launchesDetailFragment() 119 appInfo.sourceDir = SOURCE; in preferenceClick_launchesDetailFragment() 121 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in preferenceClick_launchesDetailFragment()
|
/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/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/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/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/TvSettings/Settings/src/com/android/tv/settings/enterprise/apps/ |
D | UserAppInfo.java | 34 public final ApplicationInfo appInfo; field in UserAppInfo 38 this.appInfo = mAppInfo; in UserAppInfo() 53 return that.userInfo.id == userInfo.id && TextUtils.equals(that.appInfo.packageName, in equals() 54 appInfo.packageName); in equals() 59 return Objects.hash(userInfo.id, appInfo.packageName); in hashCode()
|
/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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkSuggestionStoreDataTest.java | 296 PerAppInfo appInfo = new PerAppInfo(TEST_UID_1, TEST_PACKAGE_NAME_1, TEST_FEATURE_ID); in serializeDeserializeSingleNetworkSuggestionFromSingleApp() local 304 appInfo.hasUserApproved = false; in serializeDeserializeSingleNetworkSuggestionFromSingleApp() 306 .fromWns(networkSuggestion, appInfo, true); in serializeDeserializeSingleNetworkSuggestionFromSingleApp() 309 appInfo.extNetworkSuggestions.put(ewns.hashCode(), ewns); in serializeDeserializeSingleNetworkSuggestionFromSingleApp() 310 networkSuggestionsMap.put(TEST_PACKAGE_NAME_1, appInfo); in serializeDeserializeSingleNetworkSuggestionFromSingleApp() 476 PerAppInfo appInfo = new PerAppInfo(TEST_UID_1, TEST_PACKAGE_NAME_1, TEST_FEATURE_ID); in serializeDeserializeSinglePasspointSuggestionFromSingleApp() local 482 appInfo.hasUserApproved = false; in serializeDeserializeSinglePasspointSuggestionFromSingleApp() 484 ExtendedWifiNetworkSuggestion.fromWns(networkSuggestion, appInfo, true); in serializeDeserializeSinglePasspointSuggestionFromSingleApp() 485 appInfo.extNetworkSuggestions.put(ewns.hashCode(), ewns); in serializeDeserializeSinglePasspointSuggestionFromSingleApp() 486 networkSuggestionsMap.put(TEST_PACKAGE_NAME_1, appInfo); in serializeDeserializeSinglePasspointSuggestionFromSingleApp()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/ |
D | ReviewAccessibilityServicesActivity.java | 83 ApplicationInfo appInfo = serviceInfo.applicationInfo; in createDialogView() local 85 long lastAccessTime = getLastAccessTime(appInfo, appOpsManager); in createDialogView() 96 headerIcon.setImageDrawable(Utils.getBadgedIcon(this, appInfo)); in createDialogView() 120 Utils.getBadgedIcon(this, appInfo)); in createDialogView() 153 private static long getLastAccessTime(@NonNull ApplicationInfo appInfo, in getLastAccessTime() argument 155 List<AppOpsManager.PackageOps> ops = appOpsManager.getOpsForPackage(appInfo.uid, in getLastAccessTime() 156 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()
|
D | UnrestrictAppAction.java | 48 final AppInfo appInfo = mUnRestrictAppTip.getUnrestrictAppInfo(); in handlePositiveAction() local 50 mBatteryUtils.setForceAppStandby(appInfo.uid, appInfo.packageName, in handlePositiveAction() 56 appInfo.packageName, 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/applications/specialaccess/pictureinpicture/ |
D | PictureInPictureSettings.java | 156 final ApplicationInfo appInfo = appData.first; in onResume() local 159 final String packageName = appInfo.packageName; in onResume() 160 final CharSequence label = appInfo.loadLabel(mPackageManager); in onResume() 163 pref.setIcon(mIconDrawableFactory.getBadgedIcon(appInfo, userId)); in onResume() 166 appInfo.uid, packageName)); in onResume() 171 R.string.picture_in_picture_app_detail_title, packageName, appInfo.uid, in onResume()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/ |
D | AutoPermissionsUtils.java | 54 public static Preference createHeaderPreference(Context context, ApplicationInfo appInfo) { in createHeaderPreference() argument 55 Drawable icon = Utils.getBadgedIcon(context, appInfo); in createHeaderPreference() 58 preference.setKey(appInfo.packageName); in createHeaderPreference() 59 preference.setTitle(Utils.getFullAppLabel(appInfo, context)); in createHeaderPreference()
|