OSDN Git Service
TreeHugger Robot [Thu, 12 Apr 2018 23:36:29 +0000 (23:36 +0000)]
Merge "Add tests to cover handling negative varint." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 23:23:00 +0000 (23:23 +0000)]
Merge "Revert "Revert "Update material_deep_teal_500 to #008577.""" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 23:03:39 +0000 (23:03 +0000)]
Merge "Adding privacy tags to graphicsstats proto." into pi-dev
Yi Jin [Wed, 11 Apr 2018 23:11:05 +0000 (16:11 -0700)]
Add tests to cover handling negative varint.
The gtest will fail if the fix of b/
77291057 isn't there. Should make
this change in with the fix, but later than none.
Bug:
77291057
Test: atest incidentd_test
Change-Id: I48ece311f78ee18d97486839a3b8b434c9419cf3
Jovana Knezevic [Thu, 12 Apr 2018 22:42:11 +0000 (22:42 +0000)]
Merge "Fixing when the full-screen switcher appears." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 22:34:16 +0000 (22:34 +0000)]
Merge "Further Clarify Scope of KEY_CARRIER_NAME_OVERRIDE" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 21:41:24 +0000 (21:41 +0000)]
Merge "Fix volume panel shadows" into pi-dev
Stanley Tng [Thu, 12 Apr 2018 21:39:52 +0000 (21:39 +0000)]
Merge "Add min_ce/max_ce parameters to requestLeConnectionUpdate()" into pi-dev
Kweku Adams [Tue, 3 Apr 2018 23:31:10 +0000 (16:31 -0700)]
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
TreeHugger Robot [Thu, 12 Apr 2018 21:13:34 +0000 (21:13 +0000)]
Merge "Remove poorly defined notification APIs." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 21:01:16 +0000 (21:01 +0000)]
Merge "Changed the appearance of phone call notifications" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 20:54:46 +0000 (20:54 +0000)]
Merge "Use system property to get the package name for media update" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 20:43:10 +0000 (20:43 +0000)]
Merge "Add method to get blocked app count" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 20:29:07 +0000 (20:29 +0000)]
Merge "Volume iconography update" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 19:54:12 +0000 (19:54 +0000)]
Merge "Add rate limiting and logging for NetworkStats." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 19:52:39 +0000 (19:52 +0000)]
Merge "Change fingerprint dialog radius to 4dp" into pi-dev
Julia Reynolds [Thu, 12 Apr 2018 19:38:54 +0000 (15:38 -0400)]
Fix volume panel shadows
Test: manual
Change-Id: I540ca9e1b0bc8359b562a1279e66a4c8fc05f4a0
Fixes:
77538456
Fixes:
77640244
Chris Tate [Thu, 12 Apr 2018 19:41:31 +0000 (19:41 +0000)]
Merge "Correct bg service start policy re bg-restricted state" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 19:39:39 +0000 (19:39 +0000)]
Merge "Move QuickStep onboarding strings from Launcher to SysUI" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 19:33:50 +0000 (19:33 +0000)]
Merge "Catch exceptions reading calendar events" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 19:33:29 +0000 (19:33 +0000)]
Merge "Limit status icons and show etc dots" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 19:23:43 +0000 (19:23 +0000)]
Merge "Show warning when enabling airplane mode in ECM." into pi-dev
Dmitry Dementyev [Thu, 12 Apr 2018 19:14:26 +0000 (19:14 +0000)]
Merge "Don't store deprecated trustedHardwarePublicKey field." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 19:09:39 +0000 (19:09 +0000)]
Merge "Greylist APIs used by Android Auto projection" into pi-dev
Julia Reynolds [Thu, 12 Apr 2018 18:42:08 +0000 (14:42 -0400)]
Volume iconography update
- Update icon color based on active state
- Make the accessibility icon the same size as the rest
Test: manual
Change-Id: I213bb99b7a45e42d0ac756508a00c554e55d551f
Fixes:
77538644
Fixes:
77540071
Remi NGUYEN VAN [Thu, 12 Apr 2018 10:26:34 +0000 (19:26 +0900)]
Add rate limiting and logging for NetworkStats.
Bug:
77908520,
77808546,
77853238,
77154412
Test: atest com.android.server.net.NetworkStatsServiceTest
Test: manual: flashed, verified network usage updated
Change-Id: I905dbea85e00f80103916939f6d4bf8cab931d03
TreeHugger Robot [Thu, 12 Apr 2018 18:30:45 +0000 (18:30 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
Jeff Sharkey [Thu, 12 Apr 2018 18:21:59 +0000 (12:21 -0600)]
Remove poorly defined notification APIs.
They were rushed in at the last second, and feedback from stakeholders
reveals they're not ready for prime time.
Bug:
77851691
Test: builds, boots
Exempt-From-Owner-Approval: SDK finalization
Change-Id: I96f6c80610627878a29543b345419924774a60e0
Tracy Zhou [Thu, 12 Apr 2018 03:40:53 +0000 (20:40 -0700)]
Move QuickStep onboarding strings from Launcher to SysUI
Test: N/A
Bug:
70180942
Change-Id: Ic3bd63899017f23c011a41a7a5a9e73a87b9eec1
Julia Reynolds [Thu, 12 Apr 2018 18:16:09 +0000 (14:16 -0400)]
Catch exceptions reading calendar events
Test: none
Change-Id: I3be8d3abc5feead1d940ab86d8edcd770187eca9
Fixes:
70568179
TreeHugger Robot [Thu, 12 Apr 2018 18:20:34 +0000 (18:20 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
Selim Cinek [Wed, 11 Apr 2018 00:46:46 +0000 (17:46 -0700)]
Changed the appearance of phone call notifications
The old design didn't work at all because of various
paddings. The new design adds more paddings and a
new button style
Fixes:
72814598
Test: runtest systemui
Change-Id: I4b4ac0790afe45db97f912740446c6da09620be3
Kevin Chyn [Thu, 12 Apr 2018 18:07:57 +0000 (11:07 -0700)]
Change fingerprint dialog radius to 4dp
Fixes:
77864901
Test: manual test with AOSP build
Change-Id: Ib61052a45c8de1b684527c54d73cfb45ffe672b5
Evan Laird [Thu, 12 Apr 2018 13:54:11 +0000 (09:54 -0400)]
Limit status icons and show etc dots
When <= 5 status icons exist, try to show them all (space permitting).
If > 5 exist, show 4 and etc dots.
Test: visual
Change-Id: I4c09344bee75b3cab6256dd69f11337b9b667b0f
Fixes:
73778753
Fixes:
77660387
Bug:
77822905
jovanak [Wed, 11 Apr 2018 22:20:16 +0000 (15:20 -0700)]
Fixing when the full-screen switcher appears.
Now, full screen user switcher always shows up on reboot.
The switcher is dismissed after "switch" to another user
is detected.
Switching should lead to authentication directly
Bug:
74445625
Test: Repeated boot and switch on Mojave, with single and many users.
Change-Id: Ia1645246276d9eb65288c01c8c320c82a796d442
Julia Reynolds [Thu, 12 Apr 2018 17:48:49 +0000 (13:48 -0400)]
Add method to get blocked app count
So we can sure it in settings
Test: runtest systemui-notification
Bug:
73018368
Change-Id: Ib0185e97f8e1cec1864ca1e4efb23bf8db097901
Amin Shaikh [Thu, 12 Apr 2018 17:29:32 +0000 (13:29 -0400)]
Show warning when enabling airplane mode in ECM.
Change-Id: I85401e661243f189589d4914479da9e60242d192
Fixes:
73084792
Test: manual
Kweku Adams [Thu, 12 Apr 2018 17:23:17 +0000 (17:23 +0000)]
Merge "Setting stack traces to EXPLICIT." into pi-dev
Ryan Mitchell [Thu, 12 Apr 2018 17:21:32 +0000 (17:21 +0000)]
Merge "AAPT: Multiple period legacy support and errors" into pi-dev
Colin Cross [Thu, 12 Apr 2018 17:12:18 +0000 (10:12 -0700)]
Greylist APIs used by Android Auto projection
Fixes:
04-06 19:12:06.529 W android.gms:ca: Accessing hidden method Landroid/media/AudioAttributes$Builder;->addTag(Ljava/lang/String;)Landroid/media/AudioAttributes$Builder; (blacklist, reflection)
Bug:
77315795
Test: make
Change-Id: I171fbfb60623a970285ac89499bbb94b1e5e57d4
TreeHugger Robot [Thu, 12 Apr 2018 17:05:12 +0000 (17:05 +0000)]
Merge "Change log level when microphone enumeration APIs native call fail." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 16:40:37 +0000 (16:40 +0000)]
Merge "Pre P apps can't change new fields" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 16:06:36 +0000 (16:06 +0000)]
Merge "Revert "Clear out tuner prefs since it is disabled"" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 16:02:07 +0000 (16:02 +0000)]
Merge "Check in the new work profile icon" into pi-dev
Stanley Tng [Mon, 19 Mar 2018 19:28:56 +0000 (12:28 -0700)]
Add min_ce/max_ce parameters to requestLeConnectionUpdate()
Add new test parameters, min_ce and max_ce, to the SL4A tests for LE
Connection-oriented Channel (CoC) feature. This CL passes these 2
parameters to native stack.
Test: Run cmd: act.py -c $MY_SL4A_CONFIG -tc BleCoc2ConnTest
Bug:
77528723
Change-Id: I9d3d74f671772014209f8114c2d1b8ba606c54d5
(cherry picked from commit
148dd5bf861ad2caac0c53a53ee5154bfa413405)
TreeHugger Robot [Thu, 12 Apr 2018 15:53:03 +0000 (15:53 +0000)]
Merge "Ensure we do not set seInfoTargetSdkVersion to 0." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 15:47:30 +0000 (15:47 +0000)]
Merge "[Notif] Use OK instead of DONE for blocking helper" into pi-dev
Julia Reynolds [Thu, 12 Apr 2018 14:48:46 +0000 (10:48 -0400)]
Pre P apps can't change new fields
Screen off means fullscreen intents, lights, and ambient
in P but pre-P mean only lights and full screen intents.
Test: runtest systemui-notification, cts
Change-Id: I83857b5df2f669751df34d58aa645f4102b8e0e4
Fixes:
77470790
Jason Monk [Thu, 12 Apr 2018 14:58:06 +0000 (14:58 +0000)]
Revert "Clear out tuner prefs since it is disabled"
Bug:
74851117
Fixes:
77937472
This reverts commit
8bb9bbf152e35cdb4263aa1132827d51eb57e8b4.
Change-Id: I2dea3fec7ca3f59c63ce9395ba2784ca9dc58316
TreeHugger Robot [Thu, 12 Apr 2018 14:55:55 +0000 (14:55 +0000)]
Merge changes I6358cfe3,I00b20bd7 into pi-dev
* changes:
Fix status icon tint in QQS.
Fix QQS side padding for icons and tiles.
Rohan Shah [Thu, 12 Apr 2018 14:49:11 +0000 (14:49 +0000)]
Merge "[Notif] Allow locking importance on notification" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 14:35:33 +0000 (14:35 +0000)]
Merge "ScreenDecorations: Only draw cutout if requested" into pi-dev
Tony Mak [Thu, 12 Apr 2018 14:30:24 +0000 (15:30 +0100)]
Check in the new work profile icon
Test: Settings -> Google -> Observe the icon
Fixes:
77952474
Change-Id: I7b26651bbc06aa496ae98f3030a3a1458ffdba1f
TreeHugger Robot [Thu, 12 Apr 2018 13:32:35 +0000 (13:32 +0000)]
Merge "Reset SIM state if the subscription/slot is no longer active." into pi-dev
Wale Ogunwale [Thu, 12 Apr 2018 12:19:56 +0000 (12:19 +0000)]
Merge "Clean up APIs before declaring API 28." into pi-dev
Jorim Jaggi [Thu, 12 Apr 2018 11:14:55 +0000 (11:14 +0000)]
Merge "Fix issue with leaked preserved surface" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 10:38:23 +0000 (10:38 +0000)]
Merge "Fix [kv-4] PerformBackupTask possible NPE/Wrong package report." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 09:59:28 +0000 (09:59 +0000)]
Merge "Fix missing video caps for HEIC type encoders" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 09:55:45 +0000 (09:55 +0000)]
Merge "Cleaning up frameworks protos." into pi-dev
Bill Yi [Thu, 12 Apr 2018 08:36:42 +0000 (01:36 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: I8e1291d3c20839792b7951f394ba91894a1e7b4c
Adrian Roos [Thu, 12 Apr 2018 08:13:48 +0000 (10:13 +0200)]
ScreenDecorations: Only draw cutout if requested
Change-Id: I149e9f7d8b1ec7164e717f713731c618cf2772c0
Fixes:
77798197
Test: set config_fillMainBuiltInDisplayCutout=false, verify no soft cutout gets drawn.
Milo Sredkov [Thu, 12 Apr 2018 07:51:54 +0000 (07:51 +0000)]
Merge "Allow extra height for the smartreply buttons" into pi-dev
Bill Yi [Thu, 12 Apr 2018 07:43:28 +0000 (00:43 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: I4c3f651abc3c420a25b97c099e0bda5cede39421
TreeHugger Robot [Thu, 12 Apr 2018 07:40:37 +0000 (07:40 +0000)]
Merge "Revert "Greylist methods with varargs and intrinsics"" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 06:51:52 +0000 (06:51 +0000)]
Merge "Fix possible NPE in MediaSessionManager" into pi-dev
richard chou [Thu, 12 Apr 2018 06:25:16 +0000 (14:25 +0800)]
Reset SIM state if the subscription/slot is no longer active.
Reset the cached SIM state if the subscription and associated slot is not active.
Bug:
77702165
Bug:
75499020
Test: Nova team An-Cheng verified it manually.
Change-Id: Ic5adfbe637d29bd7e12e277e9d89d4ad56350adf
TreeHugger Robot [Thu, 12 Apr 2018 06:09:53 +0000 (06:09 +0000)]
Merge "Use a protected receiver for the keyguard delayed actions" into pi-dev
Andreas Gampe [Thu, 12 Apr 2018 05:35:24 +0000 (05:35 +0000)]
Revert "Greylist methods with varargs and intrinsics"
This reverts commit
d45ff00f1c54216c744365271748ddd81c6b9941.
Reason for revert: Breaks ART tests
Bug:
64382372
Change-Id: Ief87608ff2ad6d11b2aff5d4b9f15b953351360a
Test: none
TreeHugger Robot [Thu, 12 Apr 2018 04:40:06 +0000 (04:40 +0000)]
Merge "Fix broken target SDK checks." into pi-dev
Rohan Shah [Thu, 12 Apr 2018 04:14:50 +0000 (00:14 -0400)]
[Notif] Use OK instead of DONE for blocking helper
Updated string to fit blocking helper/inline control spec.
Test: Visually, string change tested with flags
Change-Id: I9730f53ccad5c21b9f840bf5907438ea4828bd9d
Fixes:
77320853
TreeHugger Robot [Thu, 12 Apr 2018 03:16:15 +0000 (03:16 +0000)]
Merge "Allow more flexibility for icon selection" into pi-dev
Phil Weaver [Thu, 12 Apr 2018 03:07:57 +0000 (03:07 +0000)]
Merge "Move accessibilityHeader from TextView to View" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 02:46:26 +0000 (02:46 +0000)]
Merge "Update nav buttons current view after inflates occur" into pi-dev
Henry Liu [Wed, 11 Apr 2018 06:18:59 +0000 (14:18 +0800)]
Fix [kv-4] PerformBackupTask possible NPE/Wrong package report.
mCurrentPackage is null when package doesn't exist, which lead test
failed with NPE
Use request.packageName for case BackupTransport.AGENT_UNKNOWN instead
Bug:
77272500
Test: m -j RunFrameworksServicesRoboTests ROBOTEST_FILTER=PerformBackupTaskTest
Change-Id: I27be85f0c3f95e36edd92d0d552189fbcf6952dd
(cherry picked from commit
87f1209ac6398c1045845640e620fc9d3b36f9f5)
TreeHugger Robot [Thu, 12 Apr 2018 02:28:28 +0000 (02:28 +0000)]
Merge changes Idb4d304e,I65a7387a into pi-dev
* changes:
Add metrics for battery settings
Add new metric for anomaly been ignored
TreeHugger Robot [Thu, 12 Apr 2018 02:19:17 +0000 (02:19 +0000)]
Merge "Don't launch activities from statusbar if running" into pi-dev
Rohan Shah [Wed, 11 Apr 2018 03:48:47 +0000 (23:48 -0400)]
[Notif] Allow locking importance on notification
Currently locking only works on channel - this CL allows doing
so on the overarching notification too. Added locking field in
appropriate places in record and surfaced it to other bits via
the RankingHelper.
Test: Visually, reproduced organically (+ deleting /data/ files)
Fixes:
77775657
Change-Id: Ie46093921dd6c1ae3533ded7b87faaa475a631e4
TreeHugger Robot [Thu, 12 Apr 2018 01:57:20 +0000 (01:57 +0000)]
Merge "Fix NPE when calling Session#add" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 01:52:56 +0000 (01:52 +0000)]
Merge "Match language picker section header side padding" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 01:46:52 +0000 (01:46 +0000)]
Merge "PlayerBase: fix deadlock" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 01:33:01 +0000 (01:33 +0000)]
Merge "Fixing typo in proto field." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 01:20:40 +0000 (01:20 +0000)]
Merge "Differentiate Sim App Dialog layout for AOSP" into pi-dev
Matthew Ng [Thu, 12 Apr 2018 01:13:56 +0000 (18:13 -0700)]
Update nav buttons current view after inflates occur
Made sure that after nav buttons are inflated that the current view is
set immediately so that when using getCurrentView() you may not get an
older view (that could cause issues). Fixes the inability to quick scrub
because the getCurrentView() returned an old view that was detached from
parent and it's position was wrong not allowing home button to be
dragged.
Change-Id: Ia9ef61712298d0391b6479ee14d6410ca6d3f980
Fixes:
77909224
Test: wipe phone and try quick scrub
TreeHugger Robot [Thu, 12 Apr 2018 01:13:07 +0000 (01:13 +0000)]
Merge "Add stats logging to ServiceManager and NPMS" into pi-dev
Lei Yu [Wed, 11 Apr 2018 22:45:31 +0000 (15:45 -0700)]
Add metrics for battery settings
1. ACTION_TIP_OPEN_BATTERY_SAVER_PAGE
2. FIELD_APP_VERSION_CODE
Bug:
77919142
Bug:
77874407
Test: Build
Change-Id: Idb4d304e9c6b078b083871d8b787fea39480c062
Chen Xu [Thu, 12 Apr 2018 01:02:21 +0000 (01:02 +0000)]
Merge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 01:02:17 +0000 (01:02 +0000)]
Merge "Turning print proto dump back on." into pi-dev
Kevin Chyn [Wed, 11 Apr 2018 19:55:45 +0000 (12:55 -0700)]
Use a protected receiver for the keyguard delayed actions
Fixes:
33281221
Test: keyguard locks after the timeout
Test: with test app using code from comment #1, see the following logs
BroadcastQueue: Permission Denial: broadcasting Intent { act=com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD
Change-Id: I8b6abbc63965a5f0b24a82949ba1925f420a1454
Sudheer Shanka [Thu, 12 Apr 2018 00:47:23 +0000 (00:47 +0000)]
Merge "Update timeout log from Slog.wtf() to Slog.w()." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 00:27:53 +0000 (00:27 +0000)]
Merge "Add API to compute charge time remaining." into pi-dev
Jean-Michel Trivi [Tue, 10 Apr 2018 21:06:07 +0000 (14:06 -0700)]
PlayerBase: fix deadlock
Source of deadlock between PlayerBase.mLock and
PlaybackActivityMonitor.mPlayerLock:
android.media.MediaPlayer.release()
> android.media.PlayerBase.baseRelease()
> synchronized (mLock)
> com.android.server.audio.PlaybackActivityMonitor.releasePlayer()
> synchronized(mPlayerLock)
and:
com.android.server.audio.PlaybackActivityMonitor.unmutePlayersForCall()
> synchronized (mPlayerLock)
> android.media.PlayerProxy.setVolume()
> android.media.PlayerBase$IPlayerWrapper.setVolume()
> android.media.PlayerBase.baseSetVolume()
> synchronized (mLock)
playerSetVolume()
Since system_server can have its own players, the calls to
AudioService from PlayerBase can be synchronous, hence the
deadlock.
The fix consists in never holding the lock in PlayerBase
while calling into AudioService.
Refactor the playstate update into a method used for
start / stop / pause.
Bug:
72294559
Test: see bug
Change-Id: I6451aa3bf19a0365472ba007b116a9e6151ab33e
TreeHugger Robot [Thu, 12 Apr 2018 00:17:27 +0000 (00:17 +0000)]
Merge "Fix FingerprintDialogView when show is called before animation is complete" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 00:16:55 +0000 (00:16 +0000)]
Merge "Fix FingerprintService package comparison" into pi-dev
Jovana Knezevic [Thu, 12 Apr 2018 00:01:11 +0000 (00:01 +0000)]
Merge "Fixes clicking on foreground user in the switcher." into pi-dev
Kweku Adams [Fri, 30 Mar 2018 19:19:58 +0000 (12:19 -0700)]
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
TreeHugger Robot [Wed, 11 Apr 2018 23:39:46 +0000 (23:39 +0000)]
Merge "Updating strings for activity interceptor dialog" into pi-dev
Makoto Onuki [Wed, 11 Apr 2018 20:51:02 +0000 (13:51 -0700)]
Add stats logging to ServiceManager and NPMS
ServiceManager:
- Do an event log every N getService() calls with total time spent
in getService().
where N = 100 for core UIDs and 200 for other apps.
- Do an event log if getService() takes longer than N ms.
where N = 10 for core UIDs and 50 for other apps.
... with some extra throttling.
NPMS:
- Do the basic "stats logger" log for updateNetworkEnabledNL() and
isUidNetworkingBlocked()
This CL also enhances StatsLogegr so it now can show the slowest call
and the max # of calls per-second.
Bug:
77853238
Test: Manual test:
- Insert a SIM card
- Set data limit
- toggle airplane mode
- toggle wifi
- toggle mobile data
Then
- "dumpsys netpolicy" and "dumpsys activity processes" and check the stats
- also check "adb logcat -b all | grep ' service_manager'"
Change-Id: I5789541063f95d0eac501189816c8604a4571ba0
Kweku Adams [Tue, 10 Apr 2018 00:35:32 +0000 (17:35 -0700)]
Fixing typo in proto field.
Bug:
72814439
Bug:
74975371
Test: atest CtsIncidentHostTestCases:com.android.server.cts.UsbIncidentTest
Change-Id: Ia04c13b96bd1996e6e96f9b4e2e693af4cb97070
jiabin [Wed, 11 Apr 2018 22:38:46 +0000 (15:38 -0700)]
Change log level when microphone enumeration APIs native call fail.
For microphone enumeration APIs, it could fail due to hal v2,
which is WAI. We shouldn't log as error. Using warning instead.
Bug:
64038649
Test: build
Change-Id: I1a64b8537e27e712a09f122d4763e0e5a345b08f
TreeHugger Robot [Wed, 11 Apr 2018 23:05:03 +0000 (23:05 +0000)]
Merge "APIs to disable data usage notifications." into pi-dev