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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user