/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))) 43 $(call declare-1p-container,$(call sdk-repo-pkg-zip,$(2),$(3),$(4)),sdk_repo) 44 $(call declare-container-license-deps,$(call sdk-repo-pkg-zip,$(2),$(3),$(4)),$(3),$(PRODUCT_OUT)/:… 59 define mk-sdk-repo-pkg-2 [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 | 204 def short_out_name(pkg, s): # replace /.../pkg-*/out/* with .../out/* argument 205 return re.sub('^/.*/' + pkg + '-[0-9a-f]*/out/', '.../out/', s) 544 pkg = self.main_src 545 if pkg.startswith('.../'): # keep only the main package name 546 pkg = re.sub('/.*', '', pkg[4:]) 547 elif pkg.startswith('/'): # use relative path for a local package 548 pkg = os.path.relpath(pkg) 550 return pkg 551 return pkg + ' "' + ','.join(self.features) + '"' 961 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 | 267 public boolean activityStarting(Intent intent, String pkg) { in activityStarting() argument 268 final boolean allow = isActivityStartingAllowed(intent, pkg); in activityStarting() 278 + intent + " in package " + pkg); in activityStarting() 281 currentPackage = pkg; in activityStarting() 286 private boolean isActivityStartingAllowed(Intent intent, String pkg) { in isActivityStartingAllowed() argument 287 if (MonkeyUtils.getPackageFilter().checkEnteringPackage(pkg)) { in isActivityStartingAllowed() 304 if (pkg.equals(launcherPackage)) { in isActivityStartingAllowed() 315 public boolean activityResuming(String pkg) { in activityResuming() argument 317 Logger.out.println(" // activityResuming(" + pkg + ")"); in activityResuming() 318 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/cargo_embargo/src/ |
D | cargo_out.rs | 196 if let Some((pkg, cmd, args)) = match3(&CC_AR_VV_REGEX, line) { in parse() 198 "ar" => result.ar_invocations.insert(pkg, args), in parse() 199 "cc" => result.cc_invocations.insert(pkg, args), in parse()
|
/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()
|