Lines Matching refs:String8
213 if (!assets.addAssetPath(String8(zipFileName), NULL)) {
251 uint32_t attrRes, String8 attrLabel, String8* outError)
260 String8 result = AaptXml::getResolvedAttribute(resTable, tree, attrRes, outError);
314 String8 getComponentName(String8 &pkgName, String8 &componentName) {
316 String8 retStr(pkgName);
328 static void printCompatibleScreens(ResXMLTree& tree, String8* outError) {
351 String8 tag(ctag16);
369 static void printUsesPermission(const String8& name, bool optional=false, int maxSdkVersion=-1) {
386 static void printUsesPermissionSdk23(const String8& name, int maxSdkVersion=-1) {
396 static void printUsesImpliedPermission(const String8& name, const String8& reason) {
402 Vector<String8> getNfcAidCategories(AssetManager& assets, String8 xmlPath, bool offHost,
403 String8 *outError = NULL)
408 return Vector<String8>();
411 const String8 serviceTagName(offHost ? "offhost-apdu-service" : "host-apdu-service");
414 Vector<String8> categories;
416 String8 error;
429 return Vector<String8>();
431 String8 tag(ctag16);
442 return Vector<String8>();
444 String8 tag(ctag16);
452 String8 category = AaptXml::getAttribute(tree, CATEGORY_ATTR, &error);
455 return Vector<String8>();
477 ImpliedFeature(const String8& n, bool sdk23) : name(n), impliedBySdk23(sdk23) {}
482 String8 name;
492 SortedVector<String8> reasons;
519 String8 label;
524 KeyedVector<String8, Feature> features;
533 const KeyedVector<String8, ImpliedFeature>& implied) {
534 String8 name8(name);
542 static void addImpliedFeature(KeyedVector<String8, ImpliedFeature>* impliedFeatures,
544 String8 name8(name);
556 feature->reasons.add(String8(reason));
560 const KeyedVector<String8, ImpliedFeature>* impliedFeatures) {
573 const String8& featureName = grp.features.keyAt(i);
593 String8 printableFeatureName(ResTable::normalizeForOutput(
618 const KeyedVector<String8, ImpliedFeature>& impliedFeatures) {
622 static void addParentFeatures(FeatureGroup* grp, const String8& name) {
625 grp->features.add(String8("android.hardware.camera"), Feature(true));
628 grp->features.add(String8("android.hardware.location"), Feature(true));
630 grp->features.add(String8("android.hardware.faketouch"), Feature(true));
633 grp->features.add(String8("android.hardware.faketouch.multitouch"), Feature(true));
634 grp->features.add(String8("android.hardware.faketouch"), Feature(true));
636 grp->features.add(String8("android.hardware.touchscreen"), Feature(true));
639 grp->features.add(String8("android.hardware.touchscreen.multitouch"), Feature(true));
640 grp->features.add(String8("android.hardware.touchscreen"), Feature(true));
649 static void addImpliedFeaturesForPermission(const int targetSdk, const String8& name,
650 KeyedVector<String8, ImpliedFeature>* impliedFeatures,
654 String8::format("requested %s permission", name.string())
658 String8::format("requested %s permission", name.string())
661 String8::format("requested %s permission", name.string())
665 String8::format("requested %s permission", name.string())
669 String8::format("requested %s permission", name.string())
672 String8::format("requested %s permission", name.string())
677 String8::format("requested %s permission", name.string())
683 String8::format("requested %s permission", name.string())
690 String8::format("requested %s permission", name.string())
696 String8::format("requested %s permission", name.string())
710 String8("requested a telephony permission").string(),
738 if (!assets.addAssetPath(String8(filename), &assetsCookie)) {
770 const String8 manifestFile = String8::format("%s@AndroidManifest.xml", filename);
873 String8 tag(ctag16);
880 String8 pkg = AaptXml::getAttribute(tree, NULL, "package", NULL);
884 String8 error;
885 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
898 String8 error;
899 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
913 String8 error;
914 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
932 Vector<String8> locales;
950 String8 error;
1055 String8 pkg;
1056 String8 activityName;
1057 String8 activityLabel;
1058 String8 activityIcon;
1059 String8 activityBanner;
1060 String8 receiverName;
1061 String8 serviceName;
1062 Vector<String8> supportedInput;
1066 KeyedVector<String8, ImpliedFeature> impliedFeatures;
1092 String8 aName(getComponentName(pkg, activityName));
1186 String8 tag(ctag16);
1208 String8 versionName = AaptXml::getResolvedAttribute(res, tree,
1218 String8 splitName = AaptXml::getAttribute(tree, NULL, "split");
1224 String8 platformVersionName = AaptXml::getAttribute(tree, NULL,
1260 String8 label;
1265 String8 llabel = AaptXml::getResolvedAttribute(res, tree, LABEL_ATTR,
1287 String8 icon = AaptXml::getResolvedAttribute(res, tree, ICON_ATTR,
1296 String8 icon = AaptXml::getResolvedAttribute(res, tree, ICON_ATTR, &error);
1310 String8 banner = AaptXml::getResolvedAttribute(res, tree, BANNER_ATTR,
1369 String8 name = AaptXml::getResolvedAttribute(res, tree,
1391 String8 name = AaptXml::getResolvedAttribute(res, tree,
1467 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1504 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1539 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1558 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1568 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1578 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1596 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1598 String8 publicKey = AaptXml::getAttribute(tree, PUBLIC_KEY_ATTR,
1677 String8 libraryName = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1700 String8 permission = AaptXml::getAttribute(tree, PERMISSION_ATTR,
1722 String8 permission = AaptXml::getAttribute(tree, PERMISSION_ATTR,
1767 String8 permission = AaptXml::getResolvedAttribute(res, tree,
1779 String8 metaDataName = AaptXml::getResolvedAttribute(res, tree,
1788 printResolvedResourceAttribute(res, tree, VALUE_ATTR, String8("value"),
1794 String8("resource"), &error);
1804 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1814 String8 androidSchema("http://schemas.android.com/apk/res/android");
1817 String8 name = AaptXml::getResolvedAttribute(res, tree, NAME_ATTR, &error);
1865 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1880 String8 xmlPath = AaptXml::getResolvedAttribute(res, tree,
1889 Vector<String8> categories = getNfcAidCategories(assets, xmlPath,
1909 String8 action;
1967 String8 category = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1989 printUsesPermission(String8("android.permission.WRITE_EXTERNAL_STORAGE"));
1990 printUsesImpliedPermission(String8("android.permission.WRITE_EXTERNAL_STORAGE"),
1991 String8("targetSdkVersion < 4"));
1995 printUsesPermission(String8("android.permission.READ_PHONE_STATE"));
1996 printUsesImpliedPermission(String8("android.permission.READ_PHONE_STATE"),
1997 String8("targetSdkVersion < 4"));
2006 printUsesPermission(String8("android.permission.READ_EXTERNAL_STORAGE"));
2007 printUsesImpliedPermission(String8("android.permission.READ_EXTERNAL_STORAGE"),
2008 String8("requested WRITE_EXTERNAL_STORAGE"));
2014 printUsesPermission(String8("android.permission.READ_CALL_LOG"));
2015 printUsesImpliedPermission(String8("android.permission.READ_CALL_LOG"),
2016 String8("targetSdkVersion < 16 and requested READ_CONTACTS"));
2019 printUsesPermission(String8("android.permission.WRITE_CALL_LOG"));
2020 printUsesImpliedPermission(String8("android.permission.WRITE_CALL_LOG"),
2021 String8("targetSdkVersion < 16 and requested WRITE_CONTACTS"));
2216 SortedVector<String8> architectures;
2239 String8 intel64("x86_64");
2240 String8 arm64("arm64-v8a");
2328 if (strcasecmp(String8(fileName).getPathExtension().string(), ".gz") == 0) {
2330 result = zip->addGzip(fileName, String8(fileName).getBasePath().string(), NULL);
2333 String8 storageName = String8(fileName).getPathLeaf();
2454 static String8 buildApkName(const String8& original, const sp<ApkSplit>& split) {
2459 String8 ext(original.getPathExtension());
2460 if (ext == String8(".apk")) {
2461 return String8::format("%s_%s%s",
2467 return String8::format("%s_%s", original.string(),
2482 String8 dependencyFile;
2539 assets->print(String8());
2549 const Vector<String8>& splitStrs = bundle->getSplitConfigurations();
2590 dependencyFile = String8(outputAPKFile);
2597 dependencyFile = String8(bundle->getRClassDir());
2613 const String8 customPkg(bundle->getCustomPackage());
2625 String8 libs(bundle->getExtraPackages());
2629 err = writeResourceSymbols(bundle, assets, String8(packageString), true,
2674 String8 outputPath = buildApkName(String8(outputAPKFile), split);
2740 String8 input(bundle->getSingleCrunchInputFile());
2741 String8 output(bundle->getSingleCrunchOutputFile());