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
run whitespace_format.py --add-new-line-marker-at-end-of-file --remove-trailing-whitespace --remove-trailing-empty-lines --new-line-marker=linux --normalize-non-standard-whitespace=remove on src/
This commit is contained in:
@@ -310,4 +310,3 @@ void ANativeActivity_hideSoftInput(ANativeActivity* activity, uint32_t flags);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // ANDROID_NATIVE_ACTIVITY_H
|
#endif // ANDROID_NATIVE_ACTIVITY_H
|
||||||
|
|
||||||
|
|||||||
@@ -39,10 +39,10 @@ static void web_view_load_changed(WebKitWebView *web_view, WebKitLoadEvent load_
|
|||||||
JNIEXPORT jlong JNICALL Java_android_webkit_WebView_native_1constructor(JNIEnv *env, jobject this, jobject context, jobject attrs)
|
JNIEXPORT jlong JNICALL Java_android_webkit_WebView_native_1constructor(JNIEnv *env, jobject this, jobject context, jobject attrs)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* many apps use webview just for fingerprinting or displaying ads, which seems like
|
* many apps use webview just for fingerprinting or displaying ads, which seems like
|
||||||
* a waste of resources even if we deal with fingerprinting and ads in some other way
|
* a waste of resources even if we deal with fingerprinting and ads in some other way
|
||||||
* in the future.
|
* in the future.
|
||||||
*/
|
*/
|
||||||
if(!getenv("ATL_UGLY_ENABLE_WEBVIEW"))
|
if(!getenv("ATL_UGLY_ENABLE_WEBVIEW"))
|
||||||
return Java_android_view_View_native_1constructor(env, this, context, attrs);
|
return Java_android_view_View_native_1constructor(env, this, context, attrs);
|
||||||
|
|
||||||
|
|||||||
@@ -6,4 +6,3 @@ final public class JobWorkItem {
|
|||||||
public JobWorkItem(Intent intent) {
|
public JobWorkItem(Intent intent) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
37
src/api-impl/android/location/GnssStatus.java
Normal file
37
src/api-impl/android/location/GnssStatus.java
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
package android.location;
|
||||||
|
|
||||||
|
public final class GnssStatus {
|
||||||
|
public static final int CONSTELLATION_UNKNOWN = 0;
|
||||||
|
public static final int CONSTELLATION_GPS = 1;
|
||||||
|
public static final int CONSTELLATION_SBAS = 2;
|
||||||
|
public static final int CONSTELLATION_GLONASS = 3;
|
||||||
|
public static final int CONSTELLATION_QZSS = 4;
|
||||||
|
public static final int CONSTELLATION_BEIDOU = 5;
|
||||||
|
public static final int CONSTELLATION_GALILEO = 6;
|
||||||
|
public static final int CONSTELLATION_IRNSS = 7;
|
||||||
|
|
||||||
|
public GnssStatus() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public static abstract class Callback {
|
||||||
|
public void onStarted() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onStopped() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onFirstFix(int ttffMillis) {
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onSatelliteStatusChanged(GnssStatus status) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSatelliteCount() {
|
||||||
|
return 3; // FIXME
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean usedInFix(int index) {
|
||||||
|
return true; // FIXME
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,4 +5,3 @@ public class Network {
|
|||||||
return 1L;
|
return 1L;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -596,5 +596,3 @@ media_status_t AMediaCodecCryptoInfo_getEncryptedBytes(AMediaCodecCryptoInfo*, s
|
|||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -28,4 +28,3 @@
|
|||||||
.ATL-text-align-right > * {
|
.ATL-text-align-right > * {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,4 +68,3 @@ public interface PerformanceTestCase
|
|||||||
*/
|
*/
|
||||||
boolean isPerformanceOnly();
|
boolean isPerformanceOnly();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user