Home
last modified time | relevance | path

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

/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java182 String appName = ri.loadLabel(pm).toString(); in createMappings() local
183 if (appName != null) { in createMappings()
184 mNameToIntent.put(appName, startIntent); in createMappings()
185 mNameToProcess.put(appName, ri.activityInfo.processName); in createMappings()
191 private long startApp(String appName, boolean forceStopBeforeLaunch) in startApp() argument
193 Log.i(TAG, "Starting " + appName); in startApp()
195 Intent startIntent = mNameToIntent.get(appName); in startApp()
197 Log.w(TAG, "App does not exist: " + appName); in startApp()
198 mResult.putString(mNameToResultKey.get(appName), "App does not exist"); in startApp()
219 Log.w(TAG, "Assuming app " + appName + " crashed."); in startApp()
[all …]
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java138 private String startApp(String appName) throws NameNotFoundException { in startApp() argument
139 Log.i(TAG, "Starting " + appName); in startApp()
141 if (!mNameToProcess.containsKey(appName)) in startApp()
142 throw new NameNotFoundException("Could not find: " + appName); in startApp()
144 String process = mNameToProcess.get(appName); in startApp()
145 Intent startIntent = mNameToIntent.get(appName); in startApp()
168 private void measureMemory(String appName, String processName, in measureMemory() argument
176 Log.i(TAG, appName + "=" + pss); in measureMemory()
178 reportError(appName, processName, results); in measureMemory()
183 results.putInt(mNameToResultKey.get(appName), pss); in measureMemory()
[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.java127 String appName = DdmHandleAppName.getAppName(); in handleHELO() local
130 + vmIdent.length()*2 + appName.length()*2); in handleHELO()
135 out.putInt(appName.length()); in handleHELO()
137 putString(out, appName); in handleHELO()
/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/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/
DHeavyWeightSwitcherActivity.java106 CharSequence appName = ""; in setIconAndText() local
112 appName = info.loadLabel(getPackageManager()); in setIconAndText()
119 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.cpp160 jobject appName = _env->NewStringUTF(::__progname);
161 …mpatability = _env->CallStaticBooleanMethod(G11ImplClass, allowIndirectBuffersID, appName) ? 2 : 1;
/frameworks/base/core/java/android/view/
DWindow.java466 public void setWindowManager(WindowManager wm, IBinder appToken, String appName) { in setWindowManager() argument
467 setWindowManager(wm, appToken, appName, false); in setWindowManager()
477 public void setWindowManager(WindowManager wm, IBinder appToken, String appName, in setWindowManager() argument
480 mAppName = appName; in setWindowManager()
/frameworks/base/services/java/com/android/server/am/
DServiceRecord.java445 CharSequence appName = appInfo.loadLabel( in postNotification()
447 if (appName == null) { in postNotification()
448 appName = appInfo.packageName; in postNotification()
464 appName), in postNotification()
468 appName), in postNotification()
/frameworks/base/core/java/android/app/
DDialog.java959 final ComponentName appName = getAssociatedActivity(); in onSearchRequested() local
960 if (appName != null && searchManager.getSearchableInfo(appName) != null) { in onSearchRequested()
961 searchManager.startSearch(null, false, appName, null, false); in onSearchRequested()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsUsageMonitor.java363 public boolean check(String appName, int smsWaiting) { in check() argument
367 ArrayList<Long> sentList = mSmsStamp.get(appName); in check()
370 mSmsStamp.put(appName, sentList); in check()
/frameworks/base/core/java/android/widget/
DAppSecurityPermissions.java200 CharSequence appName; in onClick() local
203 appName = app.loadLabel(pm); in onClick()
205 appName = mPerm.packageName; in onClick()
209 R.string.perms_description_app, appName)); in onClick()
/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()
/frameworks/base/core/jni/
Dcom_google_android_gles_jni_GLImpl.cpp161 jobject appName = _env->NewStringUTF(::__progname); in allowIndirectBuffers() local
162 …mpatability = _env->CallStaticBooleanMethod(G11ImplClass, allowIndirectBuffersID, appName) ? 2 : 1; in allowIndirectBuffers()