Home
last modified time | relevance | path

Searched refs:appLabel (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/packages/SettingsLib/Utils/src/com/android/settingslib/utils/applications/
DAppUtils.java58 final CharSequence appLabel = getApplicationLabel(context.getPackageManager(), packageName); in getAppContentDescription() local
59 if (appLabel == null) { in getAppContentDescription()
63 ? context.getString(R.string.accessibility_work_profile_app_description, appLabel) in getAppContentDescription()
64 : appLabel.toString(); in getAppContentDescription()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java232 final CharSequence appLabel = info.serviceInfo.applicationInfo.loadLabel(pm); in addPackageTiles() local
236 addTile(spec, appLabel, state, false); in addPackageTiles()
253 appLabel); in addPackageTiles()
279 private void addTile(String spec, CharSequence appLabel, State state, boolean isSystem) { in addTile() argument
289 info.state.secondaryLabel = (isSystem || TextUtils.equals(state.label, appLabel)) in addTile()
290 ? null : appLabel; in addTile()
297 String spec, Drawable drawable, CharSequence label, CharSequence appLabel) { in createStateAndAddTile() argument
303 addTile(spec, appLabel, state, false); in createStateAndAddTile()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/
DUninstallAlertFragment.java45 final CharSequence appLabel = dialogInfo.appInfo.loadSafeLabel(pm); in onCreateGuidance() local
53 if (!activityLabel.equals(appLabel)) { in onCreateGuidance()
56 messageBuilder.append(" ").append(appLabel).append(".\n\n"); in onCreateGuidance()
82 appLabel.toString(), in onCreateGuidance()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverDataProvider.java97 final String appLabel = "app_label"; in createPackageManagerMockedInfo() local
118 if (id == 1) return appLabel; in createPackageManagerMockedInfo()
130 return appLabel; in createPackageManagerMockedInfo()
159 mockedInfo.setAppLabel = appLabel; in createPackageManagerMockedInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java214 CharSequence appLabel = mPackageManager.getApplicationLabel(appInfo); in getRequestFromOps() local
215 CharSequence badgedAppLabel = mPackageManager.getUserBadgedLabel(appLabel, userHandle); in getRequestFromOps()
216 if (appLabel.toString().contentEquals(badgedAppLabel)) { in getRequestFromOps()
221 request = new Request(packageName, userHandle, icon, appLabel, highBattery, in getRequestFromOps()
DRecentLocationAccesses.java208 CharSequence appLabel = mPackageManager.getApplicationLabel(appInfo); in getAccessFromOps() local
209 CharSequence badgedAppLabel = mPackageManager.getUserBadgedLabel(appLabel, userHandle); in getAccessFromOps()
210 if (appLabel.toString().contentEquals(badgedAppLabel)) { in getAccessFromOps()
215 access = new Access(packageName, userHandle, icon, appLabel, badgedAppLabel, in getAccessFromOps()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/
DUninstallAlertDialogFragment.java111 final CharSequence appLabel = dialogInfo.appInfo.loadSafeLabel(pm); in onCreateDialog() local
119 if (!activityLabel.equals(appLabel)) { in onCreateDialog()
122 messageBuilder.append(" ").append(appLabel).append(".\n\n"); in onCreateDialog()
147 dialogBuilder.setTitle(appLabel); in onCreateDialog()
/frameworks/base/core/java/android/content/pm/
DPackageInstaller.java500 public void updateSessionAppLabel(int sessionId, @Nullable CharSequence appLabel) { in updateSessionAppLabel() argument
502 final String val = (appLabel != null) ? appLabel.toString() : null; in updateSessionAppLabel()
1588 public String appLabel; field in PackageInstaller.SessionParams
1646 appLabel = source.readString(); in SessionParams()
1679 ret.appLabel = appLabel; in copy()
1769 public void setAppLabel(@Nullable CharSequence appLabel) { in setAppLabel() argument
1770 this.appLabel = (appLabel != null) ? appLabel.toString() : null; in setAppLabel()
2173 pw.printPair("appLabel", appLabel); in dump()
2208 dest.writeString(appLabel); in writeToParcel()
2347 public CharSequence appLabel; field in PackageInstaller.SessionInfo
[all …]
DIPackageInstaller.aidl35 void updateSessionAppLabel(int sessionId, String appLabel); in updateSessionAppLabel() argument
/frameworks/base/core/java/com/android/internal/app/
DBlockedAppActivity.java58 CharSequence appLabel = getAppLabel(userId, packageName); in onCreate() local
61 mAlertParams.mMessage = getString(R.string.app_blocked_message, appLabel); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DStatusBehavior.kt64 val appLabel = pm.getApplicationLabel(ai) in <lambda>() constant
72 R.string.controls_error_removed_message, cvh.title.getText(), appLabel)) in <lambda>()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DFakeContextBuilder.java86 public FakeContextBuilder setAppLabel(String packageName, @Nullable CharSequence appLabel) { in setAppLabel() argument
88 mAppLabels.put(packageName, appLabel); in setAppLabel()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallFinish.java69 String appLabel = intent.getStringExtra(EXTRA_APP_LABEL); in onReceive() local
89 Toast.makeText(context, context.getString(R.string.uninstall_done_app, appLabel), in onReceive()
193 context.getString(R.string.uninstall_failed_app, appLabel)); in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaControlPanel.java550 CharSequence appLabel = packageManager.getApplicationLabel(applicationInfo);
551 if (appLabel.length() != 0) {
553 headerTitleText.setText(appLabel);
559 mContext.getString(R.string.controls_media_smartspace_rec_description, appLabel));
594 recommendation.getTitle(), appLabel));
599 recommendation.getTitle(), artistName, appLabel));
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DShortcutPicker.java172 public ShortcutPreference(Context context, Shortcut shortcut, CharSequence appLabel) { in ShortcutPreference() argument
176 setSummary(context.getString(R.string.tuner_app, appLabel)); in ShortcutPreference()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/
DMediaSessions.java211 final String appLabel = Objects.toString(ai.loadLabel(pm), "").trim(); in getControllerName() local
212 if (appLabel.length() > 0) { in getControllerName()
213 return appLabel; in getControllerName()
/frameworks/base/core/java/android/permission/
DPermissionUsageHelper.java522 CharSequence appLabel = appInfo.loadLabel(userPkgManager); in getUniqueUsagesWithLabels() local
524 if (!proxyLabelList.contains(appLabel)) { in getUniqueUsagesWithLabels()
525 proxyLabelList.add(appLabel); in getUniqueUsagesWithLabels()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java1643 CharSequence appLabel = ""; in getAppLabel() local
1650 return appLabel; in getAppLabel()
1653 appLabel = appInfo.loadLabel(packageManager); in getAppLabel()
1655 return appLabel; in getAppLabel()
1662 CharSequence appLabel = in getSummary() local
1664 return context.getString(R.string.connected_via_app, appLabel); in getSummary()
/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/
DPackageSessionTests.kt128 assertThat(installer.getSessionInfo(it)?.appLabel) in <lambda>()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java566 params.appLabel = TextUtils.trimToSize(params.appLabel, in createSessionInternal()
838 public void updateSessionAppLabel(int sessionId, String appLabel) { in updateSessionAppLabel() argument
844 session.params.appLabel = appLabel; in updateSessionAppLabel()
DPackageInstallerSession.java1142 info.appLabel = params.appLabel; in generateInfoInternal()
4531 writeStringAttribute(out, ATTR_APP_LABEL, params.appLabel); in write()
4687 params.appLabel = readStringAttribute(in, ATTR_APP_LABEL); in readFromXml()
/frameworks/base/core/java/android/widget/
DActivityChooserView.java670 CharSequence appLabel = resolveInfo.loadLabel(mContext.getPackageManager()); in startActivity()
672 R.string.activitychooserview_choose_application_error, appLabel); in startActivity()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DUtils.java406 final CharSequence appLabel = getAppLabel(context, wifiConfiguration.creatorName); in getDisconnectedDescription() local
407 if (!TextUtils.isEmpty(appLabel)) { in getDisconnectedDescription()
408 sj.add(context.getString(R.string.wifitrackerlib_saved_network, appLabel)); in getDisconnectedDescription()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java517 final CharSequence appLabel = "Test App";
532 when(resources.getString(R.string.connected_via_app, appLabel))
533 .thenReturn(connectedViaAppResourceString + appLabel.toString());
536 when(applicationInfo.loadLabel(packageManager)).thenReturn(appLabel);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSMSDispatcher.java1872 CharSequence appLabel = getAppLabel(trackers[0].getAppPackageName(), trackers[0].mUserId); in handleReachSentLimit() local
1874 Spanned messageText = Html.fromHtml(r.getString(R.string.sms_control_message, appLabel)); in handleReachSentLimit()
1912 CharSequence appLabel = getAppLabel(trackers[0].getAppPackageName(), trackers[0].mUserId); in handleConfirmShortCode() local
1918 appLabel, in handleConfirmShortCode()

12