implement instrumentation

This commit is contained in:
Mis012
2024-11-30 18:57:03 +01:00
parent f61f200d7b
commit d5bc4ea9a6
61 changed files with 8723 additions and 58 deletions

View File

@@ -25,7 +25,7 @@ import android.graphics.drawable.Drawable;
import android.graphics.drawable.Drawable.ConstantState;
import android.os.Build;
import android.os.Bundle;
// import android.os.IBinder;
import android.os.IBinder;
import android.os.Trace;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
@@ -48,8 +48,6 @@ import org.xmlpull.v1.XmlPullParserException;
class Movie {}
class IBinder {}
/**
* Class for accessing an application's resources. This sits on top of the
* asset manager of the application (accessible through {@link #getAssets}) and
@@ -701,7 +699,10 @@ public class Resources {
}
getValue(id, value, true);
}
Drawable res = loadDrawable(value, id);
Drawable res = null;
try {
res = loadDrawable(value, id);
} catch (NotFoundException e) { e.printStackTrace(); }
synchronized (mAccessLock) {
if (mTmpValue == null) {
mTmpValue = value;