Commit Graph

309172 Commits

Author SHA1 Message Date
Chris Phoenix
9fcfcdc1f3 Vr HAL uses "default" service name
The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934

Change-Id: I32806ac4ab6cf1b7c67eb61cfbc7e203c5b5b5a3
2017-02-22 01:28:30 +00:00
Amith Yamasani
cbabb8dddc Mark some system intents as SystemApi
These intents are handled by some system apps and use the
android.* namespace. So mark them as SystemApi for CTS verification
purposes.

Fixes some of the CTS signature tests.

Change-Id: I18664b3e92bb24a5cf96d89cf47d6abb88b13220
Fixes: 35253923
Test: cts-tradefed run cts-dev -m CtsSignatureTestCases
2017-02-22 01:27:38 +00:00
TreeHugger Robot
f7d364d820 Merge "Optimize AutoFillManager calls" 2017-02-22 01:27:16 +00:00
TreeHugger Robot
e7473fae80 Merge "Handle location enabled setting null value" 2017-02-22 01:26:57 +00:00
Hyunyoung Song
bddaea59a7 Default android app icon should use <adaptive-icon>
Test: install apk without application icon. manually check on default launcher.

b/34948318

Change-Id: I8a7e5f4343d9ed3eb32cbfa69857aa6264107654
2017-02-21 17:26:26 -08:00
Kevin Chyn
9310f5c9b8 dumpProto fixed crypto performance dump
fixed bug 35627933
Test: ran adb shell dumpsys fingerprint --proto > ~/Desktop/test.out
protoc --decode_raw < ~/Desktop/test.out
confirm that crypto output is fixed

Change-Id: Ie3bc996142e1e7e2be366ce6bb394ec2fe774393
2017-02-21 17:23:54 -08:00
Daniel Nishi
d54f3a487b Don't crash when primary volume is null in AppCollector.
getPrimaryStorageCurrentVolume() may return a null value. I did
not plan for this case in the AppCollector. This case occurs when
the primary storage is not mounted when the function is called.

By adding in a null check after getPrimaryStorageCurrentVolume()
and adding in preconditions to verify the non-nullness of the
volume as it propagates through the AppCollector, we ensure that
there should be no more NPE crashes for this reason.

Bug: 35636901
Test: FrameworkServicesTests
Change-Id: I4009e55502f71b8f14dd917ddd00caef3551aafd
2017-02-22 01:14:35 +00:00
Svetoslav Ganov
acfa5ee00a Optimize AutoFillManager calls
AutoFillManager needs to handle calls for value changes and
reset only if there was a focus change reported, hence the
APIs for value change and reset do not need to connect to
the backing service to determine the enabled state.

Test: Auto-fill CTS tests pass

bug:35641424

Change-Id: I50e449925034c54257e35aa78e066e2a0fa53c03
2017-02-22 00:54:02 +00:00
Felipe Leme
5882c4f5d2 Added auto-fill listeners for RadioGroup and CompoundButton.
Bug: 33550221
Bug: 3380254
Test: CtsAutoFillServiceTestCases pass

Change-Id: Ia9293d16b6fe092552e19563328697c298451f8a
2017-02-21 16:53:00 -08:00
Calvin On
5555bccc70 Replace WearWifi/Cell services with WearConnectivityService
go/wear-connectivity-service

Change-Id: I2a8214e2965ad63a23dc8c174db256a263102a6f
2017-02-21 16:41:43 -08:00
jackqdyulei
5dc1f36599 Make precentage calculation round up by 0.5%
So we will show 1% when actually number is 0.5%

Bug: 35305983
Test: RunSettingsLibRoboTests
Change-Id: I26f11f25a7d78cc6b09cb358abd82017fa7cea00
2017-02-21 16:40:01 -08:00
TreeHugger Robot
8a51023605 Merge "Allow default permission exceptions to be read from vendor partition" 2017-02-22 00:38:19 +00:00
Phil Weaver
0ebe6bd5da Avoid copying NoCopySpans.
Move from Spannable to SpannableStringBuilder, as the latter doesn't
copy NoCopySpans.

Bug: 34712634
Test: CTS tests that verify clickable spans still work.
Change-Id: I0ab029a7c79cb7d0b48724890c5cabe841390f4a
2017-02-21 16:24:31 -08:00
Hugo Benichi
2583ef0239 ConnectivityManager: allow custom Handlers
This patch adds overloaded version of registerDefaultNetworkCallback
registerNetworkCallback, and requestNetwork with an additional Handler
argument that is used for running the caller provided NetworkCallback.

It also clarifies the documentation of the existing methods that
implicitly uses the internal singleton ConnectivityThread about which
internal Handler is used for running NetworkCallbacks.

Test: build, flashed, booted device
Bug: 32130437
Change-Id: Iae15f81e47e2dc0355baf2f2c1679b77e56af299
2017-02-22 09:24:01 +09:00
Jiaquan He
766b9b255b Fix ColorStateList bug.
A ColorStateList should be stateful when it has at least one
non-wildcard state.

Test: Manually
Bug: 35487255
Change-Id: Id94b6a8d172e22a522f73fcb378e342656f95e39
2017-02-21 16:22:09 -08:00
Phil Burk
94ec584bed bluetoothmidiservice: fix timestamp for BLE-MIDI transmitted packets
Transmitted packets that contained multiple MIDI messages and that did not
use running status were missing a timestamp! This CL fixes that bug.

Bug: 34708799
Test: a manual test using MidiMatrix is described in the bug report
Change-Id: Iddb55e01c60625787c5907fe8e4b202ef1415e59
Signed-off-by: Phil Burk <philburk@google.com>
2017-02-21 16:15:33 -08:00
TreeHugger Robot
2ce1160ed6 Merge "Revert "Update display contents when metrics change"" 2017-02-22 00:13:52 +00:00
TreeHugger Robot
43031861a0 Merge "Use ArrayList instead of ArraySet for FillResponse.getDatasets()..." 2017-02-22 00:12:08 +00:00
Jack Yu
90065e6e8c Merge "Added telephony manager set sim power state API" 2017-02-21 23:58:30 +00:00
Colin Cross
56ff7d9e73 Merge "Revert "Remove outdated emulator check which causes BT to not start"" am: 375ea2ae71 am: ebc05de919
am: cfbf226165  -s ours

Change-Id: I278d5afab4e15535dd2fc7b3501f805934e58f28
2017-02-21 23:42:06 +00:00
Colin Cross
cfbf226165 Merge "Revert "Remove outdated emulator check which causes BT to not start"" am: 375ea2ae71
am: ebc05de919

Change-Id: Id61ee53f3147d90d8fbca053633e3115b69d3065
2017-02-21 23:37:01 +00:00
Andreas Gampe
8822f7f6e9 Merge "Graphics: Make SurfaceTexture compile-time initializable" 2017-02-21 23:34:36 +00:00
Colin Cross
ebc05de919 Merge "Revert "Remove outdated emulator check which causes BT to not start""
am: 375ea2ae71

Change-Id: I3d5abc52abf3f7c01ba4fbee47d7e487e99f5dda
2017-02-21 23:32:32 +00:00
TreeHugger Robot
947008300b Merge "Mark new settings as being blacklisted for backup." 2017-02-21 23:31:10 +00:00
Hall Liu
95d5587d0a Introduce APIs for RTT calls (part 1)
Add signaling methods and data pipes for handling real-time text during
a call.

Change-Id: I876827c448252c5f786d7a4919c47891acb03877
Test: manual, through telecom testapps
2017-02-21 15:27:25 -08:00
Colin Cross
375ea2ae71 Merge "Revert "Remove outdated emulator check which causes BT to not start"" 2017-02-21 23:25:07 +00:00
Phil Weaver
385912ee2d Deprecate "speak passwords" setting.
This will now be controlled by individual accessibility services.
We'll provide the password information to them, and they can
present or hide the information as it makes sense for their users.

Password information was anyway provided when a headset was
connected.

Bug: 28139568
Test: Manually verified that TalkBack now speaks passwords on the
lock screen and in text views. Since I'm removing functionality
that didn't have tests, it's tricky to have specific tests.
Change-Id: Ic3c724ccce5762ee9dcd9e7dcbd4eae6734dd05e
2017-02-21 15:24:54 -08:00
TreeHugger Robot
eb0a2901cc Merge "Set default wait-for-network timeout to 0." 2017-02-21 23:09:15 +00:00
TreeHugger Robot
d66bf57743 Merge "Add metrics for default assist/voice input pickers" 2017-02-21 23:02:26 +00:00
TreeHugger Robot
5159f77c22 Merge "Correct out of range error in getTopVisibleActivities." 2017-02-21 23:01:02 +00:00
TreeHugger Robot
e12011c1eb Merge "Notify NPMS when uid becomes active or idle." 2017-02-21 22:57:27 +00:00
Matt Sarett
6c382572e3 BitmapFactory: Leave the P3 color space on wide gamut bitmaps
Test: Built, flashed, cts

Change-Id: I242952cf690b821056dd5c13ec13f59120f573b5
2017-02-21 17:42:45 -05:00
TreeHugger Robot
a55b7c5558 Merge "AOD: Don't use doze states when unsupported" 2017-02-21 22:34:16 +00:00
Felipe Leme
fe35e69d96 Use ArrayList instead of ArraySet for FillResponse.getDatasets()...
...otherwise it might not preserve the order.

Test: manual verification
BUG: 35348724

Change-Id: Ib19d364253ea4f0cbbeca8a73b08800482e74820
2017-02-21 14:32:14 -08:00
Mårten Kongstad
21a3d1ad68 OMS: integrate OverlayManagerService into framework
Hand over ownership of overlays to OverlayManagerService.

Changes to a package's overlays are propagated using the activity life
cycle. Affected activities will be recreated as needed. This provides a
well-defined point to modify an application's assets while the
application is paused.

Consolidate how overlays targeting the system and overlays targeting
regular applications are handled. Previously, system overlays were
handled as a special case. Now, everything is handled identically. As a
side effect, the call to idmap --scan during Zygote boot has become
obsolete and is removed.

Information on what overlays to use is recorded in
ApplicationInfo.resourceDirs. The PackageManagerService is responsible
for the creation of ApplicationInfo objects. The OverlayManagerService
is responsible for informing the PackageManagerService in advance about
what resourceDirs to use.

When launching an application, the ApplicationInfo is already populated
with up-to-date information about overlays.

When enabling or disabling an overlay for a running application, the
OverlayManagerService first notifies the PackageManagerService about the
updated resourceDirs. It then tells the ActivityManagerService to push
the new ApplicationInfo object to the application's ActivityThread.
Finally the application requests its ResourcesManager to create new
ResourcesImpl objects based on the updated paths.

Co-authored-by: Martin Wallgren <martin.wallgren@sonymobile.com>
Signed-off-by: Zoran Jovanovic <zoran.jovanovic@sonymobile.com>
Bug: 31052947
Test: run tests from 'OMS: tests for OverlayManagerService'
Change-Id: Idc96dae6fc075d5373aa055bbf50e919136d7353
2017-02-21 14:29:43 -08:00
Fyodor Kupolov
21edf1976c Merge "Check bounds in offsetToPtr" 2017-02-21 22:29:35 +00:00
Selim Cinek
160bf4cbac Merge "Making the notification always center horizonally" 2017-02-21 22:05:21 +00:00
Arthur Hsu
f3f3a60d35 Create am no-home-screen command.
The no-home-screen command allows checking if the device had
no home screen. This is needed for CTS tests to correctly
detect that ARC++ devices have no home screen.

This is ported from ag/1851936 since it could not cherry-pick cleanly.
Original CL: I9c933f0b684cc82c74db948edf592fd067091a31

Bug: 33456072
Test: manual - adb shell am no-home-screen reports false by default.
Change-Id: I3df465a34393aa6e3f2934722a66ad909979824d
2017-02-21 14:01:53 -08:00
TreeHugger Robot
22e4f07439 Merge "Make scrollbarSize in Material Design theme configurable" 2017-02-21 21:56:58 +00:00
Bryce Lee
6addf5d709 Revert "Update display contents when metrics change"
This reverts commit d7f8f942e5.

Reason for revert: causing b/35349518

Fixes:35349518
Bug:35258051
Change-Id: I5233bee6696f76313868bb36fd0da4225e5ac038
2017-02-21 21:54:19 +00:00
Evan Rosky
5722331efe Add focusdirection annotations to cluster methods
Bug: 34361917
Test: Still compiles
Change-Id: I47b5e9472524708544d567444b3fbcc93bc45119
2017-02-21 13:43:54 -08:00
TreeHugger Robot
f780d86963 Merge "Add API to mark sanitized fields and implement it on TextView." 2017-02-21 21:36:50 +00:00
Svetoslav Ganov
cac64f616f Handle location enabled setting null value
We have the notion of a null value object whose internal
value is null. If it happens that the setting was never
populated we get back the null object whose value is null
and the code does not expect null and crashes.

bug:35368238

Test: manual

Change-Id: I02c3771b94a45b4ee53e2141711eed134542ea0c
2017-02-21 13:28:04 -08:00
Dan Sandler
df14c20be4 Don't show the percentage twice when charging.
The old percentage textview is now gone from the layout.
When the device is charging (but the user doesn't have
percentage display turned on all the time) use the new
percentage built-in to BatteryMeterView.

Bug: 35521962
Test: visual
Change-Id: I91f3350f6203fd007f003ca260ac0ed78e29b771
2017-02-21 16:17:09 -05:00
Garfield Tan
a7e852ef7b Unhide root MIME type.
Caller can then call setDataAndType(Uri, String) to indicate it's
passing a root URI for a performance shortcut.

Test: It builds.
Bug: 34944388
Change-Id: I4de49171b822d19f1794c7c413078a78396a7c03
2017-02-21 13:04:09 -08:00
Robert Carr
22374c0ffd Correct out of range error in getTopVisibleActivities.
Looks like just a typo.

Test: Launch Settings > Google > Search > Voice > "OK Google" Detection. Train voice model. Say ok google.
Bug: 35590598
Change-Id: I882f5695a94940d0dc7df911b1f8d55e372d1828
2017-02-21 13:01:47 -08:00
TreeHugger Robot
ed4cd7a1ba Merge "Log pm install time and package name" 2017-02-21 21:01:20 +00:00
Jeff Sharkey
78f6f7f543 Mark new settings as being blacklisted for backup.
Test: builds, boots
Bug: 34690590
Change-Id: I8268d94fa47752fbdc3401e5b0f5bb6ef01c8521
2017-02-21 14:01:18 -07:00
Jeff Sharkey
830d4b422d Merge "Clear cache space when allocating bytes." 2017-02-21 20:56:59 +00:00
Sudheer Shanka
d4f081cca4 Set default wait-for-network timeout to 0.
Bug: 35523062
Test: manual
Change-Id: I7f2bb471bc92128cbb2bd03386c0aa1214d1a46c
2017-02-21 12:48:51 -08:00