Home
last modified time | relevance | path

Searched refs:appName (Results 1 – 25 of 89) sorted by relevance

1234

/aosp14/frameworks/base/core/java/android/ddm/
H A DDdmHandleAppName.java85 public static void setAppName(String appName, String pkgName, int userId) { in setAppName() argument
86 if (appName == null || appName.isEmpty() || pkgName == null || pkgName.isEmpty()) return; in setAppName()
88 sNames = new Names(appName, pkgName); in setAppName()
91 sendAPNM(appName, pkgName, userId); in setAppName()
102 private static void sendAPNM(String appName, String pkgName, int userId) { in sendAPNM() argument
108 + appName.length() * 2 /* appName */ in sendAPNM()
113 out.putInt(appName.length()); in sendAPNM()
114 putString(out, appName); in sendAPNM()
133 private Names(String appName, String pkgName) { in Names() argument
134 mAppName = appName; in Names()
H A DDdmHandleHello.java128 String appName = names.getAppName(); in handleHELO() local
144 + appName.length() * 2 in handleHELO()
153 out.putInt(appName.length()); in handleHELO()
155 putString(out, appName); in handleHELO()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
H A DMediaProjectionPermissionDialog.kt29 private val appName: String?
33 createOptionList(context, appName, mediaProjectionConfig),
34 appName
39 if (appName == null) {
61 appName: String?,
65 if (appName == null) {
71 if (appName == null) {
79 appName != null &&
85 appName
/aosp14/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
H A DMemoryUsageTest.java186 Log.i(TAG, "Starting " + appName); in startApp()
188 if (!mNameToProcess.containsKey(appName)) in startApp()
191 String process = mNameToProcess.get(appName); in startApp()
192 Intent startIntent = mNameToIntent.get(appName); in startApp()
215 private void measureMemory(String appName, String processName, in measureMemory() argument
223 Log.i(TAG, appName + "=" + pss); in measureMemory()
225 reportError(appName, processName, results); in measureMemory()
230 results.putInt(mNameToResultKey.get(appName), pss); in measureMemory()
236 Log.w(TAG, appName + " memory usage did not stabilize"); in measureMemory()
283 results.putString(mNameToResultKey.get(appName), in reportError()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
H A DTvPipNotificationTests.kt63 waitForNotificationToAppear { it.isPipNotificationWithTitle(testApp.appName) }
70 waitForNotificationToDisappear { it.isPipNotificationWithTitle(testApp.appName) }
80 waitForNotificationToAppear { it.isPipNotificationWithTitle(testApp.appName) }
91 waitForNotificationToDisappear { it.isPipNotificationWithTitle(testApp.appName) }
101 waitForNotificationToAppear { it.isPipNotificationWithTitle(testApp.appName) }
129 findNotification { it.isPipNotificationWithTitle(testApp.appName) }
149 waitForNotificationToAppear { it.isPipNotificationWithTitle(testApp.appName) }
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
H A DSelectionItemTest.kt21 appName = "app",
47 appName = "app",
63 appName = "app",
83 appName = "app",
103 appName = "app",
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DAlertWindowNotification.java104 final String appName = (aInfo != null) in onPostNotification() local
107 createNotificationChannel(context, appName); in onPostNotification()
110 appName); in onPostNotification()
116 context.getString(R.string.alert_windows_notification_title, appName)) in onPostNotification()
146 private void createNotificationChannel(Context context, String appName) { in createNotificationChannel() argument
155 context.getString(R.string.alert_windows_notification_channel_name, appName); in createNotificationChannel()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
H A DPanelConfirmationDialogFactory.kt44 appName: CharSequence,
52 setTitle(this.context.getString(R.string.controls_panel_authorization_title, appName))
53 setMessage(this.context.getString(R.string.controls_panel_authorization, appName))
H A DControlsFavoritingActivity.kt78 private var appName: CharSequence? = null
133 appName = intent.getCharSequenceExtra(EXTRA_APP)
181 appName ?: "")
228 val title = if (!TextUtils.isEmpty(name)) name else appName
284 ?: (appName ?: resources.getText(R.string.controls_favorite_default_title))
329 it.putExtra(ControlsEditingActivity.EXTRA_APP, appName)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
H A DScreenshotDetectionControllerTest.kt91 val appName = "app name" regex
101 whenever(activityInfo.loadLabel(eq(packageManager))).thenReturn(appName)
109 assertEquals(appName, list[0])
188 val appName = "app name" regex
208 whenever(activityInfo.loadLabel(eq(packageManager))).thenReturn(appName)
213 assertEquals(appName, list[0])
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DChannelEditorDialogController.kt73 private var appName: String? = null
100 appName: String,
107 this.appName = appName
195 appName = null
303 appName = this@ChannelEditorDialogController.appName
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
H A DPanelConfirmationDialogFactoryTest.kt45 val appName = "appName" regex
47 factory.createConfirmationDialog(context, appName) {}
51 .setTitle(context.getString(R.string.controls_panel_authorization_title, appName))
53 .setMessage(context.getString(R.string.controls_panel_authorization, appName))
/aosp14/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
H A DAppLaunch.java1049 if (appName != null) { in resolveLoop()
1060 Log.i(TAG, "Starting " + appName); in startApp()
1062 startRecording(appName, launchReason); in startApp()
1065 Intent startIntent = mNameToIntent.get(appName); in startApp()
1128 for (String appName : mNameToIntent.keySet()) { in cleanUpAfterCycle()
1130 forceStopApp(appName); in cleanUpAfterCycle()
1138 private void forceStopApp(String appName) { in forceStopApp() argument
1139 Intent startIntent = mNameToIntent.get(appName); in forceStopApp()
1150 private void killBackgroundApp(String appName) { in killBackgroundApp() argument
1151 Intent startIntent = mNameToIntent.get(appName); in killBackgroundApp()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
H A DAppCopyHelper.java163 info.appName = app.loadLabel(mPackageManager); in addCurrentUsersApps()
221 info.appName = app.activityInfo.applicationInfo.loadLabel(mPackageManager); in addSystemApps()
233 public CharSequence appName; field in AppCopyHelper.SelectableAppInfo
238 return packageName + ": appName=" + appName + "; icon=" + icon; in toString()
245 String lhsLabel = lhs.appName.toString(); in compare()
246 String rhsLabel = rhs.appName.toString(); in compare()
H A DAppRestrictionsHelper.java194 info.appName = app.loadLabel(pm); in fetchAndMergeApps()
195 info.activityName = info.appName; in fetchAndMergeApps()
235 info.appName = app.loadLabel(pm); in fetchAndMergeApps()
236 info.activityName = info.appName; in fetchAndMergeApps()
326 info.appName = app.activityInfo.applicationInfo.loadLabel(pm); in addSystemApps()
329 if (info.activityName == null) info.activityName = info.appName; in addSystemApps()
366 public CharSequence appName; field in AppRestrictionsHelper.SelectableAppInfo
373 return packageName + ": appName=" + appName + "; activityName=" + activityName in toString()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/companion/datatransfer/contextsync/
H A DCallMetadataSyncDataTest.java36 final String appName = "appName"; in call_writeToBundle_fromBundle_reconstructsSuccessfully() local
47 new CallMetadataSyncData.CallFacilitator(appName, appIdentifier, extendedId); in call_writeToBundle_fromBundle_reconstructsSuccessfully()
61 assertThat(reconstructedCall.getFacilitator().getName()).isEqualTo(appName); in call_writeToBundle_fromBundle_reconstructsSuccessfully()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
H A DNotificationCallTemplateViewWrapper.kt45 private lateinit var appName: View
56 appName = requireViewById(com.android.internal.R.id.app_name_text)
72 appName,
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/common/
H A DMediaTttUtils.kt59 val appName = regex
73 appName
77 ContentDescription.Loaded(appName)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DMediaProjectionPermissionActivity.java167 String appName = null; in onCreate() local
198 appName = BidiFormatter.getInstance().unicodeWrap(unsanitizedAppName); in onCreate()
200 String actionText = getString(R.string.media_projection_dialog_warning, appName); in onCreate()
203 int appNameIndex = actionText.indexOf(appName); in onCreate()
206 appNameIndex, appNameIndex + appName.length(), 0); in onCreate()
209 dialogTitle = getString(R.string.media_projection_dialog_title, appName); in onCreate()
222 }, () -> finish(RECORD_CANCEL, /* projection= */ null), appName); in onCreate()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
H A DTileServiceRequestController.kt66 appName: CharSequence,
71 requestTileAdd(componentName, appName, label, icon) {
102 appName: CharSequence,
122 val tileData = TileRequestDialog.TileData(appName, label, icon)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
H A DControlsDialogsFactory.kt34 appName: CharSequence,
42 setTitle(context.getString(R.string.controls_panel_remove_app_authorization, appName))
H A DControlsUiController.kt93 val appName: CharSequence,
97 override val name: CharSequence = appName
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DConfirmUserCreationActivity.java115 final String appName = appInfo.loadLabel(getPackageManager()).toString(); in checkUserCreationRequirements() local
131 message = getString(R.string.user_creation_account_exists, appName, mAccountName); in checkUserCreationRequirements()
133 message = getString(R.string.user_creation_adding, appName, mAccountName); in checkUserCreationRequirements()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/splitscreen/benchmark/
H A DEnterSplitScreenByDragFromTaskbarBenchmark.kt44 SplitScreenUtils.createShortcutOnHotseatIfNotExist(tapl, secondaryApp.appName)
49 .getAppIcon(secondaryApp.appName)
H A DEnterSplitScreenByDragFromShortcutBenchmark.kt49 SplitScreenUtils.createShortcutOnHotseatIfNotExist(tapl, secondaryApp.appName)
54 .getAppIcon(secondaryApp.appName)

1234