/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/Settings/src/com/android/settings/nfc/ |
D | PaymentBackend.java | 110 PaymentAppInfo appInfo = new PaymentAppInfo(); in refresh() local 111 appInfo.userHandle = uh; in refresh() 112 appInfo.label = service.loadLabel(pm); in refresh() 113 if (appInfo.label == null) { in refresh() 114 appInfo.label = service.loadAppLabel(pm); in refresh() 117 appInfo.isDefault = false; in refresh() 119 appInfo.isDefault = in refresh() 123 if (appInfo.isDefault) { in refresh() 124 foundDefaultApp = appInfo; in refresh() 126 appInfo.componentName = service.getComponent(); in refresh() [all …]
|
D | NfcPaymentPreferenceController.java | 213 final PaymentAppInfo appInfo = appInfos[position]; in getView() local 226 appInfo.userHandle, /*flags=*/0).getSystemService(UserManager.class); in getView() 229 holder.radioButton.setChecked(appInfo.isDefault); in getView() 230 holder.radioButton.setContentDescription(appInfo.label + " (" + um.getUserName() + ")"); in getView() 232 holder.radioButton.setTag(appInfo); in getView() 233 holder.radioButton.setText(appInfo.label + " (" + um.getUserName() + ")"); in getView() 243 PaymentAppInfo appInfo = (PaymentAppInfo) compoundButton.getTag(); in onCheckedChanged() local 244 makeDefault(appInfo); in onCheckedChanged() 249 PaymentAppInfo appInfo = (PaymentAppInfo) view.getTag(); in onClick() local 250 makeDefault(appInfo); in onClick() [all …]
|
D | DefaultPaymentSettings.java | 150 for (PaymentAppInfo appInfo: mAppInfos) { in getCandidates() 152 appInfo.userHandle, /*flags=*/0).getSystemService(UserManager.class); in getCandidates() 153 boolean isManagedProfile = um.isManagedProfile(appInfo.userHandle.getIdentifier()); in getCandidates() 156 label = appInfo.label; in getCandidates() 158 appInfo.componentName.flattenToString(), in getCandidates() 160 appInfo.icon, in getCandidates() 161 appInfo.userHandle.getIdentifier(), in getCandidates() 207 protected CharSequence getConfirmationMessage(CandidateInfo appInfo) { in getConfirmationMessage() argument 208 if (appInfo == null) { in getConfirmationMessage() 211 NfcPaymentCandidateInfo paymentInfo = (NfcPaymentCandidateInfo) appInfo; in getConfirmationMessage()
|
/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 | 47 bool fetchAppPackageLocationInfo(uid_t uid, AppInfoFetcher::AppInfo* appInfo) { in fetchAppPackageLocationInfo() argument 52 appInfo->appPackageName = packageInfo.appPackageName; in fetchAppPackageLocationInfo() 53 appInfo->appIsSystemApp = packageInfo.appIsSystemApp; in fetchAppPackageLocationInfo() 54 appInfo->appIsOnVendorImage = packageInfo.appIsOnVendorImage; in fetchAppPackageLocationInfo() 55 appInfo->appIsOnProductImage = packageInfo.appIsOnProductImage; in fetchAppPackageLocationInfo() 64 : appInfo({.binaryPath = ::android::procpartition::getExe(getpid()), in AppInfoFetcher() 69 if (appInfo.binaryPath == "/system/bin/app_process64" || 70 appInfo.binaryPath == "/system/bin/app_process32") { 71 if (!fetchAppPackageLocationInfo(getuid(), &appInfo)) { 80 : appInfo({.binaryPath = "/system/bin/app_process64",
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/content/pm/ |
D | PackageManagerHelper.java | 140 public static boolean isOemApp(@NonNull ApplicationInfo appInfo) { in isOemApp() argument 141 return (appInfo.privateFlags & ApplicationInfo.PRIVATE_FLAG_OEM) != 0; in isOemApp() 146 public static boolean isOdmApp(@NonNull ApplicationInfo appInfo) { in isOdmApp() argument 147 return (appInfo.privateFlags & ApplicationInfo.PRIVATE_FLAG_ODM) != 0; in isOdmApp() 152 public static boolean isVendorApp(@NonNull ApplicationInfo appInfo) { in isVendorApp() argument 153 return (appInfo.privateFlags & ApplicationInfo.PRIVATE_FLAG_VENDOR) != 0; in isVendorApp() 158 public static boolean isSystemApp(@NonNull ApplicationInfo appInfo) { in isSystemApp() argument 159 return (appInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in isSystemApp() 164 public static boolean isUpdatedSystemApp(@NonNull ApplicationInfo appInfo) { in isUpdatedSystemApp() argument 165 return (appInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in isUpdatedSystemApp() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/ |
D | StorageAsyncLoaderTest.java | 108 ApplicationInfo appInfo = createAppInfo(PACKAGE_NAME_1, 0, 1, 10, in testGamesAreFiltered() local 112 .thenReturn(Collections.singletonList(appInfo)); in testGamesAreFiltered() 123 ApplicationInfo appInfo = createAppInfo(PACKAGE_NAME_1, 0, 1, 10, in testLegacyGamesAreFiltered() local 125 appInfo.flags = ApplicationInfo.FLAG_IS_GAME; in testLegacyGamesAreFiltered() 128 .thenReturn(Collections.singletonList(appInfo)); in testLegacyGamesAreFiltered() 139 ApplicationInfo appInfo = createAppInfo(PACKAGE_NAME_1, 100, 1, 10, in testCacheIsNotIgnored() local 143 .thenReturn(Collections.singletonList(appInfo)); in testCacheIsNotIgnored() 156 ApplicationInfo appInfo = createAppInfo(PACKAGE_NAME_1, 100, 1, 10, in testMultipleUsers() local 160 .thenReturn(Collections.singletonList(appInfo)); in testMultipleUsers() 174 ApplicationInfo appInfo = createAppInfo(PACKAGE_NAME_1, 100, 1, 10, in testUpdatedSystemAppCodeSizeIsCounted() local [all …]
|
D | StorageApplicationListPreferenceControllerTest.java | 94 ApplicationInfo appInfo = new ApplicationInfo(); in onDataLoaded_addPreference_hasOnePreference() local 95 appInfo.uid = UID; in onDataLoaded_addPreference_hasOnePreference() 96 appInfo.sourceDir = SOURCE; in onDataLoaded_addPreference_hasOnePreference() 98 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_addPreference_hasOnePreference() 116 ApplicationInfo appInfo = new ApplicationInfo(); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() local 117 appInfo.uid = UID; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() 118 appInfo.sourceDir = SOURCE; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() 120 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() 131 appEntry = new ApplicationsState.AppEntry(mContext, appInfo, 1234L); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
|
/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/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/apps/Car/Settings/src/com/android/car/settingslib/applications/ |
D | UserAppInfo.java | 33 public final ApplicationInfo appInfo; field in UserAppInfo 37 this.appInfo = mAppInfo; in UserAppInfo() 52 return that.userInfo.id == userInfo.id && TextUtils.equals(that.appInfo.packageName, in equals() 53 appInfo.packageName); in equals() 58 return Objects.hash(userInfo.id, appInfo.packageName); in hashCode() 64 return getClass().getSimpleName() + "[user=" + userInfo.id + ", pkg=" + appInfo.packageName in toString()
|
/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/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/ |
D | AutofillHelper.java | 93 DefaultAppInfo appInfo = candidates.get(i); in getCurrentAutofill() local 94 if ((name == null && appInfo.componentName == null) in getCurrentAutofill() 95 || (name != null && name.equals(appInfo.componentName))) { in getCurrentAutofill() 96 return appInfo; in getCurrentAutofill() 107 @NonNull PackageManager pm, @Nullable DefaultAppInfo appInfo) { in getAutofillSettingsIntent() argument 108 if (appInfo == null || appInfo.componentName == null) { in getAutofillSettingsIntent() 111 String plattenString = appInfo.componentName.flattenToString(); in getAutofillSettingsIntent()
|
/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/services/Car/service/src/com/android/car/telemetry/ |
D | UidPackageMapper.java | 151 AppInfo appInfo = getAppInfo(uid, packageName); in onAppAddedOrUpdated() local 152 if (appInfo == null) { in onAppAddedOrUpdated() 156 appInfo.mIsRemoved = false; in onAppAddedOrUpdated() 162 AppInfo appInfo = getAppInfo(uid, packageName); in onAppRemoved() local 163 if (appInfo == null) { in onAppRemoved() 170 if (appInfo.mIsRemoved) { in onAppRemoved() 173 appInfo.mIsRemoved = true; in onAppRemoved() 175 mRemovedApps.add(appInfo); in onAppRemoved() 224 AppInfo appInfo = getAppInfo(removedApp.mUid, removedApp.mPackageName); in refetchAllAppInfo() local 225 if (appInfo == null) { in refetchAllAppInfo()
|
/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/Settings/tests/robotests/src/com/android/settings/applications/managedomainurls/ |
D | DomainAppPreferenceControllerTest.java | 79 ApplicationInfo appInfo = new ApplicationInfo(); in createApplicationInfo() local 80 appInfo.sourceDir = "foo"; in createApplicationInfo() 81 appInfo.flags |= ApplicationInfo.FLAG_INSTALLED; in createApplicationInfo() 82 appInfo.storageUuid = UUID.randomUUID(); in createApplicationInfo() 83 appInfo.packageName = packageName; in createApplicationInfo() 84 return appInfo; in createApplicationInfo()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/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/Launcher3/src/com/android/launcher3/model/ |
D | AllAppsList.java | 186 public void updateSectionName(AppInfo appInfo) { in updateSectionName() argument 187 appInfo.sectionName = mIndex.computeSectionName(appInfo.title); in updateSectionName() 196 final AppInfo appInfo = data.get(i); in updatePromiseInstallInfo() local 197 final ComponentName tgtComp = appInfo.getTargetComponent(); in updatePromiseInstallInfo() 199 && appInfo.user.equals(user)) { in updatePromiseInstallInfo() 202 if (appInfo.isAppStartable() in updatePromiseInstallInfo() 206 appInfo.setProgressLevel(installInfo); in updatePromiseInstallInfo() 208 updatedAppInfos.add(appInfo); in updatePromiseInstallInfo() 210 && !appInfo.isAppStartable()) { in updatePromiseInstallInfo()
|
/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/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/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()
|