310599 Commits

Author SHA1 Message Date
Selim Cinek
365ec09695 Fixed that indents on an ellipsis of a staticlayout were dropped
If a layout had an ellipsis and in addition also indents,
the indents were ignored and the text would go over the indents.

Test: runtest -x cts/tests/tests/text/src/android/text/cts/StaticLayoutTest.java
Test: runtest -x cts/tests/tests/text/src/android/text/cts/DynamicLayoutTest.java
Test: runtest -x cts/tests/tests/widget/src/android/widget/cts/TextViewTest.java
Change-Id: I4cc89dad8301f6b1bb46a479395fd72c8476e477
Fixes: 36081667
2017-03-13 15:24:48 -07:00
Andrii Kulian
ca6d48f337 Merge "Move rotation tracking to DisplayContent" 2017-03-13 22:09:34 +00:00
Daniel Nishi
f02e97cb25 Merge "Hook up the cache quota query." 2017-03-13 22:08:13 +00:00
TreeHugger Robot
a813413a6e Merge "remove LinearTransform from libutils" 2017-03-13 22:06:15 +00:00
Roozbeh Pournader
1d0e57c2f8 Add 25 Noto fonts for historic scripts to fonts.xml
Fonts for Avestan, Brahmi, Carian, Cuneiform, Cypriot, Deseret,
Egyptian Hieroglyphs, Gothic, Imperial Aramaic, Inscriptional
Pahlavi, Inscriptional Parthian, Kaithi, Kharoshthi, Linear B,
Lycian, Lydian, Ogham, Old Italic, Old Persian, Old South Arabian,
Old Turkic, Osmanya, Phoenician, Shavian, and Ugaritic have been
added to fonts.xml.

Test: Manual
Bug: 32046261
Change-Id: I3e8a0cc5b066d88f0655daf99320a992037d9082
2017-03-13 15:03:38 -07:00
Chad Brubaker
7e7465aaa5 Don't provide Build.Serial to apps targeting v2 sandbox
Bug: 35882064
Test: cts-tradefed run commandAndExit cts-dev -m
CtsAppSecurityHostTestCases -t
android.appsecurity.cts.EphemeralTest#testBuildSerialUnknown

Change-Id: I66360a2efe5b0df7935a74f22096a2b54e122300
2017-03-13 14:47:53 -07:00
Winson Chung
a0dde8ab20 Provide proper rect in animation spec for transition to assistant stack.
Bug: 35363819
Test: Enter recents from the assistant and relaunch it.
Change-Id: I498d914b31bed32e206e1eab3c97a7266dae8334
2017-03-13 14:44:46 -07:00
Jeff Sharkey
3fcba6afde Merge "Move PackageInstaller over to AppFuse." 2017-03-13 21:44:40 +00:00
Jeff Sharkey
5f3e93451e Lower-overhead version of LockGuard.
Instead of building up a giant set of all locks inside the system
server, there are only a handful that we're interested in watching:
specifically those below the ActivityManagerService lock.

This change adds a index-based variant of lock registering and
checking, which has much lower overhead that doesn't bring a device
to its knees.  It's disabled by default, but can be enabled on local
development builds.

Currently uses the boostPriorityForLockedSection() hook in AMS to
check for lock inversions when enabled.

Test: builds, boots, no AMS lock inversions detected
Bug: 35410906
Change-Id: I473d634d23c08538029412a1254bf4f92b96fb84
2017-03-13 15:38:25 -06:00
Romain Guy
494f784e47 Use d=0.039 for Display P3 instead of sRGB's 0.04045
Bug: 32984164
Test: ColorSpaceTest
Change-Id: I4dd38a660e5130f36e424a3e7eb62e3d65ef2d2f
2017-03-13 14:12:57 -07:00
George Mount
f85b3d48d6 Excluded Views don't go through Transition.
Bug 35832096

When entering or exiting Views were excluded, they were still
being set to INVISIBLE during the exit transition. This made
them disappear instantly. Instead, I've reverted back to the
original implementation by not affecting excluded Views during
the transition.

This CL walks the transition and removes excluded Views from
the enter/exit from being affected.

Test: I5b1b75dd12a3914e35c1d0fb641850981a19f9c3
Change-Id: I2b00ba95575420bae690b1cd8d4894c98401da79
2017-03-13 14:09:58 -07:00
Roozbeh Pournader
2ffca8390f Merge "Check for existance of hyphenation pattern files first" 2017-03-13 20:52:33 +00:00
Chad Brubaker
ebf3a0d57f Merge changes from topic 'receiver_IA'
* changes:
  Enforce visibleToInstantApps for receivers
  Only send exposed broadcasts to Instant Apps
2017-03-13 20:52:18 +00:00
Philip P. Moltmann
495cadd8a9 Change autoFillHint to list of strings
Test: Ran autofill CTS tests
Fixes: 35364993
Change-Id: I3f4ceb719b2d3fef0168e8300c0d15f1661560c0
2017-03-13 13:42:51 -07:00
Mathias Agopian
d4d6167f61 remove LinearTransform from libutils
this was the only client.

Test: compile
Bug: cleanup for treble
Change-Id: Ibe2308d5fffb18c398db47e27d0123d629f675fe
2017-03-13 13:36:52 -07:00
Julia Reynolds
d9864e2511 Merge "Allow blocked apps to create channels" 2017-03-13 20:09:12 +00:00
Phil Weaver
32ea37255d Add haptic feedback for a11y shortcut
Bug: 35036259
Test: Activated shortcut, felt the vibration. Also added unit test.
Change-Id: I3070620d9152ce9b9bb084ee4f01d26020f125d0
2017-03-13 13:01:50 -07:00
Jeff Sharkey
02d4e3441b Move PackageInstaller over to AppFuse.
When PackageInstaller was originally written, we needed a way to
ensure that untrusted apps were fully hands-off of any opened
FileDescriptors before we could proceed with certificate checks.

The best way to satisfy this security constraint was to build
a utility called FileBridge which was a (terribly slow) RPC
mechanism that could be cut off when needed.

However, a new feature called "AppFuse" offers to create a "proxy"
FileDescriptor which relays file operations back into userspace, and
it's much more performant than FileBridge.  (Local benchmark tests
that deliver a 64MB APK show that AppFuse is about 45% faster than
FileBridge.)  Because userspace is still involved in every operation,
we can still "revoke" access at any time to deliver on our security
requirements.

This change adds support for AppFuse, while keeping around FileBridge
as the default for now.  An upcoming flag-flip CL can be used to
easily switch between the two modes.

Test: builds, boots, benchmarking, stress tests
Bug: 35728404, 31332379, 25510838
Change-Id: I2a70c0ca922a5ba468ffdef7b2fd8ab79f7cfefd
2017-03-13 13:59:12 -06:00
Doris Ling
ce31159be7 Update sort order for settings category tiles.
- change the sort to first compare priority, then compare package name.
- do not normalize the tile's priority for all package.

Change-Id: I5501a8c3d5ca0a7f9e100411348d28cfe373c87a
Fix: 35928954
Test: make RunSettingsLibRoboTests
2017-03-13 12:56:10 -07:00
TreeHugger Robot
37fb496763 Merge "Refactoring accessibility class out to own file." 2017-03-13 19:54:37 +00:00
TreeHugger Robot
b0c2ed6337 Merge "Temporarily re-added addSavableIds() with AutoFillId." 2017-03-13 19:30:03 +00:00
TreeHugger Robot
6dbf377ef0 Merge "Update javadoc about TIS.onTimeShiftGetCurrentPosition" 2017-03-13 19:21:09 +00:00
TreeHugger Robot
9b0a5d1919 Merge "use _deprecated suffix for deprecated clipops" 2017-03-13 19:19:34 +00:00
TreeHugger Robot
fa71ecb08a Merge "Move battery percent constant to Settings" 2017-03-13 19:09:52 +00:00
Abodunrinwa Toki
0b8c8133c8 Merge "Use the textclassifier library for smart selection" 2017-03-13 18:57:54 +00:00
Jeff Sharkey
646dde0ace No direct Uri grants from system.
The system should never be extending Uri permission grants from
itself, since it automatically holds all the permissions.  Instead,
the system should always be a mediator between two specific apps, and
it should be using startActivityAsCaller() if it needs to extend
permissions.

Blocking at this level fixes an entire class of confused deputy
security issues.

There is a small exemption for the "com.android.settings.files"
authority which is used for photo cropping in the Settings app.

Test: builds, normal intent resolution UI works
Bug: 33019296, 35158271
Change-Id: I3f0de58facedab8767541291b5dfa022fa2e4414
2017-03-13 12:46:49 -06:00
TreeHugger Robot
0dd6aadd46 Merge "Prevent updating the PiP when it is being dismissed." 2017-03-13 18:37:18 +00:00
Peter Qiu
3efd531e2f hotspot2: update Passpoint configuration management APIs
Address API Councils comment to update both
WifiManager#addOrUpdatePasspointConfiguration and
WifiManager#removePasspointConfiguration to return void and throw
exception on failure instead of returning a boolean.

Bug: 35858311,35856174
Test: make -j32
Change-Id: Iac421eba7aa90e8bc3ffaf5d81210302c7557e95
Merged-In: Iac421eba7aa90e8bc3ffaf5d81210302c7557e95
2017-03-13 11:21:14 -07:00
Peter Qiu
b5ca6f36b5 hotspot2: hide validate method for Passpoint configuration
The validate method is used by Framework only, no need to expose
to app developers. So hide it.

Bug: 35756298
Test: make -j32
Change-Id: I15ccae472f30d7ae968816479f6ea35d90248fe0
Merged-In: I15ccae472f30d7ae968816479f6ea35d90248fe0
2017-03-13 11:21:13 -07:00
Peter Qiu
06b63dcb9f Osu: temporarily comment out the usage of deprecated intent definitions
Bug: 35857805
Test: mmma frameworks/base/packages/Osu
Change-Id: Iadaede1806cfe7bcaf57ed185618a6de4451e321
Merged-In: Ie4ea352e11b10a7c1f8780557554486bc2b4fcef
2017-03-13 11:21:13 -07:00
Jakub Pawlowski
ac0bdcf9bd Merge "Bluetooth 5 spelling fixes" am: 5465fe0a2d am: 58569de4de
am: 2ebaf34259

Change-Id: Ic0ca716afc1f6a900b4c4455d8ff520abef5fb31
2017-03-13 18:21:03 +00:00
Jakub Pawlowski
2ebaf34259 Merge "Bluetooth 5 spelling fixes" am: 5465fe0a2d
am: 58569de4de

Change-Id: I6abd6becaf54fd59abe894fc6c71c46ce4361c8d
2017-03-13 18:16:24 +00:00
Jakub Pawlowski
58569de4de Merge "Bluetooth 5 spelling fixes"
am: 5465fe0a2d

Change-Id: Ibef8ee6a56bf1f8c695e07e4ba61c015054eee13
2017-03-13 18:11:58 +00:00
Jakub Pawlowski
5465fe0a2d Merge "Bluetooth 5 spelling fixes" 2017-03-13 17:58:26 +00:00
Hiroshi Yamauchi
b7fe1763b6 Merge "Fix the reset of boosted zygote thread priority." am: 83aceea07d am: 55310df6bc
am: 4c618d8933

Change-Id: I7be43bedad9a3e189e64f140b585070b6ba6ee33
2017-03-13 17:54:54 +00:00
Matt Sarett
2ecdfc2a33 Use SkColorSpace::isSRGB() in place of pointer comparison
Test: Refactor

Change-Id: I26301339fb964c6feca8c92f058524f8b83156ff
2017-03-13 13:53:02 -04:00
Winson Chung
fe1fa64b0f Refactoring accessibility class out to own file.
Bug: 34773134
Test: Open PIP, turn on talk back and use it.
Change-Id: I8a73eb7230ee02afd16997513fe19c2f0805d094
2017-03-13 10:51:22 -07:00
Hiroshi Yamauchi
4c618d8933 Merge "Fix the reset of boosted zygote thread priority." am: 83aceea07d
am: 55310df6bc

Change-Id: I91d20bc046b721456e0a141def790aeccfbd39a6
2017-03-13 17:50:46 +00:00
TreeHugger Robot
a3518ae92c Merge "Make sure to notify WM about having "drawn" our surface" 2017-03-13 17:49:22 +00:00
Jakub Pawlowski
bc2991e866 Bluetooth 5 spelling fixes
Bug: 30622771
Test: manual
Change-Id: I46b6486619cc7366e56b25ca48937e6792f53e1d
(cherry picked from commit 53501ad210dd5c65c7910a6b75b2b481e92dd22f)
2017-03-13 17:48:42 +00:00
Felipe Leme
43818a73eb Temporarily re-added addSavableIds() with AutoFillId.
Bug: 35727295
Test: manual verification using client using old API
Change-Id: I5589c5e38c11fc4d2a04df6c540a8cded6475ac4
2017-03-13 10:47:40 -07:00
Sid Soundararajan
7616234117 Merge "RecentsTV : Remove all Recents TV Code" 2017-03-13 17:44:55 +00:00
Hiroshi Yamauchi
55310df6bc Merge "Fix the reset of boosted zygote thread priority."
am: 83aceea07d

Change-Id: I6ebd30a631ae10ada65b3279ec66c41d3f50fb1f
2017-03-13 17:42:50 +00:00
Evan Laird
bcf631d48b Move battery percent constant to Settings
This switch is moving to system settings so it should also be declared
by Settings. Also changed the constant's name to make sense in the
System context.

Test: runtest systemui
Bug: 32539932
Change-Id: I7cce21b50702f31465328dd8faed3fbac47528ea
2017-03-13 13:42:11 -04:00
Peter Qiu
5679145d9a hotspot2: update Passpoint intent definitions
Address API Councils comment on the newly added intent definitions
for Passpoint events:
- Use a Parcelable class to represent icon info
- Document all extras that are included for an action
- Document that the new intents will only be sent to registered
  receivers, and not manifest receivers
- Rename extras to be more generic

While there, removed the deprecated hidden Passpoint intent
definitions.

Bug: 35857805
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I22de2d52fce3ed1adc8d72bf1580d3337bc747c5
Merged-In: I22de2d52fce3ed1adc8d72bf1580d3337bc747c5
2017-03-13 10:39:04 -07:00
Mike Reed
a0a74d5f8e use _deprecated suffix for deprecated clipops
Allows skia to remove legacy flag for older names
- SK_SUPPORT_EXOTIC_CLIPOPS
- SK_SUPPORT_LEGACY_CLIPOP_EXOTIC_NAMES

Test: CtsGraphicsTestCases

Change-Id: I78478d94d059641a9381579cae6d28f9f0685ad1
2017-03-13 17:38:16 +00:00
Chris Craik
00128ab0b5 Merge "Fix ShapeDrawable#mutate" 2017-03-13 17:34:40 +00:00
Conrad Chen
4a6d31a8f3 Update javadoc about TIS.onTimeShiftGetCurrentPosition
Test: build
Bug: 31099933
Change-Id: Idc85d01b560cf8380473a0c9eb054f920864f91f
2017-03-13 10:34:24 -07:00
TreeHugger Robot
1965d2898c Merge "Change behavior of setBitmap to cleanly reset the canvas - identity matrix - no save stack - wide-open clip" 2017-03-13 17:33:05 +00:00
Hiroshi Yamauchi
83aceea07d Merge "Fix the reset of boosted zygote thread priority." 2017-03-13 17:32:31 +00:00