Commit Graph

389 Commits

Author SHA1 Message Date
TreeHugger Robot
af52d9815a Merge "Add setting for GNSS location request update duration" into pi-dev 2018-04-18 18:10:04 +00:00
Tej Singh
abdf6e8039 Merge "Enforce dump permission in stats service" into pi-dev 2018-04-17 01:34:47 +00:00
Tej Singh
dd83d70371 Enforce dump permission in stats service
Enforces the dump permission in stats service and fixes a typo in an
enum name.

Bug: b/77723108
Test: adb shell dumpsys stats as root and not root
Test: build success on marlin (and cts build success)
Change-Id: I131f97fe4fd370d50bc4ad369377f6adcca5f6ae
2018-04-16 15:04:28 -07:00
Kweku Adams
1856a4cfcc Adding privacy tags to graphicsstats proto.
Creating a copy of the graphicsstats proto so that one can be tagged
with privacy annotations and the other can be used internally while
still using the protobuf-cpp-lite library.

Bug: 72570104
Test: flash device and check incident output
Merged-In: I2d72e7bd17689c1401a16d5a13956e6528ddb525
Change-Id: I0a46ee6cc463b133925be1cf8dee8cf3d107930c
2018-04-12 14:23:15 -07:00
Kweku Adams
6d49896324 Merge "Setting stack traces to EXPLICIT." into pi-dev 2018-04-12 17:23:17 +00:00
TreeHugger Robot
4738c7d0ab Merge "Cleaning up frameworks protos." into pi-dev 2018-04-12 09:55:45 +00:00
TreeHugger Robot
ce9fe591ac Merge "Fixing typo in proto field." into pi-dev 2018-04-12 01:33:01 +00:00
TreeHugger Robot
4e0fc234d9 Merge "Turning print proto dump back on." into pi-dev 2018-04-12 01:02:17 +00:00
Kweku Adams
21b8d26084 Cleaning up frameworks protos.
Note: It is currently only safe to renumber the fields because we have
not started using them yet.

* animationadapter: added in http://ag/3709688, but was not following
the indentation policy or the unit naming policy. The durations that
have documentation in
frameworks/base/services/core/java/com/android/server/wm/ state that
they're in milliseconds. These durations didn't have documentation, but
I'm assuming they're in the same units.
* batterystats: was not following the indentation policy
* jobscheduler: AppIdleController was removed in http://ag/3699210 and
the proto was only partially updated
* powermanagerservice: BatterySaverStateMachineProto added in
http://ag/3763026 but was not privacy tagged and the indentation was off
* surfaceanimator: was not following the indentation policy
* remote_animation_target: was not following the indentation policy
* others: weren't following the indentation policy

Bug: 74975371
Test: flash device and run 'test CtsIncidentHostTestCases'
Change-Id: Id012f4690b1d58816fef096523e1a0ea2bccadb0
2018-04-11 16:55:33 -07:00
Kweku Adams
3984cf625c Fixing typo in proto field.
Bug: 72814439
Bug: 74975371
Test: atest CtsIncidentHostTestCases:com.android.server.cts.UsbIncidentTest
Change-Id: Ia04c13b96bd1996e6e96f9b4e2e693af4cb97070
2018-04-11 16:35:50 -07:00
TreeHugger Robot
5d9498a62c Merge "Updating BatteryStats to account for Ambient Display sipper." into pi-dev 2018-04-11 22:28:17 +00:00
Winson Chung
95f2937499 Merge "Prevent extraneous saving of pinned snap fraction." into pi-dev 2018-04-11 02:32:46 +00:00
Kweku Adams
ef72895a48 Updating BatteryStats to account for Ambient Display sipper.
The sipper was added in http://ag/3667626 but BatteryStats wasn't
updated to properly output the data.

Bug: 77877717
Test: flash device and check batterystats output
Change-Id: Ibf98545a147f2d62dd29c57dd7efa14ed4c58aa6
2018-04-10 18:24:41 -07:00
Mehdi Alizadeh
1264d880e2 Adds entries for Swipe Up Enable in Settings.Secure
Bug: 77549883
Test: None
Change-Id: Ie346c4f527fa014eadbfaa1d81d7f8a5f37f653f
2018-04-09 18:28:04 +00:00
Winson Chung
82267ce197 Prevent extraneous saving of pinned snap fraction.
- When the PIP is dismissed offscreen, the pinned stack can receive
  onConfigurationChanged (when its windowing mode is set back to
  fullscreen) after the stack is hidden.  In this case, the saved snap
  fraction will be incorrect leading to a wrong animation on the next
  PiP animation. We don't expect the snap fraction to be saved in this
  case since the user is not expanding the PiP.
- Also add the animating-bounds state to the proto for use in the cts
  tests.

Bug: 73775460
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests
Change-Id: I30398ecf11de045d11a95282b8203e4d2d344ae9
2018-04-06 18:35:22 -07:00
TreeHugger Robot
e0dfebcce3 Merge "Turning on proto dumping for stack traces." into pi-dev 2018-04-06 20:41:01 +00:00
Yu-Han Yang
ab3e7bdd62 Add setting for GNSS location request update duration
Bug: 77696830
Test: atest SettingsBackupTest
Change-Id: I4514070ba12de2d1c4c47c03a9bf70d8f57fe197
2018-04-06 11:44:21 -07:00
TreeHugger Robot
b1bcab2210 Merge "Implements GNSS satellite blacklist" into pi-dev 2018-04-05 23:28:19 +00:00
TreeHugger Robot
72a39eb3be Merge "This cl tries to fix cts tests IncidentdTest" into pi-dev 2018-04-05 18:48:59 +00:00
Hall Liu
fe85e4589b Merge "Move RTT system setting to Settings.Secure" into pi-dev 2018-04-05 18:15:37 +00:00
Yu-Han Yang
66c7ea91b4 Implements GNSS satellite blacklist
Bug: 38269641

Test: m -j ROBOTEST_FILTER=GnssSatelliteBlacklistHelperTest RunFrameworksServicesRoboTests
Test: atest SettingsBackupTest
Test: Tested with adb on device

Change-Id: Ifaa330bf74353ea5c8826f0000d1935258b8dbf2
2018-04-05 08:57:04 -07:00
Hall Liu
44e41012ec Move RTT system setting to Settings.Secure
Bug: 76449217
Test: manual
Change-Id: I85620d5b834aa7e04579212f3fd5cf6c0498b570
2018-04-05 01:18:02 +00:00
Yi Jin
ad3e6e5d5a This cl tries to fix cts tests IncidentdTest
1. Disable BatteryType section which is device-specific
2. Make timeout longer since meminfo section timedout in test
3. make some negative values sint
4. varint can be 64 bits, there is a bug implicitly convert it to 32
which loses values.
5. Found another bug which failed to read 64 bits varint, create a
native test to make sure it works.

Bug: 77291057
Test: atest CtsIncidentHostTestCases:com.android.server.cts.IncidentdTest
Change-Id: I04cc730741f7901f37ac57a11af7777d57118a23
2018-04-04 16:29:55 -07:00
Kweku Adams
39cb92086f Turning on proto dumping for stack traces.
Bug: 72177715
Test: flash device and check incident.proto output
Change-Id: I009a2ef07a47431d4af1c0b59c49634946c96710
2018-04-03 18:29:40 -07:00
Kweku Adams
995db766b9 Turning print proto dump back on.
Bug: 72570451
Test: flash device
Change-Id: I605a49b2aad602e2bf7add5688cce40986547f7d
2018-04-03 17:12:51 -07:00
Kweku Adams
cee85f1b16 Setting stack traces to EXPLICIT.
After some discussion, we've decided to set these to EXPLICIT.
Bug: 72177715
Test: N/A

Change-Id: Ia118ce3ba4f8ec7e643f6759e99cd32721150756
2018-04-03 17:11:26 -07:00
Kweku Adams
03a73cd40f Disabling print dumping for now.
Also updating privacy tags.

Bug: 72570451
Bug: 74975371
Test: Android builds
Change-Id: Ia1e6a5d0f5e4f141154fc5346bff432149c9123e
2018-04-02 15:03:28 -07:00
TreeHugger Robot
75c4f589b9 Merge "Enable Last Kmsg, also fix the GZipSection test." into pi-dev 2018-03-30 14:54:55 +00:00
Yi Jin
c858e2781c Enable Last Kmsg, also fix the GZipSection test.
Bug: 73354384, 76208934
Test: atest incidentd_test and manual as well
Change-Id: I074027f4d972686ae3e9415b50e4d3967f6a2355
2018-03-29 18:44:54 -07:00
TreeHugger Robot
0246723afe Merge "Add more privacy tags." into pi-dev 2018-03-30 00:43:58 +00:00
TreeHugger Robot
12912d71b1 Merge "Creating java package for Privacy proto." into pi-dev 2018-03-29 23:37:55 +00:00
Kweku Adams
15caf835ec Creating java package for Privacy proto.
Also setting fields in the GlobalSettingsProto.Private message to LOCAL.

Bug: 72814439
Bug: 74975371
Test: flash device and check incident.proto output
Change-Id: Ia580144b8b0d0cb9bd9a3297a37213ed5f60a514
2018-03-29 14:28:57 -07:00
Yi Jin
e5e2a75e8e Add more privacy tags.
Bug: 74837756
Test: manual
Change-Id: I8993ae736df171f379aa6e24e865a6fbace9d091
2018-03-29 20:35:17 +00:00
Artem Iglikov
5b53875fdc Clear app data before full restore for specified packages
In some cases (deferred restore) the app data needs to be cleared even
if the app has implemented backup agent. As a quick fix introduce
PACKAGES_TO_CLEAR_DATA_BEFORE_FULL_RESTORE secure setting, which
transport can fill prior to restore.

Bug: 69069240
Test: adb shell settings put secure packages_to_clear_data_before_full_restore com.google.android.apps.nexuslauncher && adb shell bmgr restore com.google.android.apps.nexuslauncher
Change-Id: I2a4651365d9cf4747f32d2ba69312f54cd03d118
2018-03-29 11:01:50 +01:00
TreeHugger Robot
ab34199e9c Merge "Found out it is not possible to exec procrank as non-root/shell. But it is ok to disable procrank since the information can be obtain via dumpsys meminfo" into pi-dev 2018-03-28 19:37:46 +00:00
Jorim Jaggi
13c4b14e92 Merge "Add different animation for transitions with translucent apps" into pi-dev 2018-03-28 19:09:08 +00:00
Jorim Jaggi
98a9d206be Add different animation for transitions with translucent apps
None of the existing animation really work with transitions in
which a translucent app is appearing/disappearing. Add a separate
animation for that and change all existing transitions to these
new transition types in case we detect that only translucent
activities are appearing/disappearing.

Test: Sharesheet animations
Test: go/wm-smoke
Change-Id: Iffe57b7664dddf647d723c91d115ade60c12ad33
Fixes: 37953606
Fixes: 70730519
Fixes: 72649981
Fixes: 72686618
2018-03-28 16:46:41 +02:00
TreeHugger Robot
788e74a613 Merge "Marking ClipData as LOCAL and adding comment in jobscheduler proto." into pi-dev 2018-03-27 23:17:31 +00:00
TreeHugger Robot
f2977ce61e Merge "Refactoring SystemSettingsProto to avoid method limit." into pi-dev 2018-03-27 22:54:51 +00:00
Yi Jin
c36e91dd12 Found out it is not possible to exec procrank as non-root/shell.
But it is ok to disable procrank since the information can be obtain via
dumpsys meminfo

Optimize the code style a bit.

Bug: 72510307
Test: atest incidentd_test
Change-Id: If06201aa708461b569d9fb007f20d1e51342d5c2
2018-03-27 15:01:20 -07:00
TreeHugger Robot
dda147e179 Merge "Fix statsd logging in BatteryStats (nesting prob.)" into pi-dev 2018-03-27 21:45:46 +00:00
Kweku Adams
a9c0bb17e0 Refactoring SystemSettingsProto to avoid method limit.
Bug: 76011704
Bug: 74975371
Test: flash device and check incident.proto output
and m EMMA_INSTRUMENT_STATIC=true EMMA_INSTRUMENT=true out/target/common/obj/APPS/CtsStatsdApp_intermediates/jacoco/work/instrumented/updated.stamp
and atest CtsIncidentHostTestCases:com.android.server.cts.SettingsIncidentTest

Change-Id: I30bb0f35dacd55c11603f9f8b9888c7d35df7a54
2018-03-27 11:44:42 -07:00
TreeHugger Robot
4bd3f99bfe Merge "Refactoring SecureSettingsProto to avoid method limit." into pi-dev 2018-03-27 18:09:37 +00:00
Bookatz
235343daec Fix statsd logging in BatteryStats (nesting prob.)
Several statsd atoms are not logged correctly from batterystats, due to
possible nesting issues (batterystats only reports a single stop at the
end, whereas statsd expects each stop, resulting in statsd thinking that
the event is still continuing). This cl fixes those.

Bug: 69478888
Test: current ones still pass
Change-Id: I3ae8d7cc3d2eec7d4ab2721c83d208384adbf690
2018-03-27 09:32:18 -07:00
TreeHugger Robot
6e2ef53a72 Merge "Fix privacy tags based on go/irpf." into pi-dev 2018-03-27 05:35:25 +00:00
Kweku Adams
9081c76d75 Refactoring SecureSettingsProto to avoid method limit.
I'll do SystemSettingsProto in a separate CL.

Bug: 76011704
Bug: 74975371
Test: flash device and check incident.proto output
and m EMMA_INSTRUMENT_STATIC=true EMMA_INSTRUMENT=true out/target/common/obj/APPS/CtsStatsdApp_intermediates/jacoco/work/instrumented/updated.stamp
and atest CtsIncidentHostTestCases:com.android.server.cts.SettingsIncidentTest

Change-Id: I47d4843ff21bbdde0cdc0a1f5754c22c4e642aa7
2018-03-26 16:29:55 -07:00
TreeHugger Robot
110a7c20f4 Merge "Sticky battery saver" into pi-dev 2018-03-26 21:41:09 +00:00
Makoto Onuki
a3cd7b9d53 Sticky battery saver
- When battery saver is enabled manually (i.e. via PM.setPowerSaveMode()),
it'll stick, and we'll re-enable battery saver even after a reboot
or a charge.

- Extracted all battery saver state transition logic into a separate
class.

Fix: 75033216
Bug: 74120126
Test: Manual test with "dumpsys battery set ...."
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/BatterySaverStateMachineTest.java
Change-Id: If020cd48f341b339783fe09dd35bc7199e737a52
Test: dumpsys power
Test: incident_report power
Test: atest CtsBatterySavingTestCases
2018-03-26 10:27:56 -07:00
Kweku Adams
b4e545381f Refactoring GlobalSettingsProto to avoid method limit.
This is a large CL, so I'll do the other two protos in separate CLs.

Bug: 76011704
Bug: 74975371
Test: flash device and check incident.proto output
Change-Id: I285e6495b122c36eded9f6fc3afa39c92c293ed5
also: m EMMA_INSTRUMENT_STATIC=true EMMA_INSTRUMENT=true out/target/common/obj/APPS/CtsStatsdApp_intermediates/jacoco/work/instrumented/updated.stamp
also: atest CtsIncidentHostTestCases:com.android.server.cts.SettingsIncidentTest
2018-03-23 18:03:43 -07:00
Yi Jin
2921dd0f87 Fix privacy tags based on go/irpf.
Bug: 74837756
Test: manual
Change-Id: I1619a967e9f8c9d7f16ba8fbbafe1ac2009051c7
2018-03-23 14:10:31 -07:00