You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
remove some old debugging prints, gate others behind verbose log
This commit is contained in:
@@ -24,7 +24,7 @@ JNIEXPORT jlong JNICALL Java_android_content_res_AssetManager_openAsset(JNIEnv *
|
||||
|
||||
struct AssetManager *asset_manager = _PTR(_GET_LONG_FIELD(this, "mObject"));
|
||||
struct Asset *asset = AssetManager_openNonAsset(asset_manager, file_name, mode);
|
||||
printf("AssetManager_openAsset(%p, %s, %d) returns %p\n", asset_manager, file_name, mode, asset);
|
||||
android_log_printf(ANDROID_LOG_VERBOSE, "["__FILE__"]", "AssetManager_openAsset(%p, %s, %d) returns %p\n", asset_manager, file_name, mode, asset);
|
||||
|
||||
return _INTPTR(asset);
|
||||
}
|
||||
@@ -39,7 +39,7 @@ JNIEXPORT jint JNICALL Java_android_content_res_AssetManager_openAssetFd(JNIEnv
|
||||
|
||||
struct AssetManager *asset_manager = _PTR(_GET_LONG_FIELD(this, "mObject"));
|
||||
struct Asset *asset = AssetManager_openNonAsset(asset_manager, file_name, mode);
|
||||
printf("AssetManager_openAssetFd(%p, %s, %d, ...)\n", asset_manager, file_name, mode);
|
||||
android_log_printf(ANDROID_LOG_VERBOSE, "["__FILE__"]", "AssetManager_openAssetFd(%p, %s, %d, ...)\n", asset_manager, file_name, mode);
|
||||
|
||||
fd = Asset_openFileDescriptor(asset, &offset, &size);
|
||||
|
||||
|
||||
@@ -272,8 +272,6 @@ JNIEXPORT void JNICALL Java_android_view_View_native_1setLayoutParams(JNIEnv *en
|
||||
gboolean vexpand = FALSE;
|
||||
|
||||
if (gravity != -1) {
|
||||
printf(":::-: setting gravity: %d\n", gravity);
|
||||
|
||||
if(gravity & GRAVITY_BOTTOM)
|
||||
valign = GTK_ALIGN_END;
|
||||
else if(gravity & GRAVITY_TOP)
|
||||
|
||||
@@ -121,8 +121,8 @@ static void wrapper_widget_snapshot(GtkWidget *widget, GdkSnapshot *snapshot)
|
||||
|
||||
static void wrapper_widget_class_init(WrapperWidgetClass *class)
|
||||
{
|
||||
GObjectClass *object_class = G_OBJECT_CLASS (class);
|
||||
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
|
||||
GObjectClass *object_class = G_OBJECT_CLASS(class);
|
||||
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(class);
|
||||
|
||||
object_class->dispose = wrapper_widget_dispose;
|
||||
|
||||
|
||||
@@ -151,7 +151,6 @@ public class Drawable {
|
||||
public void setTintList(ColorStateList tint) {}
|
||||
|
||||
public void setTint(int tint) {
|
||||
System.out.println("setTint("+tint+")");
|
||||
setTintList(ColorStateList.valueOf(tint));
|
||||
}
|
||||
|
||||
|
||||
@@ -876,7 +876,6 @@ public class View implements Drawable.Callback {
|
||||
|
||||
if(background != null) {
|
||||
if(background instanceof ColorDrawable) {
|
||||
System.out.printf("__background__: >%x<\n", ((ColorDrawable)background).getColor());
|
||||
setBackgroundColor(((ColorDrawable)background).getColor());
|
||||
} else {
|
||||
setBackgroundDrawable(background);
|
||||
|
||||
@@ -31,7 +31,7 @@ struct Asset* AAssetManager_open(struct AssetManager *asset_manager, const char
|
||||
char *path = malloc(strlen(ASSET_DIR) + strlen(file_name) + 1);
|
||||
sprintf(path, "%s%s", ASSET_DIR, file_name);
|
||||
|
||||
printf("AAssetManager_open called for %s\n", file_name);
|
||||
android_log_printf(ANDROID_LOG_VERBOSE, "["__FILE__"]", "AAssetManager_open called for %s\n", file_name);
|
||||
struct Asset *asset = AssetManager_openNonAsset(asset_manager, path, mode);
|
||||
|
||||
free(path);
|
||||
@@ -91,7 +91,7 @@ struct AAssetDir * AAssetManager_openDir(struct AssetManager *asset_manager, con
|
||||
dir->asset_dir = asset_dir;
|
||||
dir->curr_index = 0;
|
||||
|
||||
printf("AAssetManager_openDir called for %s\n", dirpath);
|
||||
android_log_printf(ANDROID_LOG_VERBOSE, "["__FILE__"]", "AAssetManager_openDir called for %s\n", dirpath);
|
||||
|
||||
return dir;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user