diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c
index c60045cbbe7c2..1f14726cf2061 100644
--- a/cmds/dumpstate/dumpstate.c
+++ b/cmds/dumpstate/dumpstate.c
@@ -340,7 +340,7 @@ static void dump_kernel_log(const char *path, const char *title)
if (stat(path, &sbuf) < 0)
printf("%s: stat failed (%s)\n", path, strerror(errno));
else
- printf("Harvested %s", ctime(&sbuf.st_ctime));
+ printf("Harvested %s", ctime(&sbuf.st_mtime));
DUMP(path);
}
diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java
index e21918454de35..042c75e25e7a2 100644
--- a/core/java/android/provider/Telephony.java
+++ b/core/java/android/provider/Telephony.java
@@ -1489,11 +1489,11 @@ public final class Telephony {
/**
* This is the scrap file we use to store the media attachment when the user
- * chooses to capture a photo to be attached (and could be used for other media types
- * if necessary). We pass {#link@Uri} to the Camera app, which streams the captured
- * image to the uri. Internally we write the media content to this file.
+ * chooses to capture a photo to be attached . We pass {#link@Uri} to the Camera app,
+ * which streams the captured image to the uri. Internally we write the media content
+ * to this file. It's named '.temp.jpg' so Gallery won't pick it up.
*/
- public static final String SCRAP_FILE_PATH = "/sdcard/mms/scrapSpace/file";
+ public static final String SCRAP_FILE_PATH = "/sdcard/mms/scrapSpace/.temp.jpg";
}
public static final class Intents {
diff --git a/core/java/com/android/internal/widget/RotarySelector.java b/core/java/com/android/internal/widget/RotarySelector.java
index ba828dfd592eb..0998744a23845 100644
--- a/core/java/com/android/internal/widget/RotarySelector.java
+++ b/core/java/com/android/internal/widget/RotarySelector.java
@@ -93,9 +93,9 @@ public class RotarySelector extends View {
* If the user is currently dragging something.
*/
private int mGrabbedState = NOTHING_GRABBED;
- private static final int NOTHING_GRABBED = 0;
- private static final int LEFT_HANDLE_GRABBED = 1;
- private static final int RIGHT_HANDLE_GRABBED = 2;
+ public static final int NOTHING_GRABBED = 0;
+ public static final int LEFT_HANDLE_GRABBED = 1;
+ public static final int RIGHT_HANDLE_GRABBED = 2;
/**
* Whether the user has triggered something (e.g dragging the left handle all the way over to
@@ -522,12 +522,12 @@ public class RotarySelector extends View {
}
if (eventX < mLeftHandleX + hitWindow) {
mRotaryOffsetX = eventX - mLeftHandleX;
- mGrabbedState = LEFT_HANDLE_GRABBED;
+ setGrabbedState(LEFT_HANDLE_GRABBED);
invalidate();
vibrate(VIBRATE_SHORT);
} else if (eventX > mRightHandleX - hitWindow) {
mRotaryOffsetX = eventX - mRightHandleX;
- mGrabbedState = RIGHT_HANDLE_GRABBED;
+ setGrabbedState(RIGHT_HANDLE_GRABBED);
invalidate();
vibrate(VIBRATE_SHORT);
}
@@ -591,7 +591,7 @@ public class RotarySelector extends View {
startAnimation(eventX - mRightHandleX, 0, SNAP_BACK_ANIMATION_DURATION_MILLIS);
}
mRotaryOffsetX = 0;
- mGrabbedState = NOTHING_GRABBED;
+ setGrabbedState(NOTHING_GRABBED);
invalidate();
if (mVelocityTracker != null) {
mVelocityTracker.recycle(); // wishin' we had generational GC
@@ -617,7 +617,7 @@ public class RotarySelector extends View {
mAnimationDuration = duration;
mAnimatingDeltaXStart = startX;
mAnimatingDeltaXEnd = endX;
- mGrabbedState = NOTHING_GRABBED;
+ setGrabbedState(NOTHING_GRABBED);
mDimplesOfFling = 0;
invalidate();
}
@@ -628,7 +628,7 @@ public class RotarySelector extends View {
mAnimationDuration = 1000 * (endX - startX) / pixelsPerSecond;
mAnimatingDeltaXStart = startX;
mAnimatingDeltaXEnd = endX;
- mGrabbedState = NOTHING_GRABBED;
+ setGrabbedState(NOTHING_GRABBED);
invalidate();
}
@@ -667,7 +667,7 @@ public class RotarySelector extends View {
mAnimating = false;
mRotaryOffsetX = 0;
mDimplesOfFling = 0;
- mGrabbedState = NOTHING_GRABBED;
+ setGrabbedState(NOTHING_GRABBED);
mTriggered = false;
}
@@ -715,6 +715,19 @@ public class RotarySelector extends View {
}
}
+ /**
+ * Sets the current grabbed state, and dispatches a grabbed state change
+ * event to our listener.
+ */
+ private void setGrabbedState(int newState) {
+ if (newState != mGrabbedState) {
+ mGrabbedState = newState;
+ if (mOnDialTriggerListener != null) {
+ mOnDialTriggerListener.onGrabbedStateChange(this, mGrabbedState);
+ }
+ }
+ }
+
/**
* Interface definition for a callback to be invoked when the dial
* is "triggered" by rotating it one way or the other.
@@ -740,6 +753,16 @@ public class RotarySelector extends View {
* either {@link #LEFT_HANDLE}, {@link #RIGHT_HANDLE}.
*/
void onDialTrigger(View v, int whichHandle);
+
+ /**
+ * Called when the "grabbed state" changes (i.e. when
+ * the user either grabs or releases one of the handles.)
+ *
+ * @param v the view that was triggered
+ * @param grabbedState the new state: either {@link #NOTHING_GRABBED},
+ * {@link #LEFT_HANDLE_GRABBED}, or {@link #RIGHT_HANDLE_GRABBED}.
+ */
+ void onGrabbedStateChange(View v, int grabbedState);
}
diff --git a/core/jni/android_bluetooth_HeadsetBase.cpp b/core/jni/android_bluetooth_HeadsetBase.cpp
index bad01869d3b34..71279b26263c4 100644
--- a/core/jni/android_bluetooth_HeadsetBase.cpp
+++ b/core/jni/android_bluetooth_HeadsetBase.cpp
@@ -396,7 +396,7 @@ static jint waitForAsyncConnectNative(JNIEnv *env, jobject obj,
LOGE("select() on RFCOMM socket: %s (%d)",
strerror(errno),
errno);
- return -1;
+ return -errno;
}
return 0;
}
@@ -429,7 +429,7 @@ static jint waitForAsyncConnectNative(JNIEnv *env, jobject obj,
fcntl(nat->rfcomm_sock, F_SETFL, nat->rfcomm_sock_flags);
close(nat->rfcomm_sock);
nat->rfcomm_sock = -1;
- return -1;
+ return -errno;
}
}
/* Restore the blocking properties of the socket. */
diff --git a/core/res/res/drawable-hdpi/ic_launcher_android.png b/core/res/res/drawable-hdpi/ic_launcher_android.png
index d70b8ca94faf6..cce518787b582 100644
Binary files a/core/res/res/drawable-hdpi/ic_launcher_android.png and b/core/res/res/drawable-hdpi/ic_launcher_android.png differ
diff --git a/core/res/res/drawable-hdpi/ic_lock_idle_alarm.png b/core/res/res/drawable-hdpi/ic_lock_idle_alarm.png
index 140acfe8fe75a..41ad27d46ab23 100644
Binary files a/core/res/res/drawable-hdpi/ic_lock_idle_alarm.png and b/core/res/res/drawable-hdpi/ic_lock_idle_alarm.png differ
diff --git a/core/res/res/drawable-hdpi/ic_menu_gallery.png b/core/res/res/drawable-hdpi/ic_menu_gallery.png
index 76dfbc3d87c98..7c528fa6dabfc 100644
Binary files a/core/res/res/drawable-hdpi/ic_menu_gallery.png and b/core/res/res/drawable-hdpi/ic_menu_gallery.png differ
diff --git a/core/res/res/drawable-hdpi/ic_menu_preferences.png b/core/res/res/drawable-hdpi/ic_menu_preferences.png
index 153b01e40a38d..81bca4ae6b243 100644
Binary files a/core/res/res/drawable-hdpi/ic_menu_preferences.png and b/core/res/res/drawable-hdpi/ic_menu_preferences.png differ
diff --git a/core/res/res/drawable-hdpi/ic_menu_slideshow.png b/core/res/res/drawable-hdpi/ic_menu_slideshow.png
index 53b1a6f01a1cb..925f4eb152d5f 100644
Binary files a/core/res/res/drawable-hdpi/ic_menu_slideshow.png and b/core/res/res/drawable-hdpi/ic_menu_slideshow.png differ
diff --git a/core/res/res/drawable-hdpi/stat_notify_alarm.png b/core/res/res/drawable-hdpi/stat_notify_alarm.png
old mode 100755
new mode 100644
index 63a531721e94b..89daee1906682
Binary files a/core/res/res/drawable-hdpi/stat_notify_alarm.png and b/core/res/res/drawable-hdpi/stat_notify_alarm.png differ
diff --git a/core/res/res/drawable-hdpi/sym_action_chat.png b/core/res/res/drawable-hdpi/sym_action_chat.png
index 7fd34f06b64da..1ed061bd543b2 100644
Binary files a/core/res/res/drawable-hdpi/sym_action_chat.png and b/core/res/res/drawable-hdpi/sym_action_chat.png differ
diff --git a/core/res/res/drawable-mdpi/ic_lock_idle_alarm.png b/core/res/res/drawable-mdpi/ic_lock_idle_alarm.png
index f917b83baf63a..ee7752655f80d 100644
Binary files a/core/res/res/drawable-mdpi/ic_lock_idle_alarm.png and b/core/res/res/drawable-mdpi/ic_lock_idle_alarm.png differ
diff --git a/core/res/res/drawable-mdpi/ic_menu_gallery.png b/core/res/res/drawable-mdpi/ic_menu_gallery.png
index f61bbd8bae606..a3deef109e8c9 100755
Binary files a/core/res/res/drawable-mdpi/ic_menu_gallery.png and b/core/res/res/drawable-mdpi/ic_menu_gallery.png differ
diff --git a/core/res/res/drawable-mdpi/ic_menu_preferences.png b/core/res/res/drawable-mdpi/ic_menu_preferences.png
index 4da26e3cc4e5b..60dbff6d59347 100644
Binary files a/core/res/res/drawable-mdpi/ic_menu_preferences.png and b/core/res/res/drawable-mdpi/ic_menu_preferences.png differ
diff --git a/core/res/res/drawable-mdpi/ic_menu_slideshow.png b/core/res/res/drawable-mdpi/ic_menu_slideshow.png
index 38dd8f0589f7e..04fda7f7424ba 100644
Binary files a/core/res/res/drawable-mdpi/ic_menu_slideshow.png and b/core/res/res/drawable-mdpi/ic_menu_slideshow.png differ
diff --git a/core/res/res/drawable-mdpi/stat_notify_alarm.png b/core/res/res/drawable-mdpi/stat_notify_alarm.png
index d01ccca72a882..1b01b850619d2 100644
Binary files a/core/res/res/drawable-mdpi/stat_notify_alarm.png and b/core/res/res/drawable-mdpi/stat_notify_alarm.png differ
diff --git a/core/res/res/drawable-mdpi/sym_action_chat.png b/core/res/res/drawable-mdpi/sym_action_chat.png
index 9f6419ea75fa3..0e28a7dbd5a5a 100644
Binary files a/core/res/res/drawable-mdpi/sym_action_chat.png and b/core/res/res/drawable-mdpi/sym_action_chat.png differ
diff --git a/core/res/res/values-es-rUS/strings.xml b/core/res/res/values-es-rUS/strings.xml
index e2059d8ee9fa8..e3580a6e54b6e 100644
--- a/core/res/res/values-es-rUS/strings.xml
+++ b/core/res/res/values-es-rUS/strings.xml
@@ -111,8 +111,7 @@
"No se ha podido acceder al archivo."
"No se ha encontrado el archivo solicitado."
"Se están procesando demasiadas solicitudes. Vuelve a intentarlo más tarde."
-
-
+ "Error al iniciar la sesión de %1$s"
"Sincronización"
"Sincronización"
"Demasiadas eliminaciones de %s"
@@ -148,8 +147,10 @@
"Controla tu ubicación física"
"Comunicación de red"
"Admite aplicaciones que acceden a varias funciones de red."
- "Tus cuentas de Google"
- "Acceder a las cuentas disponibles de Google."
+
+
+
+
"Controles de hardware"
"Acceso directo al hardware en el teléfono."
"Llamadas telefónicas"
@@ -433,6 +434,61 @@
- "ICQ"
- "Jabber"
+ "Personalizado"
+ "Página principal"
+ "Celular"
+ "Trabajo"
+ "Fax laboral"
+ "Fax personal"
+ "Localizador"
+ "Otro"
+ "Devolución de llamada"
+ "Automóvil"
+ "Empresa principal"
+ "ISDN"
+ "Principal"
+ "Otro fax"
+ "Radio"
+ "Télex"
+ "TTY TDD"
+ "Celular del trabajo"
+ "Localizador del trabajo"
+ "Asistente"
+ "MMS"
+
+
+
+
+
+
+ "Personalizado"
+ "Página principal"
+ "Trabajo"
+ "Otro"
+ "Celular"
+ "Personalizado"
+ "Página principal"
+ "Trabajo"
+ "Otro"
+ "Personalizado"
+ "Página principal"
+ "Trabajo"
+ "Otro"
+ "Personalizado"
+ "AIM"
+ "Windows Live"
+ "Yahoo"
+ "Skype"
+ "QQ"
+ "Google Talk"
+ "ICQ"
+ "Jabber"
+ "NetMeeting"
+ "Trabajo"
+ "Otro"
+ "Personalizado"
+ "A través de %1$s"
+ "%1$s a través de %2$s"
"Ingresar el código de PIN"
"¡Código de PIN incorrecto!"
"Para desbloquear, presiona el menú y luego 0."
@@ -447,6 +503,7 @@
"Lo sentimos, vuelve a intentarlo"
"Cargando (%d%%)"
"Cargada."
+ "Segmento %d%%"
"Conecta tu cargador."
"No hay tarjeta SIM."
"No hay tarjeta SIM en el teléfono."
@@ -478,7 +535,7 @@
"Cargando..."
"Conecta el cargador"
"Hay poca batería:"
- "menos de %d%% restante."
+ "Restan %d%% o menos."
"Uso de la batería"
"Error en la prueba de fábrica"
"La acción FACTORY_TEST se admite solamente en paquetes instalados en /system/app."
@@ -488,6 +545,7 @@
"JavaScript"
"¿Deseas salir de esta página?"\n\n"%s"\n\n"Selecciona Aceptar para continuar o Cancelar para permanecer en la página actual."
"Confirmar"
+ "Sugerencia: presiona dos veces para acercar y alejar"
"leer historial y marcadores del navegador"
"Permite a la aplicación leer todas las URL que ha visitado el navegador y todos los marcadores del navegador."
"escribir historial y marcadores del navegador"
@@ -692,10 +750,8 @@
"¿Estás seguro de que quieres formatear la tarjeta SD? Se perderán todos los datos de tu tarjeta."
"Formato"
"Depuración de USB conectada"
-
-
-
-
+ "Seleccionar para desactivar la depuración de USB."
+ "Seleccionar método de entrada"
" ABCDEFGHIJKLMNOPQRSTUVWXYZ"
" 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"candidatos"
@@ -731,11 +787,18 @@
"Permitir"
"Denegar"
"Permiso solicitado"
-
-
+ "Permiso solicitado"\n"para la cuenta %s"
"Método de entrada"
"Sincronización"
"Accesibilidad"
"Papel tapiz"
"Cambiar fondo de pantalla"
+
+
+
+
+
+
+
+
diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml
index 7760db198f67e..de30fe7771340 100644
--- a/core/res/res/values/strings.xml
+++ b/core/res/res/values/strings.xml
@@ -1308,7 +1308,7 @@
Custom
- Via %1$s
+ via %1$s
%1$s via %2$s