Commit Graph

242 Commits

Author SHA1 Message Date
Hung-ying Tyan
d8858c3ee1 Improve UX of adding credential...
with more toast messages and fix dialog handling when needs another
dialog to initialize or enable the credential storage.
2009-07-23 06:41:15 +08:00
Android (Google) Code Review
e0b5f33c68 Merge change 7913 into donut
* changes:
  Reorganize message posting when updating sizes and resources. Rather than posting a message for each package, post a message for  a set of packages(8) so that we don't end up posting too many messages and making the UI non-responsive by keeping the Handler too busy. We just pass the loaded info as a map in the message object. Changes to back ground threads that compute sizes and load resources.
2009-07-21 16:54:12 -07:00
Android (Google) Code Review
53a1e44544 Merge change 8077 into donut
* changes:
  Implement the Back button handler to save a VPN.
2009-07-21 15:03:43 -07:00
Android (Google) Code Review
ef2c5ac2e4 Merge change 8071 into donut
* changes:
  Disable suggestion for certain types of text boxes.
2009-07-21 15:03:31 -07:00
Hung-ying Tyan
19dc9e690f Implement the Back button handler to save a VPN. 2009-07-22 05:47:33 +08:00
Hung-ying Tyan
bfaa90725d Disable suggestion for certain types of text boxes.
+ Disable suggestion for password, server name and domain suffices.
+ Use a shorter string to indicate that a secret is set.
2009-07-22 05:13:51 +08:00
Android (Google) Code Review
8d4faa9ec3 Merge change 7977 into donut
* changes:
  Add a way to override the display names for locales in the locale picker.
2009-07-21 10:42:35 -07:00
Hung-ying Tyan
241610e986 Add password error hint when adding new cert. 2009-07-21 09:45:08 +08:00
Eric Fischer
7ca226b15b Add a way to override the display names for locales in the locale picker.
In particular, show (the Chinese for) "Chinese (Simplified)" and "Chinese
(Traditional)" instead of "Chinese (China)" and "Chinese (Taiwan)".
2009-07-20 18:16:26 -07:00
Android (Google) Code Review
a7fe59d05d Merge change 7974 into donut
* changes:
  Removing translated text for compatibility option, which has been moved to SpareParts
2009-07-20 17:59:56 -07:00
Mitsuru Oshima
1f1c67aae5 Removing translated text for compatibility option, which has been moved to SpareParts 2009-07-20 17:50:04 -07:00
Amith Yamasani
8fb0ec36ec UI improvements for "Battery use" app.
Change the controls UI to display a suggestion.
Bluetooth AT command tracking (not enabled yet).
2009-07-20 17:43:13 -07:00
Mitsuru Oshima
5c20034b7f moving compatibility mode option to spare parts 2009-07-20 15:52:29 -07:00
Suchi Amalapurapu
b285593caf Reorganize message posting when updating sizes and resources. Rather than posting
a message for each package, post a message for  a set of packages(8) so that we don't
end up posting too many messages and making the UI non-responsive by keeping
the Handler too busy. We just pass the loaded info as a map in the message object.
Changes to back ground threads that compute sizes and load resources.

Add a new AppInfoCache class with some additional methods to load and persist cache.
As of now this just uses a raw file to cache application sizes and labels. We
could have gotten away with a simple map object but for clarity and future enhancements
just reorganized everything into a class. Load the cache in onCreate and persist
in onDestroy rather than start and stop. Using the cache we get < 1sec load times.
Peristing the cache has negligible performance effects. Remove multiple references to
cache and just use one object all over the code.

Rework AppInfo class and remove some confusing initializations. Also move the formatting
sizes part to back ground threads rather than in the constructor of AppInfo projects.
Formatting the sizes takes a lot of time and there is no point in blocking the UI thread
with this operation.

Changes to Adapter to use the newly created cache system. Define new comparator
for comparing application labels when sorting lists rather than using the one defined in
ApplicationInfo class which was loading the labels again in compare method. This was redundant
and since we cache these labels anyway, just use the cached labels instead. Rename and add
new methods for some of the new handler messages that send updates to a list of objects now.
Changes to removeFromList method and just remove entry from lists and cache linearly.

Also fix a bug in the adapter class where we reinit the list everytime the activity gets
restarted. Add a check here to invoke notifyDataSetChanged if underlying data changes.

Add some debug statements to record time.
2009-07-20 11:48:17 -07:00
Hung-ying Tyan
ba127f57ae Improve VpnSettings start-up time.
* Changes
  + add orientation and keyboard config change in the manifest file.
  + remove state saving code
  + improve status checking time by doing it in one server connection.
2009-07-18 10:33:24 +08:00
Jean-Michel Trivi
628431de91 Fix bug 1956707 in which setting the default language has no effect.
Use the current Locale upon initialization of the TTS engine.
Retrieve the default engine value from the TextToSpeech.Engine class
instead of a hard-coded value in TextToSpeechSettings.
2009-07-17 16:52:54 -07:00
Android (Google) Code Review
6b1b36a832 Merge change 7687 into donut
* changes:
  Add UI to handle PKCS12 cert.
2009-07-17 10:24:27 -07:00
Hung-ying Tyan
38a44f2445 Add UI to handle PKCS12 cert. 2009-07-17 20:58:06 +08:00
Romain Guy
f90682f4fb Give an icon to Settings shortcuts. 2009-07-16 15:06:44 -07:00
Hung-ying Tyan
c3eaaad17e Fix "use secure credential" checkbox in Settings.
Uncheck the checkbox if the user cancels the password-entering dialog.
2009-07-16 23:19:38 +08:00
Mike Lockwood
599221c7bb wifi: Update the AccessPointState network ID after saving configuration.
If there are more than 10 open access points, the network ID may have changed
after the configuration is saved.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-15 11:57:25 -04:00
Android (Google) Code Review
bc48d181fa Merge change 7051 into donut
* changes:
  Use appropriate input types for edit fields in Apn settings.
2009-07-13 18:53:06 -07:00
Amith Yamasani
058c602bec Use appropriate input types for edit fields in Apn settings.
Turn off prediction and use proper input types.
2009-07-13 18:48:13 -07:00
Android (Google) Code Review
178dc98a7e Merge change 6985 into donut
* changes:
  Import new translations
2009-07-13 16:37:45 -07:00
Eric Fischer
9046c92ab0 Import new translations 2009-07-13 15:49:57 -07:00
Amith Yamasani
5c30845cf3 Fix #1930767 : "Share with Google" not working on orientation change.
Discard the dialog after onSaveInstanceState. And check the different
onCreate scenarios before popping up the dialog.
2009-07-13 15:09:46 -07:00
Hung-ying Tyan
fe0b0178cb Fix VpnSettings.StatusChecker.start()
to avoid multiple threads checking status at the same time.
2009-07-13 17:23:32 +08:00
Hung-ying Tyan
1ddccd07f7 Fix dialog handling.
* Changes
  + VpnSettings:
    + Add reconnect dialog to showDialog() framework for handling screen
      rotation.
    + Dismiss other alert dialogs in onDestroy()
    + Remove onPrepareDialog() from VpnSettings.
    + Remove updateConnectDialog() from VpnProfileActor.
    + Add authentication error dialog.
    + Add unknown server dialog.
  + SecuritySettings:
    + Make cstor dialogs cancelable.
    + Add cancelable listener.
  Patch Set 6:
  + VpnSettings:
    + Disable preferences when connecting/disconnecting.
    + Fix state broadcast when binding a VpnService goes wrong.
2009-07-13 12:14:32 +08:00
Android (Google) Code Review
a5cead2cf7 Merge change 6705 into donut
* changes:
  Add translated time zone picker lists for several more languages.
2009-07-10 10:03:32 -07:00
Eric Fischer
8ab37157dd Add translated time zone picker lists for several more languages. 2009-07-09 17:07:20 -07:00
Mike Lockwood
6dd27613b5 wifi: use new WifiManager.startScanActive() method to trigger scans.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-09 16:50:59 -04:00
Android (Google) Code Review
52844864a7 Merge change 6630 into donut
* changes:
  Remove "no" locale strings.xml file that duplicates "nb" locale file.
2009-07-09 11:55:11 -07:00
Eric Fischer
e6f21e6691 Remove "no" locale strings.xml file that duplicates "nb" locale file. 2009-07-09 11:03:02 -07:00
Hung-ying Tyan
e02f206e11 Focus the password box when username is saved. 2009-07-09 18:39:04 +08:00
Hung-ying Tyan
66959341a6 Fix behavior of cancelling the name cred. dialog.
The code used to trying to store the credential even when the user
cancels the dialog. Fixed in this CL.
2009-07-09 11:51:06 +08:00
Android (Google) Code Review
7063f37102 Merge change 6467 into donut
* changes:
  Tighten factory data reset text. Bug 1966926.
2009-07-08 12:05:24 -07:00
Roy West
1a728bdaed Tighten factory data reset text. Bug 1966926. 2009-07-08 08:03:35 -07:00
Hung-ying Tyan
386668b792 Fix saving secrets to keystore from vpn settings. 2009-07-08 18:00:03 +08:00
Android (Google) Code Review
2368d0455c Merge change 6440 into donut
* changes:
  Trigger backup of locale change.
2009-07-07 19:00:13 -07:00
Android (Google) Code Review
f96fb705f5 Merge change 6432 into donut
* changes:
  In the TTS settings: rely on the default locale rather than default values stored in TextToSpeech.Engine to initialize the default TTS country and variant.
2009-07-07 17:44:32 -07:00
Jean-Michel Trivi
00d4fbfc42 In the TTS settings: rely on the default locale rather than default
values stored in TextToSpeech.Engine to initialize the default TTS
country and variant.
2009-07-07 17:08:32 -07:00
Amith Yamasani
eb72bcd6d0 Fix vibrate and silent mode toggle dependency. 2009-07-07 14:42:50 -07:00
Amith Yamasani
c155acc11c Trigger backup of locale change. 2009-07-07 14:38:41 -07:00
Android (Google) Code Review
c4a3bf94cc Merge change 6345 into donut
* changes:
  Add header 'blob://' in front of the cert/key names in wpa_supplicant.conf.
2009-07-07 07:07:17 -07:00
Chung-yih Wang
242096832b Add header 'blob://' in front of the cert/key names in wpa_supplicant.conf.
1. This addition is from CL 6082 change in wpa_supplicant.
2. Fix the empty password pop-up for EAP.
2009-07-07 21:58:13 +08:00
Android (Google) Code Review
423ab2eb9d Merge change 6328 into donut
* changes:
  String fixes for the credential storage and vpn settings.
2009-07-06 20:44:44 -07:00
Hung-ying Tyan
33ababd1bd String fixes for the credential storage and vpn settings.
* Changes
  + Shorten the messages for both set-password and enter-password dialogs
    when other activities access the credential storage.
  Patch Set 2:
  + Fix the capital issue in the vpn error messages.
    + Add separate strings for terms used in the error messages.
    + Modify related src files that use those terms.
2009-07-07 11:37:54 +08:00
Android (Google) Code Review
879f7bcf41 Merge change 6272 into donut
* changes:
  Fix bug 1946195 by making use of the current Locale to set a default value in the language pref list (bug was no selection in the default language list). Fix half of bug 1956707 where speech rate value as read from the settings was translated to a ratio, which applied an improper speech rate on the TTS engine (bug was setting a default rate makes the TTS demo unintelligible). Moved logic to set the default value in the language pref list in a separate private method to improve readability. Changed default rate values so that normal is 1x and the fastest is 2x.
2009-07-06 17:03:03 -07:00
Jean-Michel Trivi
44fbbea071 Fix bug 1946195 by making use of the current Locale to set a default value
in the language pref list (bug was no selection in the default language list).
Fix half of bug 1956707 where speech rate value as read from the settings
was translated to a ratio, which applied an improper speech rate on the
TTS engine (bug was setting a default rate makes the TTS demo unintelligible).
Moved logic to set the default value in the language pref list in a separate
private method to improve readability.
Changed default rate values so that normal is 1x and the fastest is 2x.
2009-07-06 14:16:17 -07:00
Hung-ying Tyan
0a59b50014 Integrate VPN with new keystore and misc fixes.
* Changes
  + Pass intent to keystore when needed and hooks to resume from it.
  + Generate random, unique ID for profile instead of base64 from its
    name.
  + Add VPN to "Wirless controls" description.
  + Add credential storage to "Security & location" description.
  + More hints to set password and unlock dialogs in credential storage
    settings for actions that come from other processes.
  + Sort VPN profiles according to the names.
  + Replace Keystore with CertTool in L2tpIpsecEditor
2009-07-06 18:47:47 +08:00