/packages/apps/Settings/src/com/android/settings/applications/defaultapps/ |
DefaultHomePreferenceController.java | 90 public static boolean hasHomePreference(String pkg, Context context) { 95 if (homeActivities.get(i).activityInfo.packageName.equals(pkg)) { 102 public static boolean isHomeDefault(String pkg, PackageManagerWrapper pm) { 106 return def == null || def.getPackageName().equals(pkg);
|
/external/r8/src/test/java/com/android/tools/r8/ |
R8RunExamplesTest.java | 125 String pkg = clazz.substring(0, clazz.lastIndexOf('.')); local 126 return new String[]{pkg, tool.name(), compiler.name(), mode.name(), clazz}; 135 private final String pkg; field in class:R8RunExamplesTest 139 String pkg, 144 this.pkg = pkg; 160 return Paths.get(EXAMPLE_DIR, pkg + JAR_EXTENSION); 164 return Paths.get(EXAMPLE_DIR, pkg, FileUtils.DEFAULT_DEX_FILENAME); 213 generated = temp.getRoot().toPath().resolve(pkg + ".jar").toFile();
|
/external/selinux/semodule-utils/semodule_package/ |
semodule_package.c | 96 struct sepol_module_package *pkg; local 215 if (sepol_module_package_create(&pkg)) { 220 if (sepol_policydb_read(sepol_module_package_get_policy(pkg), mod)) { 228 sepol_module_package_set_file_contexts(pkg, fcdata, fclen); 231 sepol_module_package_set_seusers(pkg, seusersdata, seuserslen); 234 sepol_module_package_set_user_extra(pkg, user_extradata, 238 sepol_module_package_set_netfilter_contexts(pkg, ncdata, nclen); 243 if (sepol_module_package_write(pkg, out)) { 256 sepol_module_package_free(pkg);
|
/packages/apps/Nfc/src/com/android/nfc/ |
NfceeAccessControl.java | 73 * Check if the {uid, pkg} combination may use NFCEE. 74 * Also verify with package manager that this {uid, pkg} combination 77 public boolean check(int uid, String pkg) { 90 if (uidPkg.equals(pkg)) { 92 if (checkPackageNfceeAccess(pkg)) { 107 * so no need to confirm {uid, pkg} is valid. 127 * Check with package manager if the pkg may use NFCEE. 130 boolean checkPackageNfceeAccess(String pkg) { 133 PackageInfo info = pm.getPackageInfo(pkg, PackageManager.GET_SIGNATURES); 148 if (DBG) Log.d(TAG, "Granted NFCEE access to " + pkg + " (wildcard)") [all...] |
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/ |
OverviewHelper.java | 101 for (PackageInfo pkg : packages) { 102 if (pkg.packageName.equals(mInstrumentation.getTargetContext().getPackageName())) { 105 Intent intent = pm.getLaunchIntentForPackage(pkg.packageName); 114 Log.i(TAG, "Failed to start package " + pkg.packageName + ", exception: " + e); 119 launchedPackages.add(pkg.packageName); 137 for (String pkg : packages) { 138 mCommandsHelper.executeShellCommand("am force-stop " + pkg); 193 mDevice.wait(Until.hasObject(By.pkg(appPackageName) 222 UiObject2 appArea = mDevice.wait(Until.findObject(By.pkg(topAppPackageName)
|
/frameworks/base/services/core/java/com/android/server/pm/ |
Settings.java | 183 private static final String TAG_PACKAGE = "pkg"; 550 if (dp == null && p.pkg != null && p.pkg.isSystemApp() && !p.pkg.isUpdatedSystemApp()) { 551 if((p.pkg != null) && (p.pkg.applicationInfo != null)) { 552 p.pkg.applicationInfo.flags |= ApplicationInfo.FLAG_UPDATED_SYSTEM_APP; 576 if((p.pkg != null) && (p.pkg.applicationInfo != null)) { 577 p.pkg.applicationInfo.flags &= ~ApplicationInfo.FLAG_UPDATED_SYSTEM_APP 4399 final PackageSetting pkg = mPackages.get(packageName); local 4407 final PackageSetting pkg = mPackages.get(packageName); local 4415 final PackageSetting pkg = mPackages.get(packageName); local 4424 final PackageSetting pkg = mPackages.get(packageName); local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStoreUiTest.java | 165 final String pkg = ri.activityInfo.packageName; local 170 + pkg + " " + android.Manifest.permission.CAMERA); 172 + pkg + " " + android.Manifest.permission.ACCESS_COARSE_LOCATION); 174 + pkg + " " + android.Manifest.permission.ACCESS_FINE_LOCATION); 176 + pkg + " " + android.Manifest.permission.RECORD_AUDIO); 178 + pkg + " " + android.Manifest.permission.READ_EXTERNAL_STORAGE); 180 + pkg + " " + android.Manifest.permission.WRITE_EXTERNAL_STORAGE); 201 maybeClick(new UiSelector().resourceId(pkg + ":id/shutter_button")); 204 maybeClick(new UiSelector().resourceId(pkg + ":id/shutter_button")); 206 maybeClick(new UiSelector().resourceId(pkg + ":id/done_button")) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/ |
PluginInstanceManager.java | 118 public void onPackageRemoved(String pkg) { 119 mPluginHandler.obtainMessage(PluginHandler.REMOVE_PKG, pkg).sendToTarget(); 122 public void onPackageChange(String pkg) { 123 mPluginHandler.obtainMessage(PluginHandler.REMOVE_PKG, pkg).sendToTarget(); 124 mPluginHandler.obtainMessage(PluginHandler.QUERY_PKG, pkg).sendToTarget(); 239 String pkg = (String) msg.obj; local 242 if (plugin.mPackage.equals(pkg)) { 296 String pkg = component.getPackageName(); local 299 ApplicationInfo info = mPm.getApplicationInfo(pkg, 0); 301 if (mPm.checkPermission(PLUGIN_PERMISSION, pkg) [all...] |
/prebuilts/go/darwin-x86/src/cmd/doc/ |
main.go | 12 // go doc <pkg> 14 // go doc [<pkg>.]<sym>[.<method>] 15 // go doc [<pkg>.][<sym>.]<method> 22 // go doc <pkg> <sym>[.<method>] 58 fmt.Fprintf(os.Stderr, "\tgo doc <pkg>\n") 60 fmt.Fprintf(os.Stderr, "\tgo doc [<pkg>].<sym>[.<method>]\n") 61 fmt.Fprintf(os.Stderr, "\tgo doc <pkg> <sym>[.<method>]\n") 97 pkg := parsePackage(writer, buildPackage, userPath) 98 paths = append(paths, pkg.prettyPath()) 101 pkg.flush( [all...] |
/prebuilts/go/linux-x86/src/cmd/doc/ |
main.go | 12 // go doc <pkg> 14 // go doc [<pkg>.]<sym>[.<method>] 15 // go doc [<pkg>.][<sym>.]<method> 22 // go doc <pkg> <sym>[.<method>] 58 fmt.Fprintf(os.Stderr, "\tgo doc <pkg>\n") 60 fmt.Fprintf(os.Stderr, "\tgo doc [<pkg>].<sym>[.<method>]\n") 61 fmt.Fprintf(os.Stderr, "\tgo doc <pkg> <sym>[.<method>]\n") 97 pkg := parsePackage(writer, buildPackage, userPath) 98 paths = append(paths, pkg.prettyPath()) 101 pkg.flush( [all...] |
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/ |
AppRestrictionsHelperTest.java | 159 for (String pkg : defaultImes) { 160 final ResolveInfo ri = createResolveInfoForSystemApp(pkg); 166 for (String pkg : otherImes) { 167 final ResolveInfo ri = createResolveInfoForSystemApp(pkg); 179 for (String pkg : packages) { 180 final ResolveInfo ri = createResolveInfoForSystemApp(pkg); 189 for (String pkg : packages) { 190 final ResolveInfo ri = createResolveInfoForSystemApp(pkg); 197 when(mPm.getPackageInfo(eq(pkg), anyInt())).thenReturn(packageInfo); 202 for (String pkg : packages) [all...] |
/prebuilts/go/darwin-x86/src/cmd/vet/ |
types.go | 43 pkg, err := stdImporter.Import(path) 49 if obj, ok := pkg.Scope().Lookup(name).(*types.TypeName); ok { 56 func (pkg *Package) check(fs *token.FileSet, astFiles []*ast.File) error { 57 pkg.defs = make(map[*ast.Ident]types.Object) 58 pkg.uses = make(map[*ast.Ident]types.Object) 59 pkg.selectors = make(map[*ast.SelectorExpr]*types.Selection) 60 pkg.spans = make(map[types.Object]Span) 61 pkg.types = make(map[ast.Expr]types.TypeAndValue) 71 Selections: pkg.selectors, 72 Types: pkg.types [all...] |
/prebuilts/go/linux-x86/src/cmd/vet/ |
types.go | 43 pkg, err := stdImporter.Import(path) 49 if obj, ok := pkg.Scope().Lookup(name).(*types.TypeName); ok { 56 func (pkg *Package) check(fs *token.FileSet, astFiles []*ast.File) error { 57 pkg.defs = make(map[*ast.Ident]types.Object) 58 pkg.uses = make(map[*ast.Ident]types.Object) 59 pkg.selectors = make(map[*ast.SelectorExpr]*types.Selection) 60 pkg.spans = make(map[types.Object]Span) 61 pkg.types = make(map[ast.Expr]types.TypeAndValue) 71 Selections: pkg.selectors, 72 Types: pkg.types [all...] |
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
BroadcastTestStartActivity.java | 40 void startTest(String testCaseType, String pkg, String cls) { 45 intent.setComponent(new ComponentName(pkg, cls));
|
/development/apps/Development/src/com/android/development/ |
ProcessInfo.java | 44 for(String pkg : pkgList) { 46 pkgView.setText(pkg);
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyPermissionEvent.java | 32 public MonkeyPermissionEvent(String pkg, PermissionInfo permissionInfo) { 34 mPkg = pkg;
|
/external/skia/third_party/harfbuzz/ |
README | 24 for package in automake libtool pkg-config ragel gtk-doc-tools; do
|
/frameworks/base/core/java/android/content/ |
IClipboard.aidl | 30 ClipData getPrimaryClip(String pkg);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
PermissionsSummaryHelper.java | 30 public static void getPermissionSummary(Context context, String pkg, 34 presenter.getAppPermissions(pkg, new RuntimePermissionPresenter.OnResultCallback() {
|
/frameworks/base/services/core/java/com/android/server/wm/ |
SplashScreenStartingData.java | 38 SplashScreenStartingData(WindowManagerService service, String pkg, int theme, 42 mPkg = pkg;
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
ITelephonyRegistry.aidl | 32 void addOnSubscriptionsChangedListener(String pkg, 34 void removeOnSubscriptionsChangedListener(String pkg, 36 void listen(String pkg, IPhoneStateListener callback, int events, boolean notifyNow); 37 void listenForSubscriber(in int subId, String pkg, IPhoneStateListener callback, int events,
|
/frameworks/base/tools/preload2/src/com/android/preload/ui/ |
SequenceUI.java | 83 private String pkg; field in class:SequenceUI.ClientSelector 85 public ClientSelector(String pkg) { 86 this.pkg = pkg; 94 if (pkg.equals(s)) { 99 throw new RuntimeException("Didn't find client " + pkg); 103 public SequenceUI client(String pkg) { 104 sequence.add(new ClientSelector(pkg));
|
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/ |
BRWriter.kt | 23 public fun write(pkg : String): String = "package $pkg;${StringUtils.LINE_SEPARATOR}$klass"
|
/frameworks/layoutlib/bridge/tests/src/android/content/res/ |
Resources_DelegateTest.java | 33 private static void assertResourceUrl(@Nullable String pkg, @NonNull String name, 37 assertEquals(pkg, url.namespace); 44 Resources_Delegate.resourceUrlFromName("pkg:name", null, null);
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
PackageInstallStateChangedTaskTest.java | 23 private PackageInstallStateChangedTask newTask(String pkg, int progress) { 25 PackageInstallInfo installInfo = new PackageInstallInfo(pkg, state, progress);
|