Commit Graph

301953 Commits

Author SHA1 Message Date
Treehugger Robot
9309f1cbf3 Merge changes I37c8daa6,I5a05b65d,If56347fd
* changes:
  Preload2: Add isSingleThreaded
  Preload2: Fix action inheritance
  Preload2: Abstract out UI
2016-11-29 03:08:20 +00:00
Jaekyun Seok
2b14c5eaf6 Remove static link in Android framework under /frameworks/base.
The dependencies to static libraries in frameworks should be removed
as many as possible to reduce a size of the system partition.
And that will improve coverage of the VNDK libraries because this
effort might find new necessary shared libs which were linked
statically before.

Size diffs of libs in /system/lib on angler-userdebug build are as
following.

libandroidfw.so      : 243748 -> 205196 (-38552)
libhwui.so           : 562028 -> 562580 (+552)
libmedia_jni.so      : 293652 -> 293656 (+4)
(All the others have the same size.)

total: (-37996)

Test: building succeeded, and the image was tested on angler.
Bug: 33056637
Change-Id: I3021fb438778eaea2be935b990ec85c4aec6c008
2016-11-29 11:59:20 +09:00
Romain Guy
199e5a98dd Add images to document built-in color spaces
Bug: 32984164
Test: make offline-sdk-referenceonly-docs and manual validation of output

Change-Id: I2f0e00e5a0581517bb7c535e8aee150f87ac7a6e
2016-11-28 17:38:27 -08:00
Bill Yi
ceeb70f623 Import translations. DO NOT MERGE
Change-Id: Id0339da5d091b45840828b63f5436ae5c5a0a5c8
Auto-generated-cl: translation import
2016-11-28 16:36:26 -08:00
Selim Cinek
0ec10ac7cf Merge changes from topic 'dyson'
* changes:
  Improved the transformation to an icon further
  Fixed a bug where the last notification could be invisible / faded
  Adapted the shelf color when transitioning
  Fully removed the bottom stack
  Fixed a bug where the first notification was cut off
  Fixed a a bug where clear all was invisible
  Fixed a flicker when expanding quicksettings on the lockscreen
  Added appear and disappear animations for the shelf icons
  Implemented a nicer transition when the icons overflow
  Added the possibility to animate X and refactoring
  Modified heads up experience
  Fixed a bug with not-gone notifications
  Adapted the animation to the full shade
  Fixed the lockscreen positon with a single notificaton
  Made heads up work again
  Fixed the transformation into the shelf
  Used different curve for the icons when expanding
  Refactored the stack animation logic
  Refactored shelf transformation code to support animations
  Improved the transition into the statusbar
  Adapted the icon transformation into the shelf
  Fixed the appearance of the shelf on the lockscreen
  Introduced the Notification shelf
  Refactored the viewstates for more modularity
2016-11-29 00:29:01 +00:00
Stephen Chen
767e453cdf Add ACTION_WIFI_SAVED_NETWORK_SETTINGS to Settings.
Exposes an activity that deep links into saved network Settings.

Bug: 32738882
Test: gts test
Change-Id: Ic639b7543439bbe52941fa58a74a767a4a0f8a76
2016-11-28 16:26:16 -08:00
pkanwar
d0063aeb1b Allow Carriers to specify Wifi Networks.
Bug: 31003437
Test: No test required.
Change-Id: I661f8fc9924e677b9ac08c70500bd175d30834fa
2016-11-28 16:14:16 -08:00
Bill Yi
1c30f98ba4 Import translations. DO NOT MERGE
Change-Id: If8815633c883707fcecf0bdb2cc290fdf76081b3
Auto-generated-cl: translation import
2016-11-28 15:56:17 -08:00
Bill Yi
1eddfd284b Import translations. DO NOT MERGE
Change-Id: I9cb25746736933012f485ede26b02a794519000c
Auto-generated-cl: translation import
2016-11-28 15:27:55 -08:00
Andreas Gampe
3bf65c916c Preload2: Add isSingleThreaded
Expose whether a UI is single-threaded to avoid spawning threads
in actions.

Bug: 31961946
Test: manual
Change-Id: I37c8daa6a00784e833bad53b8e83ab4417955df7
2016-11-28 15:06:35 -08:00
Andreas Gampe
1c809a3d32 Preload2: Fix action inheritance
Use AbstractThreadedAction as a base.

Bug: 31961946
Test: manual
Change-Id: I5a05b65d753be775c8b8382bb1a81e869c388f8d
2016-11-28 15:04:25 -08:00
Marco Nelissen
9985ed8b15 Merge "No need to initialize the file sniffers anymore" 2016-11-28 22:28:53 +00:00
Jean-Michel Trivi
1c94fdc469 Merge changes from topic 'a11yModal'
* changes:
  Javadoc and AudioManager update for A11Y stream
  Conditional behavior for a11y stream volume
2016-11-28 22:24:40 +00:00
Rubin Xu
d24ea455a6 Fix boot loop when upgrading direclty from L to N am: bfc7faaf35 am: 492f5263a4 am: c78751707c
am: 4f74f3fd58

Change-Id: I30611734d78d3c3604cb3ef18ee732fb1ccc93b2
2016-11-28 22:20:33 +00:00
Rubin Xu
4f74f3fd58 Fix boot loop when upgrading direclty from L to N am: bfc7faaf35 am: 492f5263a4
am: c78751707c

Change-Id: Idc088657bd9f7050f973ab78d5942ac86d56dabf
2016-11-28 22:12:26 +00:00
Selim Cinek
875a3a11e2 Improved the transformation to an icon further
The content now shifts away more and without fading out.

Change-Id: I02b53400a68dc68ef49bc2bd830b51bced5a6ba1
Test: Add notification - test merging behavior
Bug: 32437839
2016-11-28 14:07:11 -08:00
Selim Cinek
938bdaa86e Fixed a bug where the last notification could be invisible / faded
if the last notification was small, it was already fading out in
the resting state.

Test: add a small notification without text and title and have it as
      last notification in the shade. Observe that it's not faded out.
Bug: 32437839
Change-Id: I4acd429e363185276fe1f472ecbeddae8f56e45a
2016-11-28 14:01:53 -08:00
Selim Cinek
f9bba0b0dd Adapted the shelf color when transitioning
The shelf now changes colors correctly when
transitioning between low and high-priority
notifications.

Test: manual, add low-prio notification
Bug: 32437839
Change-Id: Iab51f3f1b1b2f446b1c00c80ecabcc4b00b0064a
2016-11-28 14:01:34 -08:00
Rubin Xu
c78751707c Fix boot loop when upgrading direclty from L to N am: bfc7faaf35
am: 492f5263a4

Change-Id: I22ddb905cf6ff4519dd12e84f5a51ea27d256602
2016-11-28 22:01:31 +00:00
Selim Cinek
db16737031 Fully removed the bottom stack
Moved the ambient notifications into the shelf
instead of having them behave with their own
physics. Previously the ambient notifications
were stuck in the old world behind the shelf,
but this doesn't make sense anymore.

This also fixed a bug where the notifications were
wrongly positioned on the lockscreen since the shelf
counted as a view that wasn't gone.

Test: add low-priority notifications, observe scrolling
Bug: 32437839
Change-Id: I3921ea9f80a06f1b6330315423b012174269ac8e
2016-11-28 13:55:56 -08:00
Selim Cinek
2e5a3fac65 Fixed a bug where the first notification was cut off
When dragging down on the lockscreen, the first notification
would be cut off.

Test: drag down on a single notification on the lockscreen
Bug: 32437839
Change-Id: I4796661e63a94e598e5489377d7ecd67b35e6e88
2016-11-28 13:44:37 -08:00
Selim Cinek
c9c640fd86 Fixed a a bug where clear all was invisible
Test: add notifications, observe clear all
Bug: 32437839
Change-Id: I8e485d07b14b205d479594451f7dc998714d5b86
2016-11-28 13:44:36 -08:00
Selim Cinek
91d4cbae0a Fixed a flicker when expanding quicksettings on the lockscreen
The notifications flickered open when expanding quicksettings
on the lockscreen.

Test: add notifications (>4) expand quicksettings
Bug: 32437839
Change-Id: I12359ec374b281cb11816c7259c78715aedded43
2016-11-28 13:44:36 -08:00
Selim Cinek
5b5beb01dc Added appear and disappear animations for the shelf icons
The icons now animate in and out of the shelf nicer.
Also fixed that the regular animation was played when in the shelf.

Test: Add notifications, observe animation in statusbar
Bug: 32437839
Change-Id: Id003fee1508b8c18a933d38faf93541be21baffd
2016-11-28 13:44:35 -08:00
Selim Cinek
49014f8522 Implemented a nicer transition when the icons overflow
The overflowing icons are now represented as dots and
animate in and out nicer.
The shelf also animates much nicer from the regular statusbar
size if there are a lot of notifications.

Test: Add a lot of notifications, observe them nicely overflowing into dots
Bug: 32437839
Change-Id: I5906c076bbf5d48cbabdbacfd21234bed55c6caa
2016-11-28 13:44:34 -08:00
Selim Cinek
c40c79ac66 Added the possibility to animate X and refactoring
A viewstate can now animate its X value.
This also refactors the animation logic such that
an application when an animation is running will
update the existing animation nicely.

Test: manual, observe views animating in X
Bug: 32437839
Change-Id: Ic091d87e530af793281ca3f2b1e9370ff5dac236
2016-11-28 13:44:31 -08:00
TreeHugger Robot
13c8b7df5b Merge "Fix draw order for non-RenderNode draw commands" 2016-11-28 21:42:39 +00:00
Android Build Merger (Role)
96653266ec Merge "Merge "Add removeState method to StateMachine" am: 0310de1136 am: 01106c45ca am: 1a8bdf8bf9 am: a95fc5fea8" 2016-11-28 21:21:24 +00:00
Shahriyar Amini
1af72898f7 Merge "Allow injected Settings tiles to specify a key." 2016-11-28 21:21:12 +00:00
Hall Liu
694aa92420 Merge "Add removeState method to StateMachine" am: 0310de1136 am: 01106c45ca am: 1a8bdf8bf9
am: a95fc5fea8

Change-Id: I725b9456623d5781eff2c59abaf0d07c25dea252
2016-11-28 21:20:16 +00:00
Hall Liu
a95fc5fea8 Merge "Add removeState method to StateMachine" am: 0310de1136 am: 01106c45ca
am: 1a8bdf8bf9

Change-Id: I54cbb26c9f68edb07aca4e8054750c665a33098f
2016-11-28 21:15:11 +00:00
Andreas Gampe
5cb8998363 Preload2: Abstract out UI
Create IUI interface and move UI to SwingUI.

Bug: 31961946
Test: manual
Change-Id: If56347fdde8b441c0c01337a3f5eac002ea5b4f3
2016-11-28 13:15:10 -08:00
Hall Liu
1a8bdf8bf9 Merge "Add removeState method to StateMachine" am: 0310de1136
am: 01106c45ca

Change-Id: I4f31491b1c9db29fe14222788d7fbd1fd6bce068
2016-11-28 21:06:44 +00:00
Hall Liu
01106c45ca Merge "Add removeState method to StateMachine"
am: 0310de1136

Change-Id: Ib7d8e435c76bc7bcd83d6350c3c0622bb44d6552
2016-11-28 20:58:43 +00:00
Hall Liu
0310de1136 Merge "Add removeState method to StateMachine" 2016-11-28 20:52:02 +00:00
TreeHugger Robot
7f9d210eef Merge "Parse packages in parallel" 2016-11-28 20:15:21 +00:00
Stan Iliev
88e0891f66 Fix draw order for non-RenderNode draw commands
Fix a drawing order issue in Skia pipeline. Add unit test in both
HWUI and Skia to test the fix.

Test: built and ran on angler-eng and HWUI unit tests passed.
Bug: 32506749
Change-Id: I7f13457726a8664f18a46aca2279b876acec2944
2016-11-28 15:14:42 -05:00
Mike Reed
6acfe16b56 SkCanvas is no longer reference-counted
Change-Id: Ie821efe7c0a7d1301715e303aaf4d7ec86ac35e7
2016-11-28 15:11:22 -05:00
Alan Viverette
eb7277590a Make LD stateful / opacity management look more like DC
Some initial cleanup before making changes to either class.

Test: n/a, refactoring only
Bug: 33124798
Change-Id: Idf0328bcc6de72b694ca7b35122ecad845cf1c4b
2016-11-28 14:55:18 -05:00
TreeHugger Robot
82b13b79c6 Merge "Fix NPE when a shared element doesn't have a matching transitionName." 2016-11-28 19:39:47 +00:00
Julia Reynolds
32c97ef3c8 Blocked packages can't create channels.
Test: runtest systemui-notification
Change-Id: I3f0560a71adc33d9881021f920ce2824b96ddc14
2016-11-28 14:34:29 -05:00
Julia Reynolds
f57de46d0b Allow apps to set vibrations pattern for channels
Test: runtest systemui-notification, cts
Change-Id: I9125e9c437e3888ba7e7582bb3557635a2aea893
2016-11-28 14:34:29 -05:00
Philip P. Moltmann
0d8f4b75a5 Create actions for permission and log revokations
grants, denials and requests are logged in the package installer

Test: Revoked some permissions via settings and looked at event log.
Change-Id: I9a4ade82b68293f8aa9732c9ca288d37e9a7f611
2016-11-28 11:27:09 -08:00
Marco Nelissen
7e5e1b0d72 No need to initialize the file sniffers anymore
Bug: 33166870

Change-Id: I9f944fcb7d63ca4eb31aec5e7e97e3e0e499cc39
2016-11-28 19:05:32 +00:00
Daniel Nishi
845740e6e3 Add methods to query the private storage.
This is used by Settings and the Storage Manager to calculate the
amount of space left on a device.

Bug: 30895163
Test: m RunStorageManagerRoboTests <-- These tests exercise this code.
Change-Id: I0978020645dff455c7d60067c7d6fae338b5f89a
2016-11-28 11:02:57 -08:00
Fyodor Kupolov
fd6f4fb264 Parse packages in parallel
Introduced ParallelPackageParser. Parsing requests are processed by a
thread-pool (currently 4 threads). At any time, at most 10 results are kept
in RAM. This is enforced by the blocking queue.

scanDir has become a two-stage process:
1) Collects files for parsing and submit them to the parallel parser
2) Sequentially take elements from the parsing queue and process them by
   calling scanPackageLI (as before)

Test: manual - device boots, all packages are parsed
Test: ParallelPackageParserTest passes
Bug: 30792387
Change-Id: I07a64da4d83e355b2b1f1ab350e6d8087dfd2feb
2016-11-28 10:32:34 -08:00
Tony Mak
2f26b79eea Unit test for getBindDeviceAdminTargetUsers
Was meant to write test for bindDeviceAdminServiceAsUser, but
it can't be done without having tests for
getBindDeviceAdminTargetUsers first as bindDeviceAdminService depends
on getBindDeviceAdminTargetUsers.

A bit shocked by we didn't have any managed profile tests in
DevicePolicyManagerTest. Added managed profile support in the CL.

Bug: 32764274

Test: runtest -x frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java

Change-Id: If412e4f44c3ae998f69e17411f2503a97f80149f
2016-11-28 17:54:51 +00:00
TreeHugger Robot
776a2402fa Merge "Revert "Introduce RoughtimeClient"" 2016-11-28 17:54:37 +00:00
Jerome Gaillard
6c1fbdfea7 Merge "Override TextServicesManager in layoutlib" 2016-11-28 17:46:55 +00:00
pkanwar
1ec8fe940f Allow Carriers to specify Wifi Networks.
Bug: 31003437
Change-Id: I661f8fc9924e677b9ac08c70500bd175d30834fa
2016-11-28 09:18:02 -08:00