Home | History | Annotate | Download | only in pm

Lines Matching defs:outError

108     // TODO: switch outError users to PackageParserException
200 final String[] outError;
213 outError = _outError;
867 final String[] outError = new String[1];
868 final Package pkg = parseBaseApk(res, parser, flags, outError);
871 apkPath + " (at " + parser.getPositionDescription() + "): " + outError[0]);
909 final String[] outError = new String[1];
910 pkg = parseSplitApk(pkg, res, parser, flags, splitIndex, outError);
913 apkPath + " (at " + parser.getPositionDescription() + "): " + outError[0]);
934 int splitIndex, String[] outError) throws XmlPullParserException, IOException,
961 outError[0] = "<manifest> has more than one <application>";
972 if (!parseSplitApplication(pkg, res, parser, attrs, flags, splitIndex, outError)) {
977 outError[0] = "Bad element under <manifest>: "
992 outError[0] = "<manifest> does not contain an <application>";
1327 String[] outError) throws XmlPullParserException, IOException {
1351 outError[0] = "Expected base APK, but found split " + splitName;
1373 outError[0] = "<manifest> specifies bad sharedUserId name \""
1421 outError[0] = "<manifest> has more than one <application>";
1432 if (!parseBaseApplication(pkg, res, parser, attrs, flags, outError)) {
1448 outError[0] = "<overlay> does not specify a target package";
1453 outError[0] = "<overlay> priority must be between 0 and 9999";
1461 if (!parseKeySets(pkg, res, parser, attrs, outError)) {
1465 if (parsePermissionGroup(pkg, flags, res, parser, attrs, outError) == null) {
1469 if (parsePermission(pkg, res, parser, attrs, outError) == null) {
1473 if (parsePermissionTree(pkg, res, parser, attrs, outError) == null) {
1477 if (!parseUsesPermission(pkg, res, parser, attrs, outError)) {
1595 outError[0] = "Requires development platform " + minCode
1599 outError[0] = "Requires development platform " + minCode
1606 outError[0] = "Requires newer sdk version #" + minVers
1622 outError[0] = "Requires development platform " + targetCode
1626 outError[0] = "Requires development platform " + targetCode
1704 if (parseInstrumentation(pkg, res, parser, attrs, outError) == null) {
1763 outError[0] = "Bad element under <manifest>: "
1778 outError[0] = "<manifest> does not contain an <application> or <instrumentation>";
1890 AttributeSet attrs, String[] outError)
1924 outError[0] = "conflicting <uses-permission> entries";
1937 String[] outError) {
1939 outError[0] = "Empty class name in package " + pkg;
1956 outError[0] = "Bad class name " + cls + " in package " + pkg;
1961 CharSequence procSeq, String type, String[] outError) {
1966 outError[0] = "Bad " + type + " name " + proc + " in package " + pkg
1973 outError[0] = "Invalid " + type + " name " + proc + " in package "
1981 outError[0] = "Invalid " + type + " name " + proc + " in package "
1990 String[] outError) {
2005 return buildCompoundName(pkg, procSeq, "process", outError);
2009 CharSequence procSeq, String[] outError) {
2016 return buildCompoundName(pkg, procSeq, "taskAffinity", outError);
2020 XmlPullParser parser, AttributeSet attrs, String[] outError)
2158 XmlPullParser parser, AttributeSet attrs, String[] outError)
2165 if (!parsePackageItemInfo(owner, perm.info, outError,
2191 outError)) {
2202 XmlPullParser parser, AttributeSet attrs, String[] outError)
2209 if (!parsePackageItemInfo(owner, perm.info, outError,
2243 outError[0] = "<permission> does not specify protectionLevel";
2253 outError[0] = "<permission> protectionLevel specifies a flag but is "
2261 outError)) {
2272 XmlPullParser parser, AttributeSet attrs, String[] outError)
2279 if (!parsePackageItemInfo(owner, perm.info, outError,
2298 outError[0] = "<permission-tree> name has less than three segments: "
2309 outError)) {
2320 XmlPullParser parser, AttributeSet attrs, String[] outError)
2326 mParseInstrumentationArgs = new ParsePackageItemArgs(owner, outError,
2339 if (outError[0] != null) {
2363 outError[0] = "<instrumentation> does not specify targetPackage";
2369 outError)) {
2387 XmlPullParser parser, AttributeSet attrs, int flags, String[] outError)
2398 ai.className = buildClassName(pkgName, name, outError);
2411 outError);
2425 ai.backupAgentName = buildClassName(pkgName, backupAgent, outError);
2567 str, outError);
2569 if (outError[0] == null) {
2583 flags, mSeparateProcesses, outError);
2602 outError[0] = "cantSaveState applications can not use custom processes";
2613 if (outError[0] != null) {
2628 Activity a = parseActivity(owner, res, parser, attrs, flags, outError, false,
2638 Activity a = parseActivity(owner, res, parser, attrs, flags, outError, true, false);
2647 Service s = parseService(owner, res, parser, attrs, flags, outError);
2656 Provider p = parseProvider(owner, res, parser, attrs, flags, outError);
2665 Activity a = parseActivityAlias(owner, res, parser, attrs, flags, outError);
2678 outError)) == null) {
2742 outError[0] = "Bad element under <application>: " + tagName;
2761 AttributeSet attrs, int flags, int splitIndex, String[] outError)
2781 Activity a = parseActivity(owner, res, parser, attrs, flags, outError, false,
2791 Activity a = parseActivity(owner, res, parser, attrs, flags, outError, true, false);
2800 Service s = parseService(owner, res, parser, attrs, flags, outError);
2809 Provider p = parseProvider(owner, res, parser, attrs, flags, outError);
2818 Activity a = parseActivityAlias(owner, res, parser, attrs, flags, outError);
2831 outError)) == null) {
2881 outError[0] = "Bad element under <application>: " + tagName;
2892 String[] outError, String tag, TypedArray sa,
2896 outError[0] = tag + " does not specify android:name";
2901 = buildClassName(owner.applicationInfo.packageName, name, outError);
2933 XmlPullParser parser, AttributeSet attrs, int flags, String[] outError,
2940 mParseActivityArgs = new ParseComponentArgs(owner, outError,
2957 if (outError[0] != null) {
2980 String parentClassName = buildClassName(a.info.packageName, parentName, outError);
2981 if (outError[0] == null) {
2986 outError[0] = null;
3003 owner.applicationInfo.taskAffinity, str, outError);
3156 outError[0] = "Heavy-weight applications can not have receivers in main process";
3160 if (outError[0] != null) {
3175 if (!parseIntent(res, parser, attrs, true, intent, outError)) {
3187 if (!parseIntent(res, parser, attrs, false, intent, outError)) {
3202 outError)) == null) {
3221 outError[0] = "Bad element under <receiver>: " + parser.getName();
3223 outError[0] = "Bad element under <activity>: " + parser.getName();
3238 XmlPullParser parser, AttributeSet attrs, int flags, String[] outError)
3247 outError[0] = "<activity-alias> does not specify android:targetActivity";
3253 targetActivity, outError);
3260 mParseActivityAliasArgs = new ParseComponentArgs(owner, outError,
3288 outError[0] = "<activity-alias> target activity " + targetActivity
3317 if (outError[0] != null) {
3340 String parentClassName = buildClassName(a.info.packageName, parentName, outError);
3341 if (outError[0] == null) {
3346 outError[0] = null;
3352 if (outError[0] != null) {
3367 if (!parseIntent(res, parser, attrs, true, intent, outError)) {
3379 outError)) == null) {
3390 outError[0] = "Bad element under <activity-alias>: " + parser.getName();
3404 XmlPullParser parser, AttributeSet attrs, int flags, String[] outError)
3410 mParseProviderArgs = new ParseComponentArgs(owner, outError,
3427 if (outError[0] != null) {
3509 outError[0] = "Heavy-weight applications can not have providers in main process";
3515 outError[0] = "<provider> does not include authorities attribute";
3520 if (!parseProviderTags(res, parser, attrs, p, outError)) {
3529 Provider outInfo, String[] outError)
3542 if (!parseIntent(res, parser, attrs, true, intent, outError)) {
3549 outInfo.metaData, outError)) == null) {
3599 outError[0] = "No path, pathPrefix, or pathPattern for <path-permission>";
3642 outError[0] = "No readPermission or writePermssion for <path-permission>";
3689 outError[0] = "No path, pathPrefix, or pathPattern for <path-permission>";
3702 outError[0] = "Bad element under <provider>: " + parser.getName();
3711 XmlPullParser parser, AttributeSet attrs, int flags, String[] outError)
3717 mParseServiceArgs = new ParseComponentArgs(owner, outError,
3734 if (outError[0] != null) {
3784 outError[0] = "Heavy-weight applications can not have services in main process";
3800 if (!parseIntent(res, parser, attrs, true, intent, outError)) {
3807 outError)) == null) {
3818 outError[0] = "Bad element under <service>: " + parser.getName();
3833 Component outInfo, String[] outError)
3846 outInfo.metaData, outError)) == null) {
3857 outError[0] = "Bad element under " + tag + ": " + parser.getName();
3867 Bundle data, String[] outError)
3880 outError[0] = "<meta-data> requires an android:name attribute";
3913 outError[0] = "<meta-data> only supports string, integer, float, color, boolean, and resource reference types";
3918 outError[0] = "<meta-data> requires an android:value or android:resource attribute";
4001 boolean allowGlobs, IntentInfo outInfo, String[] outError)
4041 outError[0] = "No value supplied for <android:name>";
4051 outError[0] = "No value supplied for <android:name>";
4068 outError[0] = e.toString();
4096 outError[0] = "sspPattern not allowed here; ssp must be literal";
4126 outError[0] = "pathPattern not allowed here; path must be literal";
4140 outError[0] = "Bad element under <intent-filter>: " + parser.getName();
4428 args.outError[0] = args.tag + " does not specify android:name";
4433 = buildClassName(owner.applicationInfo.packageName, name, args.outError);
4436 args.outError[0] = args.tag + " does not have valid android:name";
4468 if (args.outError[0] != null) {
4485 args.flags, args.sepProcesses, args.outError);