Commit Graph

397946 Commits

Author SHA1 Message Date
TreeHugger Robot
86760ea679 Merge "Stop exposing reasons through phone state listener" 2019-01-05 11:21:33 +00:00
TreeHugger Robot
d40dd40b62 Merge "Move all resources for PermissionController" 2019-01-05 05:45:16 +00:00
TreeHugger Robot
38a00d89c5 Merge "MediaPlayer: handle concurrency on mTimeProvider" 2019-01-05 03:22:58 +00:00
TreeHugger Robot
97e54a0113 Merge "Forward volume keys when system audio mode off and property set" 2019-01-05 02:56:24 +00:00
TreeHugger Robot
c749981ca9 Merge "Update fonts.xml with user customization fonts." 2019-01-05 02:33:33 +00:00
Jeff Sharkey
8f70cac068 Merge changes from topics "trashz", "bucketz"
* changes:
  Public APIs for "trashing" media.
  Define secondary media item bucketing.
2019-01-05 02:33:26 +00:00
TreeHugger Robot
afbd1c4c7d Merge "GUP: Add metrics constant for GUP UI" 2019-01-05 02:26:05 +00:00
Nathan Harold
64f2019f3c Merge "Fix WCDMA Level Calculation for Default CC" am: 3ada51469a am: e3db7cfb12
am: 8339fc246b

Change-Id: I27985f27d8175ca374e6a63197cdbf087d201bb8
2019-01-04 18:03:31 -08:00
Nathan Harold
8339fc246b Merge "Fix WCDMA Level Calculation for Default CC" am: 3ada51469a
am: e3db7cfb12

Change-Id: I1772eed2663d6e421a17a268f9fb4844d0118c36
2019-01-04 17:53:11 -08:00
Nathan Harold
e3db7cfb12 Merge "Fix WCDMA Level Calculation for Default CC"
am: 3ada51469a

Change-Id: I7f5f0fca6c5b92a87d9ba276a48fdc00e919a490
2019-01-04 17:43:28 -08:00
Eric Holk
7751e68a1b Merge "Add tryCreateView to LayoutInflater" am: aa8f1b7033 am: 07b293f8af
am: 9b9c255b88

Change-Id: I26f0e3d18e8a27bd9fb7745f3a7af4ca347237fe
2019-01-04 17:40:54 -08:00
Eric Holk
9b9c255b88 Merge "Add tryCreateView to LayoutInflater" am: aa8f1b7033
am: 07b293f8af

Change-Id: Ia835f7a7488a084c72fd5722c91d01ddb427ea19
2019-01-04 17:27:45 -08:00
Nathan Harold
3ada51469a Merge "Fix WCDMA Level Calculation for Default CC" 2019-01-05 01:25:14 +00:00
Eric Holk
07b293f8af Merge "Add tryCreateView to LayoutInflater"
am: aa8f1b7033

Change-Id: Ib89a1d1b292aca7404d646ff61974558422fc959
2019-01-04 17:17:28 -08:00
Treehugger Robot
aa8f1b7033 Merge "Add tryCreateView to LayoutInflater" 2019-01-05 01:02:28 +00:00
TreeHugger Robot
1a08863f3b Merge "Moves icon management to NotificationRowBinder." 2019-01-05 00:52:07 +00:00
Victor Hsieh
c4085a8f72 Merge "Skip forced package verification if fs-verity exists" 2019-01-05 00:27:56 +00:00
Sudheer Shanka
2cf41e4fbf Merge "Revert "Added app context to smart screen brightness."" 2019-01-05 00:22:14 +00:00
TreeHugger Robot
b0185ca9d1 Merge "Move ShadeController to SystemUIFactory to allow customization." 2019-01-04 23:48:22 +00:00
TreeHugger Robot
bbb539a172 Merge "Fixes notification swipe snapping when menu is empty." 2019-01-04 23:38:38 +00:00
Wei Jia
ab715166ee MediaPlayer: handle concurrency on mTimeProvider
Bug: 118341983
Test: cts
Change-Id: Ieaf082b7dbc3cb93c2398e935ead77ca1810c62a
2019-01-04 15:24:15 -08:00
Jorim Jaggi
bc93e0f537 Merge "A brave new world for window insets (7/n)" 2019-01-04 23:21:24 +00:00
TreeHugger Robot
441f143110 Merge "Removes unused fields from NotificationEntryManager." 2019-01-04 23:19:55 +00:00
Jeff Sharkey
5cc407f702 Public APIs for "trashing" media.
The "delete" operation is immediate and permanent, and users may wish
to instead mark content as being "trashed", so they can recover
accidentally trashed items before they're permanently deleted.

The default trash timeout is 48 hours, which should be enough time
to recover items the user cares about.  Apps can also use a custom
timeout if desired.

This is implemented by recording an "expiration" time for trashed
items, and deleting expired items during the next idle maintenance
pass.  Also use this expiration time to clean up pending items that
haven't been published; by default apps have a day to publish
pending items.

Bug: 121227045
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I2e371b308dc135ad5363709a6f5385e4456bcb96
2019-01-04 16:17:03 -07:00
TreeHugger Robot
4278f47f3e Merge "Rename accent color and icon shape overlay." 2019-01-04 23:07:26 +00:00
Victor Hsieh
d33cafed37 Skip forced package verification if fs-verity exists
Unlike the original implementation, package can be verified with an
in-kernel trusted keyring.  In this case, we simply need to know if
fs-verity exists for the file.

Test: observed expected behavior with extra debug log
Bug: 112037636
Change-Id: I7a6ff35853f24f5a0a2727ddef376f9857a2d789
2019-01-04 22:30:02 +00:00
Android Build Merger (Role)
d59bfa4568 Merge "Merge "Deprecate Android beam APIs and create a feature flag to gate them" am: 6a3d45c4b2 am: d0c8a165d8 am: a33da54c8d" 2019-01-04 22:20:54 +00:00
TreeHugger Robot
bf435d53ac Merge changes from topic "foreground-service-controller-2"
* changes:
  Factors out notification listening from ForegroundServiceController.
  Collapses ForegroundServiceControllerImpl into interface.
2019-01-04 22:20:45 +00:00
Ruchi Kandoi
d98f84b0d9 Merge "Deprecate Android beam APIs and create a feature flag to gate them" am: 6a3d45c4b2 am: d0c8a165d8
am: a33da54c8d

Change-Id: I1eda6b7d5879045e6bd35821ee5368ef72855942
2019-01-04 14:18:15 -08:00
Jack Yu
4d1c945000 Stop exposing reasons through phone state listener
The data connection reasons are implementation details
of telephony and should not be exposed externally. The
data connection fail cause, which is different from
reasons, are still available.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Change-Id: Ia005abf19664e6213118ee932495950af118456d
2019-01-04 14:13:28 -08:00
Shubang Lu
00b976a7df Forward volume keys when system audio mode off and property set
cherry-pick ag/4968405

Bug: 80296335
Test: make; local tests
Change-Id: I04b7cd0958c9300a76f6337ee891b5f4947484ad
2019-01-04 22:11:05 +00:00
Ruchi Kandoi
a33da54c8d Merge "Deprecate Android beam APIs and create a feature flag to gate them" am: 6a3d45c4b2
am: d0c8a165d8

Change-Id: I886941a5011fdf204fe62c1162dd2ad69d466f62
2019-01-04 14:06:55 -08:00
Ruchi Kandoi
d0c8a165d8 Merge "Deprecate Android beam APIs and create a feature flag to gate them"
am: 6a3d45c4b2

Change-Id: I6305379f787de122e35a9a2a12eb9f99385da4df
2019-01-04 13:57:48 -08:00
Treehugger Robot
6a3d45c4b2 Merge "Deprecate Android beam APIs and create a feature flag to gate them" 2019-01-04 21:49:14 +00:00
Ruchi Kandoi
96fe50bc1b Deprecate Android beam APIs and create a feature flag to gate them
Test: Test application trying to invoke the API
Bug: 117519147
Change-Id: Icd3187e4f3e0f180cb42d36011f60895fb395002
2019-01-04 21:49:00 +00:00
Gus Prevas
86928bb177 Moves icon management to NotificationRowBinder.
This change moves the calls in NotificationEntryManager to
NotificationData.Entry.createIcons() and .removeIcons() to
NotificationRowBinder.inflateViews() to encapsulate all the view
handling in the latter class (and so that we can eventually not create
those icon views right away).

Test: atest SystemUITests, manually
Change-Id: Ie515c85b81ce6ad5de607b83e8f242d7ae03326e
2019-01-04 16:46:32 -05:00
Sudheer Shanka
b3f60657a3 Revert "Added app context to smart screen brightness."
This reverts commit 54478d9cab.

Reason for revert: Broke work profile apps (http://b/122107873)

Bug: 111425369
Bug: 122107873
Change-Id: I7e3bf97725d542eb92a04bc75662ca6680287ba2
2019-01-04 21:34:58 +00:00
Nathan Harold
549c3ba3b5 Fix WCDMA Level Calculation for Default CC
The default carrier config was setting the level
calculation method to an empty string, which caused
the level to be set forcibly to NONE/UNKNOWN due to
the logic failing to account for empty strings. This
patch sets the default to something sane "rssi" that
matches legacy behavior and also adds guards so that
an empty string will be considered default, and a non
empty but otherwise invalid string will also try to
use RSSI instead of simply failing to display signal
bars.

-Add protection against invalid array sizes
-Fix a bug where RSCP could use RSSI thresholds
-Add fallback for RSCP thresholds being null when the
 measurement type is set to RSCP.
-Define RSCP thresholds as constants.

Bug: 118800169
Test: atest CellSignalStrengthWcdmaTest
Change-Id: I8d6261bc5adab6bf9b0a88f7d59b259d338a49e9
2019-01-04 13:34:02 -08:00
Jeff Sharkey
7b148d7ae7 Define secondary media item bucketing.
The existing buckets work well for first-level clustering of related
media, but it's common for multiple media items within a directory
to form a conceptual unit.  To support this, we're creating a
second-level of bucketing which is formed using the first part of
the file name.

This supports common industry-standard patterns like:

    IMG1024.JPG
    IMG1024.CR2

While also opening the door to further flexibility in the future:

    IMG1024.JPG
    IMG1024.HDR.JPG
    IMG1024.BURST001.JPG
    IMG1024.BURST002.JPG
    IMG1024.BURST003.JPG
    IMG1024.DNG
    IMG1024.DEBUG.BIN

We're currently advocating that the default representation of one of
these secondary clusters is the shortest .JPG filename contained
inside, with length ties broken alphabetically.

Clean up database management so that upgraded schema always matches
pristine schema, with tests to verify.  Generate views using the
actual projection mappings used at runtime.

Bug: 115377970
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Ic679055ab6c884d2048626f51670a5dd370281c0
2019-01-04 14:33:49 -07:00
Gus Prevas
9258646f98 Removes unused fields from NotificationEntryManager.
Test: atest SystemUITests
Change-Id: Ia2b361fbfa9d3aa3c18a9a4577eda28bdc22b080
2019-01-04 16:06:12 -05:00
Eric Holk
29d0cd6fa1 Add tryCreateView to LayoutInflater
This method is needed so that precompiled layouts can reuse the factory logic
from the LayoutInflater.

Bug: 111895153
Test: atest android.view.cts.LayoutInflaterTest
Change-Id: Ifd1028906b655af2bd14247d586dc16b35550c82
2019-01-04 12:57:14 -08:00
Android Build Merger (Role)
e4e854c04c Merge "Merge changes from topic "multi-se-support" am: 54502d68ea am: 9c0ec9be9f am: 650ff88a4c" 2019-01-04 20:40:43 +00:00
Ruchi Kandoi
0e1c39bf55 Merge changes from topic "multi-se-support" am: 54502d68ea am: 9c0ec9be9f
am: 650ff88a4c

Change-Id: I562af1c9c1b0c254d8b23466caceb94ef767aa1f
2019-01-04 12:38:53 -08:00
TreeHugger Robot
771cd588b6 Merge "Set bounds from previous modifiers for fullscreen" 2019-01-04 20:36:18 +00:00
Ruchi Kandoi
650ff88a4c Merge changes from topic "multi-se-support" am: 54502d68ea
am: 9c0ec9be9f

Change-Id: Ieca9b142094c8c568409290fdf690fad529ef604
2019-01-04 12:25:13 -08:00
Chih-Hung Hsieh
3b3be3f10f Merge "Fix/suppress aapt/aapt2 google-explicit-constructor warnings" am: cdf6be573f am: d42fe48c93
am: 0bf62f1309

Change-Id: Iffb7e4a145b172a35dd58b9450d4a5184d8b07f7
2019-01-04 12:20:01 -08:00
TreeHugger Robot
e2ad62f797 Merge "Let the clock be updated in real time during the pulse" 2019-01-04 20:16:22 +00:00
Gus Prevas
fe15aa1f9f Fixes notification swipe snapping when menu is empty.
This change modifies the swipe handling logic in NotificationSwipeHelper
such that it doesn't attempt to snap to the "menu open" state when the
menu is zero width (i.e. it's snapping on a left-to-right gesture and
the menu is only enabled for right-to-left swipes).  This prevents us
from getting in to a state where the menu was considered "open" when it
wasn't, which caused the next gesture to be handled incorrectly.

Change-Id: I3b78e95de7266e5a469637007ca78f7af2caab49
Fixes: 121077588
Test: manually
2019-01-04 15:13:21 -05:00
Ruchi Kandoi
9c0ec9be9f Merge changes from topic "multi-se-support"
am: 54502d68ea

Change-Id: I10dad203c4e46b28546f1bb3c721e5d4e7fb0aec
2019-01-04 12:10:50 -08:00
Amin Shaikh
16af20be3f Rename accent color and icon shape overlay.
That way there is less redundancy in the menu displaying accent color
and icon shape choices in developer settings.

Bug: 122308197
Test: make
Change-Id: I177ec1285e49f727ac9d0e424fecd84029ec8309
2019-01-04 15:10:13 -05:00