diff --git a/mobile/android/base/AlertNotification.java b/mobile/android/base/AlertNotification.java index 601b45726268..08325bc61a65 100644 --- a/mobile/android/base/AlertNotification.java +++ b/mobile/android/base/AlertNotification.java @@ -8,11 +8,13 @@ package org.mozilla.gecko; import android.app.Notification; import android.app.NotificationManager; import android.content.Context; -import android.graphics.*; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; import android.net.Uri; import android.util.Log; import android.widget.RemoteViews; -import java.net.*; + +import java.net.URL; import java.text.NumberFormat; public class AlertNotification diff --git a/mobile/android/base/BrowserApp.java b/mobile/android/base/BrowserApp.java index a19b75d7d1bf..aa8f4a3811bd 100644 --- a/mobile/android/base/BrowserApp.java +++ b/mobile/android/base/BrowserApp.java @@ -5,40 +5,35 @@ package org.mozilla.gecko; -import java.io.*; -import java.util.*; +import java.io.InputStream; +import java.util.EnumSet; +import java.util.Vector; import java.util.regex.Pattern; import java.util.regex.Matcher; -import java.util.zip.*; -import java.nio.*; -import java.util.concurrent.*; -import java.lang.reflect.*; -import java.net.*; +import java.net.URL; -import org.json.*; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; -import android.os.*; -import android.app.*; -import android.text.*; -import android.view.*; -import android.view.inputmethod.*; -import android.content.*; -import android.content.res.*; -import android.graphics.*; +import android.os.Build; +import android.os.Bundle; +import android.app.Activity; +import android.view.LayoutInflater; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.ViewGroup; +import android.content.Intent; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; import android.graphics.drawable.Drawable; import android.graphics.drawable.BitmapDrawable; -import android.widget.*; -import android.hardware.*; -import android.location.*; - -import android.util.*; -import android.net.*; -import android.database.*; -import android.database.sqlite.*; -import android.provider.*; -import android.content.pm.*; -import android.content.pm.PackageManager.*; -import dalvik.system.*; +import android.widget.LinearLayout; +import android.widget.Toast; +import android.util.Log; +import android.net.Uri; abstract public class BrowserApp extends GeckoApp implements TabsPanel.TabsLayoutChangeListener, diff --git a/mobile/android/base/GeckoApp.java b/mobile/android/base/GeckoApp.java index 405c998bcf75..53253c1072aa 100644 --- a/mobile/android/base/GeckoApp.java +++ b/mobile/android/base/GeckoApp.java @@ -14,42 +14,93 @@ import org.mozilla.gecko.gfx.PluginLayer; import org.mozilla.gecko.gfx.PointUtils; import org.mozilla.gecko.ui.PanZoomController; -import java.io.*; -import java.util.*; +import java.io.BufferedReader; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileOutputStream; +import java.io.FileReader; +import java.io.IOException; +import java.io.OutputStream; +import java.lang.reflect.Method; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.CopyOnWriteArrayList; import java.util.regex.Pattern; import java.util.regex.Matcher; -import java.util.zip.*; +import java.net.HttpURLConnection; import java.net.URL; -import java.nio.*; -import java.util.concurrent.*; -import java.lang.reflect.*; -import java.net.*; +import java.nio.ByteBuffer; -import org.json.*; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; -import android.os.*; -import android.app.*; -import android.text.*; -import android.view.*; -import android.view.inputmethod.*; -import android.content.*; -import android.content.res.*; -import android.graphics.*; +import android.app.Activity; +import android.app.AlertDialog; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.SharedPreferences; +import android.content.pm.ApplicationInfo; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.content.pm.PackageManager.NameNotFoundException; +import android.content.pm.ResolveInfo; +import android.content.pm.ServiceInfo; +import android.content.pm.Signature; +import android.content.res.Configuration; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.graphics.Color; +import android.graphics.PointF; +import android.graphics.Rect; import android.graphics.drawable.BitmapDrawable; -import android.widget.*; -import android.hardware.*; -import android.location.*; +import android.hardware.Sensor; +import android.hardware.SensorEvent; +import android.hardware.SensorEventListener; +import android.location.Location; +import android.location.LocationListener; +import android.net.Uri; +import android.os.Build; +import android.os.Bundle; +import android.os.Environment; +import android.os.Handler; +import android.os.PowerManager; +import android.os.StrictMode; +import android.os.SystemClock; +import android.text.TextUtils; +import android.view.Gravity; +import android.view.KeyEvent; +import android.view.LayoutInflater; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.MotionEvent; +import android.view.SurfaceHolder; +import android.view.SurfaceView; +import android.view.View; +import android.view.ViewConfiguration; +import android.view.ViewGroup; +import android.view.Window; +import android.view.WindowManager; import android.view.accessibility.AccessibilityManager; import android.view.accessibility.AccessibilityEvent; - -import android.util.*; -import android.net.*; -import android.database.*; -import android.database.sqlite.*; -import android.provider.*; -import android.content.pm.*; -import android.content.pm.PackageManager.*; -import dalvik.system.*; +import android.widget.AbsoluteLayout; +import android.widget.FrameLayout; +import android.widget.LinearLayout; +import android.widget.ListView; +import android.widget.RelativeLayout; +import android.widget.ScrollView; +import android.widget.TextView; +import android.widget.Toast; +import android.util.AttributeSet; +import android.util.DisplayMetrics; +import android.util.Log; +import android.util.SparseBooleanArray; abstract public class GeckoApp extends GeckoActivity diff --git a/mobile/android/base/GeckoAppShell.java b/mobile/android/base/GeckoAppShell.java index 0866b2f104f4..9a5014c10a81 100644 --- a/mobile/android/base/GeckoAppShell.java +++ b/mobile/android/base/GeckoAppShell.java @@ -15,40 +15,92 @@ import org.mozilla.gecko.gfx.LayerView; import org.mozilla.gecko.gfx.ScreenshotLayer; import org.mozilla.gecko.gfx.RectUtils; -import java.io.*; -import java.lang.reflect.*; -import java.nio.*; +import java.io.BufferedReader; +import java.io.Closeable; +import java.io.File; +import java.io.FileOutputStream; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.IOException; +import java.io.OutputStream; +import java.io.PrintWriter; +import java.io.StringWriter; +import java.lang.reflect.Field; +import java.nio.ByteBuffer; import java.net.URL; -import java.text.*; -import java.util.*; -import java.util.zip.*; -import java.util.concurrent.*; +import java.text.DecimalFormat; +import java.text.DecimalFormatSymbols; +import java.text.NumberFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Queue; +import java.util.StringTokenizer; +import java.util.NoSuchElementException; +import java.util.concurrent.CopyOnWriteArrayList; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.SynchronousQueue; -import android.os.*; -import android.app.*; -import android.text.*; -import android.view.*; -import android.view.inputmethod.*; -import android.content.*; -import android.content.res.*; -import android.content.pm.*; -import android.graphics.*; -import android.widget.*; -import android.hardware.*; -import android.location.*; +import android.os.Build; +import android.os.Environment; +import android.os.Handler; +import android.os.Looper; +import android.os.Message; +import android.os.MessageQueue; +import android.os.StatFs; +import android.os.Vibrator; +import android.app.Activity; +import android.app.ActivityManager; +import android.app.NotificationManager; +import android.app.PendingIntent; +import android.view.ContextThemeWrapper; +import android.view.HapticFeedbackConstants; +import android.view.Surface; +import android.view.View; +import android.view.inputmethod.InputMethodManager; +import android.content.ActivityNotFoundException; +import android.content.ClipData; +import android.content.Context; +import android.content.Intent; +import android.content.res.TypedArray; +import android.content.pm.ActivityInfo; +import android.content.pm.PackageManager; +import android.content.pm.ResolveInfo; +import android.graphics.BitmapFactory; +import android.graphics.Canvas; +import android.graphics.Color; +import android.graphics.ImageFormat; +import android.graphics.Paint; +import android.graphics.Rect; +import android.graphics.RectF; +import android.graphics.SurfaceTexture; +import android.graphics.drawable.BitmapDrawable; +import android.graphics.drawable.Drawable; +import android.widget.Toast; +import android.hardware.Sensor; +import android.hardware.SensorManager; +import android.location.Criteria; +import android.location.Location; +import android.location.LocationManager; import android.webkit.MimeTypeMap; import android.media.MediaScannerConnection; import android.media.MediaScannerConnection.MediaScannerConnectionClient; import android.provider.Settings; import android.opengl.GLES20; -import android.util.*; +import android.util.Base64; +import android.util.DisplayMetrics; +import android.util.FloatMath; +import android.util.Log; import android.net.Uri; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.graphics.Bitmap; -import android.graphics.drawable.*; import org.json.JSONObject; diff --git a/mobile/android/base/GeckoEvent.java b/mobile/android/base/GeckoEvent.java index 3f5507fd579b..cd9e8a56bcf4 100644 --- a/mobile/android/base/GeckoEvent.java +++ b/mobile/android/base/GeckoEvent.java @@ -5,16 +5,20 @@ package org.mozilla.gecko; -import android.app.*; -import android.content.*; -import android.graphics.*; -import android.hardware.*; -import android.location.*; -import android.os.*; +import android.graphics.Point; +import android.graphics.PointF; +import android.graphics.Rect; +import android.hardware.Sensor; +import android.hardware.SensorEvent; +import android.hardware.SensorManager; +import android.location.Address; +import android.location.Location; +import android.os.Build; +import android.os.SystemClock; import android.util.DisplayMetrics; import android.util.Log; -import android.view.*; -import android.widget.*; +import android.view.KeyEvent; +import android.view.MotionEvent; import org.mozilla.gecko.gfx.DisplayPortMetrics; import org.mozilla.gecko.gfx.ViewportMetrics; diff --git a/mobile/android/base/GeckoPreferences.java b/mobile/android/base/GeckoPreferences.java index 0c5ff111b3b1..059c335f7e17 100644 --- a/mobile/android/base/GeckoPreferences.java +++ b/mobile/android/base/GeckoPreferences.java @@ -13,8 +13,14 @@ import android.app.AlertDialog; import android.os.Bundle; import android.content.res.Configuration; import android.content.Context; -import android.preference.*; -import android.preference.Preference.*; +import android.preference.CheckBoxPreference; +import android.preference.EditTextPreference; +import android.preference.ListPreference; +import android.preference.Preference; +import android.preference.Preference.OnPreferenceChangeListener; +import android.preference.PreferenceActivity; +import android.preference.PreferenceGroup; +import android.preference.PreferenceScreen; import android.text.InputType; import android.util.Log; import android.view.MenuItem; diff --git a/mobile/android/base/LauncherShortcuts.java.in b/mobile/android/base/LauncherShortcuts.java.in index 49c008ef9ade..80c81959da0b 100644 --- a/mobile/android/base/LauncherShortcuts.java.in +++ b/mobile/android/base/LauncherShortcuts.java.in @@ -6,25 +6,37 @@ #filter substitution package @ANDROID_PACKAGE_NAME@; -import java.io.*; -import java.util.*; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; -import org.json.*; +import org.json.JSONException; +import org.json.JSONObject; +import org.json.JSONTokener; -import org.mozilla.gecko.*; +import org.mozilla.gecko.GeckoApp; +import org.mozilla.gecko.GeckoProfile; +import org.mozilla.gecko.R; import org.mozilla.gecko.WebAppAllocator; -import android.os.*; -import android.content.*; -import android.app.*; -import android.text.*; -import android.util.*; -import android.widget.*; -import android.database.sqlite.*; -import android.database.*; -import android.view.*; -import android.graphics.*; - +import android.os.AsyncTask; +import android.os.Bundle; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.app.Activity; +import android.app.AlertDialog; +import android.text.TextUtils; +import android.util.DisplayMetrics; +import android.widget.SimpleAdapter; +import android.widget.Toast; +import android.view.Window; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; public class LauncherShortcuts extends Activity { diff --git a/mobile/android/base/Restarter.java.in b/mobile/android/base/Restarter.java.in index 80a6d1c3b74e..cb6c7d764799 100644 --- a/mobile/android/base/Restarter.java.in +++ b/mobile/android/base/Restarter.java.in @@ -6,11 +6,11 @@ #filter substitution package @ANDROID_PACKAGE_NAME@; -import android.app.*; -import android.content.*; -import android.util.*; -import android.os.*; -import java.io.*; +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; +import android.util.Log; + import org.mozilla.gecko.GeckoAppShell; public class Restarter extends Activity { @@ -63,4 +63,4 @@ public class Restarter extends Activity { GeckoAppShell.waitForAnotherGeckoProc(); System.exit(0); } -}; +}