/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/ |
D | MyBaseListFragment.java | 107 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 …]
|
D | ShortcutListFragment.java | 94 final String packageName = selected.getPackage(); in togglePin() local 99 .setPackage(packageName) in togglePin() 112 mLauncherApps.pinShortcuts(packageName, pinned, selected.getUserHandle()); in togglePin()
|
/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/ |
D | AppLabelCache.java | 32 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/ |
D | PackageValidator.java | 64 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/ |
D | ResponseHelper.java | 39 @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()
|
D | InlineFillService.java | 110 String packageName = context.getPackageName(); in createResponse() local 115 response.addDataset(ResponseHelper.newLockedDataset(context, fields, packageName, i, in createResponse() 119 packageName, i, inlineRequest)); in createResponse()
|
/development/tools/bugreport/src/com/android/bugreport/stacks/ |
D | JavaStackFrameSnapshot.java | 31 public String packageName; field in JavaStackFrameSnapshot 45 this.packageName = that.packageName; in JavaStackFrameSnapshot()
|
D | LockSnapshot.java | 34 public String packageName; field in LockSnapshot 44 this.packageName = that.packageName; in LockSnapshot()
|
D | ThreadSnapshotParser.java | 208 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/ |
D | ResourceHelper.java | 38 String packageName = context.getPackageName(); in getThemeColor() local 40 Context packageContext = context.createPackageContext(packageName, 0); in getThemeColor() 42 context.getPackageManager().getApplicationInfo(packageName, 0); in getThemeColor()
|
D | CarHelper.java | 33 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/ |
D | MainActivity.java | 157 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/ |
D | DeviceOwnerFragment.java | 181 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/ |
D | ImageKeyboard.java | 119 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/ |
D | BasicManagedProfileFragment.java | 112 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/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeyPermissionUtil.java | 95 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()
|
D | MonkeySourceNetworkViews.java | 122 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/ |
D | PackageBrowser.java | 80 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()
|
D | ShowActivity.java | 75 mPackage.setText(mActivityInfo.applicationInfo.packageName); in onCreate() 78 mActivityInfo.applicationInfo.packageName + ".")) { in onCreate() 80 mActivityInfo.applicationInfo.packageName.length())); in onCreate()
|
D | PermissionDetails.java | 138 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()
|
D | AppHwConfigList.java | 73 intent.putExtra("packageName", app.packageName); in onListItemClick() 86 pkgInfo = mPm.getPackageInfo(app.packageName, 0); in AppListAdapter()
|
/development/samples/ToyVpn/src/com/example/android/toyvpn/ |
D | ToyVpnConnection.java | 336 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/ |
D | Configuration.java | 179 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/ |
D | AppEntry.java | 36 mLaunchIntent.setComponent(new ComponentName(info.activityInfo.packageName, in AppEntry()
|
/development/samples/UiAutomator/src/com/android/test/uiautomator/demos/ |
D | LaunchSettings.java | 93 new UiObject(new UiSelector().packageName("com.android.settings")); in testDemo()
|