/frameworks/base/core/java/android/content/pm/ |
VerifierInfo.java | 32 public final String packageName; 40 * @param packageName the package name in Java-style. Must not be {@code 46 public VerifierInfo(String packageName, PublicKey publicKey) { 47 if (packageName == null || packageName.length() == 0) { 48 throw new IllegalArgumentException("packageName must not be null or empty"); 53 this.packageName = packageName; 58 packageName = source.readString(); 69 dest.writeString(packageName); [all...] |
ILauncherApps.aidl | 40 ParceledListSlice getLauncherActivities(String packageName, in UserHandle user); 46 boolean isPackageEnabled(String packageName, in UserHandle user); 48 ApplicationInfo getApplicationInfo(String packageName, int flags, in UserHandle user); 50 ParceledListSlice getShortcuts(String callingPackage, long changedSince, String packageName, 52 void pinShortcuts(String callingPackage, String packageName, in List<String> shortcutIds, 54 boolean startShortcut(String callingPackage, String packageName, String id, 57 int getShortcutIconResId(String callingPackage, String packageName, String id, 59 ParcelFileDescriptor getShortcutIconFd(String callingPackage, String packageName, String id,
|
/cts/tests/tests/media/src/android/media/cts/ |
Utils.java | 32 public static void enableAppOps(String packageName, String operation, 34 setAppOps(packageName, operation, instrumentation, true); 37 public static void disableAppOps(String packageName, String operation, 39 setAppOps(packageName, operation, instrumentation, false); 48 private static void setAppOps(String packageName, String operation, 52 cmd.append(packageName); 60 query.append(packageName); 75 protected static void toggleNotificationPolicyAccess(String packageName, 87 if ((alreadyEnabledServices == null) || !alreadyEnabledServices.contains(packageName)) { 89 final String newEnabledServices = (alreadyEnabledServices == null) ? packageName [all...] |
/frameworks/base/test-runner/src/android/test/ |
ClassPathPackageInfo.java | 34 private final String packageName; 38 ClassPathPackageInfo(ClassPathPackageInfoSource source, String packageName, 41 this.packageName = packageName; 71 return (this.packageName).equals(that.packageName); 78 return packageName.hashCode();
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
PackageInstallerCompat.java | 55 public final String packageName; 60 public PackageInstallInfo(String packageName) { 61 this.packageName = packageName; 64 public PackageInstallInfo(String packageName, int state, int progress) { 65 this.packageName = packageName;
|
LauncherAppsCompatVL.java | 49 public List<LauncherActivityInfoCompat> getActivityList(String packageName, 51 List<LauncherActivityInfo> list = mLauncherApps.getActivityList(packageName, 101 public boolean isPackageEnabledForProfile(String packageName, UserHandleCompat user) { 102 return mLauncherApps.isPackageEnabled(packageName, user.getUser()); 109 public boolean isPackageSuspendedForProfile(String packageName, UserHandleCompat user) { 120 public void onPackageRemoved(String packageName, UserHandle user) { 121 mCallback.onPackageRemoved(packageName, UserHandleCompat.fromUser(user)); 124 public void onPackageAdded(String packageName, UserHandle user) { 125 mCallback.onPackageAdded(packageName, UserHandleCompat.fromUser(user)); 128 public void onPackageChanged(String packageName, UserHandle user) [all...] |
/external/proguard/src/proguard/ |
GPL.java | 111 String packageName = (String)iterator.next(); 112 if (!containsPrefix(packageNames, packageName)) 114 buffer.append(packageName).append(", "); 160 private static boolean isKnown(String packageName) 162 return packageName.startsWith("java") || 163 packageName.startsWith("sun.reflect") || 164 packageName.startsWith("proguard") || 165 packageName.startsWith("org.apache.tools.ant") || 166 packageName.startsWith("org.apache.tools.maven") || 167 packageName.startsWith("org.gradle") | [all...] |
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/ |
AppCompatibility.java | 102 String packageName = mArgs.getString(PACKAGE_TO_LAUNCH); 103 if (packageName != null) { 104 Log.d(TAG, "Launching app " + packageName); 105 Intent intent = getLaunchIntentForPackage(packageName); 107 Log.w(TAG, String.format("Skipping %s; no launch intent", packageName)); 110 ProcessErrorStateInfo err = launchActivity(packageName, intent); 116 assertTrue("App crashed after launch.", processStillUp(packageName)); 143 * @param packageName name of the package 146 private String getProcessName(String packageName) { 148 PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0) [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
ProtectedPackages.java | 73 private synchronized boolean hasDeviceOwnerOrProfileOwner(int userId, String packageName) { 74 if (packageName == null) { 79 && (packageName.equals(mDeviceOwnerPackage))) { 84 if (packageName.equals(mProfileOwnerPackages.get(userId))) { 97 private synchronized boolean isProtectedPackage(String packageName) { 98 return packageName != null && packageName.equals(mDeviceProvisioningPackage); 107 public boolean isPackageStateProtected(@UserIdInt int userId, String packageName) { 108 return hasDeviceOwnerOrProfileOwner(userId, packageName) 109 || isProtectedPackage(packageName); [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
AppUtils.java | 38 String packageName = appEntry.info.packageName; 39 boolean hasPreferred = hasPreferredActivities(pm, packageName) 40 || hasUsbDefaults(usbManager, packageName); 41 int status = pm.getIntentVerificationStatusAsUser(packageName, UserHandle.myUserId()); 50 public static boolean hasUsbDefaults(IUsbManager usbManager, String packageName) { 53 return usbManager.hasDefaults(packageName, UserHandle.myUserId()); 61 public static boolean hasPreferredActivities(PackageManager pm, String packageName) { 66 pm.getPreferredActivities(intentList, prefActList, packageName);
|
/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/ |
AppLabelCache.java | 32 public String getAppLabel(String packageName) { 33 String name = mAppNames.get(packageName); 39 final ApplicationInfo ai = pm.getApplicationInfo(packageName, 0); 42 return packageName; 44 mAppNames.put(packageName, name);
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/extensions/compactnotation/ |
PackageCompactConstructor.java | 19 private String packageName; 21 public PackageCompactConstructor(String packageName) { 22 this.packageName = packageName; 29 Class<?> clazz = Class.forName(packageName + "." + name);
|
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenRuleInfo.java | 16 if (packageName != null ? !packageName.equals(that.packageName) : that.packageName != null) 32 public String packageName;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
BridgePackageManager.java | 63 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { 68 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) 84 public Intent getLaunchIntentForPackage(String packageName) { 89 public Intent getLeanbackLaunchIntentForPackage(String packageName) { 94 public int[] getPackageGids(String packageName) throws NameNotFoundException { 99 public int[] getPackageGids(String packageName, int flags) throws NameNotFoundException { 104 public int getPackageUid(String packageName, int flags) throws NameNotFoundException { 109 public int getPackageUidAsUser(String packageName, int userHandle) throws NameNotFoundException { 114 public int getPackageUidAsUser(String packageName, int flags, int userHandle) throws NameNotFoundException { 141 public ApplicationInfo getApplicationInfo(String packageName, int flags [all...] |
/frameworks/base/core/java/android/content/ |
IRestrictionsManager.aidl | 28 Bundle getApplicationRestrictions(in String packageName); 30 void requestPermission(in String packageName, in String requestType, in String requestId, 32 void notifyPermissionResponse(in String packageName, in PersistableBundle response);
|
/packages/services/Car/car-lib/src/android/car/content/pm/ |
ICarPackageManager.aidl | 23 void setAppBlockingPolicy(in String packageName, in CarAppBlockingPolicy policy, int flags) = 0; 24 boolean isActivityAllowedWhileDriving(in String packageName, in String className) = 1; 25 boolean isServiceAllowedWhileDriving(in String packageName, in String className) = 2;
|
/external/robolectric/v1/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());
|
/frameworks/base/core/java/android/webkit/ |
WebViewProviderInfo.java | 31 public WebViewProviderInfo(String packageName, String description, 33 this.packageName = packageName; 53 packageName = in.readString(); 67 out.writeString(packageName); 75 public final String packageName;
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/ |
JavaWriter.java | 52 public static JavaWriter inPackage(String packageName) { 53 return new JavaWriter(packageName); 64 private final String packageName; 69 private JavaWriter(String packageName) { 70 this.packageName = packageName; 86 ClassWriter classWriter = new ClassWriter(ClassName.create(packageName, simpleName)); 93 EnumWriter writer = new EnumWriter(ClassName.create(packageName, simpleName)); 99 InterfaceWriter writer = new InterfaceWriter(ClassName.create(packageName, simpleName)); 105 if (!packageName.isEmpty()) [all...] |
/external/vogar/src/vogar/ |
DotJavaFile.java | 36 private final String packageName; 40 private DotJavaFile(String simpleName, String packageName, String actionName, boolean isJtreg) { 42 this.packageName = packageName; 61 return packageName != null ? packageName + "." + simpleName : simpleName; 75 String packageName; 79 packageName = packageMatcher.group(1); 80 actionName = packageName + "." + simpleName; 82 packageName = null [all...] |
/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...] |
/device/huawei/angler/AnglerLayout/res/xml/ |
partner_default_layout.xml | 20 <favorite container="-101" screen="0" x="0" y="0" packageName="com.google.android.dialer" className="com.google.android.dialer.extensions.GoogleDialtactsActivity"/> 21 <favorite container="-101" screen="1" x="1" y="0" packageName="com.google.android.apps.messaging" className="com.google.android.apps.messaging.ui.ConversationListActivity"/> 22 <favorite container="-101" screen="3" x="2" y="0" packageName="com.android.chrome" className="com.google.android.apps.chrome.Main"/> 23 <favorite container="-101" screen="4" x="3" y="0" packageName="com.google.android.GoogleCamera" className="com.android.camera.CameraActivity"/> 28 <favorite packageName="com.google.android.googlequicksearchbox" className="com.google.android.googlequicksearchbox.SearchActivity"/> 29 <favorite packageName="com.google.android.gm" className="com.google.android.gm.ConversationListActivityGmail"/> 30 <favorite packageName="com.google.android.apps.maps" className="com.google.android.maps.MapsActivity"/> 31 <favorite packageName="com.google.android.contacts" className="com.android.contacts.activities.PeopleActivity"/> 32 <favorite packageName="com.google.android.calendar" className="com.android.calendar.AllInOneActivity"/> 33 <favorite packageName="com.google.android.talk" className="com.google.android.talk.SigningInActivity"/ [all...] |
/device/lge/bullhead/BullheadLayout/res/xml/ |
partner_default_layout.xml | 20 <favorite container="-101" screen="0" x="0" y="0" packageName="com.google.android.dialer" className="com.google.android.dialer.extensions.GoogleDialtactsActivity"/> 21 <favorite container="-101" screen="1" x="1" y="0" packageName="com.google.android.apps.messaging" className="com.google.android.apps.messaging.ui.ConversationListActivity"/> 22 <favorite container="-101" screen="3" x="2" y="0" packageName="com.android.chrome" className="com.google.android.apps.chrome.Main"/> 23 <favorite container="-101" screen="4" x="3" y="0" packageName="com.google.android.GoogleCamera" className="com.android.camera.CameraActivity"/> 28 <favorite packageName="com.google.android.googlequicksearchbox" className="com.google.android.googlequicksearchbox.SearchActivity"/> 29 <favorite packageName="com.google.android.gm" className="com.google.android.gm.ConversationListActivityGmail"/> 30 <favorite packageName="com.google.android.apps.maps" className="com.google.android.maps.MapsActivity"/> 31 <favorite packageName="com.google.android.contacts" className="com.android.contacts.activities.PeopleActivity"/> 32 <favorite packageName="com.google.android.calendar" className="com.android.calendar.AllInOneActivity"/> 33 <favorite packageName="com.google.android.talk" className="com.google.android.talk.SigningInActivity"/ [all...] |
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
AppDeletionType.java | 86 final String packageName; 88 packageName = entry.info.packageName; 90 if (mCheckedApplications.contains(packageName)) { 91 apps.add(packageName); 143 public void onPackageSizeChanged(String packageName) { 176 * @param packageName The name of the package to potentially delete. 179 public void setChecked(String packageName, boolean isChecked) { 181 mCheckedApplications.add(packageName); 183 mCheckedApplications.remove(packageName); [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
InstallPackageTask.java | 73 public void addInstallIfNecessary(String packageName, String packageLocation) { 74 if (!TextUtils.isEmpty(packageName)) { 75 mPackagesToInstall.add(new InstallInfo(packageName, packageLocation)); 100 } else if (packageContentIsCorrect(info.packageName, info.location)) { 119 private boolean packageContentIsCorrect(String packageName, String packageLocation) { 126 if (!pi.packageName.equals(packageName)) { 127 ProvisionLogger.loge("Package name in apk (" + pi.packageName 129 + packageName + ")."); 154 public void packageInstalled(String packageName, int returnCode) [all...] |