From: Uwe Hermann Date: Tue, 26 Aug 2014 21:08:47 +0000 (+0200) Subject: android/: Whitespace and consistency fixes. X-Git-Tag: pulseview-0.3.0~564 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1c90d94fb2928df0503b1e47f4f3a3d64b136ef1;p=pulseview.git android/: Whitespace and consistency fixes. Use one tab as indentation for all XML and Java files. --- diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 3609c569..24b3ccdd 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -1,50 +1,50 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/bundled_libs.xml.in b/android/bundled_libs.xml.in index 7ddaddf0..8975e6bf 100644 --- a/android/bundled_libs.xml.in +++ b/android/bundled_libs.xml.in @@ -1,6 +1,6 @@ - -@bundled_libs@ - + + @bundled_libs@ + diff --git a/android/custom_rules.xml b/android/custom_rules.xml index 7331fe91..44d66371 100644 --- a/android/custom_rules.xml +++ b/android/custom_rules.xml @@ -1,81 +1,80 @@ + + + - - - + + + + + + + + - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/loghandler.cpp b/android/loghandler.cpp index b5024204..3cd2e3b7 100644 --- a/android/loghandler.cpp +++ b/android/loghandler.cpp @@ -47,12 +47,12 @@ int AndroidLogHandler::sr_callback(void *cb_data, int loglevel, const char *form /* Only output messages of at least the selected loglevel(s). */ if (loglevel > sr_log_loglevel_get()) - return SR_OK; /* TODO? */ + return SR_OK; if (loglevel < SR_LOG_NONE) - loglevel = SR_LOG_NONE; + loglevel = SR_LOG_NONE; else if (loglevel > SR_LOG_SPEW) - loglevel = SR_LOG_SPEW; + loglevel = SR_LOG_SPEW; ret = __android_log_vprint(prio[loglevel], "sr", format, args); @@ -77,12 +77,12 @@ int AndroidLogHandler::srd_callback(void *cb_data, int loglevel, const char *for /* Only output messages of at least the selected loglevel(s). */ if (loglevel > srd_log_loglevel_get()) - return SRD_OK; /* TODO? */ + return SRD_OK; if (loglevel < SRD_LOG_NONE) - loglevel = SRD_LOG_NONE; + loglevel = SRD_LOG_NONE; else if (loglevel > SRD_LOG_SPEW) - loglevel = SRD_LOG_SPEW; + loglevel = SRD_LOG_SPEW; ret = __android_log_vprint(prio[loglevel], "srd", format, args); diff --git a/android/res/layout/splash.xml b/android/res/layout/splash.xml index 6875521a..df367544 100644 --- a/android/res/layout/splash.xml +++ b/android/res/layout/splash.xml @@ -1,2 +1,22 @@ - + + diff --git a/android/res/values/libs.xml b/android/res/values/libs.xml index 8aa5afae..14555f29 100644 --- a/android/res/values/libs.xml +++ b/android/res/values/libs.xml @@ -1,22 +1,19 @@ - - https://download.qt-project.org/ministro/android/qt5/qt-5.3 - - - - - Qt5Core - Qt5Gui - Qt5Widgets - Qt5Svg - - - - - - - - - + + https://download.qt-project.org/ministro/android/qt5/qt-5.3 + + + + Qt5Core + Qt5Gui + Qt5Widgets + Qt5Svg + + + + + + + diff --git a/android/res/values/strings-pv.xml b/android/res/values/strings-pv.xml index 991a086d..729273a5 100644 --- a/android/res/values/strings-pv.xml +++ b/android/res/values/strings-pv.xml @@ -1,4 +1,4 @@ - PulseView + PulseView diff --git a/android/src/org/sigrok/pulseview/PulseViewActivity.java b/android/src/org/sigrok/pulseview/PulseViewActivity.java index 32f6c79b..cdd91495 100644 --- a/android/src/org/sigrok/pulseview/PulseViewActivity.java +++ b/android/src/org/sigrok/pulseview/PulseViewActivity.java @@ -26,26 +26,26 @@ import android.os.Bundle; public class PulseViewActivity extends QtActivity { - private UsbSupplicant supplicant; + private UsbSupplicant supplicant; - @Override - public void onCreate(Bundle savedInstanceState) - { - super.onCreate(savedInstanceState); - supplicant = new UsbSupplicant(getApplicationContext(), R.xml.device_filter); - } + @Override + public void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + supplicant = new UsbSupplicant(getApplicationContext(), R.xml.device_filter); + } - @Override - protected void onStart() - { - super.onStart(); - supplicant.start(); - } + @Override + protected void onStart() + { + super.onStart(); + supplicant.start(); + } - @Override - protected void onStop() - { - supplicant.stop(); - super.onStop(); - } + @Override + protected void onStop() + { + supplicant.stop(); + super.onStop(); + } } diff --git a/android/src/org/sigrok/pulseview/PulseViewApplication.java b/android/src/org/sigrok/pulseview/PulseViewApplication.java index ba30b50f..55d00d9c 100644 --- a/android/src/org/sigrok/pulseview/PulseViewApplication.java +++ b/android/src/org/sigrok/pulseview/PulseViewApplication.java @@ -28,12 +28,11 @@ import java.io.IOException; public class PulseViewApplication extends QtApplication { - @Override - public void onCreate() - { - Environment.initEnvironment(getApplicationInfo().sourceDir); - UsbHelper.setContext(getApplicationContext()); - super.onCreate(); - } + @Override + public void onCreate() + { + Environment.initEnvironment(getApplicationInfo().sourceDir); + UsbHelper.setContext(getApplicationContext()); + super.onCreate(); + } } -