Commit Graph

4641 Commits

Author SHA1 Message Date
Alex Salo
1e84afbac2 Merge "Add ADAPTIVE_SLEEP setting" 2019-01-22 18:10:44 +00:00
TreeHugger Robot
a2eeced7b7 Merge "Adding native flag namespace(netd)." 2019-01-22 04:36:25 +00:00
Svetoslav Ganov
4188aeb5d6 Merge "Use proper API to get op name" 2019-01-22 03:51:14 +00:00
Remi NGUYEN VAN
b0d60c4cf8 Merge "Add NetworkMonitor constants to SystemApi" 2019-01-22 01:46:12 +00:00
Ajay Panicker
454e59d5a1 Merge "Add Filtering for snoop logs based on L2CAP and RFCOMM Channels (2/4)" 2019-01-22 00:00:12 +00:00
Alex Salo
1dea1e6503 Add ADAPTIVE_SLEEP setting
Test: make RunSettingsRoboTests
Bug: 111939367
Change-Id: I92f78cd8730d94444024cdce24ddadee24f79176
2019-01-21 14:39:29 -08:00
Remi NGUYEN VAN
d0a933476c Add NetworkMonitor constants to SystemApi
NetworkMonitor lives in the NetworkStack which must only use system
APIs. This includes constants used by NetworkMonitor and captive portal
login.

Bug: 112869080
Test: m
(Cherry-pick of aosp I4879568d3fbf9435767c8d4d0ab5198d421a2f4f)

Change-Id: I8b5f0bb61c3ef0d2f33af7dd67b72ac6c5a1d1b5
2019-01-21 21:07:10 +09:00
chenbruce
db279e8b39 Adding native flag namespace(netd).
For experiment flag testing, adding netd flag in DeviceConfig.

Test: add sepolicy, m -j, check GetServerConfigurableFlag function in netd
Bug:122050512
Change-Id: Ie24cdd145d955b1d6d6bae8e4b5c20740eb8ed95
2019-01-21 18:10:49 +08:00
Jeff Sharkey
4260098e02 Merge "Filter volumes to only those the caller can see." 2019-01-21 00:54:31 +00:00
Jeff Sharkey
3036089cfa Filter volumes to only those the caller can see.
Don't return volumes that caller can't actually use.  Also add feature
to indicate that device supports "virtual disk" feature to verify
secondary external storage behaviors.

Bug: 117932814
Test: atest MediaProviderTests
Test: atest cts/tests/tests/media/src/android/media/cts/MediaScanner*
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I66091c532ab5dac5032a82b136c590ac5a2a983a
2019-01-20 14:57:38 -07:00
Jeff Sharkey
ef033dada9 Merge "Better volume name argument checking." 2019-01-20 21:52:00 +00:00
Svet Ganov
65f1b9ef44 Use proper API to get op name
Test: atest CtsAppOpstTestCases

Change-Id: Ibc5d9775092e6d82e7beb7163d91c1f9ea87e1be
2019-01-20 13:42:57 -08:00
Jeff Sharkey
8559e65694 Better volume name argument checking.
Bug: 117932814
Test: atest MediaProviderTests
Test: atest cts/tests/tests/media/src/android/media/cts/MediaScanner*
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I799d04a30e5328c1b9266357f192a3e65e24a28d
2019-01-20 11:37:03 -07:00
Jeff Sharkey
f4246a1c17 Merge "Better scanning of secondary storage volumes." 2019-01-20 17:55:05 +00:00
Jeff Sharkey
1eda2caa98 Better scanning of secondary storage volumes.
There's been a long-standing bug where secondary external storage
volumes were being scanned into a single "external" database.  We've
had the logic in MediaProvider for a long time to support individual
databases on a per-UUID basis, but that regressed at some point.

This change revives that logic, which has the benefit of greatly
speeding up media scanning of secondary storage devices, since we can
preserve those databases instead of churning the primary "external"
database whenever they're ejected and reinserted.

Future work will clean up stale databases in the recently added idle
maintenance service.

Bug: 117932814, 122060093
Test: atest MediaProviderTests
Test: atest cts/tests/tests/media/src/android/media/cts/MediaScanner*
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Ib48577a2146758acd882db0b1767e88f3a70247f
2019-01-19 17:27:16 -07:00
Jeff Sharkey
f81494a161 Return valid path for secondary storage devices.
Bug: 122900949
Test: manual
Change-Id: I3ce5ca49720dc1854dd5207d29f59fa85821f23e
2019-01-19 13:26:20 -07:00
Jayachandran Chinnakkannu
a09c7737aa Merge "Cellular data stall recovery based on networkStatus" am: 44631dfc26 am: e9dc415e2b
am: 58a61cc734

Change-Id: I0196a9f1da64efd6a811139bb9d2de7e39defe11
2019-01-18 16:18:57 -08:00
Jayachandran Chinnakkannu
58a61cc734 Merge "Cellular data stall recovery based on networkStatus" am: 44631dfc26
am: e9dc415e2b

Change-Id: I2e381e9215a2d8f036a0de4f021573688250c142
2019-01-18 15:43:03 -08:00
Jayachandran C
8ef41bf34f Cellular data stall recovery based on networkStatus
This CL introduces cellular data stall recovery based on
network validation result. It still re-uses the existing
recovery steps but the triggers are based on networkStatus
from NetworkMonitor when the network is bad. Each recovery
step is spaced by a configurable grace period (default 3 mins)
to avoid back to back recovery.

This feature is controlled by the following settings. If this
feature is enabled then the legacy data stall detection based
on TrafficStats will automatically be disabled.

Settings.Global.DATA_STALL_RECOVERY_ON_BAD_NETWORK
1 => Enabled (default)
0 => Disabled

Settings.Global.MIN_DURATION_BETWEEN_RECOVERY_STEPS_IN_MS
3 minutes is default value

Bug: 113916551
Test: atest FrameworksTelephonyTests:com.android.internal.telephony.dataconnection.DcTrackerTest

Change-Id: I738fc7ed08803de1114f7a3d79bf278449e94ea8
2019-01-18 22:52:16 +00:00
Perumaal Shanmugam
b1882925b5 Merge "Add content_capture and autofill experiment namespaces" 2019-01-18 22:45:09 +00:00
Perumaal S
5c016dacb7 Add content_capture and autofill experiment namespaces
No functional changes, just @hide api changes.

Test: m update-api
Change-Id: I4e92c7dd3393edf3526ccd94dfd617fb225aa09a
Bug: 121037717
2019-01-18 12:07:38 -08:00
TreeHugger Robot
793f1a793c Merge "Add secure setting for custom clock face shown while docked." 2019-01-18 17:45:29 +00:00
Robert Snoeberger
6e5edde45c Add secure setting for custom clock face shown while docked.
Bug: 120772327
Test: build completed successfully
Change-Id: If643adc24502c6e8b13a4d225bf9c1f09fe200ca
2019-01-18 10:34:34 -05:00
Peiyong Lin
2893700ed9 Merge "Add DeviceConfig namespace for Game Driver." 2019-01-18 00:14:12 +00:00
TreeHugger Robot
68f90d0ecc Merge "Suppress IllegalArgumentException on API 28 or before" 2019-01-17 21:59:36 +00:00
Peiyong Lin
31fa8ac94d Add DeviceConfig namespace for Game Driver.
Add namespace to allow us to receive feature control values of Game Driver.

BUG: 121350991
Test: Build, flash and boot
Change-Id: I395c66c76eb8a0079f71bac1a2218e5e8d22391c
2019-01-17 13:12:10 -08:00
Stanislav Zholnin
2452709418 Merge "Added a new set of permissions for DeviceConfig API." 2019-01-17 10:16:25 +00:00
Shubang Lu
7e355f522e Merge changes Ibcebfcc2,Ic2e63185,I90def978,I30031fc9,I0cfa1989
* changes:
  Fix hdmi framework tests.
  Use the Short Audio Descriptor xml parser to get config when receive request short audio descriptor message.
  Add parser for Short Audio Descriptor xml config
  Add an API for clients to know if a target device is connected to the current device.
  Add TV_INPUT_ALLOW_3RD_PARTY_INPUTS to settings
2019-01-17 03:19:05 +00:00
Lucas Dupin
842af1ecd6 Merge "Add support to SLPI tap gestures" 2019-01-17 02:38:09 +00:00
Yiwei Zhang
c631eeadd6 Merge "GUP: Add a global property for genreal preference" 2019-01-17 02:02:44 +00:00
TreeHugger Robot
c810ff0157 Merge "Defer sending of ACTION_CHARGING" 2019-01-16 23:53:58 +00:00
Zhi An Ng
11b63629de Defer sending of ACTION_CHARGING
ACTION_CHARGING is sent when the device is in a good enough charging
state for power-heavy work to be done. It was sent immediately when this
determination was done:
1. plugged in and level >= 90
2. plugged in and level is increasing
However this lead to many jobs being ungated when this happen, and
defeats the purpose of plugging in your device to get a quick boost.

In the case of 2. we defer the sending of ACTION_CHARGING by a
configurable time, defaulting to 15minutes, after said determination.

The adb command to play with this is:

adb shell settings put global battery_stats_constants battery_charged_delay_ms=90000

Bug: 111360323
Test: Set the delay to 15s, then cmd battery unplug and reset,
verify that broadcast is sent in dumpsys activity broadcasts
Change-Id: I71f8d06604041efeba12fbdfd0374aaff2f04807
2019-01-16 23:53:17 +00:00
Lucas Dupin
d43bf70c58 Add support to SLPI tap gestures
This CL introduces a new configurable sensor type: config_dozeTapSensorType

Test: atest SystemUITests
Test: set config_dozeTapSensorType to double tap gesture on overlay
Bug: 121198822
Bug: 111414690
Change-Id: I54f3c20473a6d97c860ee02f324edbcf89ba85d1
2019-01-16 11:45:40 -08:00
shubang
3e32f59039 Add TV_INPUT_ALLOW_3RD_PARTY_INPUTS to settings
ag/5642255

Bug: 117782538
Test: make
Change-Id: I0cfa1989abf3e32162685871b3325b7593a78b41
2019-01-16 10:01:29 -08:00
Stanislav Zholnin
596437fd4e Added a new set of permissions for DeviceConfig API.
Permissions READ_DEVICE_CONFIG and WRITE_DEVICE_CONFIG are required to
use DeviceConfig API. Actual checks for new permissions are not added
as we are waiting for gmscore to include them into manifest.

Also added "configurator" protection flag.

Test: atest FrameworksCoreTests:DeviceConfigTest
      atest FrameworksCoreTests:SettingsProviderTest
      atest SettingsProviderTest:DeviceConfigServiceTest
Bug:109919982
Bug:113100523
Bug:113101834
Bug:117663715
Change-Id: I66c256b57c5491201c6c7834620a287b6c81c23c
2019-01-16 10:50:51 +00:00
Allen Su
86c7e98c17 Merge "Add new intent ACTION_REPORT_RADIO_BUG and setting for radio error" 2019-01-16 02:43:40 +00:00
Shubang Lu
a6c9e20c26 Merge changes I97f97167,I4bf51c47,I8d3193e0,I224a1616,Ie774b0eb, ...
* changes:
  Adding HDMI_CEC_SWITCH_ENABLE Global property to enable/disable Routing Control feature.
  Fix spelling errors in HdmiCecMessage.toString
  More skeleton code for <RequestShortAuidoDescriptor>
  Add a getPhysicalAddress api to hdmicontrolservice.
  Set System Audio Mode on when switch to Audio Only source
  Call HdmiCecLocalDeviceAudioSystem to report audio status.
  Add a delay state into DeviceDiscoveryAction.
2019-01-16 01:40:24 +00:00
TreeHugger Robot
d526cb9019 Merge "Add skip and silence gestures" 2019-01-15 22:11:24 +00:00
Amy
0c2e29fafe Adding HDMI_CEC_SWITCH_ENABLE Global property to enable/disable Routing
Control feature.

ag/5338671

Test: local tested
Bug: 118276878
Change-Id: I97f9716717129235116dd70afd8a7055511e4268
2019-01-15 13:59:46 -08:00
Ajay Panicker
2c85718cfe Add Filtering for snoop logs based on L2CAP and RFCOMM Channels (2/4)
Snoop logs will now always exist but will be filtered by default. If
full logging is turned on then al the packets will be logged.

Bug: 112970672
Bug: 67669544
Test: See that the snoop file always exists but is filtered when
snooplogs are disabled and unfiltered when enabled.

Change-Id: I542a5908fcd8bf17964f76509de5c8e1b9925f42
2019-01-15 13:51:22 -08:00
Tyler Gunn
8089790805 Merge "Add CallerIdentification to CallScreeningService API." am: 6f37294f4c
am: 8657bc24e4

Change-Id: I158e7b8e1b1fd89e9c6e8f5f0c33b5c0e856b2cb
2019-01-15 08:53:35 -08:00
Yohei Yukawa
673ecb540d Also make SELECTED_INPUT_METHOD_SUBTYPE per-profile
This is a follow up CL to my previous CL [1], which implemented
per-profile IME behind the flag.

Some secure settings need to be cloned to the profile owner's settings
depending on whether per-profile IME is enabled or not.  My previous
CL correctly took care of the following settings,
 * DEFAULT_INPUT_METHOD
 * ENABLED_INPUT_METHODS
 * SELECTED_SPELL_CHECKER
 * SELECTED_SPELL_CHECKER_SUBTYPE
but somehow forgot to do so for SELECTED_INPUT_METHOD_SUBTYPE.

With this CL, SELECTED_INPUT_METHOD_SUBTYPE also becomes per-profile
when per-profile IME is enabled with the runtime flag.

 [1]: Ied99664d3dc61b97c919b220c601f90b29761b96
      a878b9500e

Bug: 121348796
Test: Manually made sure as follows.
  1. adb root
  2. adb shell setprop persist.debug.per_profile_ime 1
  3. adb reboot
  4. Install Test DPC.
  5. Enable managed profile with Test DPC.
  6. adb shell settings 'put secure --user 0 enabled_input_methods \
      "com.android.inputmethod.latin/.LatinIME;-921088104;774684257"'
  7. adb shell settings 'put secure --user 10 enabled_input_methods \
      "com.android.inputmethod.latin/.LatinIME;-921088104;774684257"'
  8. Open "Files" app for the main profile.
  9. Tap the search box to show AOSP Keyboard.
 10. Tap the globe button on the AOSP Keyboard to switch to Deutsch
     layout.
 11. Open "Files" app for the work profile.
 12. Tap the search box to show AOSP Keyboard.
 13. Make sure that the AOSP Keyboard is in English layout.
Change-Id: I9696396eb5f99b2e45a95d356b4da09502ac7e3d
2019-01-15 07:48:26 -08:00
Beverly
5015ac872e Add skip and silence gestures
Test: manual
Bug: 118388808
Change-Id: I099484cd37737741bf9d003ea9003e76ac8cf147
2019-01-14 19:50:48 -05:00
TreeHugger Robot
a5e892f577 Merge "Add native flag namespace for input" 2019-01-14 17:00:41 +00:00
TreeHugger Robot
efad1da2f1 Merge "Update documentation on notification policy access" 2019-01-14 14:35:47 +00:00
TreeHugger Robot
cf136dd1ff Merge "Add experiment flag for smart suggestions in heads-up notifications." 2019-01-14 11:42:49 +00:00
allenwtsu
f63b644cbe Add new intent ACTION_REPORT_RADIO_BUG and setting for radio error
Add an intent ACTION_REPORT_RADIO_BUG for reporting radio error
Also add new settings for radio error detection

Bug: 113635050
Test: Build pass
Change-Id: I060db9b11776a67ce4da1c3142b2e6cdc23f38cf
2019-01-14 10:33:38 +08:00
Shubang Lu
9af8f281d0 Merge changes I7bfdcbaf,I260b354b,I42ca55eb,If38d5443,I3fbc3368, ...
* changes:
  Atom: initPortInfo when receive hotplug from tx for audiosystem device[1/3]
  handle manual port switching
  Claim Active Source during System Audio Mode init by AVR when the device also has playback type and can't get Active Source.
  Switch away from ARC input when ARC is terminated.
  Request Active Source when ARC is enabled in ArcInitiationActionFromAvr.
  Refactor the Active Source updating logic in CEC devices.
  Fix tests failure on com.android.server.hdmi
  Making functions visible for testing com.android.server.hdmi
  Back out unneeded ag/4808863. Standby has been handled in ag/4881453.
2019-01-12 07:55:38 +00:00
Seigo Nonaka
2a424a7be3 Suppress IllegalArgumentException on API 28 or before
Bug: 119432246
Test: N/A
Change-Id: I7fba3e4d21fc895dfee4300db7d7e3000095ff92
2019-01-11 12:11:13 -08:00
Kweku Adams
21909c112b Merge "Moving BatterySaverPolicy into batterysaver directory." 2019-01-11 19:41:14 +00:00