Commit Graph

79295 Commits

Author SHA1 Message Date
jackqdyulei
fa81bee278 Add Settings Global value for anomaly config
1. ANOMALY_CONFIG_VERSION: version of the anomlay config
2. ANOMALY_CONFIG: a base64-encoded string of raw config.

Bug: 72385333
Test: Build
Change-Id: If990d2e00e019cc6d6a6c601de9a08bd5e649654
2018-02-05 14:40:40 -08:00
Android Build Merger (Role)
609017b275 Merge "Merge "Add ServiceSpecificExceptions for SecureElementService." am: 73e7a1a739 am: e09ba38a97 am: 4a0074089e" 2018-02-02 20:27:00 +00:00
Ruchi Kandoi
bb328e9109 Merge "Add ServiceSpecificExceptions for SecureElementService." am: 73e7a1a739 am: e09ba38a97
am: 4a0074089e

Change-Id: I860518723941e56fec03dab2298931a5fe00450f
2018-02-02 20:25:47 +00:00
Jeff Sharkey
e55e721647 Merge "Put PackageInstaller in the drivers seat." 2018-02-02 20:21:25 +00:00
TreeHugger Robot
703ab4dfc0 Merge "Implement front-end API to retrieve DAB frequency table." 2018-02-02 19:59:22 +00:00
TreeHugger Robot
fdd755df14 Merge "Use ImageDecoder in ImageView.getDrawableFromUri" 2018-02-02 19:51:41 +00:00
TreeHugger Robot
a43f7fde79 Merge "Always show wifi wake setting." 2018-02-02 19:44:23 +00:00
TreeHugger Robot
5ecc69effa Merge "Use ImageDecoder for NinePatchDrawable and BitmapDrawable" 2018-02-02 19:20:48 +00:00
Makoto Onuki
c48b5eff34 Merge "Update the comment on LOW_POWER_MODE_TRIGGER_LEVEL in PowerUI" 2018-02-02 19:19:45 +00:00
Ruchi Kandoi
4a0074089e Merge "Add ServiceSpecificExceptions for SecureElementService." am: 73e7a1a739
am: e09ba38a97

Change-Id: Ida702dbb1346446bae52457860bd33b0d926be8c
2018-02-02 19:10:20 +00:00
Jeff Sharkey
0451de6254 Put PackageInstaller in the drivers seat.
openWrite() and openRead() are very flexible APIs, but their design
means they can't take advantage of the recent FileUtils.copy()
optimizations that leverage in-kernel copying.

So add new write() and read() methods where the untrusted caller
hands an FD into the OS, and then PackageInstaller drives the actual
copying process, allowing it to use FileUtils.copy() to speed
up the copying process.  (Local benchmarks are showing a 24% speed
improvement.)

We still create a FileBridge to protect the session while an active
copy is happening.

Test: bit FrameworksCoreTests:android.os.FileUtilsTest
Test: vogar --mode app_process --benchmark frameworks/base/core/tests/benchmarks/src/android/os/FileUtilsBenchmark.java
Bug: 71932978, 25510838
Change-Id: Icc237b4c0f80d5d24b74a30f238b7fe505b856ce
2018-02-02 11:32:56 -07:00
Yueming Wang
f6ca8b0cb7 Merge "Rename DISALLOW_CONFIG_LOCATION_MODE to DISALLOW_CONFIG_LOCATION." 2018-02-02 18:20:09 +00:00
Chenbo Feng
690a59843c Merge "Return non-negetive value in getMobileStats method" am: bb1d07e681 am: 515a54a93e
am: 7b5487cd0a

Change-Id: I304f42d473289ad876f6ceae8d6866e4248686a9
2018-02-02 17:59:53 +00:00
Ruchi Kandoi
e09ba38a97 Merge "Add ServiceSpecificExceptions for SecureElementService."
am: 73e7a1a739

Change-Id: Ib3122c4a0bcc233f6be734af4af9edad4a5c63e8
2018-02-02 17:58:58 +00:00
TreeHugger Robot
64070557dd Merge changes I25ebbcb3,Ic4439e0e
* changes:
  Switch SliceManager IContentProvider to ContentProviderClient
  Add backup/restore for slices access
2018-02-02 17:21:41 +00:00
Chenbo Feng
7b5487cd0a Merge "Return non-negetive value in getMobileStats method" am: bb1d07e681
am: 515a54a93e

Change-Id: I54a400b4231c38db25aa1b717f302a8a52e1773e
2018-02-02 17:02:10 +00:00
yuemingw
7810b8b5a1 Rename DISALLOW_CONFIG_LOCATION_MODE to DISALLOW_CONFIG_LOCATION.
Bug: 72732481
Test: CtsVerifier test already in
Change-Id: I6932d08b250546879a77bc11022987a0d44c3135
2018-02-02 16:47:47 +00:00
Ruchi Kandoi
73e7a1a739 Merge "Add ServiceSpecificExceptions for SecureElementService." 2018-02-02 16:43:11 +00:00
Jason Monk
632def142d Switch SliceManager IContentProvider to ContentProviderClient
Also fix up some docs.

Test: cts + unit tests
Change-Id: I25ebbcb3fd2cef223a2cd43fba57c06a183e1d31
2018-02-02 10:33:23 -05:00
Jason Monk
b715b04763 Add backup/restore for slices access
Test: various "adb shell bmgr" commands to verify behavior
Change-Id: Ic4439e0e17516462acdb8d28fe49095209a2ed6f
Fixes: 68751119
2018-02-02 10:33:19 -05:00
Beverly Tai
863ad0eed2 Merge "Move zen description to ZenModeConfig" 2018-02-02 15:27:04 +00:00
Stan Iliev
5aec67ca1b Use ImageDecoder for NinePatchDrawable and BitmapDrawable
Don't scale NinePatchDrawable if bitmap has no density.
Fixed bugs around density and input streams.

Update PointerIcon to account for the fact that BitmapDrawable no longer
scales its Bitmap up at decode time. PointerIcon now handles the
scaling. This is necessary because PointerIcon never draws its Bitmap.
Instead, native code uses the Bitmap's internal SkBitmap without
accounting for density.

Test: Ran CTS:
- CtsUiRenderingTestCases
- CtsGraphicsTestCases
- CtsViewTestCases

Change-Id: I030b4bb89c66b0102ccea2d85f5271197558d14e
2018-02-02 10:26:57 -05:00
Chenbo Feng
515a54a93e Merge "Return non-negetive value in getMobileStats method"
am: bb1d07e681

Change-Id: I82e2fa1436d91fcbcfe9a5a7dbb46973b6474706
2018-02-02 14:42:36 +00:00
TreeHugger Robot
89a9fb5866 Merge "VV2 and MCV2: Override onLayout of ViewGroup and remove MCV2.isShowing()" 2018-02-02 09:18:30 +00:00
Adam Vartanian
fa872759b0 Merge changes from topic "am-f1eb5cc5-7ac1-4540-b9cf-e0577f9334e7" into oc-dev am: 36c202ed80 am: cf31e066a9 am: f64dcd5bb5
am: 6e6d44012f

Change-Id: Ic105693209501df8aa09d05f993f506aeb77eca5
2018-02-02 08:31:42 +00:00
TreeHugger Robot
940384bf41 Merge changes from topic "biometric-fingerprint"
* changes:
  Deprecate FingerprintManager APIs
  Remove FingerprintManager dependencies from FingerprintDialog
2018-02-02 08:26:09 +00:00
Adam Vartanian
6e6d44012f Merge changes from topic "am-f1eb5cc5-7ac1-4540-b9cf-e0577f9334e7" into oc-dev am: 36c202ed80 am: cf31e066a9
am: f64dcd5bb5

Change-Id: I5980a614656d41f648da5a57c933533705a89c63
2018-02-02 07:05:29 +00:00
Dmitry Dementyev
63e027d040 Merge "Update RecoveryController to use KeyStore grant API." 2018-02-02 05:28:29 +00:00
Insun Kang
8589b7b34b VV2 and MCV2: Override onLayout of ViewGroup and remove MCV2.isShowing()
- Overriding onLayout() is needed as VideoView2 and MediaControlView2
extends ViewGroup.
- Removes MediaControlView2's isShowing() method, since it looks
redundant API.

Test: build, VideoViewTest app
Change-Id: If4608ab56ca3f3883cb674c857f7e53e2dd0e73e
2018-02-02 14:21:19 +09:00
Treehugger Robot
bb1d07e681 Merge "Return non-negetive value in getMobileStats method" 2018-02-02 04:22:34 +00:00
Adam Vartanian
f64dcd5bb5 Merge changes from topic "am-f1eb5cc5-7ac1-4540-b9cf-e0577f9334e7" into oc-dev am: 36c202ed80
am: cf31e066a9

Change-Id: I774ce7a4046548222c3a0d913bbfcc3e0759ede3
2018-02-02 03:46:04 +00:00
Kevin Chyn
ff548a614b Deprecate FingerprintManager APIs
Bug: 72519498

Test: builds
Change-Id: I61363b68fc048529e17bffb49e9bf345d3ba4dcf
2018-02-01 19:32:55 -08:00
Jeff Sharkey
044111b8b3 Merge "Move more folks to FileUtils.copy()." 2018-02-02 03:14:39 +00:00
Kevin Chyn
6668256128 Remove FingerprintManager dependencies from FingerprintDialog
This change also adds the BiometricAuthenticator interface for the future
BiometricManager

Fixes: 72529467

Test: FingerprintDialog, FingerprintSystemDialog apks
Test: CTS Verifier apk

Change-Id: I703d004a3aebcbc473329d531505ffb647b91950
2018-02-01 18:28:35 -08:00
TreeHugger Robot
6a5ede856f Merge "Create 1x1 dummy surface when zero size is specified for drag shadow" 2018-02-02 01:59:16 +00:00
Dmitry Dementyev
29b9de5b8a Update RecoveryController to use KeyStore grant API.
Missing parts:
1) Whitelist locksettingsservice to use grant API.
2) Probably have similar update for recovered keys - they will live in
system service and RecoveryAgent will use getKey() method to access
them.
3) ApplicationKeyStorageTest

Bug: 66499222
Test: adb shell am instrument -w -e package \
com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I584b89e3f777bed679b2eb5173750f3f1dee3635
2018-02-01 17:41:18 -08:00
Insun Kang
0d2107bf88 Merge "Make VV2 & MCV2 extend ViewGroup" 2018-02-02 01:40:48 +00:00
Ruchi Kandoi
816a053400 Add ServiceSpecificExceptions for SecureElementService.
Open Mobile API expects NoSuchElementException and IOException to be
thrown in certain scenarios. ServiceSpecificExceptions are added to
fulfil that.

Bug: 64994044
Test: Throw fake errors and test with sample app
Change-Id: Iec5a85a5444360616d0857817f71c721f26c53bc
2018-02-01 16:27:37 -08:00
TreeHugger Robot
85d8a99310 Merge "Updating more spans" 2018-02-02 00:26:48 +00:00
TreeHugger Robot
aa2c46cc81 Merge "Make ambient brightness day stats a system API" 2018-02-02 00:18:38 +00:00
Joe LaPenna
250d784923 Always show wifi wake setting.
Remove WIFI_WAKEUP_AVAILABLE config setting its available by default.
Remove check for NETWORK_RECOMMENDATIONS_ENABLED, the feature no longer
uses the recommender.

Test: make RunSettingsRoboTests RunSettingsLibRoboTests;
Test: atest SettingsBackupTest; manual/exploratory
Bug: 69624403
Bug: 67952636
Change-Id: I9e287b79d0da01bab00ed81295dcc1f266ca0851
2018-02-01 16:08:32 -08:00
Adam Vartanian
cf31e066a9 Merge changes from topic "am-f1eb5cc5-7ac1-4540-b9cf-e0577f9334e7" into oc-dev
am: 36c202ed80

Change-Id: Ieb4b5cd2cafd20d4898bc781c43e41d3bed0d7dc
2018-02-01 23:44:18 +00:00
Makoto Onuki
45a772e4b1 Update the comment on LOW_POWER_MODE_TRIGGER_LEVEL in PowerUI
I originally envisioned to keep this logic and the one in the
battery service (which decides when to send a LOW_BATTERY broadcast)
in sync.

However, because this PowerUI logic decides when to show the "battery low"
notification, and showing the notification when the battery level
is still 50% doesn't really make sense even when the battery saver
starts at 50%, so let's only cap the value in PowerUI.

So if LOW_POWER_MODE_TRIGGER_LEVEL is 50,
- Battery saver kicks in at battery level 50%
- LOW_BATTERY broadcast is also sent at 50%

- But we don't show the "battery low" notification until 15% still.

(I'll talk with the PM and we might tweak the details.)

Bug: 71707409
Test: build & boot
Change-Id: I162dc722a6f634e5844ed81385a8463797634a02
2018-02-01 15:34:44 -08:00
TreeHugger Robot
0c8a7247c8 Merge "Switch order of onSaveInstanceState and onStop" 2018-02-01 23:26:21 +00:00
Jeff Sharkey
45c97df89d Move more folks to FileUtils.copy().
Also extend API to accept a "count" argument of exactly how many
bytes to copy, and return the actual number of copied bytes.

Improve docs.

Test: bit FrameworksCoreTests:android.os.FileUtilsTest
Test: vogar --mode app_process --benchmark frameworks/base/core/tests/benchmarks/src/android/os/FileUtilsBenchmark.java
Bug: 71932978
Change-Id: I8d255e4f97462838c02a8ecb6d2d221188c4eff0
2018-02-01 16:01:55 -07:00
Sungsoo Lim
25a50edc6e Merge "MediaControlView2: Remove getProvider()" 2018-02-01 22:57:35 +00:00
Beverly
a5effb4542 Move zen description to ZenModeConfig
Test: manual
Bug: 72570739
Change-Id: I0b38e9fb9568de0207238f24453c2b216381537a
2018-02-01 17:23:38 -05:00
Jeff Sharkey
850f29a169 Merge changes Iac97c342,I52518d52
* changes:
  Enable sendfile() and splice() optimizations.
  Use sendfile() and splice() to speed up copying.
2018-02-01 21:08:52 +00:00
TreeHugger Robot
44b261f372 Merge "Use statsd constants instead of literals" 2018-02-01 20:37:29 +00:00
TreeHugger Robot
5482951a12 Merge "Add icon tintable flag to suggestion." 2018-02-01 19:12:35 +00:00