@@ -1021,7 +1021,7 @@ static jboolean android_content_AssetManager_resolveAttrs(JNIEnv* env, jobject c
10211021 return JNI_FALSE;
10221022 }
10231023
1024- DEBUG_STYLES (LOGI (" APPLY STYLE: theme=0x%x defStyleAttr=0x%x defStyleRes=0x%x" ,
1024+ DEBUG_STYLES (ALOGI (" APPLY STYLE: theme=0x%x defStyleAttr=0x%x defStyleRes=0x%x" ,
10251025 themeToken, defStyleAttr, defStyleRes));
10261026
10271027 ResTable::Theme* theme = reinterpret_cast <ResTable::Theme*>(themeToken);
@@ -1089,7 +1089,7 @@ static jboolean android_content_AssetManager_resolveAttrs(JNIEnv* env, jobject c
10891089 for (jsize ii=0 ; ii<NI; ii++) {
10901090 const uint32_t curIdent = (uint32_t )src[ii];
10911091
1092- DEBUG_STYLES (LOGI (" RETRIEVING ATTR 0x%08x..." , curIdent));
1092+ DEBUG_STYLES (ALOGI (" RETRIEVING ATTR 0x%08x..." , curIdent));
10931093
10941094 // Try to find a value for this attribute... we prioritize values
10951095 // coming from, first XML attributes, then XML style, then default
@@ -1104,7 +1104,7 @@ static jboolean android_content_AssetManager_resolveAttrs(JNIEnv* env, jobject c
11041104 block = -1 ;
11051105 value.dataType = Res_value::TYPE_ATTRIBUTE;
11061106 value.data = srcValues[ii];
1107- DEBUG_STYLES (LOGI (" -> From values: type=0x%x, data=0x%08x" ,
1107+ DEBUG_STYLES (ALOGI (" -> From values: type=0x%x, data=0x%08x" ,
11081108 value.dataType , value.data ));
11091109 }
11101110
@@ -1118,7 +1118,7 @@ static jboolean android_content_AssetManager_resolveAttrs(JNIEnv* env, jobject c
11181118 block = defStyleEnt->stringBlock ;
11191119 typeSetFlags = defStyleTypeSetFlags;
11201120 value = defStyleEnt->map .value ;
1121- DEBUG_STYLES (LOGI (" -> From def style: type=0x%x, data=0x%08x" ,
1121+ DEBUG_STYLES (ALOGI (" -> From def style: type=0x%x, data=0x%08x" ,
11221122 value.dataType , value.data ));
11231123 }
11241124 defStyleEnt++;
@@ -1130,14 +1130,14 @@ static jboolean android_content_AssetManager_resolveAttrs(JNIEnv* env, jobject c
11301130 ssize_t newBlock = theme->resolveAttributeReference (&value, block,
11311131 &resid, &typeSetFlags, &config);
11321132 if (newBlock >= 0 ) block = newBlock;
1133- DEBUG_STYLES (LOGI (" -> Resolved attr: type=0x%x, data=0x%08x" ,
1133+ DEBUG_STYLES (ALOGI (" -> Resolved attr: type=0x%x, data=0x%08x" ,
11341134 value.dataType , value.data ));
11351135 } else {
11361136 // If we still don't have a value for this attribute, try to find
11371137 // it in the theme!
11381138 ssize_t newBlock = theme->getAttribute (curIdent, &value, &typeSetFlags);
11391139 if (newBlock >= 0 ) {
1140- DEBUG_STYLES (LOGI (" -> From theme: type=0x%x, data=0x%08x" ,
1140+ DEBUG_STYLES (ALOGI (" -> From theme: type=0x%x, data=0x%08x" ,
11411141 value.dataType , value.data ));
11421142 newBlock = res.resolveReference (&value, block, &resid,
11431143 &typeSetFlags, &config);
@@ -1148,19 +1148,19 @@ static jboolean android_content_AssetManager_resolveAttrs(JNIEnv* env, jobject c
11481148 }
11491149#endif
11501150 if (newBlock >= 0 ) block = newBlock;
1151- DEBUG_STYLES (LOGI (" -> Resolved theme: type=0x%x, data=0x%08x" ,
1151+ DEBUG_STYLES (ALOGI (" -> Resolved theme: type=0x%x, data=0x%08x" ,
11521152 value.dataType , value.data ));
11531153 }
11541154 }
11551155
11561156 // Deal with the special @null value -- it turns back to TYPE_NULL.
11571157 if (value.dataType == Res_value::TYPE_REFERENCE && value.data == 0 ) {
1158- DEBUG_STYLES (LOGI (" -> Setting to @null!" ));
1158+ DEBUG_STYLES (ALOGI (" -> Setting to @null!" ));
11591159 value.dataType = Res_value::TYPE_NULL;
11601160 block = -1 ;
11611161 }
11621162
1163- DEBUG_STYLES (LOGI (" Attribute 0x%08x: type=0x%x, data=0x%08x" ,
1163+ DEBUG_STYLES (ALOGI (" Attribute 0x%08x: type=0x%x, data=0x%08x" ,
11641164 curIdent, value.dataType , value.data ));
11651165
11661166 // Write the final value back to Java.
@@ -1215,7 +1215,7 @@ static jboolean android_content_AssetManager_applyStyle(JNIEnv* env, jobject cla
12151215 return JNI_FALSE;
12161216 }
12171217
1218- DEBUG_STYLES (LOGI (" APPLY STYLE: theme=0x%x defStyleAttr=0x%x defStyleRes=0x%x xml=0x%x" ,
1218+ DEBUG_STYLES (ALOGI (" APPLY STYLE: theme=0x%x defStyleAttr=0x%x defStyleRes=0x%x xml=0x%x" ,
12191219 themeToken, defStyleAttr, defStyleRes, xmlParserToken));
12201220
12211221 ResTable::Theme* theme = reinterpret_cast <ResTable::Theme*>(themeToken);
@@ -1313,7 +1313,7 @@ static jboolean android_content_AssetManager_applyStyle(JNIEnv* env, jobject cla
13131313 for (jsize ii=0 ; ii<NI; ii++) {
13141314 const uint32_t curIdent = (uint32_t )src[ii];
13151315
1316- DEBUG_STYLES (LOGI (" RETRIEVING ATTR 0x%08x..." , curIdent));
1316+ DEBUG_STYLES (ALOGI (" RETRIEVING ATTR 0x%08x..." , curIdent));
13171317
13181318 // Try to find a value for this attribute... we prioritize values
13191319 // coming from, first XML attributes, then XML style, then default
@@ -1334,7 +1334,7 @@ static jboolean android_content_AssetManager_applyStyle(JNIEnv* env, jobject cla
13341334 xmlParser->getAttributeValue (ix, &value);
13351335 ix++;
13361336 curXmlAttr = xmlParser->getAttributeNameResID (ix);
1337- DEBUG_STYLES (LOGI (" -> From XML: type=0x%x, data=0x%08x" ,
1337+ DEBUG_STYLES (ALOGI (" -> From XML: type=0x%x, data=0x%08x" ,
13381338 value.dataType , value.data ));
13391339 }
13401340
@@ -1348,7 +1348,7 @@ static jboolean android_content_AssetManager_applyStyle(JNIEnv* env, jobject cla
13481348 block = styleEnt->stringBlock ;
13491349 typeSetFlags = styleTypeSetFlags;
13501350 value = styleEnt->map .value ;
1351- DEBUG_STYLES (LOGI (" -> From style: type=0x%x, data=0x%08x" ,
1351+ DEBUG_STYLES (ALOGI (" -> From style: type=0x%x, data=0x%08x" ,
13521352 value.dataType , value.data ));
13531353 }
13541354 styleEnt++;
@@ -1364,7 +1364,7 @@ static jboolean android_content_AssetManager_applyStyle(JNIEnv* env, jobject cla
13641364 block = defStyleEnt->stringBlock ;
13651365 typeSetFlags = defStyleTypeSetFlags;
13661366 value = defStyleEnt->map .value ;
1367- DEBUG_STYLES (LOGI (" -> From def style: type=0x%x, data=0x%08x" ,
1367+ DEBUG_STYLES (ALOGI (" -> From def style: type=0x%x, data=0x%08x" ,
13681368 value.dataType , value.data ));
13691369 }
13701370 defStyleEnt++;
@@ -1376,14 +1376,14 @@ static jboolean android_content_AssetManager_applyStyle(JNIEnv* env, jobject cla
13761376 ssize_t newBlock = theme->resolveAttributeReference (&value, block,
13771377 &resid, &typeSetFlags, &config);
13781378 if (newBlock >= 0 ) block = newBlock;
1379- DEBUG_STYLES (LOGI (" -> Resolved attr: type=0x%x, data=0x%08x" ,
1379+ DEBUG_STYLES (ALOGI (" -> Resolved attr: type=0x%x, data=0x%08x" ,
13801380 value.dataType , value.data ));
13811381 } else {
13821382 // If we still don't have a value for this attribute, try to find
13831383 // it in the theme!
13841384 ssize_t newBlock = theme->getAttribute (curIdent, &value, &typeSetFlags);
13851385 if (newBlock >= 0 ) {
1386- DEBUG_STYLES (LOGI (" -> From theme: type=0x%x, data=0x%08x" ,
1386+ DEBUG_STYLES (ALOGI (" -> From theme: type=0x%x, data=0x%08x" ,
13871387 value.dataType , value.data ));
13881388 newBlock = res.resolveReference (&value, block, &resid,
13891389 &typeSetFlags, &config);
@@ -1394,19 +1394,19 @@ static jboolean android_content_AssetManager_applyStyle(JNIEnv* env, jobject cla
13941394 }
13951395#endif
13961396 if (newBlock >= 0 ) block = newBlock;
1397- DEBUG_STYLES (LOGI (" -> Resolved theme: type=0x%x, data=0x%08x" ,
1397+ DEBUG_STYLES (ALOGI (" -> Resolved theme: type=0x%x, data=0x%08x" ,
13981398 value.dataType , value.data ));
13991399 }
14001400 }
14011401
14021402 // Deal with the special @null value -- it turns back to TYPE_NULL.
14031403 if (value.dataType == Res_value::TYPE_REFERENCE && value.data == 0 ) {
1404- DEBUG_STYLES (LOGI (" -> Setting to @null!" ));
1404+ DEBUG_STYLES (ALOGI (" -> Setting to @null!" ));
14051405 value.dataType = Res_value::TYPE_NULL;
14061406 block = kXmlBlock ;
14071407 }
14081408
1409- DEBUG_STYLES (LOGI (" Attribute 0x%08x: type=0x%x, data=0x%08x" ,
1409+ DEBUG_STYLES (ALOGI (" Attribute 0x%08x: type=0x%x, data=0x%08x" ,
14101410 curIdent, value.dataType , value.data ));
14111411
14121412 // Write the final value back to Java.
0 commit comments