Home
last modified time | relevance | path

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

12

/development/samples/Support4Demos/src/com/example/android/supportv4/media/
DPackageValidator.java66 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/
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/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/samples/Support4Demos/src/com/example/android/supportv4/media/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.java34 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/
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/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/cmds/monkey/src/com/android/commands/monkey/
DMonkeyPermissionUtil.java91 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()
DMonkeySourceNetworkViews.java121 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()
DMonkey.java993 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/
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()
DAppHwConfigList.java73 intent.putExtra("packageName", app.packageName); in onListItemClick()
86 pkgInfo = mPm.getPackageInfo(app.packageName, 0); in AppListAdapter()
DPackageSummary.java98 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()
DAccountsTester.java145 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/
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/UiAutomator/src/com/android/test/uiautomator/demos/
DLaunchSettings.java93 new UiObject(new UiSelector().packageName("com.android.settings")); in testDemo()
DSetTwoMinuteAlarm.java79 new UiObject(new UiSelector().packageName("com.google.android.deskclock") in testDemo()
/development/samples/ContactManager/src/com/example/android/contactmanager/
DContactAdder.java314 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/
DClassInfo.java349 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/
DInstallApk.java110 getApplicationInfo().packageName);
123 getApplicationInfo().packageName);
/development/ndk/sources/android/ndk_helper/
DJNIHelper.cpp86 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/
DAppNavHomeActivity.java67 target.setClassName(info.activityInfo.applicationInfo.packageName, in querySampleActivities()

12