HomeSort by relevance Sort by last modified time
    Searched full:packagename (Results 76 - 100 of 2090) sorted by null

1 2 34 5 6 7 8 91011>>

  /platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/
PermissionHelper.java 106 * @param packageName : PackageName for which permission list to be returned
111 public List<String> getPermissionByPackage(String packageName, Boolean permitted) {
117 packageInfo = getPackageManager().getPackageInfo(packageName,
120 throw new RuntimeException(String.format("%s package isn't found", packageName));
138 * @param packageName
141 public void verifyExtraDangerousPermissionNotGranted(String packageName,
145 List<String> allPermissionsForPackageList = getPermissionByPackage(packageName,
152 packageName),
159 * @param packageName
    [all...]
  /cts/hostsidetests/net/src/com/android/cts/net/
HostsideNetworkTestCase.java 86 protected void uninstallPackage(String packageName, boolean shouldSucceed)
88 final String result = getDevice().uninstallPackage(packageName);
90 assertNull("uninstallPackage(" + packageName + ") failed: " + result, result);
94 protected void assertPackageUninstalled(String packageName) throws DeviceNotAvailableException,
96 final String command = "cmd package list packages " + packageName;
108 if (line.endsWith(packageName)) {
117 Log.v(TAG, "Package " + packageName + " not uninstalled yet (" + result
121 fail("Package '" + packageName + "' not uinstalled after " + max_tries + " seconds");
124 protected void runDeviceTests(String packageName, String testClassName)
126 runDeviceTests(packageName, testClassName, null)
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
RobolectricPackageManager.java 39 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException {
40 if (packageList.containsKey(packageName)) {
41 return packageList.get(packageName);
48 public ApplicationInfo getApplicationInfo(String packageName, int flags) throws NameNotFoundException {
50 if (config.getPackageName().equals(packageName)) {
55 applicationInfo.packageName = config.getPackageName();
63 if ((info = packageList.get(packageName)) != null) {
133 public Intent getLaunchIntentForPackage(String packageName) {
135 i.setComponent( new ComponentName(packageName, "") );
167 packageList.put(packageInfo.packageName, packageInfo)
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/compat/
LauncherAppsCompatV16.java 59 public List<LauncherActivityInfoCompat> getActivityList(String packageName,
63 mainIntent.setPackage(packageName);
92 String packageName = component.getPackageName();
94 Uri.fromParts("package", packageName, null));
116 public boolean isPackageEnabledForProfile(String packageName, UserHandleCompat user) {
117 return PackageManagerHelper.isAppEnabled(mPm, packageName);
129 public boolean isPackageSuspendedForProfile(String packageName, UserHandleCompat user) {
161 final String packageName = intent.getData().getSchemeSpecificPart();
164 if (packageName == null || packageName.length() == 0)
    [all...]
LauncherAppsCompat.java 41 void onPackageRemoved(String packageName, UserHandleCompat user);
42 void onPackageAdded(String packageName, UserHandleCompat user);
43 void onPackageChanged(String packageName, UserHandleCompat user);
69 public abstract List<LauncherActivityInfoCompat> getActivityList(String packageName,
78 public abstract boolean isPackageEnabledForProfile(String packageName, UserHandleCompat user);
81 public abstract boolean isPackageSuspendedForProfile(String packageName, UserHandleCompat user);
  /frameworks/base/services/core/java/com/android/server/pm/
ShortcutService.java 978 @NonNull String packageName, @UserIdInt int userId) {
979 return getUserShortcutsLocked(userId).getPackageShortcuts(this, packageName);
985 @NonNull String packageName, @UserIdInt int ownerUserId,
988 .getLauncherShortcuts(this, packageName, launcherUserId);
    [all...]
ShortcutLauncher.java 61 @UserIdInt int ownerUserId, @NonNull String packageName,
63 super(shortcutUser, launcherUserId, packageName,
69 @UserIdInt int ownerUserId, @NonNull String packageName,
71 this(shortcutUser, ownerUserId, packageName, launcherUserId, null);
89 s.getPackageShortcutsLocked(pu.packageName, pu.userId)
100 @NonNull String packageName, @NonNull List<String> ids) {
102 s.getPackageShortcutsLocked(packageName, packageUserId);
104 final PackageWithUser pu = PackageWithUser.of(packageUserId, packageName);
135 public ArraySet<String> getPinnedShortcutIds(@NonNull String packageName,
137 return mPinnedShortcuts.get(PackageWithUser.of(packageUserId, packageName));
    [all...]
  /external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
ClassName.java 52 private final String packageName;
57 private ClassName(String packageName, ImmutableList<String> enclosingSimpleNames,
59 this.packageName = packageName;
64 public String packageName() {
65 return packageName;
75 : Optional.of(new ClassName(packageName,
86 StringBuilder builder = new StringBuilder(packageName());
122 ? new ClassName(packageName(), ImmutableList.<String>of(),
130 return new ClassName(packageName(),
    [all...]
  /frameworks/base/core/java/android/net/
NetworkScorerAppManager.java 75 public NetworkScorerAppData(String packageName, int packageUid, CharSequence scorerName,
79 mPackageName = packageName;
137 if (pm.checkPermission(permission.SCORE_NETWORKS, receiverInfo.packageName) !=
147 intent.setPackage(receiverInfo.packageName);
159 serviceIntent.setPackage(receiverInfo.packageName);
167 scorers.add(new NetworkScorerAppData(receiverInfo.packageName,
194 * @param packageName the packageName of the new scorer to use. If null, scoring will be
198 public static boolean setActiveScorer(Context context, String packageName) {
201 if (TextUtils.equals(oldPackageName, packageName)) {
    [all...]
  /frameworks/base/core/java/android/app/
ApplicationPackageManager.java 130 public PackageInfo getPackageInfo(String packageName, int flags)
132 return getPackageInfoAsUser(packageName, flags, mContext.getUserId());
136 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId)
139 PackageInfo pi = mPM.getPackageInfo(packageName, flags, userId);
147 throw new NameNotFoundException(packageName);
169 public Intent getLaunchIntentForPackage(String packageName) {
175 intentToResolve.setPackage(packageName);
183 intentToResolve.setPackage(packageName);
191 intent.setClassName(ris.get(0).activityInfo.packageName,
197 public Intent getLeanbackLaunchIntentForPackage(String packageName) {
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/
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/packages/SystemUI/src/com/android/systemui/recents/model/
RecentsPackageMonitor.java 56 public void onPackageRemoved(String packageName, int uid) {
59 EventBus.getDefault().post(new PackagesChangedEvent(this, packageName, eventUserId));
63 public boolean onPackageChanged(String packageName, int uid, String[] components) {
64 onPackageModified(packageName);
69 public void onPackageModified(String packageName) {
72 EventBus.getDefault().post(new PackagesChangedEvent(this, packageName, eventUserId));
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
MdmPackageInfo.java 53 * @param packageName the name of the mdm package
59 @Nullable String packageName) {
60 if (packageName != null) {
63 ApplicationInfo ai = pm.getApplicationInfo(packageName, /* default flags */ 0);
64 return new MdmPackageInfo(pm.getApplicationIcon(packageName),
68 ProvisionLogger.logw("Package not currently installed: " + packageName);
  /packages/apps/Settings/src/com/android/settings/fuelgauge/
InactiveApps.java 70 String packageName = app.activityInfo.applicationInfo.packageName;
74 p.setKey(packageName);
91 String packageName = preference.getKey();
92 mUsageStats.setAppInactive(packageName, !mUsageStats.isAppInactive(packageName));
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
InactiveApps.java 72 String packageName = app.activityInfo.applicationInfo.packageName;
76 p.setKey(packageName);
93 String packageName = preference.getKey();
94 mUsageStats.setAppInactive(packageName, !mUsageStats.isAppInactive(packageName));
  /packages/apps/Settings/src/com/android/settings/users/
AppRestrictionsFragment.java 292 String packageName = intent.getData().getSchemeSpecificPart();
295 findPreference(getKeyForPackage(packageName));
309 public void onDisableUiForPackage(String packageName) {
311 getKeyForPackage(packageName));
360 String packageName = app.packageName;
361 if (packageName == null) continue;
362 final boolean isSettingsApp = packageName.equals(context.getPackageName());
364 final boolean hasSettings = resolveInfoListHasPackage(receivers, packageName);
368 mHelper.setPackageSelected(packageName, true)
    [all...]
  /external/testng/src/main/java/org/testng/internal/
PackageUtils.java 42 * @param packageName
46 public static String[] findClassesInPackage(String packageName,
50 String packageOnly = packageName;
52 if (packageName.endsWith(".*")) {
53 packageOnly = packageName.substring(0, packageName.lastIndexOf(".*"));
111 packageName = name.substring(0, idx).replace('/', '.');
114 if (recursive || packageName.equals(packageOnly)) {
116 Utils.log("PackageUtils", 4, "Package name is " + packageName);
118 String className = name.substring(packageName.length() + 1, name.length() - 6)
    [all...]
  /external/vogar/src/vogar/target/
ClassPathScanner.java 59 * {@code packageName}.
61 public Package scan(String packageName) throws IOException {
65 findClasses(packageName, classNames, subpackageNames);
77 * Finds all classes and subpackages that are below the packageName and
81 private void findClasses(String packageName, Set<String> classNames,
83 String packagePrefix = packageName + '.';
88 classFinder.find(entryFile, pathPrefix, packageName, classNames, subpackageNames);
94 void find(File classPathEntry, String pathPrefix, String packageName,
99 * Finds all classes and subpackages that are below the packageName and
103 public void find(File classPathEntry, String pathPrefix, String packageName,
    [all...]
  /frameworks/base/telecomm/java/android/telecom/
DefaultDialerManager.java 50 public static boolean setDefaultDialerApplication(Context context, String packageName) {
51 return setDefaultDialerApplication(context, packageName, ActivityManager.getCurrentUser());
64 public static boolean setDefaultDialerApplication(Context context, String packageName,
70 if (packageName != null && oldPackageName != null && packageName.equals(oldPackageName)) {
78 if (packageNames.contains(packageName)) {
81 Settings.Secure.DIALER_DEFAULT_APPLICATION, packageName, user);
166 if (activityInfo != null && !packageNames.contains(activityInfo.packageName)) {
167 packageNames.add(activityInfo.packageName);
185 * @param packageName of the package to check for
    [all...]
  /cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
Utils.java 36 public static void runDeviceTests(ITestDevice device, String packageName)
38 runDeviceTests(device, packageName, null, null, USER_OWNER);
41 public static void runDeviceTests(ITestDevice device, String packageName, int userId)
43 runDeviceTests(device, packageName, null, null, userId);
46 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName)
48 runDeviceTests(device, packageName, testClassName, null, USER_OWNER);
51 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName,
53 runDeviceTests(device, packageName, testClassName, null, userId);
56 public static void runDeviceTests(ITestDevice device, String packageName, String testClassName,
58 runDeviceTests(device, packageName, testClassName, testMethodName, USER_OWNER)
    [all...]
  /cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/
LauncherCallbackTestsService.java 173 String packageName = params.getString(PACKAGE_EXTRA);
174 Log.i(TAG, "checking for " + packageName + " " + user);
178 if (event.first.equals(packageName) && event.second.equals(user)) {
179 Log.i(TAG, "Event exists " + packageName + " for user " + user);
196 public void onPackageRemoved(String packageName, UserHandle user) {
197 Log.i(TAG, "package removed event " + packageName + " " + user);
199 mPackagesRemoved.put(new Pair(packageName, user));
205 public void onPackageAdded(String packageName, UserHandle user) {
206 Log.i(TAG, "package added event " + packageName + " " + user);
208 mPackagesAdded.put(new Pair(packageName, user))
    [all...]
  /frameworks/base/services/core/java/com/android/server/location/
LocationRequestStatistics.java 23 * @param packageName Name of package that has requested locations.
27 public void startRequesting(String packageName, String providerName, long intervalMs) {
28 PackageProviderKey key = new PackageProviderKey(packageName, providerName);
40 * @param packageName Name of package that has stopped requesting locations.
43 public void stopRequesting(String packageName, String providerName) {
44 PackageProviderKey key = new PackageProviderKey(packageName, providerName);
61 public final String packageName;
67 public PackageProviderKey(String packageName, String providerName) {
68 this.packageName = packageName;
    [all...]
  /frameworks/base/test-runner/src/android/test/mock/
MockPackageManager.java 71 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException {
77 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId)
93 public Intent getLaunchIntentForPackage(String packageName) {
98 public Intent getLeanbackLaunchIntentForPackage(String packageName) {
103 public int[] getPackageGids(String packageName) throws NameNotFoundException {
108 public int[] getPackageGids(String packageName, int flags) throws NameNotFoundException {
113 public int getPackageUid(String packageName, int flags) throws NameNotFoundException {
119 public int getPackageUidAsUser(String packageName, int flags, int userHandle)
126 public int getPackageUidAsUser(String packageName, int userHandle)
155 public ApplicationInfo getApplicationInfo(String packageName, int flags
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
AllAppsList.java 85 * Add the icons for the supplied apk called packageName.
87 public void addPackage(Context context, String packageName, UserHandle user) {
90 final List<LauncherActivityInfo> matches = launcherApps.getActivityList(packageName,
99 * Remove the apps for the given apk identified by packageName.
101 public void removePackage(String packageName, UserHandle user) {
106 if (info.user.equals(user) && packageName.equals(component.getPackageName())) {
118 public void updatePackage(Context context, String packageName, UserHandle user) {
121 final List<LauncherActivityInfo> matches = launcherApps.getActivityList(packageName,
130 && packageName.equals(component.getPackageName())) {
163 && packageName.equals(component.getPackageName()))
    [all...]
  /packages/apps/Settings/src/com/android/settings/applications/
DefaultBrowserPreference.java 72 final CharSequence packageName = (CharSequence) newValue;
73 if (TextUtils.isEmpty(packageName)) {
77 packageName.toString(), mUserId);
95 String packageName = pm.getDefaultBrowserPackageNameAsUser(mUserId);
96 if (!TextUtils.isEmpty(packageName)) {
99 intent.setPackage(packageName);
106 setValue(packageName);
133 if (info.activityInfo == null || result.contains(info.activityInfo.packageName)
138 result.add(info.activityInfo.packageName);
153 public void onPackageAdded(String packageName, int uid)
    [all...]

Completed in 1684 milliseconds

1 2 34 5 6 7 8 91011>>