Home
last modified time | relevance | path

Searched refs:packageName (Results 1 – 25 of 56) sorted by relevance

123

/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DMyBaseListFragment.java107 protected final String getAppLabel(String packageName) { in getAppLabel() argument
108 String name = mAppNames.get(packageName); in getAppLabel()
114 final ApplicationInfo ai = pm.getApplicationInfo(packageName, 0); in getAppLabel()
117 return packageName; in getAppLabel()
125 public void onPackageRemoved(String packageName, UserHandle user) {
126 Log.i(Global.TAG, "onPackageRemoved: package=" + packageName + " on " + user);
131 public void onPackageAdded(String packageName, UserHandle user) {
132 Log.i(Global.TAG, "onPackageAdded: package=" + packageName + " on " + user);
137 public void onPackageChanged(String packageName, UserHandle user) {
138 Log.i(Global.TAG, "onPackageChanged: package=" + packageName + " on " + user);
[all …]
/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/
DAppLabelCache.java32 public String getAppLabel(String packageName) { in getAppLabel() argument
33 String name = mAppNames.get(packageName); in getAppLabel()
39 final ApplicationInfo ai = pm.getApplicationInfo(packageName, 0); in getAppLabel()
42 return packageName; in getAppLabel()
44 mAppNames.put(packageName, name); in getAppLabel()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DPackageValidator.java64 String packageName = parser.getAttributeValue(null, "package"); in readValidCertificates() local
68 CallerInfo info = new CallerInfo(name, packageName, isRelease, certificate); in readValidCertificates()
76 " package=", info.packageName, " release=", info.release, in readValidCertificates()
129 if (callingPackage.equals(info.packageName)) { in isCallerAllowed()
130 LogHelper.v(TAG, "Valid caller: ", info.name, " package=", info.packageName, in isCallerAllowed()
134 expectedPackages.append(info.packageName).append(' '); in isCallerAllowed()
147 final String packageName; field in PackageValidator.CallerInfo
151 public CallerInfo(String name, String packageName, boolean release, in CallerInfo() argument
154 this.packageName = packageName; in CallerInfo()
/development/samples/InlineFillService/src/com/example/android/inlinefillservice/
DResponseHelper.java39 @NonNull Map<String, AutofillId> fields, @NonNull String packageName, int index, in newUnlockedDataset() argument
54 final RemoteViews presentation = newDatasetPresentation(packageName, displayValue); in newUnlockedDataset()
73 @NonNull Map<String, AutofillId> fields, @NonNull String packageName, int index, in newLockedDataset() argument
76 packageName, index, inlineRequest); in newLockedDataset()
86 RemoteViews presentation = newDatasetPresentation(packageName, displayValue); in newLockedDataset()
105 static RemoteViews newDatasetPresentation(@NonNull String packageName, in newDatasetPresentation() argument
108 new RemoteViews(packageName, R.layout.list_item); in newDatasetPresentation()
DInlineFillService.java113 String packageName = context.getPackageName(); in createResponse() local
118 response.addDataset(ResponseHelper.newLockedDataset(context, fields, packageName, i, in createResponse()
122 packageName, i, inlineRequest)); in createResponse()
/development/tools/bugreport/src/com/android/bugreport/stacks/
DJavaStackFrameSnapshot.java31 public String packageName; field in JavaStackFrameSnapshot
45 this.packageName = that.packageName; in JavaStackFrameSnapshot()
DLockSnapshot.java34 public String packageName; field in LockSnapshot
44 this.packageName = that.packageName; in LockSnapshot()
DThreadSnapshotParser.java208 frame.packageName = javaRe.group(1); in parse()
219 frame.packageName = jniRe.group(1); in parse()
230 lock.packageName = lockedRe.group(2); in parse()
239 lock.packageName = waitingOnRe.group(2); in parse()
248 lock.packageName = sleepingOnRe.group(2); in parse()
257 lock.packageName = waitingToLockHeldRe.group(2); in parse()
267 lock.packageName = waitingToLockRe.group(2); in parse()
318 System.out.println(" frame(java) ==> " + jf.packageName in parse()
327 + " / " + ls.address + " / " + ls.packageName in parse()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DResourceHelper.java38 String packageName = context.getPackageName(); in getThemeColor() local
40 Context packageContext = context.createPackageContext(packageName, 0); in getThemeColor()
42 context.getPackageManager().getApplicationInfo(packageName, 0); in getThemeColor()
DCarHelper.java33 public static boolean isValidCarPackage(String packageName) { in isValidCarPackage() argument
34 return AUTO_APP_PACKAGE_NAME.equals(packageName); in isValidCarPackage()
/development/apps/PushApiAuthenticator/src/com/example/android/pushapiauthenticator/
DMainActivity.java157 String packageName = in onCreate()
161 am.setAccountVisibility(currentAccount, packageName, in onCreate()
165 + currentAccount.name + " to " + packageName, in onCreate()
169 am.setAccountVisibility(currentAccount, packageName, in onCreate()
173 + currentAccount.name + " to " + packageName, in onCreate()
177 am.setAccountVisibility(currentAccount, packageName, in onCreate()
181 + currentAccount.name + " of " + packageName, in onCreate()
186 "Is " + currentAccount.name + " visible to " + packageName in onCreate()
188 + am.getAccountVisibility(currentAccount, packageName), in onCreate()
199 packageAndVisibilitys.put(packageName, in onCreate()
[all …]
/development/samples/browseable/DeviceOwner/src/com.example.android.deviceowner/
DDeviceOwnerFragment.java181 String packageName = loadPersistentPreferredLauncher(activity); in retrieveCurrentSettings() local
182 if (packageName == null) { // No preferred launcher is set in retrieveCurrentSettings()
188 if (list.get(i).activityInfo.packageName.equals(packageName)) { in retrieveCurrentSettings()
258 private static void savePersistentPreferredLauncher(Activity activity, String packageName) { in savePersistentPreferredLauncher() argument
261 if (packageName == null) { in savePersistentPreferredLauncher()
264 editor.putString(PREF_LAUNCHER, packageName); in savePersistentPreferredLauncher()
319 map.put(KEY_PACKAGE_NAME, info.activityInfo.packageName); in createData()
/development/samples/browseable/CommitContentSampleIME/src/com.example.android.commitcontent.ime/
DImageKeyboard.java119 editorInfo.packageName, contentUri, Intent.FLAG_GRANT_READ_URI_PERMISSION); in doCommitContent()
121 Log.e(TAG, "grantUriPermission failed packageName=" + editorInfo.packageName in doCommitContent()
139 final String packageName = editorInfo.packageName; in validatePackageName() local
140 if (packageName == null) { in validatePackageName()
170 appOpsManager.checkPackage(packageUid, packageName); in validatePackageName()
180 if (packageName.equals(possiblePackageName)) { in validatePackageName()
/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/
DBasicManagedProfileFragment.java112 private boolean isApplicationEnabled(String packageName) { in isApplicationEnabled() argument
117 packageName, PackageManager.GET_UNINSTALLED_PACKAGES); in isApplicationEnabled()
126 BasicDeviceAdminReceiver.getComponentName(activity), packageName); in isApplicationEnabled()
203 private void setAppEnabled(String packageName, boolean enabled) { in setAppEnabled() argument
212 ApplicationInfo applicationInfo = packageManager.getApplicationInfo(packageName, in setAppEnabled()
221 BasicDeviceAdminReceiver.getComponentName(activity), packageName); in setAppEnabled() local
224 Log.e(TAG, "Cannot disable this app: " + packageName); in setAppEnabled()
231 BasicDeviceAdminReceiver.getComponentName(activity), packageName, !enabled); in setAppEnabled() local
236 Log.e(TAG, "The app cannot be found: " + packageName, e); in setAppEnabled()
/development/tools/winscope/
Dwebpack.config.prod.js56 const packageName = module.context
58 return `npm.${packageName.replace('@', '')}`;
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyPermissionUtil.java95 if (MonkeyUtils.getPackageFilter().checkEnteringPackage(info.packageName)) { in shouldTargetPackage()
100 && !MonkeyUtils.getPackageFilter().isPackageInvalid(info.packageName) in shouldTargetPackage()
137 if (pi != null && shouldTargetPermission(info.packageName, pi)) { in populatePermissionsMapping()
142 mPermissionMap.put(info.packageName, permissions); in populatePermissionsMapping()
DMonkeySourceNetworkViews.java122 private static Class<?> getIdClass(String packageName, String sourceDir) in getIdClass() argument
126 Class<?> klass = sClassMap.get(packageName); in getIdClass()
131 klass = classLoader.loadClass(packageName + ".R$id"); in getIdClass()
132 sClassMap.put(packageName, klass); in getIdClass()
170 String packageName = node.getPackageName().toString(); in translateCommand() local
173 ApplicationInfo appInfo = sPm.getApplicationInfo(packageName, 0, in translateCommand()
175 klass = getIdClass(packageName, appInfo.sourceDir); in translateCommand()
/development/apps/Development/src/com/android/development/
DPackageBrowser.java80 description.setText(info.info.packageName); in bindView()
145 getPackageManager().deletePackage(packageInfo.info.packageName, in deletePackage()
147 public void packageDeleted(String packageName, int returnCode) in deletePackage()
194 null, Uri.fromParts("package", info.info.packageName, null)); in onListItemClick()
DShowActivity.java75 mPackage.setText(mActivityInfo.applicationInfo.packageName); in onCreate()
78 mActivityInfo.applicationInfo.packageName + ".")) { in onCreate()
80 mActivityInfo.applicationInfo.packageName.length())); in onCreate()
DPermissionDetails.java138 holder.pkgName.setText(pInfo.packageName); in getView()
146 Log.i(TAG, "Adding pkg : " + pkg.packageName); in createAppList()
166 Log.i(TAG, "Pkg:" + pkg.packageName+" uses permission"); in getAppsUsingPerm()
204 setTextView(R.id.perm_source, pInfo.packageName); in onCreate()
207 appInfo = mPm.getApplicationInfo(pInfo.packageName, 0); in onCreate()
/development/tools/winscope/src/
Dtransform_ime.js33 + '\n- packageName ' + entry?.editorInfo?.packageName,
69 + '\n- packageName ' + entry?.inputEditorInfo?.packageName,
/development/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnConnection.java336 for (String packageName : mPackages) { in configure()
339 builder.addAllowedApplication(packageName); in configure()
341 builder.addDisallowedApplication(packageName); in configure()
344 Log.w(getTag(), "Package not available: " + packageName, e); in configure()
/development/tools/idegen/src/
DConfiguration.java179 String packageName = parsePackageName(javaFile); in rootOf() local
180 if (packageName == null) { in rootOf()
186 String packagePath = packageName.replace('.', File.separatorChar); in rootOf()
/development/samples/MultiDisplay/src/com/example/android/multidisplay/launcher/
DAppEntry.java36 mLaunchIntent.setComponent(new ComponentName(info.activityInfo.packageName, in AppEntry()
/development/samples/UiAutomator/src/com/android/test/uiautomator/demos/
DLaunchSettings.java93 new UiObject(new UiSelector().packageName("com.android.settings")); in testDemo()

123