Home
last modified time | relevance | path

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

12

/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java183 private String startApp(String appName) throws NameNotFoundException { in startApp() argument
184 Log.i(TAG, "Starting " + appName); in startApp()
186 if (!mNameToProcess.containsKey(appName)) in startApp()
187 throw new NameNotFoundException("Could not find: " + appName); in startApp()
189 String process = mNameToProcess.get(appName); in startApp()
190 Intent startIntent = mNameToIntent.get(appName); in startApp()
213 private void measureMemory(String appName, String processName, in measureMemory() argument
221 Log.i(TAG, appName + "=" + pss); in measureMemory()
223 reportError(appName, processName, results); in measureMemory()
228 results.putInt(mNameToResultKey.get(appName), pss); in measureMemory()
[all …]
/frameworks/base/core/java/android/ddm/
DDdmHandleAppName.java94 private static void sendAPNM(String appName, int userId) { in sendAPNM() argument
100 + appName.length()*2 /* appName */ in sendAPNM()
103 out.putInt(appName.length()); in sendAPNM()
104 putString(out, appName); in sendAPNM()
DDdmHandleHello.java132 String appName = DdmHandleAppName.getAppName(); in handleHELO() local
147 + appName.length() * 2 in handleHELO()
155 out.putInt(appName.length()); in handleHELO()
157 putString(out, appName); in handleHELO()
/frameworks/base/services/core/java/com/android/server/wm/
DAlertWindowNotification.java107 final String appName = (aInfo != null) in onPostNotification() local
110 createNotificationChannel(context, appName); in onPostNotification()
113 appName); in onPostNotification()
119 context.getString(R.string.alert_windows_notification_title, appName)) in onPostNotification()
147 private void createNotificationChannel(Context context, String appName) { in createNotificationChannel() argument
156 context.getString(R.string.alert_windows_notification_channel_name, appName); in createNotificationChannel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogController.kt72 private var appName: String? = null in <lambda>() variable
96 appName: String, in <lambda>()
103 this.appName = appName in <lambda>()
181 appName = null in <lambda>()
272 appName = this@ChannelEditorDialogController.appName in <lambda>()
DNotificationMenuRow.java431 public void setAppName(String appName) { in setAppName() argument
432 if (appName == null) { in setAppName()
435 setAppName(appName, mLeftMenuItems); in setAppName()
436 setAppName(appName, mRightMenuItems); in setAppName()
439 private void setAppName(String appName, in setAppName() argument
447 appName, item.getContentDescription()); in setAppName()
DChannelEditorListView.kt45 var appName: String? = null in <lambda>() variable
114 .getString(R.string.notification_channel_dialog_title, appName) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbConfirmActivity.java68 String appName = mResolveInfo.loadLabel(packageManager).toString(); in onCreate() local
71 ap.mTitle = appName; in onCreate()
73 ap.mMessage = getString(R.string.usb_accessory_confirm_prompt, appName, in onCreate()
77 ap.mMessage = getString(R.string.usb_device_confirm_prompt, appName, in onCreate()
92 mAlwaysUse.setText(getString(R.string.always_use_accessory, appName, in onCreate()
95 mAlwaysUse.setText(getString(R.string.always_use_device, appName, in onCreate()
DUsbPermissionActivity.java82 String appName = aInfo.loadLabel(packageManager).toString(); in onCreate() local
85 ap.mTitle = appName; in onCreate()
87 ap.mMessage = getString(R.string.usb_accessory_permission_prompt, appName, in onCreate()
91 ap.mMessage = getString(R.string.usb_device_permission_prompt, appName, in onCreate()
107 mAlwaysUse.setText(getString(R.string.always_use_accessory, appName, in onCreate()
110 mAlwaysUse.setText(getString(R.string.always_use_device, appName, in onCreate()
/frameworks/base/core/jni/
Dandroid_os_GraphicsEnvironment.cpp50 void setAngleInfo_native(JNIEnv* env, jobject clazz, jstring path, jstring appName, jstring devOptI… in setAngleInfo_native() argument
53 ScopedUtfChars appNameChars(env, appName); in setAngleInfo_native()
62 bool shouldUseAngle_native(JNIEnv* env, jobject clazz, jstring appName) { in shouldUseAngle_native() argument
63 ScopedUtfChars appNameChars(env, appName); in shouldUseAngle_native()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java1046 String appName = ri.loadLabel(pm).toString(); in resolveLoop() local
1047 if (appName != null) { in resolveLoop()
1050 mNameToIntent.put(appName, startIntent); in resolveLoop()
1056 private AppLaunchResult startApp(String appName, String launchReason) in startApp() argument
1058 Log.i(TAG, "Starting " + appName); in startApp()
1060 startRecording(appName, launchReason); in startApp()
1063 Intent startIntent = mNameToIntent.get(appName); in startApp()
1065 Log.w(TAG, "App does not exist: " + appName); in startApp()
1066 mResult.putString(mNameToResultKey.get(appName), "App does not exist"); in startApp()
1126 for (String appName : mNameToIntent.keySet()) { in cleanUpAfterCycle()
[all …]
/frameworks/base/tests/AppLaunchWear/src/com/android/tests/applaunch/
DAppLaunch.java543 String appName = ri.loadLabel(pm).toString(); in resolveLoop() local
544 if (appName != null) { in resolveLoop()
547 mNameToIntent.put(appName, startIntent); in resolveLoop()
553 private AppLaunchResult startApp(String appName, boolean forceStopBeforeLaunch, in startApp() argument
555 Log.i(TAG, "Starting " + appName); in startApp()
557 Intent startIntent = mNameToIntent.get(appName); in startApp()
559 Log.w(TAG, "App does not exist: " + appName); in startApp()
560 mResult.putString(mNameToResultKey.get(appName), "App does not exist"); in startApp()
606 private void closeApp(String appName, boolean forceStopApp) { in closeApp() argument
614 Intent startIntent = mNameToIntent.get(appName); in closeApp()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DInstallCarrierAppTrampolineActivity.java92 String appName = InstallCarrierAppUtils.getAppNameFromPackageName(this, mPackageName); in onCreate() local
93 if (!TextUtils.isEmpty(appName)) { in onCreate()
94 showDialogIntent.putExtra(CARRIER_NAME, appName); in onCreate()
DInstallCarrierAppUtils.java56 String appName = getAppNameFromPackageName(context, pkgName); in showNotification() local
58 if (TextUtils.isEmpty(appName)) { in showNotification()
62 appName); in showNotification()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
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()
/frameworks/native/libs/graphicsenv/
DGraphicsEnv.cpp68 void* systemInfoHandle, const char* appName);
411 bool GraphicsEnv::shouldUseAngle(std::string appName) { in shouldUseAngle() argument
412 if (appName != mAngleAppName) { in shouldUseAngle()
415 appName.c_str()); in shouldUseAngle()
459 void GraphicsEnv::setAngleInfo(const std::string path, const std::string appName, in setAngleInfo() argument
464 ALOGV("Already evaluated the rules file for '%s': use ANGLE = %s", appName.c_str(), in setAngleInfo()
471 ALOGV("setting ANGLE app name to '%s'", appName.c_str()); in setAngleInfo()
472 mAngleAppName = appName; in setAngleInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java130 String appName = BidiFormatter.getInstance().unicodeWrap(unsanitizedAppName); in onCreate() local
132 String actionText = getString(R.string.media_projection_dialog_text, appName); in onCreate()
135 int appNameIndex = actionText.indexOf(appName); in onCreate()
138 appNameIndex, appNameIndex + appName.length(), 0); in onCreate()
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java109 final String appName = appInfo.loadLabel(getPackageManager()).toString(); in checkUserCreationRequirements() local
117 message = getString(R.string.user_creation_account_exists, appName, mAccountName); in checkUserCreationRequirements()
119 message = getString(R.string.user_creation_adding, appName, mAccountName); in checkUserCreationRequirements()
DHeavyWeightSwitcherActivity.java100 CharSequence appName = packageName; in setIconAndText() local
106 appName = info.loadLabel(getPackageManager()); in setIconAndText()
113 setText(actionId, getString(actionStr, appName)); in setIconAndText()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DInstallCarrierAppUtilsTest.java35 String appName = in testParseAppNameMapFromString_emptyMap() local
37 assertNull(appName); in testParseAppNameMapFromString_emptyMap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUI.java58 String appName = system in overrideNotificationAppName() local
61 extras.putString(Notification.EXTRA_SUBSTITUTE_APP_NAME, appName); in overrideNotificationAppName()
/frameworks/native/opengl/tools/glgen/stubs/jsr239/
DGLImplHeader.java-impl68 private static boolean allowIndirectBuffers(String appName) {
73 … ApplicationInfo applicationInfo = pm.getApplicationInfo(appName, 0, UserHandle.myUserId());
82 appName, version));
/frameworks/base/cmds/statsd/src/packages/
DUidMap.cpp84 string UidMap::normalizeAppName(const string& appName) const { in normalizeAppName()
85 string normalizedName = appName; in normalizeAppName()
165 string appName = string(String8(app_16).string()); in updateApp() local
172 auto it = mMap.find(std::make_pair(uid, appName)); in updateApp()
184 mMap[std::make_pair(uid, appName)] = in updateApp()
193 mChanges.emplace_back(false, timestamp, appName, uid, versionCode, newVersionString, in updateApp()
203 strongPtr->notifyAppUpgrade(timestamp, appName, uid, versionCode); in updateApp()
/frameworks/native/libs/graphicsenv/include/graphicsenv/
DGraphicsEnv.h117 bool shouldUseAngle(std::string appName);
124 void setAngleInfo(const std::string path, const std::string appName, std::string devOptIn,
/frameworks/base/services/core/java/com/android/server/location/
DContextHubServiceUtil.java173 hidlMessage.appName = message.getNanoAppId(); in createHidlContextHubMessage()
192 message.appName, message.msgType, messageArray, in createNanoAppMessage()

12