223186 Commits

Author SHA1 Message Date
Deepanshu Gupta
230e02ff4c Merge changes I9bf21cc6,Iee45a465
* changes:
  Revert "Revert "Add support for Choreographer animations""
  Add ability to promote fields.
2015-12-02 06:08:06 +00:00
Sungsoo Lim
cac76b722c Merge "Fixed typos: when when" 2015-12-02 06:01:26 +00:00
Deepanshu Gupta
7c4420bd04 Revert "Revert "Add support for Choreographer animations""
This reverts commit 8390b2ac85765e768d4b685077a96e6395d208b4.

The build break should now be fixed by
cbb1ba7f493116882b79578ec68646366f29cde4

Change-Id: I9bf21cc6dbdb5d515a665384dc6dfa464c3e6e2e
2015-12-01 21:58:29 -08:00
Sungsoo Lim
0d3d1f825f Fixed typos: when when
Change-Id: I80c0b8817dcbed45071e42d9ffa88bae52a93a81
2015-12-02 14:50:36 +09:00
Deepanshu Gupta
cbb1ba7f49 Add ability to promote fields.
This adds the ability to promote private fields to public ones to
enable layoutlib to access them. This was first added in change
b556decf75b2b084e1aed54ac7fa23a141eedb7f, but reverted in
847b0d3ad22a47e0bca3d8bc8168fea7a0ba2f80. This is essentially a revert
of the change again, but without the SimpleMonthView related stuff.

Also, promote the Choreographer's field as is needed to support
animations.

Change-Id: Iee45a465c7a1cadd362c1841385941e6232e4900
2015-12-01 21:49:12 -08:00
Svet Ganov
9c165d7601 Add optional permission review for legacy apps - framework
For some markets we have to allow the user to review permissions
for legacy apps at runtime despite them not supporting the new
permission model. This is achieved by showing a review UI before
launching any app component. If an update is installed the user
should see a permission review UI for the newly requested
permissions.

To allow distinguishing which permissions need a review we set
a special flag in the permission flags that a review is required.
This flag is set if a runtime permission is granted to a legacy
app and the system does not launch any app components until this
flag is cleared. Since install permissions are shared across all
users the dangerous permissions for legacy apps in review mode
are represented as always granted runtime permissions since the
reivew requirement is on a per user basis.

Whether the build supports permission review for legacy apps is
determined by a build constant allowing us to compile away the
unnecessary code for markets that do not require a permissions
review.

If an app launches an activity in another app that has some
permissions needing review, we launch the permissions review
UI and pass it a pending intent to launch the activity after
the review is completed.

If an app sends a broadcast to another app that has some permissions
needing review, we do not deliver the broadcast and if the sending
app is in the foreground plus the broadcast is explicit (has a
component) we launch the review UI giving it a pending intent to
send the broadcast after the review is completed.

If an app starts a service in another app that has some permissions
needing review, we do not start the service and if the calling app
is in the foreground we launch the review UI and pass it a pending
intent to start the service after the review is completed.

If an app binds to a service in another app that has some permissions
needing review, we schedule the binding but do not spin the target
service's process and we launch the review UI and pass it a callback
to invoke after the review is completed which spins the service
process and completes the binding.

If an app requests a content provider in another app that has some
permissions needing review we do not return the provider and if
the calling app is in the foreground we show the review UI.

Change-Id: I550f5ff6cadc46a98a1d1a7b8415eca551203acf
2015-12-02 04:23:02 +00:00
Diego Perez
8390b2ac85 Revert "Add support for Choreographer animations"
This reverts commit 29ed07524ce0fc2e5950f5340d306247145d0efa.
2015-12-02 04:10:22 +00:00
Daichi Hirono
56e086f5da Merge "Extract test utility class." 2015-12-02 03:53:46 +00:00
Daichi Hirono
ed2f850330 Merge "Add storage icon for MTP roots." 2015-12-02 03:53:08 +00:00
Daichi Hirono
b255f58904 Extract test utility class.
Change-Id: I8505ab13ceccf32e7a9b6817f84a66766098b09e
2015-12-02 12:38:49 +09:00
Marco Nelissen
e03d5e4973 Merge "Don't try to compress .webm resources" 2015-12-02 03:01:21 +00:00
Daichi Hirono
39795da4c9 Add storage icon for MTP roots.
BUG=22545807

Change-Id: I714b26d52e00b0f9a5c95dea1508be0d617482e3
2015-12-02 11:08:40 +09:00
Blazej Magnowski
9c952df9d4 FalsingManager Quick settings fix
Added a falsing check with FalsingManager in the case when quick
settings are fully expanded without flinging.

Change-Id: I2af07b5732f98bd45471ee33c51273a63b42b87e
2015-12-01 18:00:13 -08:00
Adrian Roos
eaf95c3643 Merge "Charging speed based on voltage" into mnc-dr2-dev am: 0ede75507c
am: 82cfaa813b

* commit '82cfaa813b994ff1e5aaedbdfeeb4ced6e5dfcdb':
  Charging speed based on voltage
2015-12-02 01:58:50 +00:00
Adrian Roos
82cfaa813b Merge "Charging speed based on voltage" into mnc-dr2-dev
am: 0ede75507c

* commit '0ede75507c43819d0417efe1f1ab5c626a608fc5':
  Charging speed based on voltage
2015-12-02 01:50:10 +00:00
Adrian Roos
0ede75507c Merge "Charging speed based on voltage" into mnc-dr2-dev 2015-12-02 01:44:21 +00:00
Adrian Roos
777ef5688f More inline reply goodness
- Use expanded view instead of HUN when possible
- Remember partial replies
- Back properly closes IME without closing shade
- Fix broken reorder animation

Bug: 22452379
Change-Id: Idb6ca8aed27cfb1f3d9b46f59e148b1b3b112fa7
2015-12-01 17:37:14 -08:00
Selim Cinek
c349c3d43b Fixed a bug where the panel could be too small in certain cases
Because we were updating the views to be gone but the contentheight
was never updated.

Change-Id: Ic0a774e82469e48dbedefa09eace68aabaa6e8c3
2015-12-01 17:36:59 -08:00
Ben Fennema
9ff20d6d92 Merge "Revert "DO NOT MERGE ANYWHERE Add new interface for sensor physical data"" into cw-e-dev am: 4d70e6a3c0 -s ours am: 8780f07b5c -s ours am: ceec3dab7c -s ours
am: 7154bbf2d4  -s ours

* commit '7154bbf2d40dcdb86160781991d77573d173e976':
  Revert "DO NOT MERGE ANYWHERE Add new interface for sensor physical data"
2015-12-02 01:36:13 +00:00
Filip Gruszczynski
5746559de1 Merge "Add input method to the tap detection exclude area." 2015-12-02 01:31:47 +00:00
Filip Gruszczynski
912d919772 Add input method to the tap detection exclude area.
Without this touch events on the input method will trigger focus change
if there is a window underneath the input. When focus changes, the input
method will go away too.

Bug: 25930832
Change-Id: I532cb9e78f6fe37b1ddfada75594fc695898a090
2015-12-01 17:30:54 -08:00
Keisuke Kuroyanagi
5d7657e99b Refactoring: SelectionHandleView.
Remove code duplication in SelectionStartHandleView and
SelectionEndHandleView by introducing SelectionHandleView.

Change-Id: I4486019714b13d184a72cf7ee60c346c4d8b5f5a
2015-12-01 17:30:51 -08:00
Ben Fennema
7154bbf2d4 Merge "Revert "DO NOT MERGE ANYWHERE Add new interface for sensor physical data"" into cw-e-dev am: 4d70e6a3c0 -s ours am: 8780f07b5c -s ours
am: ceec3dab7c  -s ours

* commit 'ceec3dab7cb7fcee6d367382fae11c9855263474':
  Revert "DO NOT MERGE ANYWHERE Add new interface for sensor physical data"
2015-12-02 01:27:25 +00:00
Chong Zhang
e7f24e2291 Merge "AMS: add API to IProcessInfoServive for retrieving oom scores" 2015-12-02 01:25:58 +00:00
Keisuke Kuroyanagi
b541cbc67e Merge "Add TextView mouse tests for long click and double click." 2015-12-02 01:23:17 +00:00
Chong Zhang
58c270c01b AMS: add API to IProcessInfoServive for retrieving oom scores
bug: 25853091
Change-Id: Ic915191b959afd34d31e8731a7e4aa631a78e45e
2015-12-01 17:21:24 -08:00
Ben Fennema
ceec3dab7c Merge "Revert "DO NOT MERGE ANYWHERE Add new interface for sensor physical data"" into cw-e-dev am: 4d70e6a3c0 -s ours
am: 8780f07b5c  -s ours

* commit '8780f07b5c2a318cb28c172f9eac47b975793c90':
  Revert "DO NOT MERGE ANYWHERE Add new interface for sensor physical data"
2015-12-02 01:20:15 +00:00
Ben Fennema
8780f07b5c Merge "Revert "DO NOT MERGE ANYWHERE Add new interface for sensor physical data"" into cw-e-dev
am: 4d70e6a3c0  -s ours

* commit '4d70e6a3c044c4e29d84835a026b3e70b44b66e8':
  Revert "DO NOT MERGE ANYWHERE Add new interface for sensor physical data"
2015-12-02 01:12:04 +00:00
Ben Fennema
4d70e6a3c0 Merge "Revert "DO NOT MERGE ANYWHERE Add new interface for sensor physical data"" into cw-e-dev 2015-12-02 01:06:12 +00:00
Ben Fennema
e9970bc981 Revert "DO NOT MERGE ANYWHERE Add new interface for sensor physical data"
This reverts commit ad75169628589a275fb869a813ea697336e0c0aa.

Change-Id: Ic2f003fc200c077391d18bef9d5b79a98601769c
2015-12-02 01:05:25 +00:00
Keisuke Kuroyanagi
2ff41d4afc Add TextView mouse tests for long click and double click.
Bug: 19544351
Change-Id: I4f3fe633c01c443441ff0ef1617bad34c17ab508
2015-12-01 16:58:53 -08:00
Todd Kennedy
191d771a57 Copy into ASEC container
Even when staged, copy into an ASEC container if the package is
forward locked.

Bug: 25812587
Change-Id: I385f7a441f3c6dc76fb076b4505bc9f43b10bd93
2015-12-01 16:55:06 -08:00
Dianne Hackborn
a8d10945a6 Fix reporting of uid state in battery stats.
Now that the activity manager keeps track of per-uid process states,
we can push that already rolled-up data into battery stats to directly
track the times in those states.

The problem with the reporting was actually that we weren't dealing
correctly with negative process states, which is now fixed.  (It was
interpreting them as FOREGROUND rather than not running.)

Also split out a number of new states -- TOP, FOREGROUND_SERVICE,
TOP_SLEEPING -- from FOREGROUND.  This should allow us to get a much
better idea of how much an app has been actively in use: TOP is when
it is directly visible to the user or in use by such, FOREGROUND_SERVICE
is when it is running in the background in a way the user is aware of.
Also when reporting these numbers, they are no longer added together as
reported but kept as separate times.

Change-Id: I6d307503a4b4ad5c0d5d49305ef63f8eb858e2c9
2015-12-01 16:53:28 -08:00
Ben Fennema
5027b5ffc5 Merge "DO NOT MERGE ANYWHERE Add new interface for sensor physical data" into cw-e-dev am: ec7180f733 -s ours am: b98383291f -s ours am: e90efd9153 -s ours
am: 1b574b3d45  -s ours

* commit '1b574b3d452969fef215495086e6f82aeadf4c8c':
  DO NOT MERGE ANYWHERE Add new interface for sensor physical data
2015-12-02 00:49:57 +00:00
Ben Fennema
1b574b3d45 Merge "DO NOT MERGE ANYWHERE Add new interface for sensor physical data" into cw-e-dev am: ec7180f733 -s ours am: b98383291f -s ours
am: e90efd9153  -s ours

* commit 'e90efd91536b5bf7904336f78f258d63ba2cc904':
  DO NOT MERGE ANYWHERE Add new interface for sensor physical data
2015-12-02 00:41:56 +00:00
Ben Fennema
e90efd9153 Merge "DO NOT MERGE ANYWHERE Add new interface for sensor physical data" into cw-e-dev am: ec7180f733 -s ours
am: b98383291f  -s ours

* commit 'b98383291f32d0152cb291855aa00f016d526a4a':
  DO NOT MERGE ANYWHERE Add new interface for sensor physical data
2015-12-02 00:34:14 +00:00
Ben Fennema
b98383291f Merge "DO NOT MERGE ANYWHERE Add new interface for sensor physical data" into cw-e-dev
am: ec7180f733  -s ours

* commit 'ec7180f7333777582e642fc54f7106d500b7da33':
  DO NOT MERGE ANYWHERE Add new interface for sensor physical data
2015-12-02 00:26:19 +00:00
Steve McKay
02794193c9 Show share button in downloads.
Also, rename "ManagerRootActivity" to "DownloadsActivity"
    since because...well, it is almost always Downloads
    and is specialized for this case.

Bug: 25809806
Change-Id: I496d34393d269d2120c8e214413cb87df8bf171d
2015-12-01 16:21:34 -08:00
Filip Gruszczynski
f7e4ccd22e Merge "Fix cts ApplicationTest#testApplication failing." 2015-12-02 00:20:18 +00:00
Filip Gruszczynski
01c2133bbf Fix cts ApplicationTest#testApplication failing.
We should ignore orientation change requests only when a resizeable
activity is not in a full screen mode.

Bug: 25935368
Change-Id: I53bada8bbf0b429b1d48707f65da488e0edeb799
2015-12-01 16:13:30 -08:00
Diego Perez
2ee825f507 resolve merge conflicts of 956cad8870 to master.
Change-Id: Iebad149b2768bcd7a52ee2c7c8c260a9279d1742
2015-12-02 00:04:08 +00:00
Ben Fennema
ec7180f733 Merge "DO NOT MERGE ANYWHERE Add new interface for sensor physical data" into cw-e-dev 2015-12-02 00:01:55 +00:00
Todd Kennedy
9f3a78cbaa Fix tests
The majority of the test failures were around the method assertInstall()
failing a check for a symlink between the data directory in /data/data/
to the application directory in /mnt/asec/. There are a handful of other
failures that will be dealt with separately; those have all been suppressed
from running.

Also took the opportunity of adjusting some of the tests to ensure the
device is properly cleaned up. Packages remained installed after a failure.

Bug: 18048725
Change-Id: Id8f6ac53cfe17de43b5d527993d57812b1a63bef
2015-12-01 15:56:27 -08:00
Chris Elliott
d76acc8093 Merge "MediaPlayer: Disable acquiring wakelocks based on property." into cw-e-dev am: 50276adde2 am: c54aa0c3f7 am: 767e2b39db
am: 1709832d47

* commit '1709832d474a7be85d46e55fab5773e399cd7086':
  MediaPlayer: Disable acquiring wakelocks based on property.
2015-12-01 23:47:45 +00:00
Philip P. Moltmann
b3078c235e Allow print service to specify progress of print and status
The status has always been there in error cases, it is now also visible
in non-error cases.

If the progress is not set, no progress bar is shown.

Bug: 24135025
Change-Id: Iea23f45d236365433c6f6739597833d236ed6d19
2015-12-01 15:42:49 -08:00
Chris Elliott
1709832d47 Merge "MediaPlayer: Disable acquiring wakelocks based on property." into cw-e-dev am: 50276adde2 am: c54aa0c3f7
am: 767e2b39db

* commit '767e2b39db78e41241998b7b3941a15d68c6b4f2':
  MediaPlayer: Disable acquiring wakelocks based on property.
2015-12-01 23:37:28 +00:00
Steve McKay
84a860f2a8 Merge "Guard against null key events...which can happen." 2015-12-01 23:26:57 +00:00
Steve McKay
578b36e414 Merge "Don't copy a directory into itself...doesn't go well." 2015-12-01 23:07:37 +00:00
Steve McKay
7e392b7845 Guard against null key events...which can happen.
Bug: 25772143
Change-Id: I0c2665aea25c65b92e6f6c0b1454f1e07112fc9c
2015-12-01 15:01:04 -08:00
Andy Hung
0275a982ab SoundPool: add lock for findSample access from SoundPoolThread
Sample decoding still occurs in SoundPoolThread
without holding the SoundPool lock.

Bug: 25781119
Change-Id: I11fde005aa9cf5438e0390a0d2dfe0ec1dd282e8
2015-12-01 14:40:26 -08:00