Commit Graph

4201 Commits

Author SHA1 Message Date
Jeff Sharkey
aa5260e40a Load app usage on background thread.
Since stats service loads as needed, this may touch disk, and should
run on background thread.

Change-Id: I1d1d2583250314efa4d3d8f4faa9016c746c29d0
2011-06-14 23:28:03 -07:00
Jeff Sharkey
8e911d7b1a Data usage app labels, protect system, hide empty.
Derive better labels from PackageManager, including for sharedUid
case.  Disable "App settings" button when no ResolveInfo found, and
hide "Restrict" checkbox for system UIDs.  Also hide apps with 0
bytes usage.

Change-Id: I4b0a66f6912c02c56bfcbcb5b46f3ae2ba0df504
2011-06-14 22:45:58 -07:00
Amith Yamasani
5a259aae18 am 80cc0ffa: am e7f7643c: am 6ef6f183: Stability fixes for Settings. Asynchronous callbacks causing NPEs.
* commit '80cc0ffa2b284aee595c45f8f4142f615486f797':
  Stability fixes for Settings. Asynchronous callbacks causing NPEs.
2011-06-14 20:56:45 -07:00
Jeff Sharkey
980385b3f9 Merge "Cycle day editor and other confirmation dialogs." 2011-06-14 16:35:51 -07:00
Jeff Sharkey
4c72ae5e3d Cycle day editor and other confirmation dialogs.
Create dialog to edit "cycle day" when data usage resets.  Also added
dialogs to confirm enabling limit and restricting an application.

Change-Id: I1e08b17fabd1fcfc2f260807a61435d0ff1a8627
2011-06-14 16:32:06 -07:00
Amith Yamasani
80cc0ffa2b am e7f7643c: am 6ef6f183: Stability fixes for Settings. Asynchronous callbacks causing NPEs.
* commit 'e7f7643c485ed6926bc354ca28628d5179019b50':
  Stability fixes for Settings. Asynchronous callbacks causing NPEs.
2011-06-14 15:44:23 -07:00
Amith Yamasani
e7f7643c48 am 6ef6f183: Stability fixes for Settings. Asynchronous callbacks causing NPEs.
* commit '6ef6f183e4d8be0828d1a969178a6e315d8a0ea7':
  Stability fixes for Settings. Asynchronous callbacks causing NPEs.
2011-06-14 15:41:00 -07:00
Amith Yamasani
6ef6f183e4 Stability fixes for Settings. Asynchronous callbacks causing NPEs.
Bug: 4598717
Change-Id: I7f1c5bf6e079bb36301e81085096c5b82615814b
2011-06-14 15:19:14 -07:00
Narayan Kamath
62f153dbde Fix a bug in the TTS settings.
Non system engines that are explicitly enabled should
show up in the "default engine" dropdown list.

bug:4608012

Change-Id: Ic805ef6199319e44037a84ba43fc549de91d291d
2011-06-14 16:40:00 +01:00
Jeff Sharkey
94a9095eac Read network policy earlier, fix ugly scrollbar.
Read policy before creating options menu, so we correctly populate
checkboxes.  Also clean up Preference views so we don't crash when
returning from app details.

Change-Id: I52c38a3016ea669e27b325bfb6ae1620d2a5ca53
2011-06-13 22:31:09 -07:00
Jason parks
00046d6e17 Get encryption working for phones.
I've removed the "special" keyboard from the phone
layouts for now.

Change-Id: I4b18279dafb18ba7cebacfad1b7167e34a7203b4
2011-06-13 17:39:25 -05:00
Mike Lockwood
6fc9c2fd37 am c938a02b: am c1db1192: am d2a6f28f: Disable option to format SD card for secondary external storage
* commit 'c938a02bc69434840340dcebb8ac16b6dcfb8b60':
  Disable option to format SD card for secondary external storage
2011-06-13 04:46:53 -07:00
Mike Lockwood
c938a02bc6 am c1db1192: am d2a6f28f: Disable option to format SD card for secondary external storage
* commit 'c1db119250fd481341c095f47a62adb14ad09484':
  Disable option to format SD card for secondary external storage
2011-06-13 04:36:26 -07:00
Mike Lockwood
c1db119250 am d2a6f28f: Disable option to format SD card for secondary external storage
* commit 'd2a6f28fa7ba8189d2a1987129db27fd840fac0f':
  Disable option to format SD card for secondary external storage
2011-06-13 04:25:51 -07:00
Jeff Sharkey
4dfa66001d First pass at detailed app data usage, policy.
Fragment to show application data usage details, including chart with
inspection ranges.  Button that invokes ACTION_MANAGE_NETWORK_USAGE
towards application, and UID-specific policy controls.  Fragment is
launched when clicking list items from data usage summary page.

Change-Id: Ie1564aa8af98e1a7083817a997059a5a7b1caa50
2011-06-13 00:42:22 -07:00
Jeff Sharkey
05cc0cc4a6 Modifier to combine/split mobile network policy.
Create NetworkPolicyModifier which knows about which mobile network
policies can coexist.  Settings UI uses this modifier to drive UI and
persist policies.

Change-Id: Ib3f3841b0a74c14eefb99209dd644a2e7b7e525d
2011-06-12 23:11:40 -07:00
Mike Lockwood
d2a6f28fa7 Disable option to format SD card for secondary external storage
This is a temporary workaround for an interoperability problem with MTP

Change-Id: Iaf63ea0ac76e12ffd635765785da027cab0fcb9a
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-06-11 18:11:03 -04:00
Jeff Sharkey
8a50364a71 Iterating on data usage; tabs, scrolling, cycles.
Added ActionBar items to control complexity of data surfaced; checked
state causes tabs to be shown/hidden for "Mobile", "2G-3G", "4G", and
"Wi-Fi" network templates.  Loading historical stats and policy from
system services based on selected tab.

Change entire body under tabs to scroll, treating network options and
chart as ListView headers.  Teach chart sweep to disable intercept to
play with ListView, and draw sweep disabled as dashed line.  Hijacking
Preference views for toggles to offer consistency.  No policy updates
are persisted yet.

Based on available historical network stats and policy cycle reset day,
build list of user-selectable cycles.  Wired up chart to display cycle
data and reset inspection region to last week of available data.

Change-Id: Ia561578276fa23908b745fbc06a6ef828d9ccc2e
2011-06-10 16:17:21 -07:00
Freeman Ng
86432504d3 am 945aac2e: am fb096074: am 148222fd: Merge "remove disabling of Back/Dismiss button for 10" mode" into honeycomb-mr2
* commit '945aac2e299e8a290c6ec3e5fbad84b7c28366ce':
  remove disabling of Back/Dismiss button for 10" mode
2011-06-10 14:08:35 -07:00
Freeman Ng
10d41eca7b am a35506c7: am f2a9bd33: am 0a67cdb7: Merge "add "behind" screen orientation to prevent spurious flipping" into honeycomb-mr2
* commit 'a35506c7fb32906678fe541914f420d19ff17394':
  add "behind" screen orientation to prevent spurious flipping
2011-06-10 14:08:33 -07:00
Dianne Hackborn
8511809928 am 8d7ecabc: am 60d8b3f8: am 55c86911: Mark access to private resources now that aapt enforces this.
* commit '8d7ecabc6893716d78ede40aedd42683a7627f3c':
  Mark access to private resources now that aapt enforces this.
2011-06-10 12:51:28 -07:00
Narayan Kamath
3dbba08455 Clean up some of the TTS settings code.
(a) No longer use a hardcoded default.
(b) With this change, the system engine with the highest
declared priority becomes the default.

Change-Id: I20c6036b855f008b6a83f1dac81aefc07e3ca7f3
2011-06-10 16:51:50 +01:00
Freeman Ng
945aac2e29 am fb096074: am 148222fd: Merge "remove disabling of Back/Dismiss button for 10" mode" into honeycomb-mr2
* commit 'fb09607469a5cb42c833725d121e517af5daca72':
  remove disabling of Back/Dismiss button for 10" mode
2011-06-10 07:46:40 -07:00
Freeman Ng
a35506c7fb am f2a9bd33: am 0a67cdb7: Merge "add "behind" screen orientation to prevent spurious flipping" into honeycomb-mr2
* commit 'f2a9bd337b495b65f9e6708117835b2ff986d5af':
  add "behind" screen orientation to prevent spurious flipping
2011-06-10 07:46:37 -07:00
Justin Ho
6807ecbfad am 9209d20a: am ea8f103f: am 7825cb29: Fixing remaining SetupWizard backgrounds for Flyer Bug: 4523403
* commit '9209d20adc0eea6b5fec9de0f1ca21acf5cec92a':
  Fixing remaining SetupWizard backgrounds for Flyer Bug: 4523403
2011-06-09 18:55:37 -07:00
Freeman Ng
fb09607469 am 148222fd: Merge "remove disabling of Back/Dismiss button for 10" mode" into honeycomb-mr2
* commit '148222fd43499a578c16c0bdf6ae9336255facd7':
  remove disabling of Back/Dismiss button for 10" mode
2011-06-09 18:22:02 -07:00
Freeman Ng
f2a9bd337b am 0a67cdb7: Merge "add "behind" screen orientation to prevent spurious flipping" into honeycomb-mr2
* commit '0a67cdb7e1d853ae0431c36e95930bbf355eca52':
  add "behind" screen orientation to prevent spurious flipping
2011-06-09 18:22:00 -07:00
Freeman Ng
148222fd43 Merge "remove disabling of Back/Dismiss button for 10" mode" into honeycomb-mr2 2011-06-09 18:20:13 -07:00
Freeman Ng
0a67cdb7e1 Merge "add "behind" screen orientation to prevent spurious flipping" into honeycomb-mr2 2011-06-09 18:20:04 -07:00
Dianne Hackborn
8d7ecabc68 am 60d8b3f8: am 55c86911: Mark access to private resources now that aapt enforces this.
* commit '60d8b3f875ae5630330feacc450169223e605166':
  Mark access to private resources now that aapt enforces this.
2011-06-09 16:09:00 -07:00
Dianne Hackborn
60d8b3f875 am 55c86911: Mark access to private resources now that aapt enforces this.
* commit '55c869119aabc27d3b6c6b4aab0e69faf57f1250':
  Mark access to private resources now that aapt enforces this.
2011-06-09 16:04:44 -07:00
Freeman Ng
03708e030a remove disabling of Back/Dismiss button for 10" mode
bug: 4580049
Change-Id: Ifee699a3ff42282a30c3c7c61b6e7799ac902700
2011-06-09 16:00:34 -07:00
Dianne Hackborn
55c869119a Mark access to private resources now that aapt enforces this.
Change-Id: Ifea6854d8295294011b5253640198a10e1b5c1e1
2011-06-09 15:33:56 -07:00
Jean-Baptiste Queru
9278404512 Reconcile with gingerbread-release
Change-Id: I59e35b5788a1c7855a97bd4577d0c44f066c0bd1
2011-06-09 15:01:35 -07:00
Freeman Ng
9df47ed19e add "behind" screen orientation to prevent spurious flipping
Calling setRequestedOrientation() before setContentView() used to
start activities off in the desired orientation even if the device
was in the opposite orientation, but now, there's a kind of lag
where they display briefly in the device orientation before
flipping to the request one. This change eliminates this effect.

bug: 4581374
Change-Id: I807b0a0a8a247ec8e51b85707afcbd9f75ed9956
2011-06-09 12:00:35 -07:00
Jeff Sharkey
fc8873a208 Merge "Checkpoint of data usage UI, graphs and lists." 2011-06-09 11:22:14 -07:00
Joe Onorato
8682f3b74b Merge "Remove this setting that never really got finished." 2011-06-09 09:44:56 -07:00
Joe Onorato
aa0e48f939 Remove this setting that never really got finished.
Change-Id: Id52d7e4f735a2a289533fc9d8461f70218601764
2011-06-09 09:44:30 -07:00
Jeff Sharkey
ab2d8d3a38 Checkpoint of data usage UI, graphs and lists.
Chart of network usage over time, with draggable "sweep" bars for
inspection region and warning/limits.  Talks with NetworkStatsService
for live data, and updates list of application usage as inspection
region changes.

Change-Id: I2a406e6776daf7d74143c07ec683c10fe711c277
2011-06-09 09:26:30 -07:00
Justin Ho
9209d20adc am ea8f103f: am 7825cb29: Fixing remaining SetupWizard backgrounds for Flyer Bug: 4523403
* commit 'ea8f103f8310c869f84d8ad48a167e8e0b63923b':
  Fixing remaining SetupWizard backgrounds for Flyer Bug: 4523403
2011-06-08 23:33:05 -07:00
Justin Ho
ea8f103f83 am 7825cb29: Fixing remaining SetupWizard backgrounds for Flyer Bug: 4523403
* commit '7825cb295c5f08f84282b4bbaeb03da0a536a826':
  Fixing remaining SetupWizard backgrounds for Flyer Bug: 4523403
2011-06-08 23:30:25 -07:00
Justin Ho
7825cb295c Fixing remaining SetupWizard backgrounds for Flyer
Bug: 4523403

Change-Id: I568747b5b856f0418caaf81664dcfa5b8fdb2481
2011-06-08 23:13:05 -07:00
Irfan Sheriff
32232fd9f2 am 4a1b8898: am f448c32d: Merge "Fix UI settings display issues" into honeycomb-LTE
* commit '4a1b8898c76a98f14bbc1690f172ec0e6171fab2':
  Fix UI settings display issues
2011-06-08 17:32:04 -07:00
Jaikumar Ganesh
32c05cae80 am 3f3f390b: am a6daa21d: (-s ours) am 015788ca: Merge "Import translations for cherry-picked Bluetooth changes." into gingerbread
* commit '3f3f390b87113444c41b38b145f9a6ce0984d31d':
  Import translations for cherry-picked Bluetooth changes.
2011-06-08 14:46:27 -07:00
Freeman Ng
1bc2f0c995 Merge "fix breakage caused by recent automerge" 2011-06-08 14:35:18 -07:00
Freeman Ng
4412e88e83 fix breakage caused by recent automerge
Change-Id: Ifb4c8428f5ebc728146da848cb0319626854c667
2011-06-08 14:34:23 -07:00
Freeman Ng
3a5764a4bf resolved conflicts for merge of ab48c22e to master
Change-Id: Ia69df4acb1eed7d728e310e4fde3f75a520377a0
2011-06-08 13:33:42 -07:00
satok
2e2eb63ff6 Merge "Use getDisplayName for the name of InputMethodSubtype" 2011-06-08 04:09:14 -07:00
satok
f0ae329740 Use getDisplayName for the name of InputMethodSubtype
Change-Id: I9ad7790bc36ff2950e0238cae8ce3b785bb8eaa1
2011-06-08 18:44:52 +09:00
Freeman Ng
0a24ca3b18 am 6beb924e: am 351367bb: am f368d4dc: Merge "add options to lock suw wifi setup orientation into portrait or landscape" into honeycomb-mr2
* commit '6beb924ec2b147d259cd3438f56cd88691fc57e5':
  add options to lock suw wifi setup orientation into portrait or landscape
2011-06-07 18:20:19 -07:00