Commit Graph

6774 Commits

Author SHA1 Message Date
Dianne Hackborn
cc30b55159 Work on issue #30407061: OverflowArrayMap.stopObject unable to find object am: 657153bd28 am: ae7bdd8dde
am: 347c006732

Change-Id: Ib69b728931b30b2092becb89d55a46b92245a0fc
2016-07-31 03:46:08 +00:00
Dianne Hackborn
347c006732 Work on issue #30407061: OverflowArrayMap.stopObject unable to find object am: 657153bd28
am: ae7bdd8dde

Change-Id: Id9a3dfa2e18f62b2dc35396ae34ffb450ef8cbdc
2016-07-30 22:27:22 +00:00
Dianne Hackborn
ae7bdd8dde Work on issue #30407061: OverflowArrayMap.stopObject unable to find object
am: 657153bd28

Change-Id: Icf5ac1ea479e098f18972111e44724698086a255
2016-07-30 06:41:23 +00:00
Dianne Hackborn
657153bd28 Work on issue #30407061: OverflowArrayMap.stopObject unable to find object
Add more debug info when this happens to try to better
understand what is going on.

Change-Id: Id8c979d1c2d3769ce68156fb7e69d5ff9d5ded1c
2016-07-29 14:54:14 -07:00
Chong Zhang
237ee66bd9 Merge \\\"Cleanup mAnimatingExit flag before maybeUpdateTransitToWallpaper()\\\" into nyc-mr1-dev am: f84d9f91ce am: 68a518c49a
am: 5d0649a35e

Change-Id: I2ce986ce8e998c9a63bb1ac743ed9bcdfe754c4e
2016-07-29 00:33:50 +00:00
Adam Lesinski
387c351d5a DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e am: 82a4d6f93b
am: 52d7fd62a4

Change-Id: I3b5febe3ecbd2ebead013273f5fe867376e2b756
2016-07-28 19:40:59 +00:00
Adam Lesinski
52d7fd62a4 DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e
am: 82a4d6f93b

Change-Id: I5e3b406b7a3f9a7f367dccaed0094ab5b7a78d2e
2016-07-28 19:23:16 +00:00
Adam Lesinski
82a4d6f93b DO NOT MERGE Change KernelUidCpuTimeReader Slog.wtf to Slog.e
There is a known issue in the kernel uidcputime module that triggers
the WTF, which has a cost to the system. Convert to a regular log
instead.

Bug:28950306
Change-Id: I7cbb3138f644075f0d9d65ce8b52bd835eb270fd
2016-07-28 19:08:04 +00:00
Chris Banes
19ce4ad1f6 Fix CascadingMenuPopup width if background has padding DO NOT MERGE am: f9e2c1b326
am: be3daf6947

Change-Id: I30624b96a74b5fb1928ada59e8f2a1968ef04426
2016-07-28 08:53:37 +00:00
Chris Banes
be3daf6947 Fix CascadingMenuPopup width if background has padding DO NOT MERGE
am: f9e2c1b326

Change-Id: I1997cde48524dc5c040311f4f9e7824485b55c7d
2016-07-28 08:47:15 +00:00
James Carr
d2a4944d68 Merge "Calculate and account for memory power use" 2016-07-27 23:24:55 +00:00
Andrii Kulian
5d0649a35e Don\\'t delay child pressed state in freeform mode am: a6aea9876e
am: 5b637aed1c

Change-Id: If94ef4d5fbf5142044797722bc0ffa86d0aa0dc4
2016-07-27 22:52:24 +00:00
Andrii Kulian
5b637aed1c Don\'t delay child pressed state in freeform mode
am: a6aea9876e

Change-Id: I68c9d42ca9b3bda6a2ea823db27f8a11046b0e50
2016-07-27 22:01:07 +00:00
James Carr
2dd7e5e3ef Calculate and account for memory power use
Use PowerProfile to calculate mAh (MemoryPowerCalculator), and
involve this calculation in the overall accounting of battery
for when the phone is unplugged from a charger.

Note: Depends on ag/1196281

Change-Id: Id02bef19c9b250c614df0a6c88711b486faaef46
2016-07-27 14:50:23 -07:00
Jeff Davidson
2862ed2541 Add support for carrier \\"associated\\" apps. am: 24b9d96007
am: 19af77d2cb

Change-Id: I089db772e37b7d07a5423793aced78f2b3a9a1ae
2016-07-27 21:40:17 +00:00
Jeff Davidson
19af77d2cb Add support for carrier \"associated\" apps.
am: 24b9d96007

Change-Id: I1de92977f3a0635d88e6517210f6bbb06ab3d0f0
2016-07-27 21:18:07 +00:00
James Carr
3a2260598a Addition of memory power to BatteryStats
Initial implementation of some classes that pipe memory power use
information from the kernel to BatteryStats framework.  Reads how much
time has been spent in distinct bandwidth buckets.

Change-Id: Iefb4b4c0a4e0d0f8d7a773075324ebd38ed154f2
2016-07-27 13:13:03 -07:00
Jeff Davidson
94ae1e739f Merge "Add support for carrier "associated" apps." into nyc-mr1-dev 2016-07-27 17:57:39 +00:00
Chris Banes
f9e2c1b326 Fix CascadingMenuPopup width if background has padding DO NOT MERGE
Happens because CascadingMenuPopup calls setWidth() rather
than setContentWidth() like StandardMenuPopup does.

BUG: 30365568
Change-Id: Id850baaf1d9c5664220766e5e37869e2ec361a2d
2016-07-27 14:53:38 +01:00
Chris Banes
b95bf3cff4 Fix CascadingMenuPopup width if background has padding
Happens because CascadingMenuPopup calls setWidth() rather
than setContentWidth() like StandardMenuPopup does.

BUG: 30365568
Change-Id: I349b5cf81982d7efc85342ab672f2b4e65bafd70
2016-07-27 08:39:40 +01:00
Andrii Kulian
a6aea9876e Don't delay child pressed state in freeform mode
DecorCaptionView is used in app view hierarchy in freeform mode
and it inherits default ViewGroup#shouldDelayChildPressedState
implementation, which returns true by default for compatibility
reasons.
This results in touch not delivered to child views in some cases
until there is movement or up action. E.g. touch on SeekBar will
not change the position of control instantly in freeform, while
it does in other modes.
This CL disables delaying child pressed state for DecorCaptionView.

Bug: 30037893
Change-Id: I4917143610b6c0d404d2395670de9525c10f2a6c
2016-07-26 18:42:46 -07:00
Jeff Davidson
24b9d96007 Add support for carrier "associated" apps.
The platform currently supports the notion of default carrier apps.
These apps are set to DISABLED_UNTIL_USED until a SIM is inserted
which grants them carrier privileges, at which point they are enabled.
Apps are not touched if they have been updated from the version on
/system or if their state has been modified externally (e.g. by the
user).

This CL extends this notion to associated apps, which may not have
carrier privileges themselves, but should be enabled/disabled
alongside a particular carrier app. This should include helper apps
that should not be visible to users who don't use the given carrier
unless the user explicitly enables the app.

As additional protection, we add a check to ensure that we never
disable apps after the first time we've run. Since we need to store
this information in secure settings, we also move the call site from
PackageManagerService#main() to PackageManagerService#systemReady(),
which enables use of secure settings but still occurs before
third-party apps can be started.

Bug: 30141427
Change-Id: Iee72ba4e70e5ca97999c9147a65af82c670a23e8
2016-07-26 14:54:53 -07:00
Michael Kwan
a8f73bd200 Add titles to PreferenceFragments and PreferenceScreens for watches. am: 744be16ffa
am: f704097df4

Change-Id: Iba97f59b84ead98775c803c091c6e4dae6f18d8e
2016-07-26 21:44:49 +00:00
Michael Kwan
f704097df4 Add titles to PreferenceFragments and PreferenceScreens for watches.
am: 744be16ffa

Change-Id: I54847a5ef3ddb4e09cc835433d80e121cf32b725
2016-07-26 21:11:47 +00:00
Michael Kwan
744be16ffa Add titles to PreferenceFragments and PreferenceScreens for watches.
Preferences lack a title on watch type devices due to lack of ActionBar
support. A custom ListView was added to use a custom wrapper adapter to
add a persistent header view at the top of the ListView that developers
would not be able to remove via the ListView API.

Bug: 27962897
Change-Id: I6bccecf85592d9507e0c7a04c9a035617001e9ef
2016-07-26 10:57:56 -07:00
Michael Kwan
6c30ac5c2a Add top and bottom panel overlay to lists in AlertDialog for watch. am: 55e4030f77
am: 253bc8d035

Change-Id: I75cb4527c56f14d58d7ab7826112b08ed368d81e
2016-07-26 15:15:17 +00:00
Michael Kwan
253bc8d035 Add top and bottom panel overlay to lists in AlertDialog for watch.
am: 55e4030f77

Change-Id: I383c2ad50871265c1f521ecfd7f46d15027dc29c
2016-07-25 23:05:43 +00:00
Michael Kwan
ad74941699 Merge "Add top and bottom panel overlay to lists in AlertDialog for watch." into nyc-mr1-dev 2016-07-25 22:15:39 +00:00
Michael Kwan
55e4030f77 Add top and bottom panel overlay to lists in AlertDialog for watch.
For watch devices, AlertDialogs added the title and button bar as header and
footer views in the ListView. This broke compatibility, hence a solution to
overlay the panels instead with a wrapper layout.

Bug: 27482353
Bug: 30075032
Bug: 29833395
Bug: 29277843

Change-Id: I2ecbe56ae8f7d7e99c7ca2dad2a2092499212199
2016-07-22 13:04:42 -07:00
Selim Cinek
8d717fa1cb Changed the appearance of fullscreen intent notifications again am: 981962e6ad
am: 3f769aba2a

Change-Id: I40a477fc28fb0205d40aa352c5b720835d4bf4f8
2016-07-22 19:37:48 +00:00
Selim Cinek
3f769aba2a Changed the appearance of fullscreen intent notifications again
am: 981962e6ad

Change-Id: Ib26d711e48aaff99a4e64e86feb67dbf987d67e2
2016-07-22 19:29:52 +00:00
TreeHugger Robot
0ff47b64cd Merge changes Idd0b38b4,I511356a8 into nyc-mr1-dev
* changes:
  Fixed a bug where the fade in from dark would not work properly
  Changed the appearance of fullscreen intent notifications again
2016-07-22 19:20:49 +00:00
Selim Cinek
981962e6ad Changed the appearance of fullscreen intent notifications again
Change-Id: I511356a8dc0fe253541c625fb7b43ed0c7bafaca
Fixes: 28269355
2016-07-22 12:13:11 -07:00
TreeHugger Robot
72d558ece5 Merge "Revoke drag and drop related grants on client crash" 2016-07-22 17:56:24 +00:00
Vladislav Kaznacheev
87c60d66f4 Revoke drag and drop related grants on client crash
Add a token on the client side, linkToDeath to it on the server
side.

Bug: 29586254
Change-Id: I41ef6dd58352514035c95a4ec9e49c92ea240661
2016-07-21 15:25:12 -07:00
Dianne Hackborn
e0b1f592a0 Merge \\"Add reporting of long wake locks.\\" into nyc-mr1-dev am: ca37695ebc
am: af52a9d1bf

Change-Id: I29451b3dc161e29804f42f40aa9e15836979cd4a
2016-07-20 16:00:57 +00:00
Dianne Hackborn
af52a9d1bf Merge \"Add reporting of long wake locks.\" into nyc-mr1-dev
am: ca37695ebc

Change-Id: I98b06d561945fddef5be4b749b5b2128b8622add
2016-07-20 15:53:17 +00:00
Dianne Hackborn
ca37695ebc Merge "Add reporting of long wake locks." into nyc-mr1-dev 2016-07-20 15:45:36 +00:00
Mikhail Naganov
232ac757fb Merge "Protect MIDI framework against client blocks in MidiReceiver.onSend" 2016-07-19 22:50:06 +00:00
Dianne Hackborn
d0db6f0043 Add reporting of long wake locks.
These appear as a new event in the battery stats history,
"longwake" in the long version and "Elw" in the checkin.

The power manager keeps track of which wake locks are held
for a long time and reports them to battery stats.  Long
is currently considered 1 minute or more.  Once it is long,
the start event will appear, and once if is released the
event will end.

In the case of a wake lock changing (typically its work
source changing), for purposes of this accounting this is
considering a pure release of the old state and start of
the new state...  so the timer will reset back to one
minute until the wake lock is considered long.  This is done
to prevent things that make lots of changes to wake lock
work sources from spamming the log.

Bug: 28753137

Change-Id: I33b6168c57a7ea6ea558273dec731704123124a5
2016-07-19 14:16:50 -07:00
Michael Kwan
b20f4f0efb Merge \\"Fix padding on round devices for AlertDialogs.\\" into nyc-mr1-dev am: 0cd4addd36
am: e42b256d0d

Change-Id: Ia1d0a12f8ec520325ef0ece2c74faed0a51dbfd3
2016-07-19 19:12:00 +00:00
Michael Kwan
e42b256d0d Merge \"Fix padding on round devices for AlertDialogs.\" into nyc-mr1-dev
am: 0cd4addd36

Change-Id: I5287b5cae2d18edc5dc2c5fbc2998c63fadbe583
2016-07-19 18:57:11 +00:00
TreeHugger Robot
0cd4addd36 Merge "Fix padding on round devices for AlertDialogs." into nyc-mr1-dev 2016-07-19 18:48:31 +00:00
Yuichi Biwa
9cead0d166 Merge \\"ChooserActivity: Cannot start app that the icon overflows the layout\\" into nyc-mr1-dev am: 586f23c14b
am: 8b059e8aa1

Change-Id: I13f36de289f0990967e4e5fc967ea64ecfbc0ab8
2016-07-19 18:38:52 +00:00
Yuichi Biwa
8b059e8aa1 Merge \"ChooserActivity: Cannot start app that the icon overflows the layout\" into nyc-mr1-dev
am: 586f23c14b

Change-Id: Ie6abdf3303e9f91ae474aca112e39576685d0e5d
2016-07-19 18:33:40 +00:00
Michael Kwan
814508166c Fix padding on round devices for AlertDialogs.
Bug: 27482353
Change-Id: Ic9ee4abe84f9172db64dba398af2c0058921fa3f
2016-07-19 10:18:41 -07:00
Yuichi Biwa
4f3a843ea9 ChooserActivity: Cannot start app that the icon overflows the layout
Symptom:
When sharing an image from Album, ChooserActivity can be shown.
But then the app to be located to the bottom part of the list may not
be started even if user tap it.

Root cause:
ChooserActivity uses ResolverDrawerLayout. And ResolverDrawerLayout
can display only some items on the list (known as "Collapse mode").
When the item clipping along the bottom edge is tapped by the user,
ResolverDrawerLayout tries to expand the list and scroll it to a
better position, instead of starting an application.
In this problem case, ResolverDrawerLayout continues to try to expand
the list whenever tapping, so an application will never start.

Solution:
Change a condition so that mOpenOnClick becomes true only when the list
has been collapsed (mCollapseOffset > 0).

Bug: 30153542

Change-Id: I576fb6c8b6a91d79c1e0d46d069146779f4dbd17
2016-07-19 10:04:41 -07:00
Adam Lesinski
daa3e9cd80 Merge \\"Record UID of wakeup packets\\" into nyc-mr1-dev am: 117cf8de91
am: d279c1291e

Change-Id: I6973342d48a8a8cebe8f4515c6d67d271dbcf7f7
2016-07-18 21:29:56 +00:00
Adam Lesinski
d279c1291e Merge \"Record UID of wakeup packets\" into nyc-mr1-dev
am: 117cf8de91

Change-Id: Id4e843eef00a623353fe3027de13460aa92e699f
2016-07-18 21:15:48 +00:00
Jim Miller
6097da897a Merge \\"Fix vulnerability in LockSettings service\\" into nyc-mr1-dev am: 6ad9c16ffd
am: 623362c5ab

Change-Id: I7d604ab0a4c76672a765a064011574cd427aac64
2016-07-18 21:15:43 +00:00