714 Commits

Author SHA1 Message Date
TreeHugger Robot
6c1d1c32e3 Merge "Update comment to use statsd." 2019-03-07 22:34:12 +00:00
Philip P. Moltmann
279e84697d Merge changes from topic "revokeLocOnUpgrade"
* changes:
  Control revoke-on-upgrade behavior for loc perm
  Revoke location permissions on upgrade from Pre-Q
  No special case for location permission
  Inherit flags when inheriting permission state
2019-03-07 20:42:38 +00:00
arangelov
c255cfad4a Update comment to use statsd.
Bug: 127824947
Test: none
Change-Id: Iaad68dbb2f44ee5d9ec3fbfd6f3ebd10d53d6b52
2019-03-07 19:51:31 +00:00
Philip P. Moltmann
e5d998f9fb Control revoke-on-upgrade behavior for loc perm
By default: Revoke on upgrade, but can be disabled by setting the
location_permissions_upgrade_to_Q_mode to anything but 0.

Fixes: 127285709
Test: Upgraded from P to Q with and without
      location_permissions_upgrade_to_Q_mode set
      atest --test-mapping frameworks/base/core/java/android/provider:presubmit
Change-Id: I4dd1772e78f46c881a5f747fcf61583beec2d6a2
2019-03-06 19:50:32 -08:00
Tony Mak
fc374578b7 Migrate to DeviceConfig in TextClassifier
ConfigParser is introduced to read the flags from DeviceConfig.
If the flag is missing, fallback to Settings.

Also, adds a new setting key: TEXT_CLASSIFIER_ACTION_MODEL_PARAMS

Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/
Test: adb shell cmd device_config put textclassifier system_textclassifier_enabled  false
      adb shell dumpsys textclassification, observed that the flag is updated.

BUG: 123389900
Change-Id: Icbd26ec7ed223e40b60696d12327cb123b96c4fd
2019-03-05 14:57:53 +00:00
Yi-Ling Chuang
ea9ec71908 Add log metrics for contextual card loading.
Bug: 124492762
Test: rebuild
Change-Id: I1481e72eb166f97f505ce2ad37a231c4bce96e01
2019-03-05 15:55:49 +08:00
Mill Chen
d768dc6163 Add log metric for Grayscale conditional
Bug: 118387886
Test: rebuild
Change-Id: I033f75e3dee2d335d540f7aed2a21dd52d2b8bc7
2019-03-04 13:10:52 +00:00
Jackal Guo
5af401bd35 Merge "Add new enum for accessibility detail settings" 2019-03-04 03:35:56 +00:00
Kevin Chyn
bf63b2035a Merge "Add logging for when cancel times out" 2019-03-01 04:47:19 +00:00
Kevin Chyn
d0b8b1fdae Add logging for when cancel times out
Fixes: 124513621

Test: Builds
Change-Id: Idf8f8eaeaf6847dedc8b850798c98cb250fdc8ac
2019-02-28 13:41:31 -08:00
Issei Suzuki
d6eb5a293b Fix a bug that an activity occluding the keygaurd keeps running behind AOD.
Test: test android.server.am.KeyguardTests
Bug: 123150006
Bug: 122263738
Bug: 124428337
Change-Id: If364e03083e3aea43fbe1bd88cd8089d925b5e98
2019-02-27 16:35:30 +00:00
Jackal Guo
3cc93c47e3 Add new enum for accessibility detail settings
- new PageId ACCESSIBILITY_DETAILS_SETTINGS

Bug: 123693167
Test: rebuild
Change-Id: I8e18384a5978b8dddba5d48f71b5f3679c4e558d
2019-02-27 10:46:14 +08:00
Mariia Sandrikova
908d813bdf Add Settings Aware Tutorial proto enums
Design doc: go/oslo-tutorial-logging

Test: manual
Bug: 123995137
Change-Id: Icb969343cb1f8092ab0427d04d4401107f5f4335
2019-02-26 11:40:29 +00:00
TreeHugger Robot
45ea8e6c2b Merge "Add Settings Contextual homepage log metrics" 2019-02-26 02:58:29 +00:00
Hyunyoung Song
80adf6be29 Add StyleUIChanged field to atoms.proto
Test: builds and flashed
Bug: 123356136

Change-Id: Ic24f282d7e799b263fada371d16c03dd4539a023
2019-02-23 22:04:11 -08:00
Raff Tsai
c3d33ca42f Add Settings Contextual homepage log metrics
Bug: 124701288
Test: compile it
Change-Id: I5ab2b8d4982c700062f0e9b24b1a501ad12738df
2019-02-23 15:01:32 +08:00
TreeHugger Robot
fb8509a3dd Merge "Create setting screen from Notification Assistant" 2019-02-23 04:30:23 +00:00
Fabian Kozynski
171f40d8a7 Create setting screen from Notification Assistant
Test: atest
Fixes: 120852765
Change-Id: I90b22daa67f73809697fd629dabec22ef991de54
2019-02-22 14:18:58 -05:00
Sherry Huang
a2c5d1a7f3 Merge "Implement USB-C overheat warning" 2019-02-21 23:09:08 +00:00
Sherry Huang
ce02ed3a46 Implement USB-C overheat warning
When device USB-C port is susceptible to short circuits and
overheating, pop up a warning dialog and keep showing until
user clicks OK button or see care steps.

Test: manually set the emulated temperature to trigger warning
Test: atest SystemUITests

Change-Id: I4f6080187196a9716f12a9817dc10d3265dc202b
Bug: 110134720
Bug: 116866524
Bug: 77790357
Bug: 117178820
2019-02-21 22:00:47 +08:00
joshmccloskey
99f390124f Formatting atoms.
Test: manual
Bug: 119898637
Change-Id: Id48030001c84e69fbdd92fa68b5a6881d3dc7e22
2019-02-20 14:45:08 -08:00
Yiwei Zhang
03f3ff20bf Game Driver: Add a Settings.Global property for sphal libraries
This change add the GAME_DRIVER_SPHAL_LIBRARIES property to save the
list of sphal libraries assessible to Game Driver.

Bug: 124448366
Test: Build, flash and boot.
Change-Id: I7cb06df80f19d87f5fd13d7df3c991ceb5bdfb06
2019-02-14 17:38:24 -08:00
Blake Kragten
0b2efd9f09 Merge "Power Monitor Addition framworks base:" 2019-02-14 19:33:34 +00:00
Chiachang Wang
06232688f2 Merge "Add build rule of data stall proto" am: f9727b43cb am: 6964f58149
am: fe42888761

Change-Id: I54d059d23ef628b338a5b406ddcf73477984e6e8
2019-02-13 21:28:03 -08:00
Chiachang Wang
8daede9700 Add build rule of data stall proto
Bug: 121185319
Bug: 120452078
Test: Build and test against data stall code
Change-Id: I3b243ab947464a431ef205c5f2f30edc883e2963
2019-02-14 10:55:03 +08:00
Blake Kragten
cb308d9c61 Power Monitor Addition framworks base:
Frameworks Base section of power monitor addition. Since IPowerStats
does not have a java interface, we needed to make a native interface
into the code. I followed how the LowPowerStats collection is being
done.

Native code is located in
com_android_server_am_BatteryStatsService.cpp. We are calling the
getEnergyData to get all rails energy data that has been collecting from
boot. This energy data is collected in uWs (microWatt seconds). After
the rail data is collected at each update in the RailStats class, the
wifi and cellular total energy values will contain the energy that all
rails associated with the specific subsystem will have.

We update and collect the energy data using battery stats and propagate
it to telephony metrics. When we collect the total energy for an update
we need to zero out the energy data so it can be accumulated correctly.

1/31: Added modemRailEnergy and wifiRailEnergy to Volta historian.

Bug: 115929961
Test: adb shell dumpsys activity service TelephonyDebugService --metrics
Results Examples:
	Energy consumed by modem (mAh): 2.41
	Energy Rails consumed by modem (mAh): 2.76
Dumpsys historian results:
	  +4m23s712ms (2) 100 cc511a18 modemRailChargemAh=0.34 wifiRailChargemAh=1.17 +wifi_scan stats=0:"dump"
         +10m24s089ms (2) 100 c4511a18 modemRailChargemAh=0.71 wifiRailChargemAh=1.77 stats=0:"write"
         +11m24s228ms (3) 100 c4511a19 volt=4315 charge=3988 modemRailChargemAh=0.77 wifiRailChargemAh=1.94 wifi_signal_strength=2 stats=0:"battery-state"

Change-Id: I97521a03204968079e61f3de86640d4f1a580255
2019-02-13 13:23:37 -08:00
Joshua Mccloskey
0abec21604 Merge "Adding additional atoms for assist gestures." 2019-02-13 02:02:24 +00:00
TreeHugger Robot
00aa3faa09 Merge "Add Settings Panels proto enums" 2019-02-13 00:53:58 +00:00
Matthew Fritze
4d1dc0bcdf Add Settings Panels proto enums
Test: manual
Bug: 117804231
Change-Id: I8f9637e69e98745608464fcd76727fde9259722e
2019-02-12 13:26:18 -08:00
joshmccloskey
8c3322eb41 Adding additional atoms for assist gestures.
Test: manual
Bug: 119898637
Bug: 121074595
Change-Id: I1a146569398a0a3cb224a1709662a37cb5f0c7cd
2019-02-12 13:20:59 -08:00
Tim Van Patten
ddc4391170 ANGLE In Use Dialog Box
When ANGLE is enabled for an app, show a dialog box to the user to
indicate that ANGLE is in use.   This is useful because there are
not (or at least shouldn't be) any visual indication that a different
OpenGL driver is in use.

Bug: 120489005
Test: atest CtsAngleIntegrationHostTestCases
Test: Load an app with ANGLE enabled and verify dialog box is shown.
Test: Load an app without ANGLE and verify dialog box is not shown.
Change-Id: I5e87ec96582d43666cfcca2266b46ce98b859a32
2019-02-12 13:53:36 -07:00
TreeHugger Robot
79822242de Merge "Split blacklist from versioned blacklists." 2019-02-12 19:23:01 +00:00
Peiyong Lin
075a9e833f Split blacklist from versioned blacklists.
Previously we use blacklist to get all blacklists, to maintain the consistency
between blacklist and whitelist, and to move blacklist processing to GPU
service, we added blacklists to store all blacklists, and now blacklist will
only represent one blacklist.

BUG: 120869311
Test: Build, flash and boot. Verified in master patch ag/6288554
Change-Id: Ifac875177ad959705c8f80672341c4cbee7bbc93
Exempt-From-Owner-Approval: Change in CoreSettingsObserver.java is too minor
2019-02-12 17:15:01 +00:00
Jack He
520e6616c3 Merge "Atom: add more information to BluetootSocketConnectionStateChanged" am: 1d9ca12d91 am: aaf19427cf
am: 2cdb8cddf4

Change-Id: I1a1723106e054ce1ecce5b482f2bdf57740aaa3c
2019-02-08 20:44:36 -08:00
Kevin Chyn
23cb02edec Merge "Rename BiometricHalDeathReported to be futute-proof and extendable" 2019-02-09 01:46:22 +00:00
Kevin Chyn
e5a37fb477 Rename BiometricHalDeathReported to be futute-proof and extendable
Adds two more system health issues to the new atom

Fixes: 124110923

Test: Builds
Change-Id: I4a617363d1dcefe551124178d66114fa7d490153
2019-02-08 14:39:10 -08:00
Jack He
e4ae0e7516 Atom: add more information to BluetootSocketConnectionStateChanged
* Add server_port field to track the server port number of a socket
* Add socket_role field to track whether the socket is a server listener
  or a connection socket
* Add uid field to track the owner of the socket

Bug: 112969790
Test: make, test drive with statsd
Change-Id: I0c86b724c748844009b8120befd454fb96137a61
2019-02-07 17:44:46 -08:00
Ahmed ElArabawy
dd4895f5b4 Merge "Statsd atom: Add WifiLock type" 2019-02-07 23:25:45 +00:00
Aurimas Liutikas
8f004c85a0 Add helper methods for View attribute debugging
Adding abilities to debug:
- Attribute resolution stack (which resources are looked
  at when resolving an attribute)
- Attribute value source (where did each attribute value
  get defined)
- Get explicit style id (if a view had it set via style="...")

This feature will be behind Settings.Global flag that Android
Studio will set to the debugged application package ID.

Bug: 111439551
Test: atest CtsViewTestCases:android.view.cts.ViewStyleTest
Change-Id: Ib6f9fc81000bb867b5b94a68953c99b0bc802d6c
2019-02-06 14:46:17 -08:00
Jack He
9c30c7c6ba Atom: Add BluetoothSocketConnectionStateChanged
* Logs when a Bluetooth socket's connection state is changed
* A Bluetooth socket can be:
  - RFCOMM socket
  - SCO socket
  - BR/EDR L2CAP socket
  - BLE L2CAP socket

Bug: 112969790
Test: make, test drive with statsd
Change-Id: I97b1e650e197a0dad1e2959e2f5b4dd98370d892
Merged-In: I97b1e650e197a0dad1e2959e2f5b4dd98370d892
(cherry picked from commit 815cdbaae0577654a6c019abbbd6d596e8cdb703)
2019-02-06 11:12:08 -08:00
Julia Reynolds
4509ce731c Add settings for notification bubbling
And a new api to consolidate that information for notification
listeners

Test: atest
Bug: 123543052
Change-Id: I61d1718ef5b5bb8ab824d4c3efff511669266313
2019-02-05 08:47:16 -05:00
Jack He
815cdbaae0 Atom: Add BluetoothSocketConnectionStateChanged
* Logs when a Bluetooth socket's connection state is changed
* A Bluetooth socket can be:
  - RFCOMM socket
  - SCO socket
  - BR/EDR L2CAP socket
  - BLE L2CAP socket

Bug: 112969790
Test: make, test drive with statsd
Change-Id: I97b1e650e197a0dad1e2959e2f5b4dd98370d892
2019-02-01 16:18:24 -08:00
Bernard Chau
dd6c3b1e22 New enum values for logging Settings SetNewPasswordActivity events
- new PageId SET_NEW_PASSWORD_ACTIVITY
- new Action ACTION_SET_NEW_PASSWORD
- new Action ACTION_SET_NEW_PARENT_PROFILE_PASSWORD

Bug: 120840632
Test: N/A
Change-Id: I330651d9858a45f8ae1489e49fddf969e0cb4957
2019-02-01 12:50:55 +00:00
Andy Hung
dd45d82911 Merge "Add master audio balance" 2019-02-01 01:53:28 +00:00
Edward Savage-Jones
35c292f57a Add master audio balance
Test: Change Balance through Settings, play audio
Bug: 28390736
Change-Id: I6cebd3fa448239999c5d624f10902152d0db679b
2019-01-31 15:30:42 -08:00
TreeHugger Robot
8ca3230f0c Merge "Define the proto for search avatar" 2019-01-31 19:16:34 +00:00
TreeHugger Robot
d47fcfdc72 Merge "Adding support for adaptive battery saver." 2019-01-31 08:37:32 +00:00
Kweku Adams
9f488e2eae Adding support for adaptive battery saver.
Adaptive battery saver is a state that can be entered into dynamically
without the user turning on full EBS. With this, some features of
battery saver can be enabled to save power before the user needs to have
EBS turned on.

Bug: 119261320
Bug: 32423528
Test: atest android.provider.SettingsBackupTest
Test: atest com.android.server.power.PowerManagerServiceTest
Test: atest com.android.server.power.batterysaver.BatterySaverPolicyTest
Test: atest com.android.server.power.batterysaver.BatterySaverStateMachineTest
Test: atest com.android.server.power.batterysaver.BatterySavingStatsTest
Test: atest CtsBatterySavingTestCases
Change-Id: Ib11ea069828275d788e20cd2e858375eaaea888e
2019-01-30 15:38:25 -08:00
Sunny Shao
ab08c4c76b Define the proto for search avatar
.Define the ACTION_CLICK_ACCOUNT_AVATAR for metrics_constants.proto.
.Define the CLICK_ACCOUNT_AVATAR for settings_enums.proto.

Change-Id: I1ed2afb4715629682fd846a1ff1db99a1991cec5
Fixes: 123560980
Test: compilation
2019-01-31 07:25:06 +08:00
TreeHugger Robot
225238209c Merge "Add metrics constants for dialog used to rename mobile networks" 2019-01-30 20:59:05 +00:00