Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 20 of 20) sorted by relevance

/development/build/tools/
Dsdk_repo.mk17 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 …]
Dmk_sources_zip.py140 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/
Dget_rust_pkg.py91 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 …]
Dcargo2android.py182 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/
DMonkeyUtils.java71 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()
DMonkeyPermissionUtil.java108 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()
DMonkeyPermissionEvent.java33 public MonkeyPermissionEvent(String pkg, PermissionInfo permissionInfo) { in MonkeyPermissionEvent() argument
35 mPkg = pkg; in MonkeyPermissionEvent()
DMonkey.java266 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/
DPermissionDetails.java145 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()
DProcessInfo.java44 for(String pkg : pkgList) { in onCreate()
46 pkgView.setText(pkg); in onCreate()
DBadBehaviorActivity.java83 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/
DClassInfo.java352 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/
DMediaNotificationManager.java83 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/
DClassSourcer.java54 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/
DGopkg.toml33 name = "github.com/pkg/errors"
DGopkg.lock50 name = "github.com/pkg/errors"
/development/samples/ApiDemos/src/com/example/android/apis/
DApiDemos.java121 protected Intent activityIntent(String pkg, String componentName) { in activityIntent() argument
123 result.setClassName(pkg, componentName); in activityIntent()
/development/tools/
Dmonkey319 for pkg in options.packages:
321 cmd.append(pkg)
/development/tools/bugreport/src/com/android/bugreport/html/
DRenderer.java304 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/
Dyarn.lock3412 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…