Commit Graph

301953 Commits

Author SHA1 Message Date
Xin Li
16bb6dcd45 Merge "Use half-width quotes in code example." am: 1fe99a819c am: 161d1487ba am: 2cb75e822d
am: 2b555e366e

Change-Id: I15790d515674c1697256143d417b651bc0ebad02
2017-01-05 22:14:22 +00:00
Xin Li
2b555e366e Merge "Use half-width quotes in code example." am: 1fe99a819c am: 161d1487ba
am: 2cb75e822d

Change-Id: I04cd0d83d7f808068d5021fb28d7b8b868f90c3b
2017-01-05 22:05:33 +00:00
Xin Li
2cb75e822d Merge "Use half-width quotes in code example." am: 1fe99a819c
am: 161d1487ba

Change-Id: Ia4814baf438c72d4ceed3be864e391513ed1c78e
2017-01-05 21:57:48 +00:00
Stan Iliev
770e0b5007 Implement image draw functions in SkiaCanvasProxy
Implement onDrawImage, onDrawImageRect and onDrawImageLattice in
SkiaCanvasProxy. This allows to replay SkPicture with HWUI pipeline.
This CL is needed to keep up with other changes in SkiaRecordingCanvas,
because Canvas::drawBitmap is translated to SkCanvas::drawImage.

Test: Built and ran angler-userdebug, ran HWUI unit tests.
Change-Id: Icd6cfd3bc51628a2c336faf4c95dfd5366a949a9
2017-01-05 16:53:14 -05:00
Xin Li
161d1487ba Merge "Use half-width quotes in code example."
am: 1fe99a819c

Change-Id: I28a34f7813268d7a9303029d257996d6ceb53269
2017-01-05 21:51:13 +00:00
Treehugger Robot
1fe99a819c Merge "Use half-width quotes in code example." 2017-01-05 21:39:06 +00:00
Fyodor Kupolov
e29a5a1152 Added SystemServerInitThreadPool
System services can use it during the boot to submit tasks that can be run in
parallel with the main thread.

Switched PersistentDataBlockService and FingerprintService from FgThread to
the new thread pool.

UiModeManagerService: update initial configurations on init thread. They run
while holding the mLock so no extra synchronization barriers are needed at a
later stage.

Test: manual - device boots without errors
Test: ParallelPackageParserTest passes
Change-Id: I548f34b0a18f61924e09a39afb12e085cde35442
2017-01-05 13:12:37 -08:00
Kang Li
f1941775b6 Merge "Fix crash when updating ranking model in ChooserActivity." 2017-01-05 21:11:56 +00:00
TreeHugger Robot
f7fd02d6e9 Merge "HwBinder: get/register checked exceptions." 2017-01-05 21:06:10 +00:00
Evgenii Stepanov
ab622718f3 Fix stack-buffer-overflow detected by AddressSanitizer.
Bug: 31855186
Test: boot SANITIZE_TARGET=address build
Change-Id: I5c2c64564ccea28e416d66b27af9d86506d622ce
2017-01-05 13:03:07 -08:00
Calin Juravle
c066205cea Do not try to resolve realpath in DexManager.
PM should already provide the real path of the application directory.

Test: runtest -x .../DexManagerTests.java

Bug: 33807524
Bug: 32871170
Change-Id: I700419157bf5532af6437812b7e0a76f80057022
2017-01-05 12:54:17 -08:00
Tony Mak
555a59ad27 Allow current profiles to disable keyguard
Test: make cts -j20 && cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testScreenCaptureDisabled_allowedPrimaryUser
      It is not really a CTS verifies the change directly.
      But I can observe that keyguard is dismissed by a test running in managed profile

Bug: 34049587
Change-Id: I94e3d0cd01b10f31745781f35fdc8e3554994db8
2017-01-05 20:42:31 +00:00
Julia Reynolds
4b82f6ddb0 Wait 100 ms for assistant response before posting.
Test: make cts-verifier
Change-Id: Idf04c2d24f02a32634e2308da6d1599c9ea29bd4
2017-01-05 20:26:23 +00:00
Julia Reynolds
9bbe0bb413 Null checks on content resolver query
Bug: 33584356
Test: manual
Change-Id: I05dac1ead1ec1f868f8422d82f245e34a4986ccf
2017-01-05 15:05:02 -05:00
Roger Xue
412706458e Merge "making changes to settingsLib so we can create car setting using settingsLib" 2017-01-05 19:54:33 +00:00
Xin Li
5c14ebbbfa Use half-width quotes in code example.
Test: m -j49 -k docs
BUG: 34106216
Change-Id: I366b0bf085ad3fd166b7961301bb8c35da6a7630
2017-01-05 11:49:43 -08:00
Android Build Merger (Role)
c63cdbc8ee Merge "Merge "Add logging for task view thumbnail state." into nyc-mr2-dev am: 1d513b28e3 am: 820a0f85ab" 2017-01-05 19:47:05 +00:00
TreeHugger Robot
192d719abb Merge "Add content description and tooltip to menu item" 2017-01-05 19:46:28 +00:00
Winson Chung
fed397becb Merge "Add logging for task view thumbnail state." into nyc-mr2-dev am: 1d513b28e3
am: 820a0f85ab

Change-Id: I6ac5bbb56a68bb78d71af62c6bc641f0bd6b7542
2017-01-05 19:46:13 +00:00
Winson Chung
31c568274b Add logging for task view thumbnail state. am: eb2206cb51
am: 96a5c216b7

Change-Id: Id6f8fbdac18861ea1244b2c43885d978851694e7
2017-01-05 19:45:06 +00:00
Alain Vongsouvanh
cb29c97907 widget: Adding support for custom LockPatternView.
am: 2fda2ce159

Change-Id: Ib0d53bd7258f784dc3cb0661757b7c6d4979007f
2017-01-05 19:45:02 +00:00
Kang Li
0cef910d5e Fix crash when updating ranking model in ChooserActivity.
Bug: 34095835

Test: manual tests (automated tests will be added later): 1. take a
picture and share it to Photos; 2. take a bug report and share it to
Gmail; 3. launch Chrome app, share a webpage to Drive; and 4. launch Contacts
and share a contact to Messenger.

Change-Id: Ie50c8305f90b6df69aa1e47c01d0b2212da0a37a
2017-01-05 11:43:15 -08:00
Winson Chung
820a0f85ab Merge "Add logging for task view thumbnail state." into nyc-mr2-dev
am: 1d513b28e3

Change-Id: I16874246c946efa0f979af55edcd6ac90607cee6
2017-01-05 19:38:43 +00:00
Winson Chung
96a5c216b7 Add logging for task view thumbnail state.
am: eb2206cb51

Change-Id: Ibf8fed3d189483f8a8b351d87f406c90d0259fc5
2017-01-05 19:38:37 +00:00
TreeHugger Robot
1d513b28e3 Merge "Add logging for task view thumbnail state." into nyc-mr2-dev 2017-01-05 19:33:48 +00:00
Narayan Kamath
5c50e86301 PackageManagerService: Implement packageParser cache in ParallelPackageParser.
We save about 2800ms of cold startup time over baseline on a marlin,
and ~1200 ms over the parallel parsing case.

                   warm     cold
		   ---------------
Baseline         : 1700ms   4300ms
Parallel         : 1400ms   2700ms
Cache            : 1000ms   1600ms
Cache & parallel : 900ms    1500ms

Note that further changes will improve the speed of cache processing.

This change also includes support for :
- a flag that been flipped in code (currently set to false).
- disabling the cache via a system property.
- wiping the cache on system upgrades.
- cache versioning.

Bug: 30792387

Test: FrameworksServicesTests
Test: manual timing

Change-Id: I281710c110af5307901dd62ce93b515287c91918
2017-01-05 19:15:31 +00:00
Andre Lago
dc50b548ff [RingtoneManager] Option for cursor to list parent sounds
Modify RingtoneManager.getCursor so that the cursor returned also
retrieves the parent profile's ringtones, adding the parent's id to
those ringtones

Test: manual (use ringtone picker in associated CL)
Bug: 30658854
Change-Id: I3b52b0dc41a5a3ff1a71a89fd8a0d33023021aba
2017-01-05 19:06:35 +00:00
Andre Lago
178693a5df [RingtoneManager] API to delete custom ringtones
Given a Uri, if it is a media file in one of the external ringtone
storages, this API deletes its file and database entry.

Test: manual - associated CL
Bug: 30658854
Change-Id: I987bd18577960f9a2b02ce37a4a2d5d033d7a969
2017-01-05 19:06:34 +00:00
Andre Lago
7c8ccb3ce4 [RingtoneManager] API to add custom ringtones
So far, the only way for users to add custom ringtones was to either use
a 3rd party app or copy files to a specific directory in the storage,
and there was no API to make it easier to add custom ringtones.

This CL creates a hidden API in RingtoneManager that allows adding any
audio file as a custom ringtone, by copying that file into the ringtone
storage and asking MediaScanner to scan that file.

This API is not intended to be used by existing apps, but an associated CL
uses it in RingtonePickerActivity

Test: make && vendor/google/tools/flashall, plus manual testing with associated CL
Bug: 30658854
Change-Id: I2b291847c5430e1fc2c3fc6a351b6111a49fcbf3
2017-01-05 19:06:14 +00:00
John Reck
874d45597f Merge "Workaround for custom TypedArray injectors" 2017-01-05 19:00:00 +00:00
TreeHugger Robot
8e780f4c33 Merge "AudioService playback activity notif: check origin of player updates" 2017-01-05 18:59:16 +00:00
Lei Yu
2cba0e8b0f Merge "Remove hardcoded color for cellular data usage view" 2017-01-05 18:57:57 +00:00
Lei Yu
fe6648912d Merge "Move textColor to style StatusBar.Expanded.Date" 2017-01-05 18:49:56 +00:00
Wei Wang
a5c336c32d Move ProcessCpuTracker.init into CpuTracker thread
ProcessCpuTracker.init is slow to start, moving it out of main thread
will accelerate the boot up. ProcessCpuTracker.init is protected with
synchronized keyword, so once the CpuTracker thread is up and running,
we should not see any racing condition caused by this move.

This changes saves ~140ms starting time on marlin

Test: run test frameworks/base/tests/ActivityTests
Bug: 33681304
Change-Id: I260a57ca721999be3a84c0e43837d684e47e3941
2017-01-05 10:38:40 -08:00
Lei Yu
1ddd16e030 Merge "Remove hardcoded color for tuner and emergency call" 2017-01-05 18:28:32 +00:00
roger xue
8f06ab0774 making changes to settingsLib so we can create car setting using settingsLib
Test: make -j40 RunSettingsLibRoboTests

Change-Id: I4eff074ebbbf1d4a4325580d68a2123d3f5ff930
2017-01-05 10:20:24 -08:00
TreeHugger Robot
1dbb3f1135 Merge "Abstract ZygoteInit.maybePreload call for webview." 2017-01-05 18:07:49 +00:00
Vladislav Kaznacheev
7039cbc6f3 Add content description and tooltip to menu item
Bug: 34076597
Test: manual
Change-Id: Ide32463252457721286c929ab2f8f7bae241835d
2017-01-05 09:57:40 -08:00
Fan Zhang
97c5cdca4e Merge "Disable nav drawer in Settings app." 2017-01-05 17:38:20 +00:00
Jean-Michel Trivi
46e310b34f AudioService playback activity notif: check origin of player updates
When receiving updates about players, check the validity of the call:
 - the piid must be valid
 - the uid of the caller and that of the player must match

Test: adb shell dumpsys audio
Bug: 30955183
Change-Id: Id15e2b69764ed7db0b93e2c0c96472c30b1d2070
2017-01-05 09:28:08 -08:00
TreeHugger Robot
b3248508fe Merge "Remove two unused filters on PowerUI receiver." 2017-01-05 17:26:39 +00:00
Steven Moreland
20ca2f782b HwBinder: get/register checked exceptions.
Bug: 33673120
Test: hidl_test_java
Change-Id: Id19b61b252e756a032ae11f7b59bd8eed82edbe9
2017-01-05 09:22:03 -08:00
Steven Moreland
c0631d0bb7 HwBinder: get/register checked exceptions.
Bug: 33673120
Test: hidl_test_java
Change-Id: Id19b61b252e756a032ae11f7b59bd8eed82edbe9
2017-01-05 09:20:44 -08:00
TreeHugger Robot
3b72b9768f Merge "Decode images to sRGB, premultiply based on framework define" 2017-01-05 17:08:27 +00:00
Alain Vongsouvanh
2fda2ce159 widget: Adding support for custom LockPatternView.
OEMs can overlay the default 9 dots by providing two drawables that represent
those dots:
  * lockscreen_notselected: asset to display when a cell has not been selected.
  * lockscreen_selected: asset to display when a cell has been selected.

BUG: 33755663
Change-Id: Ic595b01f5e1321696b7a3feb0ff73c1acccfb942
2017-01-05 16:16:49 +00:00
Torne (Richard Coles)
bb65893a24 Abstract ZygoteInit.maybePreload call for webview.
Make ZygoteConnection call ZygoteInit.maybePreload via an overridable
method on itself, so that the WebView zygote's subclass of
ZygoteConnection can override it to do nothing; the WebView zygote
doesn't want to do this preloading and can't due to permissions.

Test: enable multiprocess webview, test webview apps work
Bug: 32735001
Change-Id: Ia6ac7d35172ba69ff861fe5a44b09ac52b0afbf0
2017-01-05 16:11:06 +00:00
Matt Sarett
33e3741cad Decode images to sRGB, premultiply based on framework define
This reenables color conversion to sRGB at decode time.

Use the value ANDROID_LINEAR_BLENDING_ENABLED to decide
whether to use the codec's linear premultiply or manually
perform a legacy premultiply.

Test: Demonstrated that legacy premultiply is still
faster than the linear premultiply.  So the performance
of the two pass approach (decode, then premultiply)
is acceptable.  Skia tests both of these decoding modes.

BUG:33741991
BUG:8860389
BUG:24279600

Change-Id: Idea0f359565bd8c7c3ba06e77a897173677db1c6
2017-01-05 10:45:18 -05:00
Ben Murdoch
f0b74e306d Remove two unused filters on PowerUI receiver.
Removing some dead code.

Test: None, remove dead code.
Change-Id: Ibcb31797dc1551f7fed540843afc58cb4eb7d077
2017-01-05 14:57:43 +00:00
Nicolas Prévot
b4413f694f Merge "Make disallow add/remove managed profile restriction not global." 2017-01-05 14:54:45 +00:00
Nicolas Prevot
2ea46fe658 Make disallow add/remove managed profile restriction not global.
Otherwise: if the DO sets remove managed profile user restriction:
the profile owner of a managed profile cannot remove this managed
profile.

BUG:33854430
Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyManagerTest -w
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I90b2028ea627a2073298bf9ef3c07b4fdf8d13a1
2017-01-05 11:58:21 +00:00