2538 Commits

Author SHA1 Message Date
Amith Yamasani
655d0e2029 Single-user restrictions
Introduces a new "blocked" state for each package. This is used to temporarily
disable an app via Settings->Restrictions.

PIN creation and challenge activities for use by Settings and other apps. PIN
is stored by the User Manager and it manages the interval for retry attempts
across reboots.

Change-Id: I4915329d1f72399bbcaf93a9ca9c0d2e69d098dd
2013-06-25 16:03:55 -07:00
Dianne Hackborn
8c84109b9f Use FastPrintWriter... everywhere.
One problem this turned up is, because FastPrintWriter does
its own buffering, a lot of code that used to use PrintWriter
would fail -- if it pointed to a StringWriter, there was no
buffering, so it could just immediately get the result.  Now
you need to first flush the FastPrintWriter.

Also added some new constructors to specify the size of buffer
that FastPrintWriter should use.

Change-Id: If48cd28d7be0b6b3278bbb69a8357e6ce88cf54a
2013-06-24 18:16:48 -07:00
Dianne Hackborn
e5a9c92377 Improve FastPrintWriter.
Change-Id: I23acb8d4c3db1f2f8e2f8003296f8c253e2ae7d2
2013-06-24 15:54:52 -07:00
Dianne Hackborn
142dd91583 Merge "Faster PrintWriter." 2013-06-21 23:49:08 +00:00
Dianne Hackborn
db4e33f1f1 Faster PrintWriter.
Change-Id: I4e1ae7e0357214deb7e19ae65f8701b69b347c6e
2013-06-21 16:00:30 -07:00
Michael Wright
76936eb96a Paint current points a different color in PointerLocation
Change-Id: I05be4ce1886f944cd948ded4d9ace08d70cdb00e
2013-06-21 15:18:06 -07:00
Jeff Sharkey
1a6a620e45 Merge "Add generic sugar for ArrayMap and ArraySet." 2013-06-18 16:42:45 +00:00
Jeff Sharkey
43f4263a85 Add generic sugar for ArrayMap and ArraySet.
Change-Id: Id749bd41f2e53664c00a0199c14babd2b63087fb
2013-06-18 09:29:56 -07:00
Adam Powell
32fa567b52 Don't flip action bar main content and tabs
Nobody ever used or liked this "feature" anyway. Onward and upward!

Change-Id: Ica65c413d13ddb998992c7d8761ad5134f75e4fd
2013-06-17 14:16:02 -07:00
Dianne Hackborn
df1c0bf774 Add scheme specific part to IntentFilter.
Change-Id: I063d086cdc742800b8e31ddf2942f2e9230e2785
2013-06-12 18:08:17 -07:00
Michael Wright
2f1cd7e68b Fix possible NPE in PointerLocationView
Change-Id: I36577d6882db898ff4d4d9090454cdf71a440fd5
2013-06-12 12:11:17 -07:00
Dianne Hackborn
cbfd23ee6f Add new API to retrieve a dumpsys of a single package.
Adds a platform API, and pm command.  Fixes some issues with
dumping per-package data in package manager, makes battery
stats able to dump per-package state.

Change-Id: I76ee6d059f0ba17f7a7061886792b1b716d46d2d
2013-06-11 14:26:53 -07:00
Jeff Sharkey
7a1c3fce47 Accumulate network statistics based on deltas.
Network stats are now read out of the kernel in one sweep, instead of
reading per-UID.  We now accumulate the delta traffic between each
stats snapshot using the well-tested SamplingCounter pattern.

Since Wi-Fi and mobile traffic have different costs, track each
separately.  Avoids counting misc interfaces like loopback and
ethernet under total.

Bug: 5543387
Change-Id: I642004dc530113c27ef79f2abbae51d8af30117f
2013-06-06 14:35:34 -07:00
Jeff Sharkey
84f3c5689c am ffbbe945: am d293d229: Merge "Create missing Uids when recording network stats." into jb-mr2-dev
* commit 'ffbbe945066bf0b295ff65edfb1c49f7a4311718':
  Create missing Uids when recording network stats.
2013-06-04 17:00:19 -07:00
Jeff Sharkey
ffbbe94506 am d293d229: Merge "Create missing Uids when recording network stats." into jb-mr2-dev
* commit 'd293d229493a2d661ebb1776a0915297927a5ca6':
  Create missing Uids when recording network stats.
2013-06-04 16:57:51 -07:00
Jeff Sharkey
51797ed706 Create missing Uids when recording network stats.
Bug: 5543387
Change-Id: I138c8d2f84e6fd737f2f6ef0945e75ca31256e3d
2013-06-04 14:09:31 -07:00
Adam Powell
3f7a6935d3 Merge "Fix a bug resolving the correct icon/logo in action bars" 2013-06-01 00:07:05 +00:00
Adam Powell
04fe6ebb9f Fix a bug resolving the correct icon/logo in action bars
Remove some abstraction-breaking magic in ActionBarView and replace it
with proper resolution of the icon/logo when creating a window. The
old implementation relied on the ActionBarView's context being an
Activity.

Bug 9171554

Change-Id: Idbbb1942622195dcb55e8119f2d64287b07bb509
2013-05-31 15:00:24 -07:00
Jeff Brown
718aefb6ff am 6474d840: am 636af7a1: Merge "Rename CALLBACK_FLAG_ACTIVE_SCAN for clarity." into jb-mr2-dev
* commit '6474d8407cb1551608fc403861e11cf514f8558e':
  Rename CALLBACK_FLAG_ACTIVE_SCAN for clarity.
2013-05-30 18:02:31 -07:00
Jeff Brown
6474d8407c am 636af7a1: Merge "Rename CALLBACK_FLAG_ACTIVE_SCAN for clarity." into jb-mr2-dev
* commit '636af7a1cb90bb2f422bc85356d30f5b4e9342e6':
  Rename CALLBACK_FLAG_ACTIVE_SCAN for clarity.
2013-05-30 18:00:08 -07:00
Jeff Brown
14507e257a Rename CALLBACK_FLAG_ACTIVE_SCAN for clarity.
Bug: 9210033
Change-Id: I973c03b3a37e12af72a27c46d7da7fb59a30b606
2013-05-30 14:44:18 -07:00
Adam Powell
087d2b2df7 Merge "Optimizations for ResolverActivity" 2013-05-30 01:43:32 +00:00
Adam Powell
0256c6f8d3 Optimizations for ResolverActivity
Load app icons using AsyncTask instead of during list item binding.

Make sorting resolved components by display name case insensitive.

Change-Id: I8e69781ed021035b9f0dac349791b3d8a674cf60
2013-05-29 18:14:08 -07:00
Svetoslav
6196cfdb52 Merge "Remove Auto-rotate screen setting if a required feature is missing." 2013-05-29 22:08:56 +00:00
Michael Wright
4759c35e42 am bf0d561c: Merge "Pipe through bounding box information (DO NOT MERGE)" into jb-mr2-dev
* commit 'bf0d561c73abd97a1a3794e9aa62b21911279a12':
  Pipe through bounding box information (DO NOT MERGE)
2013-05-24 13:53:47 -07:00
Michael Wright
5e025eb1dc Pipe through bounding box information (DO NOT MERGE)
Bug: 9110236
Change-Id: I7aefe6589fbaf92e5c71a0ba5425623578bafe95
2013-05-23 15:06:47 -07:00
Michael Wright
86172f6252 Pipe through bounding box information
Change-Id: Ic09f2f8f18e21f9582e4ed10aad3b7ec1cc41ddc
2013-05-20 16:25:14 -07:00
Dianne Hackborn
fee8cd7582 am e8c9b39e: am 83d6df27: Merge "Help on issue #8863955: Google Services keeping phone awake..." into jb-mr2-dev
* commit 'e8c9b39ec976029d3571f8904a3db21d6514ecf6':
  Help on issue #8863955: Google Services keeping phone awake...
2013-05-10 03:06:35 -07:00
Dianne Hackborn
e8c9b39ec9 am 83d6df27: Merge "Help on issue #8863955: Google Services keeping phone awake..." into jb-mr2-dev
* commit '83d6df27d40aed18a7dc42c9320f83656cc81ea0':
  Help on issue #8863955: Google Services keeping phone awake...
2013-05-09 23:40:28 -07:00
Jeff Brown
89efc6e6c1 am da58f92b: am b2f6842d: Merge "Add an API to allow a callback to request active scans." into jb-mr2-dev
* commit 'da58f92bfaf875074656a55103c819e6f4dda341':
  Add an API to allow a callback to request active scans.
2013-05-09 17:09:24 -07:00
Dianne Hackborn
83d6df27d4 Merge "Help on issue #8863955: Google Services keeping phone awake..." into jb-mr2-dev 2013-05-09 23:47:22 +00:00
Jeff Brown
da58f92bfa am b2f6842d: Merge "Add an API to allow a callback to request active scans." into jb-mr2-dev
* commit 'b2f6842d5528345e02a91218fbe58c3e0ca8bafb':
  Add an API to allow a callback to request active scans.
2013-05-09 16:23:43 -07:00
Dianne Hackborn
af17baa271 Help on issue #8863955: Google Services keeping phone awake...
...because of Google Play Services

Raise the limit on the number of wake locks we track per uid.

Get rid of the separate limit for the system process, since it
now isn't any larger than the new limit for regular processes.

Change-Id: Ic10c81cad7d4ad4aabf1f53f78191a0973a1d784
2013-05-09 15:27:47 -07:00
Jeff Brown
66f3b39ec4 Add an API to allow a callback to request active scans.
This API is needed by the support library media router to ensure
that wifi display routes can be discovered while the route
chooser dialog is open.

Bug: 8175766
Change-Id: I3773773d93384aa4a3c009e71a5444ee8ce37caf
2013-05-09 14:44:08 -07:00
Romain Guy
ed96ea2a07 Merge "Add the ability to disable OpenGL drivers preloading Bug #8888857" 2013-05-09 18:28:10 +00:00
Romain Guy
c5e3638c06 Add the ability to disable OpenGL drivers preloading
Bug #8888857

Set ro.zygote.disable_gl_preload to true in the build properties.

Change-Id: Idd93ebb4bbd2861ce60af03ed14819a5cfa70dec
2013-05-09 11:08:17 -07:00
Romain Guy
dad7bd706a Merge "Load OpenGL drivers libraries in Zygote" 2013-05-09 01:29:12 +00:00
Romain Guy
74c691221b Load OpenGL drivers libraries in Zygote
This does not initialize EGL/GL.

Change-Id: I951ae0b7defee86eb06821ea807af3e829f4a73c
2013-05-08 18:14:37 -07:00
Nick Kralevich
dbcf2d7482 PowerManagerService: Don't reboot directly.
Instead of calling the reboot system call ourselves, send
a message to init asking it to reboot the system. Init is in
a better position to make sure the system is cleanly shutdown.

Get rid of CAP_SYS_BOOT from system_server.

Bug: 8646621
Change-Id: I200722412844ad8d99e35a442021c6263c3ebc05
2013-05-08 13:42:10 -07:00
Adam Powell
ef5352c3a1 am f581b533: am 2b662e8e: Merge "Fix a NPE in MenuItemImpl when setting null ActionProvider" into jb-mr2-dev
* commit 'f581b533cf0ff774405bae057f5883fe9768c6a8':
  Fix a NPE in MenuItemImpl when setting null ActionProvider
2013-05-06 12:20:14 -07:00
Adam Powell
f581b533cf am 2b662e8e: Merge "Fix a NPE in MenuItemImpl when setting null ActionProvider" into jb-mr2-dev
* commit '2b662e8ef96c645e38a3debc29afa7454664f6cb':
  Fix a NPE in MenuItemImpl when setting null ActionProvider
2013-05-06 08:44:33 -07:00
Kenny Root
2b21dd0bbe resolved conflicts for merge of ee0a5faf to master
Change-Id: Iba0ad9e665ad98379761995cb7c32415bcf50e48
2013-05-03 14:50:44 -07:00
Adam Powell
2b662e8ef9 Merge "Fix a NPE in MenuItemImpl when setting null ActionProvider" into jb-mr2-dev 2013-05-03 18:58:35 +00:00
Satoshi Kataoka
ee0a5fafa7 am 245a3e1c: Merge "Change the initial disabled state of disabled IMEs" into jb-mr2-dev
* commit '245a3e1c1ed265a13d07000ef6e786ec321b85c4':
  Change the initial disabled state of disabled IMEs
2013-05-03 11:19:01 -07:00
Adam Powell
dcc55855bc Fix a NPE in MenuItemImpl when setting null ActionProvider
Change-Id: I00be010b2197d0f41d0e45b3814474d3ad0c3295
2013-05-03 11:03:10 -07:00
Dianne Hackborn
c9dc93e5ca Merge "Start combining threads in system process." 2013-05-03 01:48:55 +00:00
Dianne Hackborn
8d044e8bc2 Start combining threads in system process.
This introduces four generic thread that services can
use in the system process:

- Background: part of the framework for all processes, for
work that is purely background (no timing constraint).
- UI: for time-critical display of UI.
- Foreground: normal foreground work.
- IO: performing IO operations.

I went through and moved services into these threads in the
places I felt relatively comfortable about understanding what
they are doing.  There are still a bunch more we need to look
at -- lots of networking stuff left, 3 or so different native
daemon connectors which I didn't know how much would block,
audio stuff, etc.

Also updated Watchdog to be aware of and check these new
threads, with a new API for other threads to also participate
in this checking.

Change-Id: Ie2f11061cebde5f018d7383b3a910fbbd11d5e11
2013-05-02 17:42:40 -07:00
Satoshi Kataoka
ed1cdb24ba Change the initial disabled state of disabled IMEs
Bug: 8365223

This change is a supplement for I77f01c70610d82ce9070d4a
The disabled state of disabled pre-installed imes should be changed
to ENABLED_STATE_DISABLED_UNTIL_USED on boot or user switch.

Change-Id: If8ff1b2b95c36d33148def2ab87bd006aa520cc0
2013-05-02 17:53:17 +09:00
Svetoslav
79578b29bf Remove Auto-rotate screen setting if a required feature is missing.
It is possible that a device running Android does not support rotation,
for example a Google TV box. The change adds a check to the rotation
policy to take this into account.

The SystemUI was not respecting the fact that the user has turned off
screen rotation, i.e. locked the rotation, from the accessibility
settings. In this case we should not show the affordance to toggle
screen rotation in the quick settings to minimize the risk of a blind
user accidentally turning screen rotation on. For a blind person
screen rotation adds 2X complexity since he/she should learn two
different layouts for the app.

bug:8051556

Change-Id: If1b3c092476932f91b0345fb9bfbbf6ed33d0df9
2013-04-30 18:03:42 -07:00
Casey Burkhardt
d9ad188a18 am dd7d8ec1: am 203aa72e: Merge "Rebuilds ActionBar accessibility description as needed" into jb-mr2-dev
* commit 'dd7d8ec17ec1129f33764e025366129d3562ea7e':
  Rebuilds ActionBar accessibility description as needed
2013-04-30 17:26:14 -07:00