Home
last modified time | relevance | path

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

12

/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java216 String appName = ri.loadLabel(pm).toString(); in resolveLoop() local
217 if (appName != null) { in resolveLoop()
218 mNameToIntent.put(appName, startIntent); in resolveLoop()
219 mNameToProcess.put(appName, ri.activityInfo.processName); in resolveLoop()
225 private long startApp(String appName, boolean forceStopBeforeLaunch) in startApp() argument
227 Log.i(TAG, "Starting " + appName); in startApp()
229 Intent startIntent = mNameToIntent.get(appName); in startApp()
231 Log.w(TAG, "App does not exist: " + appName); in startApp()
232 mResult.putString(mNameToResultKey.get(appName), "App does not exist"); in startApp()
253 Log.w(TAG, "Assuming app " + appName + " crashed."); in startApp()
[all …]
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java180 private String startApp(String appName) throws NameNotFoundException { in startApp() argument
181 Log.i(TAG, "Starting " + appName); in startApp()
183 if (!mNameToProcess.containsKey(appName)) in startApp()
184 throw new NameNotFoundException("Could not find: " + appName); in startApp()
186 String process = mNameToProcess.get(appName); in startApp()
187 Intent startIntent = mNameToIntent.get(appName); in startApp()
210 private void measureMemory(String appName, String processName, in measureMemory() argument
218 Log.i(TAG, appName + "=" + pss); in measureMemory()
220 reportError(appName, processName, results); in measureMemory()
225 results.putInt(mNameToResultKey.get(appName), pss); in measureMemory()
[all …]
/frameworks/ml/bordeaux/learning/predictor_histogram/java/android/bordeaux/learning/
DHistogramPredictor.java79 for (String appName : blackList) { in HistogramPredictor()
80 mBlacklist.add(appName); in HistogramPredictor()
222 String appName = item.getKey(); in findTopClasses() local
224 if (appScores.containsKey(appName)) { in findTopClasses()
225 appScore += appScores.get(appName); in findTopClasses()
227 appScores.put(appName, appScore); in findTopClasses()
234 String appName = entry.getKey(); in findTopClasses() local
235 if (mBlacklist.contains(appName)) { in findTopClasses()
236 Log.i(TAG, appName + " is in blacklist"); in findTopClasses()
239 if (!mClassCounts.containsKey(appName)) { in findTopClasses()
[all …]
/frameworks/base/core/java/android/ddm/
DDdmHandleAppName.java89 private static void sendAPNM(String appName, int userId) { in sendAPNM() argument
95 + appName.length()*2 /* appName */ in sendAPNM()
98 out.putInt(appName.length()); in sendAPNM()
99 putString(out, appName); in sendAPNM()
DDdmHandleHello.java128 String appName = DdmHandleAppName.getAppName(); in handleHELO() local
143 + appName.length() * 2 in handleHELO()
151 out.putInt(appName.length()); in handleHELO()
153 putString(out, appName); in handleHELO()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAppRestrictionsHelper.java184 info.appName = app.loadLabel(pm); in fetchAndMergeApps()
185 info.activityName = info.appName; in fetchAndMergeApps()
225 info.appName = app.loadLabel(pm); in fetchAndMergeApps()
226 info.activityName = info.appName; in fetchAndMergeApps()
318 info.appName = app.activityInfo.applicationInfo.loadLabel(pm); in addSystemApps()
321 if (info.activityName == null) info.activityName = info.appName; in addSystemApps()
358 public CharSequence appName; field in AppRestrictionsHelper.SelectableAppInfo
365 return packageName + ": appName=" + appName + "; activityName=" + activityName in toString()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java85 String appName = appData != null ? appData.getSchemeSpecificPart() : null; in PermissionMonitor()
92 onAppAdded(appName, appUid); in PermissionMonitor()
229 private synchronized void onAppAdded(String appName, int appUid) { in onAppAdded() argument
230 if (TextUtils.isEmpty(appName) || appUid < 0) { in onAppAdded()
231 loge("Invalid app in onAppAdded: " + appName + " | " + appUid); in onAppAdded()
236 PackageInfo app = mPackageManager.getPackageInfo(appName, GET_PERMISSIONS); in onAppAdded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java125 String appName = BidiFormatter.getInstance().unicodeWrap(unsanitizedAppName); in onCreate() local
127 String actionText = getString(R.string.media_projection_dialog_text, appName); in onCreate()
130 int appNameIndex = actionText.indexOf(appName); in onCreate()
133 appNameIndex, appNameIndex + appName.length(), 0); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbConfirmActivity.java68 String appName = mResolveInfo.loadLabel(packageManager).toString(); in onCreate() local
72 ap.mTitle = appName; in onCreate()
74 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()
DUsbPermissionActivity.java81 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()
90 ap.mMessage = getString(R.string.usb_device_permission_prompt, appName); 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.java105 CharSequence appName = ""; in setIconAndText() local
111 appName = info.loadLabel(getPackageManager()); in setIconAndText()
118 setText(actionId, getString(actionStr, appName)); in setIconAndText()
/frameworks/native/opengl/tools/glgen/stubs/jsr239/
DGLImplHeader.java-impl65 private static boolean allowIndirectBuffers(String appName) {
70 … ApplicationInfo applicationInfo = pm.getApplicationInfo(appName, 0, UserHandle.myUserId());
79 appName, version));
DGLCHeader.cpp164 jobject appName = _env->NewStringUTF(::__progname);
165 …mpatability = _env->CallStaticBooleanMethod(G11ImplClass, allowIndirectBuffersID, appName) ? 2 : 1;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java330 String appName = ""; in contentDescForNotification() local
333 appName = builder.loadHeaderAppName(); in contentDescForNotification()
340 appName = String.valueOf(((ApplicationInfo) appInfo).loadLabel( in contentDescForNotification()
351 return c.getString(R.string.accessibility_desc_notification_icon, appName, desc); in contentDescForNotification()
DNotificationSettingsIconRow.java115 public void setAppName(String appName) { in setAppName() argument
118 appName); in setAppName()
DExpandableNotificationRow.java349 public void setAppName(String appName) {
350 mAppName = appName;
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java471 CharSequence appName = appInfo.loadLabel( in postNotification()
473 if (appName == null) { in postNotification()
474 appName = appInfo.packageName; in postNotification()
505 appName)); in postNotification()
510 appName)); in postNotification()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DExpressionTest.java153 String appName = getActivity().getResources().getString(R.string.app_name); in testTernaryChain() local
155 assertEquals(mBinder.getBool1() ? appName : mBinder.getBool2() ? rain : "", in testTernaryChain()
/frameworks/base/core/java/android/view/
DWindow.java723 public void setWindowManager(WindowManager wm, IBinder appToken, String appName) { in setWindowManager() argument
724 setWindowManager(wm, appToken, appName, false); in setWindowManager()
734 public void setWindowManager(WindowManager wm, IBinder appToken, String appName, in setWindowManager() argument
737 mAppName = appName; in setWindowManager()
/frameworks/base/core/java/android/app/
DDialog.java1031 final ComponentName appName = getAssociatedActivity(); in onSearchRequested() local
1032 if (appName != null && searchManager.getSearchableInfo(appName) != null) { in onSearchRequested()
1033 searchManager.startSearch(null, false, appName, null, false); in onSearchRequested()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java364 public boolean check(String appName, int smsWaiting) { in check() argument
368 ArrayList<Long> sentList = mSmsStamp.get(appName); in check()
371 mSmsStamp.put(appName, sentList); in check()
/frameworks/base/core/java/android/widget/
DAppSecurityPermissions.java196 CharSequence appName; in onClick() local
199 appName = app.loadLabel(pm); in onClick()
201 appName = mPerm.packageName; in onClick()
205 R.string.perms_description_app, appName)); in onClick()
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/
DVpnTest.java303 final String appName = (String) invocation.getArguments()[0]; in setMockedPackages()
305 return UserHandle.getUid(userId, packages.get(appName)); in setMockedPackages()
/frameworks/base/opengl/java/com/google/android/gles_jni/
DGLImpl.java66 private static boolean allowIndirectBuffers(String appName) { in allowIndirectBuffers() argument
71 … ApplicationInfo applicationInfo = pm.getApplicationInfo(appName, 0, UserHandle.myUserId()); in allowIndirectBuffers()
80 appName, version)); in allowIndirectBuffers()

12