Home | History | Annotate | Download | only in pm

Lines Matching refs:outError

163     // TODO: switch outError users to PackageParserException
333 final String[] outError;
348 outError = _outError;
1328 final String[] outError = new String[1];
1329 final Package pkg = parseBaseApk(apkPath, res, parser, flags, outError);
1332 apkPath + " (at " + parser.getPositionDescription() + "): " + outError[0]);
1374 final String[] outError = new String[1];
1375 pkg = parseSplitApk(pkg, res, parser, flags, splitIndex, outError);
1378 apkPath + " (at " + parser.getPositionDescription() + "): " + outError[0]);
1399 int splitIndex, String[] outError) throws XmlPullParserException, IOException,
1423 outError[0] = "<manifest> has more than one <application>";
1434 if (!parseSplitApplication(pkg, res, parser, flags, splitIndex, outError)) {
1439 outError[0] = "Bad element under <manifest>: "
1454 outError[0] = "<manifest> does not contain an <application>";
1798 * @param outError Human readable error if parsing fails
1805 int flags, String[] outError) throws XmlPullParserException, IOException {
1818 outError[0] = message;
1827 outError[0] = message;
1842 childPkg = parseBaseApkCommon(childPkg, CHILD_PACKAGE_TAGS, res, parser, flags, outError);
1867 * @param outError Human readable error message
1874 String[] outError) throws XmlPullParserException, IOException {
1884 outError[0] = "Expected base APK, but found split " + splitName;
1934 return parseBaseApkCommon(pkg, null, res, parser, flags, outError);
1950 * @param outError Human readable error if parsing fails
1957 XmlResourceParser parser, int flags, String[] outError) throws XmlPullParserException,
1972 outError[0] = "<manifest> specifies bad sharedUserId name \""
2034 outError[0] = "<manifest> has more than one <application>";
2045 if (!parseBaseApplication(pkg, res, parser, flags, outError)) {
2070 outError[0] = "<overlay> does not specify a target package";
2076 outError[0] = "<overlay> priority must be between 0 and 9999";
2093 if (!parseKeySets(pkg, res, parser, outError)) {
2097 if (!parsePermissionGroup(pkg, flags, res, parser, outError)) {
2101 if (!parsePermission(pkg, res, parser, outError)) {
2105 if (!parsePermissionTree(pkg, res, parser, outError)) {
2226 SDK_VERSION, SDK_CODENAMES, outError);
2234 targetCode, SDK_CODENAMES, outError, defaultToCurrentDevBranch);
2308 if (parseInstrumentation(pkg, res, parser, outError) == null) {
2370 if (!parseBaseApkChild(pkg, res, parser, flags, outError)) {
2398 outError[0] = "Bad element under <manifest>: "
2413 outError[0] = "<manifest> does not contain an <application> or <instrumentation>";
2529 * compatible with this platform, populates {@code outError[0]} with an
2552 * @param outError output array to populate with error, if applicable
2562 @NonNull String[] outError, boolean forceCurrentDev) {
2576 outError[0] = "Requires development platform " + targetCode
2580 outError[0] = "Requires development platform " + targetCode
2588 * compatible with this platform, populates {@code outError[0]} with an
2619 * @param outError output array to populate with error, if applicable
2627 @NonNull String[] platformSdkCodenames, @NonNull String[] outError) {
2635 outError[0] = "Requires newer sdk version #" + minVers
2648 outError[0] = "Requires development platform " + minCode
2652 outError[0] = "Requires development platform " + minCode
2682 String[] outError) throws XmlPullParserException, IOException {
2697 outError[0] = "Bad uses-static-library declaration name: " + lname + " version: "
2706 outError[0] = "Depending on multiple versions of static library " + lname;
2720 additionalCertSha256Digests = parseAdditionalCertificates(res, parser, outError);
2743 String[] outError) throws XmlPullParserException, IOException {
2763 outError[0] = "Bad additional-certificate declaration with empty"
2845 String[] outError) {
2847 outError[0] = "Empty class name in package " + pkg;
2865 CharSequence procSeq, String type, String[] outError) {
2870 outError[0] = "Bad " + type + " name " + proc + " in package " + pkg
2877 outError[0] = "Invalid " + type + " name " + proc + " in package "
2885 outError[0] = "Invalid " + type + " name " + proc + " in package "
2894 String[] outError) {
2909 return TextUtils.safeIntern(buildCompoundName(pkg, procSeq, "process", outError));
2913 CharSequence procSeq, String[] outError) {
2920 return buildCompoundName(pkg, procSeq, "taskAffinity", outError);
2924 XmlResourceParser parser, String[] outError)
2949 outError[0] = "Improperly nested 'key-set' tag at "
2964 outError[0] = "Improperly nested 'key-set' tag at "
2976 outError[0] = "'public-key' " + publicKeyName + " must define a public-key value"
2998 outError[0] = "Value of 'public-key' " + publicKeyName
3018 outError[0] = "Bad element under <key-sets>: " + parser.getName()
3033 outError[0] = "Package" + owner.packageName + " AndroidManifext.xml "
3060 outError[0] ="Package" + owner.packageName + " AndroidManifext.xml "
3069 XmlResourceParser parser, String[] outError)
3075 if (!parsePackageItemInfo(owner, perm.info, outError,
3101 outError)) {
3112 XmlResourceParser parser, String[] outError)
3119 if (!parsePackageItemInfo(owner, perm.info, outError,
3157 outError[0] = "<permission> does not specify protectionLevel";
3169 outError[0] = "<permission> protectionLevel specifies a non-instant flag but is "
3176 if (!parseAllMetaData(res, parser, "<permission>", perm, outError)) {
3187 XmlResourceParser parser, String[] outError)
3194 if (!parsePackageItemInfo(owner, perm.info, outError,
3214 outError[0] = "<permission-tree> name has less than three segments: "
3226 outError)) {
3237 XmlResourceParser parser, String[] outError)
3243 mParseInstrumentationArgs = new ParsePackageItemArgs(owner, outError,
3257 if (outError[0] != null) {
3285 outError[0] = "<instrumentation> does not specify targetPackage";
3291 outError)) {
3309 XmlResourceParser parser, int flags, String[] outError)
3317 if (!parsePackageItemInfo(owner, ai, outError,
3339 outError);
3354 ai.backupAgentName = buildClassName(pkgName, backupAgent, outError);
3554 str, outError);
3558 ai.appComponentFactory = buildClassName(ai.packageName, factory, outError);
3561 if (outError[0] == null) {
3575 flags, mSeparateProcesses, outError);
3593 outError[0] = "cantSaveState applications can not use custom processes";
3605 outError[0] = "Invalid class loader name: " + ai.classLoaderName;
3610 if (outError[0] != null) {
3631 Activity a = parseActivity(owner, res, parser, flags, outError, cachedArgs, false,
3642 Activity a = parseActivity(owner, res, parser, flags, outError, cachedArgs,
3653 Service s = parseService(owner, res, parser, flags, outError, cachedArgs);
3663 Provider p = parseProvider(owner, res, parser, flags, outError, cachedArgs);
3672 Activity a = parseActivityAlias(owner, res, parser, flags, outError, cachedArgs);
3686 outError)) == null) {
3708 outError[0] = "Bad static-library declaration name: " + lname
3716 outError[0] = "sharedUserId not allowed in static shared library";
3723 outError[0] = "Multiple static-shared libs for package " + pkgName;
3762 if (!parseUsesStaticLibrary(owner, res, parser, outError)) {
3805 outError[0] = "Bad element under <application>: " + tagName;
3870 int flags, int splitIndex, String[] outError)
3885 outError[0] = "Invalid class loader name: " + classLoaderName;
3905 Activity a = parseActivity(owner, res, parser, flags, outError, cachedArgs, false,
3916 Activity a = parseActivity(owner, res, parser, flags, outError, cachedArgs,
3927 Service s = parseService(owner, res, parser, flags, outError, cachedArgs);
3937 Provider p = parseProvider(owner, res, parser, flags, outError, cachedArgs);
3947 Activity a = parseActivityAlias(owner, res, parser, flags, outError, cachedArgs);
3961 outError)) == null) {
3967 if (!parseUsesStaticLibrary(owner, res, parser, outError)) {
4016 outError[0] = "Bad element under <application>: " + tagName;
4035 String[] outError, String tag, TypedArray sa, boolean nameRequired,
4040 outError[0] = tag + " does not contain any attributes";
4047 outError[0] = tag + " does not specify android:name";
4052 = buildClassName(owner.applicationInfo.packageName, name, outError);
4093 XmlResourceParser parser, int flags, String[] outError, CachedComponentArgs cachedArgs,
4099 cachedArgs.mActivityArgs = new ParseComponentArgs(owner, outError,
4117 if (outError[0] != null) {
4136 String parentClassName = buildClassName(a.info.packageName, parentName, outError);
4137 if (outError[0] == null) {
4142 outError[0] = null;
4158 owner.applicationInfo.taskAffinity, str, outError);
4334 outError[0] = "Heavy-weight applications can not have receivers in main process";
4338 if (outError[0] != null) {
4354 intent, outError)) {
4393 intent, outError)) {
4421 outError)) == null) {
4442 outError[0] = "Bad element under <receiver>: " + parser.getName();
4444 outError[0] = "Bad element under <activity>: " + parser.getName();
4590 XmlResourceParser parser, int flags, String[] outError,
4600 outError[0] = "<activity-alias> does not specify android:targetActivity";
4606 targetActivity, outError);
4613 cachedArgs.mActivityAliasArgs = new ParseComponentArgs(owner, outError,
4642 outError[0] = "<activity-alias> target activity " + targetActivity
4678 if (outError[0] != null) {
4701 String parentClassName = buildClassName(a.info.packageName, parentName, outError);
4702 if (outError[0] == null) {
4707 outError[0] = null;
4717 if (outError[0] != null) {
4733 intent, outError)) {
4759 outError)) == null) {
4770 outError[0] = "Bad element under <activity-alias>: " + parser.getName();
4784 XmlResourceParser parser, int flags, String[] outError,
4791 cachedArgs.mProviderArgs = new ParseComponentArgs(owner, outError,
4809 if (outError[0] != null) {
4904 outError[0] = "Heavy-weight applications can not have providers in main process";
4910 outError[0] = "<provider> does not include authorities attribute";
4914 outError[0] = "<provider> has empty authorities attribute";
4920 res, parser, visibleToEphemeral, p, outError)) {
4928 boolean visibleToEphemeral, Provider outInfo, String[] outError)
4942 intent, outError)) {
4954 outInfo.metaData, outError)) == null) {
5004 outError[0] = "No path, pathPrefix, or pathPattern for <path-permission>";
5047 outError[0] = "No readPermission or writePermssion for <path-permission>";
5101 outError[0] = "No path, pathPrefix, or pathPattern for <path-permission>";
5114 outError[0] = "Bad element under <provider>: " + parser.getName();
5123 XmlResourceParser parser, int flags, String[] outError,
5130 cachedArgs.mServiceArgs = new ParseComponentArgs(owner, outError,
5148 if (outError[0] != null) {
5215 outError[0] = "Heavy-weight applications can not have services in main process";
5232 intent, outError)) {
5243 outError)) == null) {
5254 outError[0] = "Bad element under <service>: " + parser.getName();
5275 Component<?> outInfo, String[] outError) throws XmlPullParserException, IOException {
5287 outInfo.metaData, outError)) == null) {
5298 outError[0] = "Bad element under " + tag + ": " + parser.getName();
5307 XmlResourceParser parser, Bundle data, String[] outError)
5320 outError[0] = "<meta-data> requires an android:name attribute";
5353 outError[0] = "<meta-data> only supports string, integer, float, color, boolean, and resource reference types";
5358 outError[0] = "<meta-data> requires an android:value or android:resource attribute";
5455 boolean allowAutoVerify, IntentInfo outInfo, String[] outError)
5513 outError[0] = "No value supplied for <android:name>";
5523 outError[0] = "No value supplied for <android:name>";
5540 outError[0] = e.toString();
5568 outError[0] = "sspPattern not allowed here; ssp must be literal";
5598 outError[0] = "pathPattern not allowed here; path must be literal";
5608 outError[0] = "pathAdvancedPattern not allowed here; path must be literal";
5622 outError[0] = "Bad element under <intent-filter>: " + parser.getName();
7078 if (parsePackageItemInfo(args.owner, outInfo, args.outError, args.tag, args.sa,
7089 if (args.outError[0] != null) {
7106 args.flags, args.sepProcesses, args.outError);