/development/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | PackageValidator.java | 66 String packageName = parser.getAttributeValue(null, "package"); in readValidCertificates() local 70 CallerInfo info = new CallerInfo(name, packageName, isRelease, certificate); in readValidCertificates() 78 + info.packageName + " release=" + info.release + " certificate=" in readValidCertificates() 130 if (callingPackage.equals(info.packageName)) { in isCallerAllowed() 131 Log.v(TAG, "Valid caller: " + info.name + " package=" + info.packageName in isCallerAllowed() 135 expectedPackages.append(info.packageName).append(' '); in isCallerAllowed() 148 final String packageName; field in PackageValidator.CallerInfo 152 public CallerInfo(String name, String packageName, boolean release, in CallerInfo() argument 155 this.packageName = packageName; in CallerInfo()
|
/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/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/samples/Support4Demos/src/com/example/android/supportv4/media/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 | 34 public static boolean isValidCarPackage(String packageName) { in isValidCarPackage() argument 35 return AUTO_APP_PACKAGE_NAME.equals(packageName); in isValidCarPackage()
|
/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/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 | 91 if (MonkeyUtils.getPackageFilter().checkEnteringPackage(info.packageName)) { in shouldTargetPackage() 96 && !MonkeyUtils.getPackageFilter().isPackageInvalid(info.packageName) in shouldTargetPackage() 133 if (pi != null && shouldTargetPermission(info.packageName, pi)) { in populatePermissionsMapping() 138 mPermissionMap.put(info.packageName, permissions); in populatePermissionsMapping()
|
D | MonkeySourceNetworkViews.java | 121 private static Class<?> getIdClass(String packageName, String sourceDir) in getIdClass() argument 125 Class<?> klass = sClassMap.get(packageName); in getIdClass() 130 klass = classLoader.loadClass(packageName + ".R$id"); in getIdClass() 131 sClassMap.put(packageName, klass); in getIdClass() 169 String packageName = node.getPackageName().toString(); in translateCommand() local 172 ApplicationInfo appInfo = sPm.getApplicationInfo(packageName, 0, in translateCommand() 174 klass = getIdClass(packageName, appInfo.sourceDir); in translateCommand()
|
D | Monkey.java | 993 String packageName = r.activityInfo.applicationInfo.packageName; in getMainApps() local 994 if (MonkeyUtils.getPackageFilter().checkEnteringPackage(packageName)) { in getMainApps() 997 + " (from package " + packageName + ")"); in getMainApps() 999 mMainApps.add(new ComponentName(packageName, r.activityInfo.name)); in getMainApps() 1003 + r.activityInfo.name + " (from package " + packageName + ")"); in getMainApps()
|
/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()
|
D | PackageSummary.java | 98 mPackage.setText(info.packageName); in onCreate() 137 if (appClass.startsWith(info.packageName + ".")) in onCreate() 138 mClass.setText(appClass.substring(info.packageName.length())); in onCreate() 178 new ComponentName(ai.applicationInfo.packageName, in onCreate()
|
D | AccountsTester.java | 145 final String packageName = desc.packageName; in getView() local 147 final Context authContext = getContext().createPackageContext(packageName, in getView() 153 Log.d(TAG, "error getting the Package Context for " + packageName, e); in getView() 170 authContext = createPackageContext(mAuthenticatorDescs[i].packageName, 0); in initializeAuthenticatorsSpinner()
|
/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/UiAutomator/src/com/android/test/uiautomator/demos/ |
D | LaunchSettings.java | 93 new UiObject(new UiSelector().packageName("com.android.settings")); in testDemo()
|
D | SetTwoMinuteAlarm.java | 79 new UiObject(new UiSelector().packageName("com.google.android.deskclock") in testDemo()
|
/development/samples/ContactManager/src/com/example/android/contactmanager/ |
D | ContactAdder.java | 314 String packageName = description.packageName; in AccountData() local 318 mTypeLabel = pm.getText(packageName, description.labelId, null); in AccountData() 327 mIcon = pm.getDrawable(packageName, description.iconId, null); in AccountData()
|
/development/tools/apkcheck/src/com/android/apkcheck/ |
D | ClassInfo.java | 349 String packageName = TypeUtils.packageNameOnly(fullname); in lookupClass() local 352 PackageInfo pkg = apiList.getPackage(packageName); in lookupClass()
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | InstallApk.java | 110 getApplicationInfo().packageName); 123 getApplicationInfo().packageName);
|
/development/ndk/sources/android/ndk_helper/ |
D | JNIHelper.cpp | 86 jstring packageName = (jstring) env->CallObjectMethod( helper.activity_->clazz, in Init() local 88 const char* appname = env->GetStringUTFChars( packageName, NULL ); in Init() 98 env->ReleaseStringUTFChars( packageName, appname ); in Init()
|
/development/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/ |
D | AppNavHomeActivity.java | 67 target.setClassName(info.activityInfo.applicationInfo.packageName, in querySampleActivities()
|