/development/build/tools/ |
D | sdk_repo.mk | 17 define sdk-repo-pkg-zip 33 define mk-sdk-repo-pkg-1 34 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)): $(3) 37 rm -f ../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) && \ 38 zip -9rq ../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) $(4)/* 39 $(call dist-for-goals, sdk_repo, $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) 41 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)):$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) 56 define mk-sdk-repo-pkg-2 57 $(call sdk-repo-pkg-zip,$(2),$(3),$(4)): $(3) 60 rm -f ../../$(notdir $(call sdk-repo-pkg-zip,$(2),$(3),$(4))) && \ [all …]
|
D | mk_sources_zip.py | 140 pkg = checkJavaFile(filepath) 141 if not pkg: 143 if pkg: 145 pkg2 = pkg 150 verbose("Ignore package %s [%s]", pkg, filepath) 151 pkg = None 154 if pkg: 155 pkg = pkg.replace(".", os.path.sep) # e.g. android.view => android/view 156 copy(p, filepath, pkg)
|
/development/scripts/ |
D | get_rust_pkg.py | 91 def pkg_base_name(pkg): argument 92 match = PKG_VERSION_MATCHER.match(pkg) 96 return (pkg, "") 113 def get_max_version(pkg): argument 115 url = "https://crates.io/api/v1/crates/" + pkg 138 def fetch_pkg(args, pkg, dl_path): argument 141 print("ERROR: cannot find download path for '{}'".format(pkg)) 176 def get_crate_dependencies(args, pkg): argument 178 echo(args, "Ask crates.io for {} ...".format(pkg)) 181 pkg, get_max_version(pkg)) [all …]
|
D | cargo2android.py | 182 def short_out_name(pkg, s): # replace /.../pkg-*/out/* with .../out/* argument 183 return re.sub('^/.*/' + pkg + '-[0-9a-f]*/out/', '.../out/', s) 471 pkg = self.main_src 472 if pkg.startswith('.../'): # keep only the main package name 473 pkg = re.sub('/.*', '', pkg[4:]) 474 elif pkg.startswith('/'): # use relative path for a local package 475 pkg = os.path.relpath(pkg) 477 return pkg 478 return pkg + ' "' + ','.join(self.features) + '"' 844 self.pkg = '' [all …]
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeyUtils.java | 71 public boolean isPackageValid(String pkg) { in isPackageValid() argument 72 return mValidPackages.contains(pkg); in isPackageValid() 75 public boolean isPackageInvalid(String pkg) { in isPackageInvalid() argument 76 return mInvalidPackages.contains(pkg); in isPackageInvalid() 85 public boolean checkEnteringPackage(String pkg) { in checkEnteringPackage() argument 87 if (mInvalidPackages.contains(pkg)) { in checkEnteringPackage() 91 if (!mValidPackages.contains(pkg)) { in checkEnteringPackage()
|
D | MonkeyPermissionUtil.java | 108 private boolean shouldTargetPermission(String pkg, PermissionInfo pi) throws RemoteException { in shouldTargetPermission() argument 109 int flags = mPermManager.getPermissionFlags(pkg, pi.name, UserHandle.myUserId()); in shouldTargetPermission() 178 String pkg = mTargetedPackages.get(random.nextInt(mTargetedPackages.size())); in generateRandomPermissionEvent() local 179 List<PermissionInfo> infos = mPermissionMap.get(pkg); in generateRandomPermissionEvent() 180 return new MonkeyPermissionEvent(pkg, infos.get(random.nextInt(infos.size()))); in generateRandomPermissionEvent()
|
D | MonkeyPermissionEvent.java | 33 public MonkeyPermissionEvent(String pkg, PermissionInfo permissionInfo) { in MonkeyPermissionEvent() argument 35 mPkg = pkg; in MonkeyPermissionEvent()
|
D | Monkey.java | 266 public boolean activityStarting(Intent intent, String pkg) { in activityStarting() argument 267 final boolean allow = isActivityStartingAllowed(intent, pkg); in activityStarting() 277 + intent + " in package " + pkg); in activityStarting() 280 currentPackage = pkg; in activityStarting() 285 private boolean isActivityStartingAllowed(Intent intent, String pkg) { in isActivityStartingAllowed() argument 286 if (MonkeyUtils.getPackageFilter().checkEnteringPackage(pkg)) { in isActivityStartingAllowed() 303 if (pkg.equals(launcherPackage)) { in isActivityStartingAllowed() 314 public boolean activityResuming(String pkg) { in activityResuming() argument 316 Logger.out.println(" // activityResuming(" + pkg + ")"); in activityResuming() 317 boolean allow = MonkeyUtils.getPackageFilter().checkEnteringPackage(pkg) in activityResuming() [all …]
|
/development/apps/Development/src/com/android/development/ |
D | PermissionDetails.java | 145 for (PackageInfo pkg : list) { in createAppList() 146 Log.i(TAG, "Adding pkg : " + pkg.packageName); in createAppList() 160 for (PackageInfo pkg : list) { in getAppsUsingPerm() 161 if (pkg.requestedPermissions == null) { in getAppsUsingPerm() 164 for (String perm : pkg.requestedPermissions) { in getAppsUsingPerm() 166 Log.i(TAG, "Pkg:" + pkg.packageName+" uses permission"); in getAppsUsingPerm() 167 set.add(pkg); in getAppsUsingPerm() 173 for (PackageInfo pkg : set) { in getAppsUsingPerm() 174 retList.add(pkg); in getAppsUsingPerm()
|
D | ProcessInfo.java | 44 for(String pkg : pkgList) { in onCreate() 46 pkgView.setText(pkg); in onCreate()
|
D | BadBehaviorActivity.java | 83 public boolean activityStarting(Intent intent, String pkg) { in activityStarting() argument 100 public boolean activityResuming(String pkg) { in activityResuming() argument
|
/development/tools/apkcheck/src/com/android/apkcheck/ |
D | ClassInfo.java | 352 PackageInfo pkg = apiList.getPackage(packageName); in lookupClass() local 353 if (pkg == null) in lookupClass() 355 return pkg.getClass(className); in lookupClass()
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
D | MediaNotificationManager.java | 83 String pkg = mService.getPackageName(); in MediaNotificationManager() local 85 new Intent(ACTION_PAUSE).setPackage(pkg), PendingIntent.FLAG_CANCEL_CURRENT); in MediaNotificationManager() 87 new Intent(ACTION_PLAY).setPackage(pkg), PendingIntent.FLAG_CANCEL_CURRENT); in MediaNotificationManager() 89 new Intent(ACTION_PREV).setPackage(pkg), PendingIntent.FLAG_CANCEL_CURRENT); in MediaNotificationManager() 91 new Intent(ACTION_NEXT).setPackage(pkg), PendingIntent.FLAG_CANCEL_CURRENT); in MediaNotificationManager()
|
/development/tools/mkstubs/src/com/android/mkstubs/sourcer/ |
D | ClassSourcer.java | 54 String pkg = name.substring(0, name.lastIndexOf('/')).replace('/', '.'); in visit() local 57 mOutput.write("package %s;\n", pkg); in visit()
|
/development/tools/repo_diff/service/repodiff/ |
D | Gopkg.toml | 33 name = "github.com/pkg/errors"
|
D | Gopkg.lock | 50 name = "github.com/pkg/errors"
|
/development/samples/ApiDemos/src/com/example/android/apis/ |
D | ApiDemos.java | 121 protected Intent activityIntent(String pkg, String componentName) { in activityIntent() argument 123 result.setClassName(pkg, componentName); in activityIntent()
|
/development/tools/ |
D | monkey | 319 for pkg in options.packages: 321 cmd.append(pkg)
|
/development/tools/bugreport/src/com/android/bugreport/html/ |
D | Renderer.java | 304 private String buildFunctionName(String pkg, String cls, String meth) { in buildFunctionName() argument 306 if (pkg != null && pkg.length() > 0) { in buildFunctionName() 307 result.append(pkg); in buildFunctionName()
|
/development/tools/winscope/ |
D | yarn.lock | 3412 pkg-dir "^3.0.0" 3421 pkg-dir "^4.1.0" 4019 pkg-dir "^5.0.0" 4091 pkg-dir "^3.0.0" 5721 pkg-dir@^3.0.0: 5723 …resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51e… 5728 pkg-dir@^4.1.0: 5730 …resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270ee… 5735 pkg-dir@^5.0.0: 5737 …resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-5.0.0.tgz#a02d6aebe6ba133a928f74aec20bafd…
|