OSDN Git Service

android-x86/frameworks-base.git
6 years agoBenchmarks for streams.
Jeff Sharkey [Thu, 12 Apr 2018 16:43:19 +0000 (10:43 -0600)]
Benchmarks for streams.

We've been advocating as little usage of streams as possible inside
the system_server, and this is a benchmark showing the costs of using
streams compared to rolling manual logic.

Results on a taimen show that direct route is 2.2x faster (!).

    Trial Report (1 of 2):
      Experiment {instrument=runtime, benchmarkMethod=timeDirect, vm=app_process, parameters={}}
      Results:
        runtime(ns): min=47234.28, 1st qu.=47234.28, median=47234.28, mean=47234.28, 3rd qu.=47234.28, max=47234.28
    Trial Report (2 of 2):
      Experiment {instrument=runtime, benchmarkMethod=timeStreams, vm=app_process, parameters={}}
      Results:
        runtime(ns): min=105660.39, 1st qu.=105660.39, median=105660.39, mean=105660.39, 3rd qu.=105660.39, max=105660.39

Bug: 77808546
Test: vogar --mode app_process --benchmark frameworks/base/core/tests/benchmarks/src/android/util/StreamsBenchmark.java
Change-Id: Iac43a75970eee2c91593316a1b5a45d2c96c476b

6 years agoMerge changes I6358cfe3,I00b20bd7 into pi-dev
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.

6 years agoMerge "[Notif] Allow locking importance on notification" into pi-dev
Rohan Shah [Thu, 12 Apr 2018 14:49:11 +0000 (14:49 +0000)]
Merge "[Notif] Allow locking importance on notification" into pi-dev

6 years agoMerge "ScreenDecorations: Only draw cutout if requested" 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

6 years agoMerge "Reset SIM state if the subscription/slot is no longer active." into pi-dev
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

6 years agoMerge "Clean up APIs before declaring API 28." 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

6 years agoMerge "Fix issue with leaked preserved surface" 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

6 years agoMerge "Fix [kv-4] PerformBackupTask possible NPE/Wrong package report." 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

6 years agoMerge "Fix missing video caps for HEIC type encoders" 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

6 years agoMerge "Cleaning up frameworks protos." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 09:55:45 +0000 (09:55 +0000)]
Merge "Cleaning up frameworks protos." into pi-dev

6 years agoScreenDecorations: Only draw cutout if requested
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.

6 years agoMerge "Allow extra height for the smartreply buttons" into pi-dev
Milo Sredkov [Thu, 12 Apr 2018 07:51:54 +0000 (07:51 +0000)]
Merge "Allow extra height for the smartreply buttons" into pi-dev

6 years agoMerge "Revert "Greylist methods with varargs and intrinsics"" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 07:40:37 +0000 (07:40 +0000)]
Merge "Revert "Greylist methods with varargs and intrinsics"" into pi-dev

6 years agoMerge "Fix possible NPE in MediaSessionManager" 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

6 years agoReset SIM state if the subscription/slot is no longer active.
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

6 years agoMerge "Use a protected receiver for the keyguard delayed actions" into pi-dev
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

6 years agoRevert "Greylist methods with varargs and intrinsics"
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

6 years agoMerge "Fix broken target SDK checks." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 04:40:06 +0000 (04:40 +0000)]
Merge "Fix broken target SDK checks." into pi-dev

6 years agoMerge "Allow more flexibility for icon selection" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 03:16:15 +0000 (03:16 +0000)]
Merge "Allow more flexibility for icon selection" into pi-dev

6 years agoMerge "Move accessibilityHeader from TextView to View" 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

6 years agoMerge "Update nav buttons current view after inflates occur" 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

6 years agoFix [kv-4] PerformBackupTask possible NPE/Wrong package report.
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)

6 years agoMerge changes Idb4d304e,I65a7387a into pi-dev
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

6 years agoMerge "Don't launch activities from statusbar if running" into pi-dev
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

6 years ago[Notif] Allow locking importance on notification
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

6 years agoMerge "Fix NPE when calling Session#add" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 01:57:20 +0000 (01:57 +0000)]
Merge "Fix NPE when calling Session#add" into pi-dev

6 years agoMerge "Match language picker section header side padding" 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

6 years agoMerge "PlayerBase: fix deadlock" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 01:46:52 +0000 (01:46 +0000)]
Merge "PlayerBase: fix deadlock" into pi-dev

6 years agoMerge "Fixing typo in proto field." 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

6 years agoMerge "Differentiate Sim App Dialog layout for AOSP" 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

6 years agoUpdate nav buttons current view after inflates occur
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

6 years agoMerge "Add stats logging to ServiceManager and NPMS" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 01:13:07 +0000 (01:13 +0000)]
Merge "Add stats logging to ServiceManager and NPMS" into pi-dev

6 years agoAdd metrics for battery settings
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

6 years agoMerge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance" into...
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

6 years agoMerge "Turning print proto dump back on." 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

6 years agoUse a protected receiver for the keyguard delayed actions
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

6 years agoMerge "Update timeout log from Slog.wtf() to Slog.w()." into pi-dev
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

6 years agoMerge "Add API to compute charge time remaining." 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

6 years agoPlayerBase: fix deadlock
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

6 years agoMerge "Fix FingerprintDialogView when show is called before animation is complete...
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

6 years agoMerge "Fix FingerprintService package comparison" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 00:16:55 +0000 (00:16 +0000)]
Merge "Fix FingerprintService package comparison" into pi-dev

6 years agoMerge "Fixes clicking on foreground user in the switcher." 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

6 years agoCleaning up frameworks protos.
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

6 years agoMerge "Updating strings for activity interceptor dialog" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 23:39:46 +0000 (23:39 +0000)]
Merge "Updating strings for activity interceptor dialog" into pi-dev

6 years agoAdd stats logging to ServiceManager and NPMS
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

6 years agoFixing typo in proto field.
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

6 years agoMerge "APIs to disable data usage notifications." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 23:05:03 +0000 (23:05 +0000)]
Merge "APIs to disable data usage notifications." into pi-dev

6 years agoAdd new metric for anomaly been ignored
Lei Yu [Tue, 10 Apr 2018 17:52:08 +0000 (10:52 -0700)]
Add new metric for anomaly been ignored

Bug: 77477987
Test: Build
Change-Id: I65a7387a7d0456a5d3605d91c421329d15a296aa

6 years agoMerge "Only show mobile data turn off dialog once." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 22:50:51 +0000 (22:50 +0000)]
Merge "Only show mobile data turn off dialog once." into pi-dev

6 years agoMatch language picker section header side padding
Maurice Lam [Wed, 11 Apr 2018 22:48:49 +0000 (15:48 -0700)]
Match language picker section header side padding

Use listPreferredItemPaddingStart/End theme attributes to make sure
they are the same as the paddings of the language items themselves.

Test: Manual
Bug: 77884900
Change-Id: I91d52878ace499889ab9b6ac35e13500aaeacd46

6 years agoAdd API to compute charge time remaining.
Michael Wright [Wed, 11 Apr 2018 22:06:36 +0000 (23:06 +0100)]
Add API to compute charge time remaining.

This is so unbundled applications (e.g. dreams) can present a charge
time indicator that is in sync with the rest of the system.

Bug: 77919650
Test: manual
Change-Id: I7d62dea4fd49eb173b4f052a0fc36f4e7ce5b6bb

6 years agoFixes clicking on foreground user in the switcher.
jovanak [Tue, 10 Apr 2018 22:14:50 +0000 (15:14 -0700)]
Fixes clicking on foreground user in the switcher.

When foreground user is clicked, keyguard should be dismissed. If other user is clicked,  we should switch to that user.

Bug: 77653809
Bug: 77808082
Test: Switcher tested in emulator and mojave by clicking on foreground and non-foreground users.
Change-Id: I72e56f8e157419ea05f155be647c11e6d98bde2c

6 years agoMerge "Updating BatteryStats to account for Ambient Display sipper." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 22:28:17 +0000 (22:28 +0000)]
Merge "Updating BatteryStats to account for Ambient Display sipper." into pi-dev

6 years agoMerge "Adds user broadcasts to UserManagerHelper." into pi-dev
Jovana Knezevic [Wed, 11 Apr 2018 22:20:33 +0000 (22:20 +0000)]
Merge "Adds user broadcasts to UserManagerHelper." into pi-dev

6 years agoMerge "keystore: Add documentation for user presence required." into pi-dev
Allen Webb [Wed, 11 Apr 2018 22:19:28 +0000 (22:19 +0000)]
Merge "keystore: Add documentation for user presence required." into pi-dev

6 years agoMerge "Add targetSdk check around new LinearLayout weighted measure behavior" into...
Chet Haase [Wed, 11 Apr 2018 22:17:44 +0000 (22:17 +0000)]
Merge "Add targetSdk check around new LinearLayout weighted measure behavior" into pi-dev

6 years agoMerge "[Magnifier-39] Hide both handles on overlap" into pi-dev
Mihai Popa [Wed, 11 Apr 2018 22:15:35 +0000 (22:15 +0000)]
Merge "[Magnifier-39] Hide both handles on overlap" into pi-dev

6 years agoMerge "Fix ripple effect for floating toolbar menu items" into pi-dev
Mihai Popa [Wed, 11 Apr 2018 22:14:51 +0000 (22:14 +0000)]
Merge "Fix ripple effect for floating toolbar menu items" into pi-dev

6 years agoAPIs to disable data usage notifications.
Jeff Sharkey [Tue, 10 Apr 2018 18:38:29 +0000 (12:38 -0600)]
APIs to disable data usage notifications.

Certain carriers have requested the ability to disable the warning,
limit, and rapid data usage notifications shown by the OS, so give
them that ability on a per-subId basis.  (The notifications are still
enabled by default.)

Unhide NOT_CONGESTED to match setSubscriptionOverrideCongested().

Fix bug in getPrimarySubscriptionPlanLocked() to find the first
currently active plan; the first non-recurring plan may be no longer
active.  Fix bug in SubscriptionPlan which allowed invalid negative
or zero-length Period objects.

Bug: 778516917750688277662747
Test: atest com.android.server.NetworkPolicyManagerServiceTest
Test: atest android.telephony.cts.SubscriptionManagerTest
Exempt-From-Owner-Approval: SDK deadline, responding to API feedback
Change-Id: Ib6e6dbadd5022937c3f0661ab4b66aa617f0b5af

6 years agoMerge "Separates current process user and foreground user" into pi-dev
Jovana Knezevic [Wed, 11 Apr 2018 22:06:15 +0000 (22:06 +0000)]
Merge "Separates current process user and foreground user" into pi-dev

6 years agoDon't launch activities from statusbar if running
Beverly [Wed, 11 Apr 2018 21:17:24 +0000 (17:17 -0400)]
Don't launch activities from statusbar if running

Added FLAG_ACTIVITY_SINGLE_TOP when starting activities launched
from the StatusBar.  If the activity is already running
at the top of the history stack, then don't relaunch.

Fixes: 77335366
Test: manual (click "Manage notifications" from notification shade,
then trigger it again - no issues)

Change-Id: I2e9ce2c57544c3066dc4fa0cc9662f0aa85565ab

6 years agoFix status icon tint in QQS.
Amin Shaikh [Wed, 11 Apr 2018 21:10:07 +0000 (17:10 -0400)]
Fix status icon tint in QQS.

- Update the right margin for these icons
- Update the padding for the status bar and QQS status bar to match.

Change-Id: I6358cfe35430d981d813f2cb21a942fa82211d40
Fixes: 77532713
Test: visual

6 years agoMerge "Update the recents onboarding UI to the latest mock." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 21:36:31 +0000 (21:36 +0000)]
Merge "Update the recents onboarding UI to the latest mock." into pi-dev

6 years agoDifferentiate Sim App Dialog layout for AOSP
goneil [Mon, 9 Apr 2018 23:03:41 +0000 (16:03 -0700)]
Differentiate Sim App Dialog layout for AOSP

Final Sim App Dialog layout for AOSP.
Added string lengths.

Bug: 72511181
Change-Id: Ia840d279f6c06ba86f63cbcadf36f2ed597547c7
Test: Local build and install.

6 years agoMerge "[QS] Update mobile tile secondary text" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 21:29:20 +0000 (21:29 +0000)]
Merge "[QS] Update mobile tile secondary text" into pi-dev

6 years agoChange getGroupIdLevel1() to use subId from TelephonyManager Instance
fionaxu [Wed, 11 Apr 2018 19:47:46 +0000 (12:47 -0700)]
Change getGroupIdLevel1() to use subId from TelephonyManager Instance

Bug: 77905912
Test: Build
Change-Id: I720971ce115147b994e27611a0dcf052989180ec

6 years agoMerge "Lint to identify "deprecated at birth" APIs." into pi-dev
Jeff Sharkey [Wed, 11 Apr 2018 21:25:51 +0000 (21:25 +0000)]
Merge "Lint to identify "deprecated at birth" APIs." into pi-dev

6 years agoMerge "Properly disconnect after skipping an operation." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 20:44:32 +0000 (20:44 +0000)]
Merge "Properly disconnect after skipping an operation." into pi-dev

6 years agoMerge "Make setServiceId a TestApi" into pi-dev
Hall Liu [Wed, 11 Apr 2018 20:21:48 +0000 (20:21 +0000)]
Merge "Make setServiceId a TestApi" into pi-dev

6 years agoFix QQS side padding for icons and tiles.
Amin Shaikh [Wed, 11 Apr 2018 19:50:57 +0000 (15:50 -0400)]
Fix QQS side padding for icons and tiles.

Change-Id: I00b20bd705a1bbe3ee619188cee5e6cbd9f43eed
Fixes: 77123524
Test: visual

6 years agoMerge "Fixing missing reportDrawFinish method in windowCallbacksCompat" into pi-dev
Sunny Goyal [Wed, 11 Apr 2018 20:01:01 +0000 (20:01 +0000)]
Merge "Fixing missing reportDrawFinish method in windowCallbacksCompat" into pi-dev

6 years agoMerge "Cleanup after updating Vehicle permissions" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 19:50:50 +0000 (19:50 +0000)]
Merge "Cleanup after updating Vehicle permissions" into pi-dev

6 years agoClean up APIs before declaring API 28.
Jeff Sharkey [Wed, 11 Apr 2018 16:19:55 +0000 (10:19 -0600)]
Clean up APIs before declaring API 28.

As part of finalizing an SDK, we need to ensure that no new APIs are
marked @Deprecated, since they're typically cleanup that someone
forgot to finish.

Someone forgot to replace Slice.getTimestamp() with Slice.getLong().

Bug: 77588754
Test: builds, boots
Exempt-From-Owner-Approval: SDK finalization
Change-Id: Ic0ec91a43d161a69c1e840c42046ad500b7aeca0

6 years agoMerge "Show onboarding screen from dnd tile" into pi-dev
Julia Reynolds [Wed, 11 Apr 2018 19:36:41 +0000 (19:36 +0000)]
Merge "Show onboarding screen from dnd tile" into pi-dev

6 years agoFix FingerprintService package comparison
Kevin Chyn [Wed, 11 Apr 2018 19:28:59 +0000 (12:28 -0700)]
Fix FingerprintService package comparison

Test: manual test following steps b/77633366 comment #4

Change-Id: I623c5bb3bf5af669752deab602a94747277affd4
Fixes: 77633366

6 years agokeystore: Add documentation for user presence required.
Allen Webb [Tue, 10 Apr 2018 17:33:42 +0000 (10:33 -0700)]
keystore: Add documentation for user presence required.

Test: make -j50 docs
Bug: 77600728
Change-Id: I6334bc0fc7a7d4faced6b03522c350ce74303443
Signed-off-by: Allen Webb <allenwebb@google.com>
6 years agoMerge "Add SigningInfo class to expose package signing details." into pi-dev
Daniel Cashman [Wed, 11 Apr 2018 19:21:07 +0000 (19:21 +0000)]
Merge "Add SigningInfo class to expose package signing details." into pi-dev

6 years agoOnly show mobile data turn off dialog once.
Amin Shaikh [Wed, 11 Apr 2018 19:20:32 +0000 (15:20 -0400)]
Only show mobile data turn off dialog once.

Change-Id: I9eb8c27ea08f67478e2aacfa091a1320bac828ae
Fixes: 77909752
Test: manual

6 years agoAllow more flexibility for icon selection
Brad Stenning [Wed, 11 Apr 2018 16:36:25 +0000 (09:36 -0700)]
Allow more flexibility for icon selection

Bug:77906888
Test: Manual

Change-Id: Ia011760c4b162d7e6eef2fd716ff2e6015caa919

6 years agoSeparates current process user and foreground user
jovanak [Mon, 2 Apr 2018 23:40:15 +0000 (16:40 -0700)]
Separates current process user and foreground user

User switcher wrongly called methods on the current process user,
which is always User 0 for SysUI.

Instead, user switcher requires knowledge about foreground user.
The process of user switching = changing the foreground
user.

Split tests between unit and robolectric.
Robolectric tests enable shadowing ActivityManager and UserHandle.

Fixes:77485524
Test: Unit and robolectric tests.
Change-Id: I20cc32f132ce48b4507a6907bdc9d103c04f4a30

6 years agoMerge "DO NOT MERGE - Hide IWLAN system API" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 18:36:31 +0000 (18:36 +0000)]
Merge "DO NOT MERGE - Hide IWLAN system API" into pi-dev

6 years agoFixing missing reportDrawFinish method in windowCallbacksCompat
Sunny Goyal [Wed, 11 Apr 2018 18:29:24 +0000 (11:29 -0700)]
Fixing missing reportDrawFinish method in windowCallbacksCompat

Test: Verified on launcher that there is no ANR
Bug: 77695434
Change-Id: I1c382ea24fee15835637ed9d4055161a99ff3625

6 years agoMerge "Trim the invalid uids and tags when reading uids/tags from chain." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 18:29:40 +0000 (18:29 +0000)]
Merge "Trim the invalid uids and tags when reading uids/tags from chain." into pi-dev

6 years agoUpdate the recents onboarding UI to the latest mock.
Tracy Zhou [Sun, 8 Apr 2018 06:54:46 +0000 (23:54 -0700)]
Update the recents onboarding UI to the latest mock.

Screenshot: https://screenshot.googleplex.com/ks6kWo0R2gd

Bug: 70180942
Test: manual test
Change-Id: Iabe6431db59e0539db5a1952cbb07f95ed6fa7ed

6 years agoMerge "MessageQueue: explicitly remove FD event listeners." into pi-dev
David Pursell [Wed, 11 Apr 2018 18:05:52 +0000 (18:05 +0000)]
Merge "MessageQueue: explicitly remove FD event listeners." into pi-dev

6 years agoMerge "Mark CTS-tested APIs as @TestApi" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 18:03:44 +0000 (18:03 +0000)]
Merge "Mark CTS-tested APIs as @TestApi" into pi-dev

6 years agoMerge "BufferingParams: add annotation @TestApi" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 18:01:24 +0000 (18:01 +0000)]
Merge "BufferingParams: add annotation @TestApi" into pi-dev

6 years agoMerge "Fix docs and bug in SliceManager#bindSlice" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 17:52:22 +0000 (17:52 +0000)]
Merge "Fix docs and bug in SliceManager#bindSlice" into pi-dev

6 years agoFix missing video caps for HEIC type encoders
Chong Zhang [Tue, 10 Apr 2018 19:20:45 +0000 (12:20 -0700)]
Fix missing video caps for HEIC type encoders

Bug: 63633199
Bug: 74343403
Change-Id: If1faff529aadce62566fe45a8b758e574e215154

6 years agoMerge "Revert "Update docs to match encryption requirements"" into pi-dev
Colin Cross [Wed, 11 Apr 2018 17:28:39 +0000 (17:28 +0000)]
Merge "Revert "Update docs to match encryption requirements"" into pi-dev

6 years agoRevert "Update docs to match encryption requirements"
Colin Cross [Wed, 11 Apr 2018 17:27:24 +0000 (17:27 +0000)]
Revert "Update docs to match encryption requirements"

This reverts commit cebb55ea9d98dc7ba93eed520b874ac24ff96800.

Reason for revert: broke docs builds

Change-Id: I3a4b8d274141efec90fae2ed0b9324194288c635

6 years agoAdds user broadcasts to UserManagerHelper.
jovanak [Tue, 10 Apr 2018 22:59:11 +0000 (15:59 -0700)]
Adds user broadcasts to UserManagerHelper.

Same broadcasts supported by UserSwitcherController.

Car User switcher listens to user changes.
Switcher needs to hear when the user is switched to dismiss the
keyguard,which causes the switching animation to terminate.

Bug:77653809
Test: Unit tests.
Change-Id: I633cbd9045e7254dcc173ca0e1118fca06c669df

6 years agoMerge "[DO NOT MERGE] - Hide Tunnel Mode IpSec API" into pi-dev
Nathan Harold [Wed, 11 Apr 2018 17:09:07 +0000 (17:09 +0000)]
Merge "[DO NOT MERGE] - Hide Tunnel Mode IpSec API" into pi-dev

6 years agoMerge "StatsManager throws exceptions" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 17:02:06 +0000 (17:02 +0000)]
Merge "StatsManager throws exceptions" into pi-dev

6 years agoMerge "Dismiss keyguard when switching user if lockscreen is disabled on new user...
TreeHugger Robot [Wed, 11 Apr 2018 17:02:00 +0000 (17:02 +0000)]
Merge "Dismiss keyguard when switching user if lockscreen is disabled on new user" into pi-dev

6 years agoMerge "Ensure ActivityStack's cached resumed activity is updated." into pi-dev
Bryce Lee [Wed, 11 Apr 2018 17:00:26 +0000 (17:00 +0000)]
Merge "Ensure ActivityStack's cached resumed activity is updated." into pi-dev

6 years agoMerge "Greylist methods with varargs and intrinsics" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 16:58:49 +0000 (16:58 +0000)]
Merge "Greylist methods with varargs and intrinsics" into pi-dev

6 years agoMerge "Synchronize stack position and size update for split screen" into pi-dev
Chavi Weingarten [Wed, 11 Apr 2018 16:53:42 +0000 (16:53 +0000)]
Merge "Synchronize stack position and size update for split screen" into pi-dev

6 years agoMerge "Pass app version to agent in adb restore for kv." into pi-dev
Anton Philippov [Wed, 11 Apr 2018 16:53:30 +0000 (16:53 +0000)]
Merge "Pass app version to agent in adb restore for kv." into pi-dev

6 years agoMerge "Update volume logging" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 16:49:15 +0000 (16:49 +0000)]
Merge "Update volume logging" into pi-dev