/external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/ |
StartedMatcher.java | 22 public StartedMatcher(String packageName, Class<? extends Activity> expectedActivityClass) { 23 this(createIntent(packageName, expectedActivityClass)); 80 String packageName = activityClass.getPackage().getName(); 81 return createIntent(packageName, activityClass); 84 public static Intent createIntent(String packageName, Class<? extends Activity> activityClass) { 86 intent.setClassName(packageName, activityClass.getName());
|
StartedServiceMatcher.java | 25 public StartedServiceMatcher(String packageName, Class<? extends Service> expectedServiceClass) { 26 this(createIntent(packageName, expectedServiceClass)); 101 String packageName = "android.service"; 106 return createIntent(packageName, serviceClass); 109 public static Intent createIntent(String packageName, Class<? extends Service> serviceClass) { 111 intent.setClassName(packageName, serviceClass.getName());
|
/frameworks/base/core/java/android/accounts/ |
AuthenticatorDescription.java | 45 final public String packageName; 51 public AuthenticatorDescription(String type, String packageName, int labelId, int iconId, 54 if (packageName == null) throw new IllegalArgumentException("packageName cannot be null"); 56 this.packageName = packageName; 64 public AuthenticatorDescription(String type, String packageName, int labelId, int iconId, 66 this(type, packageName, labelId, iconId, smallIconId, prefId, false); 81 this.packageName = null; 91 this.packageName = source.readString() [all...] |
/external/proguard/src/proguard/ |
GPL.java | 110 String packageName = (String)iterator.next(); 111 if (!containsPrefix(packageNames, packageName)) 113 buffer.append(packageName).append(", "); 159 private static boolean isKnown(String packageName) 161 return packageName.startsWith("java") || 162 packageName.startsWith("sun.reflect") || 163 packageName.startsWith("proguard") || 164 packageName.startsWith("org.apache.tools.ant") || 165 packageName.startsWith("org.apache.tools.maven") || 166 packageName.startsWith("org.eclipse") | [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
AllAppsList.java | 87 * Add the icons for the supplied apk called packageName. 89 public void addPackage(Context context, String packageName) { 90 final List<ResolveInfo> matches = findActivitiesForPackage(context, packageName); 100 * Remove the apps for the given apk identified by packageName. 102 public void removePackage(String packageName) { 107 if (packageName.equals(component.getPackageName())) { 119 public void updatePackage(Context context, String packageName) { 120 final List<ResolveInfo> matches = findActivitiesForPackage(context, packageName); 127 if (packageName.equals(component.getPackageName())) { 142 info.activityInfo.applicationInfo.packageName, [all...] |
/sdk/templates/activities/MasterDetailFlow/ |
globals.xml.ftl | 3 <global id="srcOut" value="src/${slashedPackageName(packageName)}" />
|
/sdk/templates/other/BroadcastReceiver/root/src/app_package/ |
BroadcastReceiver.java.ftl | 1 package ${packageName};
|
/sdk/templates/other/Daydream/ |
globals.xml.ftl | 3 <global id="srcOut" value="src/${slashedPackageName(packageName)}" />
|
/sdk/templates/other/ListFragment/ |
globals.xml.ftl | 3 <global id="srcOut" value="src/${slashedPackageName(packageName)}" />
|
/sdk/templates/other/Service/root/src/app_package/ |
Service.java.ftl | 1 package ${packageName};
|
/frameworks/base/core/java/com/android/internal/os/ |
PkgUsageStats.java | 31 public String packageName; 50 + " " + packageName + "}"; 54 packageName = pkgName; 61 packageName = source.readString(); 74 packageName = pStats.packageName; 85 dest.writeString(packageName);
|
/frameworks/base/core/jni/ |
android_content_res_ObbScanner.cpp | 33 jfieldID packageName; 55 jstring packageName = env->NewStringUTF(packageNameStr); 56 if (packageName == NULL) { 61 env->SetObjectField(obbInfo, gObbInfoClassInfo.packageName, packageName); 96 GET_FIELD_ID(gObbInfoClassInfo.packageName, clazz, 97 "packageName", "Ljava/lang/String;");
|
/frameworks/base/core/java/android/app/ |
ApplicationPackageManager.java | 70 public PackageInfo getPackageInfo(String packageName, int flags) 73 PackageInfo pi = mPM.getPackageInfo(packageName, flags, mContext.getUserId()); 81 throw new NameNotFoundException(packageName); 103 public Intent getLaunchIntentForPackage(String packageName) { 109 intentToResolve.setPackage(packageName); 117 intentToResolve.setPackage(packageName); 125 intent.setClassName(ris.get(0).activityInfo.packageName, 131 public int[] getPackageGids(String packageName) 134 int[] gids = mPM.getPackageGids(packageName); 142 throw new NameNotFoundException(packageName); [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/ |
ApplicationResolver.java | 22 String packageName = config.getPackageName(); 26 application = newApplicationInstance(packageName, applicationName); 32 shadowApplication.setPackageName(packageName); 68 private Application newApplicationInstance(String packageName, String applicationName) { 72 new ClassNameResolver<Application>(packageName, applicationName).resolve();
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/content/pm/ |
StubPackageManager.java | 25 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { 37 @Override public Intent getLaunchIntentForPackage(String packageName) { 41 @Override public int[] getPackageGids(String packageName) throws NameNotFoundException { 65 public ApplicationInfo getApplicationInfo(String packageName, int flags) throws NameNotFoundException { 182 @Override public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { 202 @Override public Drawable getApplicationIcon(String packageName) throws NameNotFoundException { 222 @Override public CharSequence getText(String packageName, int resid, ApplicationInfo appInfo) { 226 @Override public XmlResourceParser getXml(String packageName, int resid, ApplicationInfo appInfo) { 249 @Override public String getInstallerPackageName(String packageName) { 253 @Override public void addPackageToPreferred(String packageName) { [all...] |
/frameworks/base/services/java/com/android/server/ |
ServiceWatcher.java | 175 String packageName = rInfo.serviceInfo.packageName; 180 pInfo = mPm.getPackageInfo(packageName, PackageManager.GET_SIGNATURES); 182 Log.w(mTag, packageName + " resolves service " + mAction 202 bestPackage = packageName; 236 private void bindToPackageLocked(String packageName, int version, boolean isMultiuser) { 239 intent.setPackage(packageName); 240 mPackageName = packageName; 243 if (D) Log.d(mTag, "binding " + packageName + " (version " + version + ") (" 277 public void onPackageUpdateFinished(String packageName, int uid) [all...] |
AppOpsService.java | 92 public final String packageName; 96 packageName = _packageName; 164 curUid = mContext.getPackageManager().getPackageUid(ops.packageName, 170 Slog.i(TAG, "Pruning old package " + ops.packageName 186 public void packageRemoved(int uid, String packageName) { 190 if (pkgs.remove(packageName) != null) { 262 pkgOps.packageName, pkgOps.uid, resOps); 272 public List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, 277 Ops pkgOps = getOpsLocked(uid, packageName, false); 287 pkgOps.packageName, pkgOps.uid, resOps) [all...] |
/frameworks/base/test-runner/src/android/test/mock/ |
MockPackageManager.java | 59 public PackageInfo getPackageInfo(String packageName, int flags) 75 public Intent getLaunchIntentForPackage(String packageName) { 80 public int[] getPackageGids(String packageName) throws NameNotFoundException { 86 public int getPackageUid(String packageName, int userHandle) 115 public ApplicationInfo getApplicationInfo(String packageName, int flags) 183 public void grantPermission(String packageName, String permissionName) { 189 public void revokePermission(String packageName, String permissionName) { 305 public Drawable getDrawable(String packageName, int resid, ApplicationInfo appInfo) { 331 public Drawable getApplicationIcon(String packageName) throws NameNotFoundException { 351 public Drawable getApplicationLogo(String packageName) throws NameNotFoundException [all...] |
/packages/apps/Launcher2/res/xml/ |
default_workspace.xml | 22 launcher:packageName="com.android.settings" 32 launcher:packageName="com.android.deskclock" 40 launcher:packageName="com.android.camera" 48 launcher:packageName="com.android.gallery3d" 54 launcher:packageName="com.android.settings" 64 launcher:packageName="com.android.dialer" 71 launcher:packageName="com.android.contacts" 78 launcher:packageName="com.android.mms" 85 launcher:packageName="com.android.browser"
|
/packages/apps/Launcher2/res/xml-sw600dp/ |
default_workspace.xml | 22 launcher:packageName="com.android.settings" 32 launcher:packageName="com.android.deskclock" 40 launcher:packageName="com.android.camera" 48 launcher:packageName="com.android.gallery3d" 54 launcher:packageName="com.android.settings" 64 launcher:packageName="com.android.dialer" 71 launcher:packageName="com.android.contacts" 78 launcher:packageName="com.android.mms" 85 launcher:packageName="com.android.browser"
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsMockPackageManager.java | 49 public void addPackage(int packageUid, String packageName) { 50 mForward.put(packageUid, packageName); 51 mReverse.put(packageName, packageUid); 62 return new String[] { mPackages.get(0).packageName }; 69 public ApplicationInfo getApplicationInfo(String packageName, int flags) { 71 Integer uid = mReverse.get(packageName); 86 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { 88 if (info.packageName.equals(packageName)) {
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/ |
RobolectricPackageManager.java | 38 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { 39 if (packageList.containsKey(packageName)) { 40 return packageList.get(packageName); 47 public ApplicationInfo getApplicationInfo(String packageName, int flags) throws NameNotFoundException { 49 if (config.getPackageName().equals(packageName)) { 54 applicationInfo.packageName = config.getPackageName(); 62 if ((info = packageList.get(packageName)) != null) { 123 public Intent getLaunchIntentForPackage(String packageName) { 125 i.setComponent( new ComponentName(packageName, "") ); 157 packageList.put(packageInfo.packageName, packageInfo) [all...] |
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/ |
AppCompatibility.java | 97 String packageName = mArgs.getString(PACKAGE_TO_LAUNCH); 98 if (packageName != null) { 99 Log.d(TAG, "Launching app " + packageName); 100 Collection<ProcessErrorStateInfo> err = launchActivity(packageName); 105 assertTrue("App crashed after launch.", processStillUp(packageName)); 132 * @param packageName {@link String} the package name of the application to 137 private Collection<ProcessErrorStateInfo> launchActivity(String packageName) { 142 Intent intent = mPackageManager.getLaunchIntentForPackage(packageName); 145 Log.d(TAG, "Skipping " + packageName + "; missing launch intent"); 194 * @param packageName {@link String} package to look fo [all...] |
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
InstrumentationApkTest.java | 58 * @param packageName the apk's Android package name 60 public void addInstallApk(String apkFileName, String packageName) { 62 mUninstallPackages.add(packageName); 88 for (String packageName : mUninstallPackages) { 89 Log.d(LOG_TAG, String.format("Uninstalling %s on %s", packageName, 91 getDevice().uninstallPackage(packageName);
|
/external/webkit/Source/WebCore/platform/android/ |
PackageNotifier.cpp | 57 void PackageNotifier::addPackageName(const String& packageName) 60 m_packageNames.add(packageName); 63 void PackageNotifier::removePackageName(const String& packageName) 66 m_packageNames.remove(packageName); 84 bool PackageNotifier::isPackageInstalled(const String& packageName) 86 return m_packageNames.contains(packageName);
|