Skip to content

Commit 722a9cf

Browse files
committed
Merge remote branch 'upstream/gingerbread' into gingerbread
2 parents e1557a4 + 97eeb4e commit 722a9cf

11 files changed

Lines changed: 68 additions & 43 deletions

File tree

core/java/android/preference/VolumePreference.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ protected void onRestoreInstanceState(Parcelable state) {
172172
public static class VolumeStore {
173173
public int volume = -1;
174174
public int originalVolume = -1;
175+
public int originalRingerMode = -1;
175176
}
176177

177178
private static class SavedState extends BaseSavedState {
@@ -181,13 +182,15 @@ public SavedState(Parcel source) {
181182
super(source);
182183
mVolumeStore.volume = source.readInt();
183184
mVolumeStore.originalVolume = source.readInt();
185+
mVolumeStore.originalRingerMode = source.readInt();
184186
}
185187

186188
@Override
187189
public void writeToParcel(Parcel dest, int flags) {
188190
super.writeToParcel(dest, flags);
189191
dest.writeInt(mVolumeStore.volume);
190192
dest.writeInt(mVolumeStore.originalVolume);
193+
dest.writeInt(mVolumeStore.originalRingerMode);
191194
}
192195

193196
VolumeStore getVolumeStore() {
@@ -221,6 +224,7 @@ public class SeekBarVolumizer implements OnSeekBarChangeListener, Runnable {
221224
private AudioManager mAudioManager;
222225
private int mStreamType;
223226
private int mOriginalStreamVolume;
227+
private int mOriginalRingerMode;
224228
private Ringtone mRingtone;
225229

226230
private int mLastProgress = -1;
@@ -254,6 +258,7 @@ public SeekBarVolumizer(Context context, SeekBar seekBar, int streamType) {
254258
private void initSeekBar(SeekBar seekBar) {
255259
seekBar.setMax(mAudioManager.getStreamMaxVolume(mStreamType));
256260
mOriginalStreamVolume = mAudioManager.getStreamVolume(mStreamType);
261+
mOriginalRingerMode = mAudioManager.getRingerMode();
257262
seekBar.setProgress(mOriginalStreamVolume);
258263
seekBar.setOnSeekBarChangeListener(this);
259264

@@ -284,6 +289,7 @@ public void stop() {
284289

285290
public void revertVolume() {
286291
mAudioManager.setStreamVolume(mStreamType, mOriginalStreamVolume, 0);
292+
mAudioManager.setRingerMode(mOriginalRingerMode);
287293
}
288294

289295
public void onProgressChanged(SeekBar seekBar, int progress,
@@ -315,11 +321,15 @@ public void run() {
315321
int newStreamVolume = mLastProgress;
316322
if (mStreamType == AudioManager.STREAM_RING) {
317323
int ringerMode = mAudioManager.getRingerMode();
318-
int vibrateSetting = mAudioManager.getVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER);
319324

320325
if (mLastProgress == 0) {
321326
if (ringerMode == AudioManager.RINGER_MODE_NORMAL) {
322-
mAudioManager.setRingerMode(vibrateSetting==AudioManager.VIBRATE_SETTING_OFF?AudioManager.RINGER_MODE_SILENT:AudioManager.RINGER_MODE_VIBRATE);
327+
int vibrateSetting = mAudioManager.getVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER);
328+
if (vibrateSetting == AudioManager.VIBRATE_SETTING_OFF) {
329+
mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);
330+
} else {
331+
mAudioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);
332+
}
323333
}
324334
} else if (ringerMode != AudioManager.RINGER_MODE_NORMAL) {
325335
mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
@@ -356,13 +366,15 @@ public void onSaveInstanceState(VolumeStore volumeStore) {
356366
if (mLastProgress >= 0) {
357367
volumeStore.volume = mLastProgress;
358368
volumeStore.originalVolume = mOriginalStreamVolume;
369+
volumeStore.originalRingerMode = mOriginalRingerMode;
359370
}
360371
}
361372

362373
public void onRestoreInstanceState(VolumeStore volumeStore) {
363374
if (volumeStore.volume != -1) {
364375
mOriginalStreamVolume = volumeStore.originalVolume;
365376
mLastProgress = volumeStore.volume;
377+
mOriginalRingerMode = volumeStore.originalRingerMode;
366378
postSetVolume(mLastProgress);
367379
}
368380
}

core/java/android/webkit/DnsResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public static DnsResolver getInstance() {
8686
}
8787

8888
private DnsResolver() {
89+
mHostNamesToBeResolved = new HashMap();
8990
createDnsResolverThreadPool();
9091
}
9192

@@ -96,7 +97,6 @@ public void run() {
9697
Process.setThreadPriority( android.os.Process.THREAD_PRIORITY_DEFAULT +
9798
android.os.Process.THREAD_PRIORITY_LESS_FAVORABLE);
9899
mDnsResolverThreadPool = Executors.newFixedThreadPool(MAX_DNS_RESOLVER_THREAD_POOL_SIZE);
99-
mHostNamesToBeResolved = new HashMap();
100100
boolean bResolvedPriorityHostNames = false;
101101
int dnsQueryCounter = 0;
102102
int numHosts = 0;

core/res/res/values-cs/strings.xml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152

153153
<string name="shutdown_progress" msgid="2281079257329981203">"Vypínání\u2026"</string>
154154
<string name="reboot_progress">"Restart\u2026"</string>
155-
<string name="shutdown_confirm" msgid="649792175242821353">"Váš telefon bude vypnut."</string>
155+
<string name="shutdown_confirm" msgid="649792175242821353">"Telefon bude vypnut."</string>
156156
<string name="reboot_confirm">"Telefon bude restartován."</string>
157157
<string name="recent_tasks_title" msgid="3691764623638127888">"Nejnovější"</string>
158158
<string name="no_recent_tasks" msgid="279702952298056674">"Žádné nedávno použité aplikace."</string>
@@ -225,7 +225,7 @@
225225
<string name="permlab_setDebugApp" msgid="4339730312925176742">"povolit ladění aplikací"</string>
226226
<string name="permdesc_setDebugApp" msgid="5584310661711990702">"Umožňuje aplikaci povolit ladění jiné aplikace. Škodlivé aplikace mohou pomocí tohoto nastavení ukončit jiné aplikace."</string>
227227
<string name="permlab_changeConfiguration" msgid="8214475779521218295">"změna vašeho nastavení uživatelského rozhraní"</string>
228-
<string name="permdesc_changeConfiguration" msgid="3465121501528064399">"Umožňuje aplikaci změnit aktuální konfiguraci, např. národní prostředí či obecnou velikost písma."</string>
228+
<string name="permdesc_changeConfiguration" msgid="3465121501528064399">"Umožňuje aplikaci změnit aktuální nastavení, např. národní prostředí či obecnou velikost písma."</string>
229229
<string name="permlab_enableCarMode" msgid="5684504058192921098">"aktivovat režim V autě"</string>
230230
<string name="permdesc_enableCarMode" msgid="5673461159384850628">"Umožňuje aplikaci aktivovat režim V autě."</string>
231231
<string name="permlab_killBackgroundProcesses" msgid="8373714752793061963">"ukončit procesy na pozadí"</string>
@@ -305,7 +305,7 @@
305305
<string name="permlab_setPreferredApplications" msgid="3393305202145172005">"nastavení upřednostňovaných aplikací"</string>
306306
<string name="permdesc_setPreferredApplications" msgid="760008293501937546">"Umožňuje aplikaci změnit vaše upřednostňované aplikace. Toto nastavení může škodlivým aplikacím umožnit nepozorovaně změnit spouštěné aplikace a oklamat vaše existující aplikace tak, aby shromažďovaly vaše soukromá data."</string>
307307
<string name="permlab_writeSettings" msgid="1365523497395143704">"změna globálních nastavení systému"</string>
308-
<string name="permdesc_writeSettings" msgid="838789419871034696">"Umožňuje aplikaci upravit data nastavení systému. Škodlivé aplikace mohou poškodit konfiguraci vašeho systému."</string>
308+
<string name="permdesc_writeSettings" msgid="838789419871034696">"Umožňuje aplikaci upravit data nastavení systému. Škodlivé aplikace mohou poškodit nastavení vašeho systému."</string>
309309
<string name="permlab_writeSecureSettings" msgid="204676251876718288">"změny zabezpečených nastavení systému"</string>
310310
<string name="permdesc_writeSecureSettings" msgid="5497873143539034724">"Umožňuje aplikaci změnit data zabezpečených nastavení systému. Běžné aplikace toto nastavení nevyužívají."</string>
311311
<string name="permlab_writeGservices" msgid="2149426664226152185">"změna mapy služeb Google"</string>
@@ -397,7 +397,7 @@
397397
<string name="permlab_setWallpaperHints" msgid="3600721069353106851">"nastavení nápovědy pro velikost tapety"</string>
398398
<string name="permdesc_setWallpaperHints" msgid="6019479164008079626">"Umožňuje aplikaci nastavit nápovědu pro velikost tapety systému."</string>
399399
<string name="permlab_masterClear" msgid="2315750423139697397">"obnovení továrního nastavení systému"</string>
400-
<string name="permdesc_masterClear" msgid="5033465107545174514">"Umožňuje aplikaci kompletně obnovit systém do továrního nastavení a vymazat všechna data, konfiguraci a nainstalované aplikace."</string>
400+
<string name="permdesc_masterClear" msgid="5033465107545174514">"Umožňuje aplikaci kompletně obnovit systém do továrního nastavení a vymazat všechna data, nastavení a nainstalované aplikace."</string>
401401
<string name="permlab_setTime" msgid="2021614829591775646">"nastavit čas"</string>
402402
<string name="permdesc_setTime" msgid="667294309287080045">"Umožňuje aplikaci změnit čas hodin v telefonu."</string>
403403
<string name="permlab_setTimeZone" msgid="2945079801013077340">"nastavení časového pásma"</string>
@@ -427,17 +427,17 @@
427427
<string name="permlab_accessWifiState" msgid="8100926650211034400">"zobrazení stavu WiFi"</string>
428428
<string name="permdesc_accessWifiState" msgid="485796529139236346">"Umožňuje aplikaci zobrazit informace o stavu připojení WiFi."</string>
429429
<string name="permlab_changeWifiState" msgid="7280632711057112137">"změna stavu WiFi"</string>
430-
<string name="permdesc_changeWifiState" msgid="2950383153656873267">"Umožňuje aplikaci připojit se k přístupovým bodům WiFi či se od nich odpojit a provádět změny nakonfigurovaných sítí WiFi."</string>
430+
<string name="permdesc_changeWifiState" msgid="2950383153656873267">"Umožňuje aplikaci připojit se k přístupovým bodům WiFi či se od nich odpojit a provádět změny nastavených sítí WiFi."</string>
431431
<string name="permlab_changeWifiMulticastState" msgid="1368253871483254784">"povolení příjmu Wi-Fi Multicast"</string>
432432
<string name="permdesc_changeWifiMulticastState" msgid="8199464507656067553">"Povoluje aplikaci přijímat pakety, které nebyly adresovány přímo vašemu zařízení. Pomocí této možnosti můžete objevit služby nabízené ve vaší blízkosti. Spotřeba energie je vyšší než u režimu bez vícesměrového vysílání (multicast)."</string>
433433
<string name="permlab_accessWimaxState" msgid="2800410363171809280">"zobrazit stav připojení WiMAX"</string>
434434
<string name="permdesc_accessWimaxState" msgid="8298035866227524023">"Umožňuje aplikaci zobrazit informace o stavu připojení WiMAX."</string>
435435
<string name="permlab_changeWimaxState" msgid="340465839241528618">"měnit stav připojení WiMAX"</string>
436436
<string name="permdesc_changeWimaxState" msgid="474918005058989421">"Umožňuje aplikaci připojovat se k síti WiMAX a odpojovat se od ní."</string>
437437
<string name="permlab_bluetoothAdmin" msgid="1092209628459341292">"správa rozhraní Bluetooth"</string>
438-
<string name="permdesc_bluetoothAdmin" msgid="7256289774667054555">"Umožňuje aplikaci konfigurovat místní telefon s rozhraním Bluetooth a vyhledávat a párovat vzdálená zařízení."</string>
438+
<string name="permdesc_bluetoothAdmin" msgid="7256289774667054555">"Umožňuje aplikaci nastavit místní telefon s rozhraním Bluetooth a vyhledávat a párovat vzdálená zařízení."</string>
439439
<string name="permlab_bluetooth" msgid="8361038707857018732">"vytvoření připojení Bluetooth"</string>
440-
<string name="permdesc_bluetooth" msgid="762515380679392945">"Umožňuje aplikaci zobrazit konfiguraci místního telefonu s rozhraním Bluetooth, vytvářet připojení ke spárovaným zařízením a přijímat tato připojení."</string>
440+
<string name="permdesc_bluetooth" msgid="762515380679392945">"Umožňuje aplikaci zobrazit nastavení místního telefonu s rozhraním Bluetooth, vytvářet připojení ke spárovaným zařízením a přijímat tato připojení."</string>
441441
<string name="permlab_nfc" msgid="4423351274757876953">"ovládat technologii NFC"</string>
442442
<string name="permdesc_nfc" msgid="9171401851954407226">"Umožňuje aplikaci komunikovat se štítky, kartami a čtečkami s podporou technologie NFC."</string>
443443
<string name="permlab_disableKeyguard" msgid="4977406164311535092">"vypnutí zámku kláves"</string>
@@ -933,7 +933,7 @@
933933
<string name="car_mode_disable_notification_title" msgid="3164768212003864316">"Aktivován režim V autě"</string>
934934
<string name="car_mode_disable_notification_message" msgid="668663626721675614">"Vyberte, chcete-li ukončit režim Na cestě."</string>
935935
<string name="tethered_notification_title" msgid="3146694234398202601">"Je aktivní tethering nebo hotspot"</string>
936-
<string name="tethered_notification_message" msgid="3067108323903048927">"Dotykem zahájíte konfiguraci"</string>
936+
<string name="tethered_notification_message" msgid="3067108323903048927">"Dotykem zahájíte nastevení"</string>
937937
<string name="throttle_warning_notification_title" msgid="4890894267454867276">"Vysoké využití mobilních dat"</string>
938938
<string name="throttle_warning_notification_message" msgid="2609734763845705708">"Dotykem zobrazíte další informace o využití mobilních dat"</string>
939939
<string name="throttled_notification_title" msgid="6269541897729781332">"Byl překročen limit mobilních dat"</string>
@@ -960,4 +960,22 @@
960960
</plurals>
961961
<string name="permlab_revokePermissions">"Umožní zobrazit a změnit nepovolená oprávnění. Nelze využít v normální aplikaci."</string>
962962
<string name="permdesc_revokePermissions">"Umožní číst a zapisovat nepovolená oprávnění. Nelze využít v normální aplikací."</string>
963+
964+
<string name="keyguard_finger_please_swipe">Pro odemknutí přejeďte prstem po senzoru otisku prstů</string>
965+
<string name="keyguard_finger_ui_timeout">Vypršel časový limit!</string>
966+
<string name="keyguard_finger_failed_to_unlock">Odemknutí se nezdařilo!</string>
967+
<string name="keyguard_finger_screen_off">Vypnutá obrazovka</string>
968+
<string name="keyguard_finger_screen_on">Zapnutá obrazovka</string>
969+
<string name="keyguard_finger_match">Otisk prstu souhlasí, obrazovka se odemyká\u2026</string>
970+
<string name="keyguard_finger_not_match">Otisk prstu nesouhlasí\u2026</string>
971+
<string name="keyguard_finger_swipe_too_far_right">Použijte střed senzoru.</string>
972+
<string name="keyguard_finger_swipe_too_far_left">Použijte střed senzoru.</string>
973+
<string name="keyguard_finger_swipe_too_fast">Přejetí senzoru bylo příliš rychlé.</string>
974+
<string name="keyguard_finger_swipe_too_short">Přejetí senzoru bylo příliš krátké.</string>
975+
<string name="keyguard_finger_swipe_too_slow">Přejetí senzoru bylo příliš pomalé.</string>
976+
<string name="keyguard_finger_swipe_too_skewed">Přejetí senzoru nebylo rovnoměrné.</string>
977+
<string name="lockscreen_too_many_failed_fingers_dialog_message">Nepodařilo se %1$d-krát identifikovat otiskem prstu.\n\nProsím zkuste to za %2$d sekund.</string>
978+
<string name="lockscreen_failed_fingers_almost_glogin">Nepodařilo se %1$d-krát identifikovat otiskem prstu. Po dalších %2$d neúspěšných pokusech o identifikaci budete vyzváni k odemknutí zařízení použitím přihlášení k účtu Google.\n\nProsím zkuste to znovu za %3$d sekund.</string>
979+
<string name="lockscreen_forgot_finger_button_text">Zapomenout otisk prstu?</string>
980+
963981
</resources>

core/res/res/values-de/donottranslate-cldr.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<string name="month_medium_february">Feb.</string>
3232
<string name="month_medium_march">Mär.</string>
3333
<string name="month_medium_april">Apr.</string>
34-
<string name="month_medium_may">Mai.</string>
34+
<string name="month_medium_may">Mai</string>
3535
<string name="month_medium_june">Jun.</string>
3636
<string name="month_medium_july">Jul.</string>
3737
<string name="month_medium_august">Aug.</string>

core/res/res/values-pt-rPT/donottranslate-cldr.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@
5454
<string name="month_shortest_december">D</string>
5555

5656
<string name="day_of_week_long_sunday">domingo</string>
57-
<string name="day_of_week_long_monday">segunda-feira</string>
58-
<string name="day_of_week_long_tuesday">terça-feira</string>
59-
<string name="day_of_week_long_wednesday">quarta-feira</string>
60-
<string name="day_of_week_long_thursday">quinta-feira</string>
61-
<string name="day_of_week_long_friday">sexta-feira</string>
57+
<string name="day_of_week_long_monday">segunda</string>
58+
<string name="day_of_week_long_tuesday">terça</string>
59+
<string name="day_of_week_long_wednesday">quarta</string>
60+
<string name="day_of_week_long_thursday">quinta</string>
61+
<string name="day_of_week_long_friday">sexta</string>
6262
<string name="day_of_week_long_saturday">sábado</string>
6363

6464
<string name="day_of_week_medium_sunday">dom</string>
@@ -144,7 +144,7 @@
144144
<string name="same_month_mdy1_mdy2">%3$s-%8$s de %2$s de %9$s</string>
145145
<string name="same_year_wday1_mdy1_wday2_mdy2">%1$s, %3$s de %2$s - %6$s, %8$s de %7$s de %9$s</string>
146146
<string name="short_format_month">%b</string>
147-
<string name="full_wday_month_day_no_year">EEE, d \'de\' MMMM</string>
147+
<string name="full_wday_month_day_no_year">EEEE, d \'de\' MMMM</string>
148148
<string name="abbrev_wday_month_day_no_year">E, d MMM</string>
149149
<string name="abbrev_wday_month_day_year">EEE, d \'de\' MMM \'de\' yyyy</string>
150150
</resources>

core/res/res/values-pt/donottranslate-cldr.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@
5454
<string name="month_shortest_december">D</string>
5555

5656
<string name="day_of_week_long_sunday">domingo</string>
57-
<string name="day_of_week_long_monday">segunda-feira</string>
58-
<string name="day_of_week_long_tuesday">terça-feira</string>
59-
<string name="day_of_week_long_wednesday">quarta-feira</string>
60-
<string name="day_of_week_long_thursday">quinta-feira</string>
61-
<string name="day_of_week_long_friday">sexta-feira</string>
57+
<string name="day_of_week_long_monday">segunda</string>
58+
<string name="day_of_week_long_tuesday">terça</string>
59+
<string name="day_of_week_long_wednesday">quarta</string>
60+
<string name="day_of_week_long_thursday">quinta</string>
61+
<string name="day_of_week_long_friday">sexta</string>
6262
<string name="day_of_week_long_saturday">sábado</string>
6363

6464
<string name="day_of_week_medium_sunday">dom</string>
@@ -144,7 +144,7 @@
144144
<string name="same_month_mdy1_mdy2">%3$s-%8$s de %2$s de %9$s</string>
145145
<string name="same_year_wday1_mdy1_wday2_mdy2">%1$s, %3$s de %2$s - %6$s, %8$s de %7$s de %9$s</string>
146146
<string name="short_format_month">%b</string>
147-
<string name="full_wday_month_day_no_year">EEE, d \'de\' MMMM</string>
147+
<string name="full_wday_month_day_no_year">EEEE, d \'de\' MMMM</string>
148148
<string name="abbrev_wday_month_day_no_year">E, d MMM</string>
149149
<string name="abbrev_wday_month_day_year">EEE, d \'de\' MMM \'de\' yyyy</string>
150150
</resources>

core/res/res/values-zh-rCN/arrays.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@
2424
<item>39937795</item>
2525
<item>116387224</item>
2626
</integer-array>
27-
<!-- Defines the shutdown options shown in the reboot dialog. -->
28-
<array name="shutdown_reboot_options">
29-
<item>重启模式</item>
30-
<item>刷机模式</item>
31-
<item>引导模式</item>
32-
</array>
3327
<!-- Do not translate. -->
3428
<integer-array name="maps_starting_zoom">
3529
<item>2</item>

core/res/res/values-zh-rCN/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@
136136
<string name="power_off" msgid="4266614107412865048">"关机"</string>
137137
<string name="global_action_screenshot">截屏</string>
138138
<string name="reboot_system">重启</string>
139+
<string name="reboot_reboot">重启</string>
140+
<string name="reboot_recovery">恢复</string>
141+
<string name="reboot_bootloader">引导</string>
139142
<string name="shutdown_progress" msgid="2281079257329981203">"正在关机..."</string>
140143
<string name="reboot_progress">正在重启...</string>
141144
<string name="shutdown_confirm" msgid="649792175242821353">"您的手机会关机。"</string>

0 commit comments

Comments
 (0)