Lines Matching defs:String8

213         if (!assets.addAssetPath(String8(zipFileName), NULL)) {
251 uint32_t attrRes, const String8& attrLabel, String8* outError)
260 String8 result = AaptXml::getResolvedAttribute(resTable, tree, attrRes, outError);
316 String8 getComponentName(String8 &pkgName, String8 &componentName) {
318 String8 retStr(pkgName);
330 static void printCompatibleScreens(ResXMLTree& tree, String8* outError) {
353 String8 tag(ctag16);
371 static void printUsesPermission(const String8& name, bool optional=false, int maxSdkVersion=-1,
372 const String8& requiredFeature = String8::empty(),
373 const String8& requiredNotFeature = String8::empty()) {
396 static void printUsesPermissionSdk23(const String8& name, int maxSdkVersion=-1) {
406 static void printUsesImpliedPermission(const String8& name, const String8& reason,
416 Vector<String8> getNfcAidCategories(AssetManager& assets, const String8& xmlPath, bool offHost,
417 String8 *outError = NULL)
422 return Vector<String8>();
425 const String8 serviceTagName(offHost ? "offhost-apdu-service" : "host-apdu-service");
428 Vector<String8> categories;
430 String8 error;
443 return Vector<String8>();
445 String8 tag(ctag16);
456 return Vector<String8>();
458 String8 tag(ctag16);
466 String8 category = AaptXml::getAttribute(tree, CATEGORY_ATTR, &error);
469 return Vector<String8>();
491 ImpliedFeature(const String8& n, bool sdk23) : name(n), impliedBySdk23(sdk23) {}
496 String8 name;
506 SortedVector<String8> reasons;
533 String8 label;
538 KeyedVector<String8, Feature> features;
547 const KeyedVector<String8, ImpliedFeature>& implied) {
548 String8 name8(name);
556 static void addImpliedFeature(KeyedVector<String8, ImpliedFeature>* impliedFeatures,
557 const char* name, const String8& reason, bool sdk23) {
558 String8 name8(name);
574 const KeyedVector<String8, ImpliedFeature>* impliedFeatures) {
587 const String8& featureName = grp.features.keyAt(i);
607 String8 printableFeatureName(ResTable::normalizeForOutput(
632 const KeyedVector<String8, ImpliedFeature>& impliedFeatures) {
636 static void addParentFeatures(FeatureGroup* grp, const String8& name) {
639 grp->features.add(String8("android.hardware.camera"), Feature(true));
642 grp->features.add(String8("android.hardware.location"), Feature(true));
644 grp->features.add(String8("android.hardware.faketouch"), Feature(true));
647 grp->features.add(String8("android.hardware.faketouch.multitouch"), Feature(true));
648 grp->features.add(String8("android.hardware.faketouch"), Feature(true));
650 grp->features.add(String8("android.hardware.touchscreen"), Feature(true));
653 grp->features.add(String8("android.hardware.touchscreen.multitouch"), Feature(true));
654 grp->features.add(String8("android.hardware.touchscreen"), Feature(true));
663 static void addImpliedFeaturesForPermission(const int targetSdk, const String8& name,
664 KeyedVector<String8, ImpliedFeature>* impliedFeatures,
668 String8::format("requested %s permission", name.string()),
673 String8::format("requested %s permission", name.string()),
676 String8::format("targetSdkVersion < %d", SDK_LOLLIPOP),
680 String8::format("requested %s permission", name.string()),
685 String8::format("requested %s permission", name.string()),
688 String8::format("targetSdkVersion < %d", SDK_LOLLIPOP),
692 String8::format("requested %s permission", name.string()),
698 String8::format("requested %s permission", name.string()),
704 String8::format("requested %s permission", name.string()),
707 String8::format("targetSdkVersion > %d", SDK_DONUT),
712 String8::format("requested %s permission", name.string()),
718 String8::format("requested %s permission", name.string()),
732 String8("requested a telephony permission"),
760 if (!assets.addAssetPath(String8(filename), &assetsCookie)) {
767 const String8& assetPath = bundle->getPackageIncludes()[i];
801 const String8 manifestFile("AndroidManifest.xml");
905 String8 tag(ctag16);
913 String8 pkg = AaptXml::getAttribute(tree, NULL, "package", NULL);
917 String8 error;
918 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
933 String8 error;
934 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
950 String8 error;
951 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
970 Vector<String8> locales;
988 String8 error;
1094 String8 pkg;
1095 String8 activityName;
1096 String8 activityLabel;
1097 String8 activityIcon;
1098 String8 activityBanner;
1099 String8 receiverName;
1100 String8 serviceName;
1101 Vector<String8> supportedInput;
1105 KeyedVector<String8, ImpliedFeature> impliedFeatures;
1131 String8 aName(getComponentName(pkg, activityName));
1226 String8 tag(ctag16);
1250 String8 versionName = AaptXml::getResolvedAttribute(res, tree,
1261 String8 splitName = AaptXml::getAttribute(tree, NULL, "split");
1267 String8 platformVersionName = AaptXml::getAttribute(tree, NULL,
1304 String8 label;
1309 String8 llabel = AaptXml::getResolvedAttribute(res, tree, LABEL_ATTR,
1331 String8 icon = AaptXml::getResolvedAttribute(res, tree, ICON_ATTR,
1340 String8 icon = AaptXml::getResolvedAttribute(res, tree, ICON_ATTR, &error);
1355 String8 banner = AaptXml::getResolvedAttribute(res, tree, BANNER_ATTR,
1415 String8 name = AaptXml::getResolvedAttribute(res, tree,
1437 String8 name = AaptXml::getResolvedAttribute(res, tree,
1513 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1550 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1567 const String8 requiredFeature = AaptXml::getAttribute(tree,
1569 const String8 requiredNotFeature = AaptXml::getAttribute(tree,
1594 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1613 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1623 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1633 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1651 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1653 String8 publicKey = AaptXml::getAttribute(tree, PUBLIC_KEY_ATTR,
1723 String8("one or more activities have specified a "
1730 String8("one or more activities have specified a "
1736 String8 libraryName = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1759 String8 permission = AaptXml::getAttribute(tree, PERMISSION_ATTR,
1782 String8 permission = AaptXml::getAttribute(tree, PERMISSION_ATTR,
1828 String8 permission = AaptXml::getResolvedAttribute(res, tree,
1841 String8 metaDataName = AaptXml::getResolvedAttribute(res, tree,
1851 printResolvedResourceAttribute(res, tree, VALUE_ATTR, String8("value"),
1857 String8("resource"), &error);
1868 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1879 const String8 androidSchema("http://schemas.android.com/apk/res/android");
1882 String8 name = AaptXml::getResolvedAttribute(res, tree, NAME_ATTR, &error);
1930 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error);
1946 String8 xmlPath = AaptXml::getResolvedAttribute(res, tree,
1956 Vector<String8> categories = getNfcAidCategories(assets, xmlPath,
1977 String8 action;
2035 String8 category = AaptXml::getAttribute(tree, NAME_ATTR, &error);
2057 printUsesPermission(String8("android.permission.WRITE_EXTERNAL_STORAGE"));
2058 printUsesImpliedPermission(String8("android.permission.WRITE_EXTERNAL_STORAGE"),
2059 String8("targetSdkVersion < 4"));
2063 printUsesPermission(String8("android.permission.READ_PHONE_STATE"));
2064 printUsesImpliedPermission(String8("android.permission.READ_PHONE_STATE"),
2065 String8("targetSdkVersion < 4"));
2074 printUsesPermission(String8("android.permission.READ_EXTERNAL_STORAGE"),
2076 printUsesImpliedPermission(String8("android.permission.READ_EXTERNAL_STORAGE"),
2077 String8("requested WRITE_EXTERNAL_STORAGE"),
2084 printUsesPermission(String8("android.permission.READ_CALL_LOG"));
2085 printUsesImpliedPermission(String8("android.permission.READ_CALL_LOG"),
2086 String8("targetSdkVersion < 16 and requested READ_CONTACTS"));
2089 printUsesPermission(String8("android.permission.WRITE_CALL_LOG"));
2090 printUsesImpliedPermission(String8("android.permission.WRITE_CALL_LOG"),
2091 String8("targetSdkVersion < 16 and requested WRITE_CONTACTS"));
2099 String8("default feature for all apps"), false);
2286 SortedVector<String8> architectures;
2309 String8 intel64("x86_64");
2310 String8 arm64("arm64-v8a");
2402 if (strcasecmp(String8(fileName).getPathExtension().string(), ".gz") == 0) {
2404 result = zip->addGzip(fileName, String8(fileName).getBasePath().string(), NULL);
2407 String8 storageName = String8(fileName).getPathLeaf();
2528 static String8 buildApkName(const String8& original, const sp<ApkSplit>& split) {
2533 String8 ext(original.getPathExtension());
2534 if (ext == String8(".apk")) {
2535 return String8::format("%s_%s%s",
2541 return String8::format("%s_%s", original.string(),
2556 String8 dependencyFile;
2613 assets->print(String8());
2623 const Vector<String8>& splitStrs = bundle->getSplitConfigurations();
2664 dependencyFile = String8(outputAPKFile);
2671 dependencyFile = String8(bundle->getRClassDir());
2687 const String8 customPkg(bundle->getCustomPackage());
2699 String8 libs(bundle->getExtraPackages());
2703 err = writeResourceSymbols(bundle, assets, String8(packageString), true,
2748 String8 outputPath = buildApkName(String8(outputAPKFile), split);
2814 String8 input(bundle->getSingleCrunchInputFile());
2815 String8 output(bundle->getSingleCrunchOutputFile());