Commit Graph

17946 Commits

Author SHA1 Message Date
Amin Shaikh
4657a8da6e Merge changes from topic 'onarevert' into oc-dev am: fa0b28220b
am: ef8d59b631

Change-Id: I6f3722c464609a49bed24824a35184080ae0b653
2017-05-12 08:56:58 +00:00
Chris Wren
e96b36922f Merge changes from topic 'b/36021111' into oc-dev am: 69ab8e1d56
am: 68c7ccc94d

Change-Id: Iaa6782cb3354c7ac0219ea18b254577ecf0d9733
2017-05-12 08:44:46 +00:00
Amin Shaikh
ef8d59b631 Merge changes from topic 'onarevert' into oc-dev
am: fa0b28220b

Change-Id: I744b3dd5c4b58042e1460f161c2813f34784dc32
2017-05-12 06:46:27 +00:00
Chris Wren
68c7ccc94d Merge changes from topic 'b/36021111' into oc-dev
am: 69ab8e1d56

Change-Id: I4bf9b7425c86a8725e9d7c055ab4c4f389fe3a2b
2017-05-12 05:57:40 +00:00
TreeHugger Robot
fa0b28220b Merge changes from topic 'onarevert' into oc-dev
* changes:
  Create a NotificationChannel for ONA.
  Revert "Delete old WifiNotificationController strings."
2017-05-12 04:40:26 +00:00
Chris Wren
89aa226190 add a global control for badging
Content observer callbacks don't specify the user,
so scan all the users we know about. User switches
will also trigger an update which will explicitly
check the setting for the (now) current user.

Migrate tests to TestableContext to allow the test
to safely override secure settings.

Bug: 36021111
Test: runtest systemui-notification
Change-Id: I588068382912955da114cc351df7a1e7b4f0733f
2017-05-11 17:19:01 -04:00
Jeremy Joslin
f4491b7103 Merge "Merge "Adding a new config and Setting for WiFi Wakeup." into oc-dev am: b569eedf37" into oc-dev-plus-aosp
am: 3f3a19183e

Change-Id: I01a5285918e355004d25cc9fbb04c70926a28cfa
2017-05-11 06:18:28 +00:00
TreeHugger Robot
899ca73297 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-05-11 06:02:45 +00:00
Adrian Roos
25664896dd Merge "AOD: Notification groups on Ambient Display" into oc-dev am: bafe438d71
am: ec9559ddc6

Change-Id: I176adacd40cce9d0b321501e8fe8d29f1168f0d5
2017-05-11 04:34:09 +00:00
Bill Yi
eb951434d5 Import translations. DO NOT MERGE
Change-Id: Ia752d5c70fe95b9228ec77d69a8c9b5dd1a0e71f
Auto-generated-cl: translation import
2017-05-10 20:29:50 -07:00
Svet Ganov
8cac1e60cb Merge "Label the close image button" into oc-dev am: c453901d13
am: db5beadea5

Change-Id: I580cb33fcf33120fe9b6131685b8527315535a22
2017-05-11 03:14:09 +00:00
Jeremy Joslin
fb94305b33 Merge "Adding a new config and Setting for WiFi Wakeup." into oc-dev
am: b569eedf37

Change-Id: Id4e9f4644bc470d1a3b8813502eb3e1e2ca45f05
2017-05-11 00:18:48 +00:00
TreeHugger Robot
b569eedf37 Merge "Adding a new config and Setting for WiFi Wakeup." into oc-dev 2017-05-11 00:05:52 +00:00
Adrian Roos
ec9559ddc6 Merge "AOD: Notification groups on Ambient Display" into oc-dev
am: bafe438d71

Change-Id: I159e4543f15c5d2f89bbfee10f77ed33aaaad7a7
2017-05-10 22:55:58 +00:00
Svet Ganov
db5beadea5 Merge "Label the close image button" into oc-dev
am: c453901d13

Change-Id: Ic7dcf152a9759865619129fb1f3d06dbb75e2921
2017-05-10 22:05:55 +00:00
Michael Wright
8036799d2e Enable Always On mode by default.
Also, add a config value for always on display availability.

Test: runtest -x tests/src/com/android/systemui/doze
Change-Id: Id5e0136a5bed0eac78ad48147b0bef8311b06986
2017-05-10 21:47:47 +01:00
Rebecca Silberstein
5985d027a1 Merge "Create a new NETWORK_SETTINGS permission" into oc-dev am: ed285e0cd6
am: a5b8380b03

Change-Id: I1fab5a10644d7f24a304e24f373461c72c03d9a6
2017-05-10 18:18:52 +00:00
Adrian Roos
bafe438d71 Merge "AOD: Notification groups on Ambient Display" into oc-dev 2017-05-10 18:17:44 +00:00
Rebecca Silberstein
a5b8380b03 Merge "Create a new NETWORK_SETTINGS permission" into oc-dev
am: ed285e0cd6

Change-Id: Iae9b1317dc53a8213861ff3803764f9d45758f71
2017-05-10 17:35:27 +00:00
TreeHugger Robot
c453901d13 Merge "Label the close image button" into oc-dev 2017-05-10 17:10:36 +00:00
Julia Reynolds
22dac27cc8 Merge "Rename the legacy notification channel" into oc-dev am: 0c34dc60c4
am: 45ba2ef24e

Change-Id: I9d6e61348602f8002889c4a39ff02354d2a99dfc
2017-05-10 16:11:39 +00:00
Daniel Sandler
df13737efb Merge "Enable notifications during an ongoing call" into oc-dev am: b94abe5e30
am: 1201831262

Change-Id: I135fbace8fbed83532540955c4992f1be230e38d
2017-05-10 15:58:38 +00:00
Rebecca Silberstein
ed285e0cd6 Merge "Create a new NETWORK_SETTINGS permission" into oc-dev 2017-05-10 15:43:43 +00:00
Julia Reynolds
45ba2ef24e Merge "Rename the legacy notification channel" into oc-dev
am: 0c34dc60c4

Change-Id: I3e16fc67c83eeb711d795d0b5a72fde0525ee39d
2017-05-10 15:42:21 +00:00
Svet Ganov
2be4ddbd63 Label the close image button
Test: manual

bug:38182393

Change-Id: I3a1e2e18c651b02b16c8e370b6be9ec2ed5e41e5
2017-05-10 15:12:50 +00:00
Daniel Sandler
1201831262 Merge "Enable notifications during an ongoing call" into oc-dev
am: b94abe5e30

Change-Id: I9d65601fff941d5a3764cde34f9c658ea1d2a435
2017-05-10 15:00:20 +00:00
Julia Reynolds
0c34dc60c4 Merge "Rename the legacy notification channel" into oc-dev 2017-05-10 14:56:25 +00:00
Daniel Sandler
b94abe5e30 Merge "Enable notifications during an ongoing call" into oc-dev 2017-05-10 14:43:05 +00:00
Julia Reynolds
c874b9f295 Rename the legacy notification channel
Bug: 38120923
Test: make
Change-Id: Id4ee584b1420f98da57350dbc75a6449462a9c24
2017-05-10 12:50:54 +00:00
Svetoslav Ganov
2b3385ab9d Merge "Allow null fill values to support authentication case" into oc-dev am: 90bcc1c8bc
am: 0e4f1bab09

Change-Id: I4f95cb012fd5d8b96c2beb097aa3b09c8c557b74
2017-05-10 06:43:26 +00:00
Svetoslav Ganov
0e4f1bab09 Merge "Allow null fill values to support authentication case" into oc-dev
am: 90bcc1c8bc

Change-Id: Ic065135e2812818ac90e814d5759f343eed6d862
2017-05-10 06:27:07 +00:00
Rebecca Silberstein
e694fa7f29 Create a new NETWORK_SETTINGS permission
Create a new signature permission that allows SystemUI to call critical
methods in Connectivity and Wifi Services.

Bug: 36760523
Test: make
Change-Id: I475e4c1c040fd3dee87b86d2845c0801195d29d1
2017-05-09 23:15:17 -07:00
TreeHugger Robot
d2c671b85c Merge "Testra RSSI compliance" 2017-05-10 04:52:46 +00:00
Svetoslav Ganov
a9379d0b44 Allow null fill values to support authentication case
If a dataset needs to be authenticated the fill service
may not have the values but needs to tell the system for
which fields to show the fill UI. We now allow passing
a null value to mean the view is a part of the dataset
semantically but its value should remain unchanged.

If a dataset has no values, i.e. the related autofill ids
are mapped to null, we cannot properly filter. In this case
we always match such items regardless what the user typed.

While at this improved accessibility support for filtering
to announce when the number of items being filtered changes.

Also while at this allowed a dataset authentication to return
a response which replaces the current response and refreshes
the UI. Matching datasets with null values to any text plus
allowing a response to be returned from a dataset auth enables
the use case where there is always "Import" item at the
end of the list which when clicked can show arbitrarily more
data entries associated to other apps.

Another change is that we now provide the client state
bundle on both request and dataset auth.

Finally, this change gets rid of dataset waiting auth and
response waiting auth concepts since the reference to the
response and the dataset is piped with the auth request.

Fixed a bug where the width of the autofill UI was not
properly measured by going over all items in the adapter.
Now we measure enough height to fit the first three and the
width id the width of the widest item in the adapter.

Test: Added LoginActivityTest#testDatasetAuthTwoFieldsReplaceResponse
      Added LoginActivityTest#testDatasetAuthTwoFieldsNoValues
      Added LiginActivityTest#filterTextNullValuesAlwaysMatched
      All autofill CTS tests pass

bug:37724701
bug:37424539

Change-Id: Ic19e5d7cbdbb7d110c9e7da0ad60b540cbf1aecf
2017-05-09 17:40:28 -07:00
Adrian Roos
6f6e159484 AOD: Notification groups on Ambient Display
Bug: 36690937
Test: receive notification group on ambient display
Change-Id: I9dd91b85432e3d4309e0eb78a7b03ada87c3554e
2017-05-09 17:02:25 -07:00
Sooraj Sasindran
00dc7debcf Testra RSSI compliance
Devices that support 4 bar signal strength
indication should display the bars as follow:

4 bar   RSRP   > -90
3 bar   -90 ≥    RSRP   > -100
2 bar  -100 ≥   RSRP   > -115
1 bar   -115 ≥  RSRP   > -120
0 bar   RSRP    ≤ -120
      or No Sync to LTE Reference Signals

Bug=37187586

Change-Id: I2a76aabdf6d8ef1be3a05a90643b1e670f929bc3
2017-05-09 23:51:23 +00:00
Amin Shaikh
11176569e1 Create a NotificationChannel for ONA.
- Construct the NETWORK_AVAILABLE NotificationChannel in
SystemNotificationChannels

Bug: 37794067
Test: make
Change-Id: I27aa69f8d038af238343eabc706147a02cad7330
2017-05-09 14:15:14 -07:00
Joe LaPenna
08f21accd8 Revert "Delete old WifiNotificationController strings."
This reverts commit 9a0dd58ec0.

Bug: 37794067,32981344
Test: make

Change-Id: Id13dac962ff9fea890375f0d87da155282c1d55b
2017-05-09 11:31:48 -07:00
TreeHugger Robot
f6917511b1 Merge "Import translations. DO NOT MERGE" 2017-05-09 18:23:03 +00:00
TreeHugger Robot
bd09eb33b4 Merge "Add system feature flag FEATURE_WIFI_PASSPOINT" 2017-05-09 17:21:35 +00:00
Marta Białka
39c992f100 Enable notifications during an ongoing call
If a phone call is ongoing, the alert will be allowed but
only using a special incall notification tone and no
vibration.  The tone will be played on the voice call audio
stream.

Also enable customization of the relative volume of the in
call notification volume. This allows the level to be
changed for different operators using overlays.

The requirement behind this is to allow audible SMS/MMS
notifications during phone calls, something that is
requested by a number of European operators.

Bug: 28688969
Change-Id: Ia8ce5c784a847e6759b55e6a78ac2100db47df19
Test: manual
2017-05-09 13:20:58 -04:00
Bill Yi
b6c1a2ce79 Import translations. DO NOT MERGE
Change-Id: I9deffa5c57526a4ad734e3b7d05a14b88cda3fce
Auto-generated-cl: translation import
2017-05-08 22:38:21 -07:00
Bill Yi
3bcbe4b256 Import translations. DO NOT MERGE
Change-Id: Id725df3ce9c2ddef04c9979f7b798e3cf816d269
Auto-generated-cl: translation import
2017-05-08 22:16:09 -07:00
Peter Qiu
b99fe31dc7 Add system feature flag FEATURE_WIFI_PASSPOINT
This feature will be used to indicate device's support for Passpoint.
The apps will be able to call PackageManager#hasSystemFeature(FEATURE_WIFI_PASSPOINT)
if Passpoint is supported or not.

While there, remove the legacy build config flag for enabling Passpoint
(aka Hotspot 2.0).

Bug: 36886243
Test: Manual test
Change-Id: I99e9299a1ddbb8024f12a5a90a975eb54246cc97
2017-05-05 15:40:45 -07:00
Jeremy Joslin
45caa2538e Adding a new config and Setting for WiFi Wakeup.
Created a new config for WiFi Wakeup (config_wifi_wakeup_available)
and defaulted it to NOT_AVAILABLE.

Also added a new global Settings constant (WIFI_WAKEUP_AVAILABLE)
and defaulted it to the value of the new config noted above.

Bug: 37987491
Bug: 38036968
Test: Built, flashed and confirmed proper config value.
Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/SettingsProviderTest.java
Change-Id: I0cdca4262a0ef473fcbbf7da8d960c41dfafb11f
2017-05-05 15:12:26 -07:00
Hyunyoung Song
eff12badb7 Merge "Fix issue in InsetDrawable where master inset attribute get ignored. Test: builds, and did manual test b/37752336" into oc-dev am: 52eba0ad70
am: 3c69ff323a

Change-Id: I146034df4aaf54d137897855f60133859deb45cc
2017-05-05 21:15:21 +00:00
Hyunyoung Song
3c69ff323a Merge "Fix issue in InsetDrawable where master inset attribute get ignored. Test: builds, and did manual test b/37752336" into oc-dev
am: 52eba0ad70

Change-Id: I0bf917bccbd2747ea18049577f5d79fe457eea4f
2017-05-05 21:09:23 +00:00
Hyunyoung Song
52eba0ad70 Merge "Fix issue in InsetDrawable where master inset attribute get ignored. Test: builds, and did manual test b/37752336" into oc-dev 2017-05-05 20:52:55 +00:00
Neil Fuller
056156f616 Add (disabled) time zone update system server impl
This commit builds on top of prior API commits. It
adds code to the system server, but in a disabled way.

The system server is responsible for monitoring two
(configured) package names: one for the "updater app"
(provided by the platform) and one for the "data app"
(provided by the OEM). When either package changes
the updater app is triggered via a privileged
intent.

The updater is then required to communicate with the
data app and report back to the system server.

Unit tests are included for the major components.

To run:
make -j30 FrameworksServicesTests
adb install -r -g "out/target/product/angler/data/app/FrameworksServicesTests/FrameworksServicesTests.apk"
adb shell am instrument -e package com.android.server.timezone -w com.android.frameworks.servicestests \
    "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"

This contains a cherry-pick / conflict resolution of
commit 68f666693a after an automerger skip.
(cherry picked from commit 68f666693a)

Test: See above.
Bug: 31008728
Merged-In: I8f82cdcc2b574778a7e0d0184270f305b69ee17b
Change-Id: I8f82cdcc2b574778a7e0d0184270f305b69ee17b
2017-05-05 17:09:58 +01:00
TreeHugger Robot
f996c71431 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-05-05 12:24:06 +00:00