17259 Commits

Author SHA1 Message Date
Felipe Leme
d04a697ede Optimize ViewStructure for autofill by removing irrelevant nodes.
Test: CtsAutoFillServiceTestCases (with new tests) pass
Fixes: 35840787

Change-Id: Iaa2c1907c8383b4a820fd7204e67fa2d276ad2b8
2017-03-08 13:31:38 -08:00
Jesse Evans
beb6e9fb7b Adds an explicit id for visibleToInstantApps attr
Adds an explicit id for visibleToInstantApps attr.

This fix is to enable Instant Apps to use the gcore that will ship
with Android O. Gcore is not building against  the O SDK, so to
enable them to use the visibleToInstantApps attribute, we are going
to provide them with a modified public.xml to use in the api 25
SDK.

Test: Ensured coretests / FontResourcesParserTest continues to pass.

Bug: 36036242
Change-Id: I5a9b878cdbffe9323b299e8dbe82c599e33a6834
2017-03-08 09:18:43 -08:00
Todd Kennedy
9c9fdf27ff Expose Instant App API defined in MR1
These were created in MR1 but couldn't be submitted because
they were defined too late [after API freeze].

Change-Id: Ie6884236776bd26e9d0b557fd125b8c77b0ad93b
Fixes: 34890162
Fixes: 35193180
Fixes: 35193418
Test: manual
2017-03-07 11:40:59 -08:00
Clara Bayarri
3c4be77db9 Support non-system Font Providers
To do this, the developer must specify the set of certificate
hashes that represent the authority's app. This allows us to
verify that the authority we find is indeed the one intended
by the developer.

Bug: 35025705
Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/FontsContractTest.java
runtest --path frameworks/base/core/tests/coretests/src/android/content/res/FontResourcesParserTest.java
CTS attached to topic
Change-Id: I605f9a93bbca8705936ead08efb4a5b4fdcc4882
2017-03-07 14:59:33 +00:00
TreeHugger Robot
7cae77b606 Merge changes Iefcaf262,I9c397d83
* changes:
  Fixed a bug where the expand icon could show but nothing happens
  Improved expand accessibility experience
2017-03-07 05:44:54 +00:00
Winson Chung
f4284638c4 Merge "Update how PIP size is determined" 2017-03-07 05:01:23 +00:00
Saige McVea
902adc6cde Merge "Accessibility settings refresh." 2017-03-07 01:16:50 +00:00
Mady Mellor
a7f69740b5 Update how PIP size is determined
- minSize = 108dp
- defaultSmallestEdge = max(23% of screen width, minSize)
- the shortest edge of the PIP should be minSize and the rest scales
  according to the aspect ratio
- rather than a default PIP size, use default aspect ratio
- adding expand button
- fitting actions to spec

Fixes: 35358504
Test: manually used test app to try different aspect ratios
Change-Id: Ib6890fb7824889b9edeea7efb5b9771e64fc1514
Signed-off-by: Winson Chung <winsonc@google.com>
2017-03-06 16:39:11 -08:00
TreeHugger Robot
acc9668235 Merge "Change action bar text color back to accent." 2017-03-06 23:56:49 +00:00
TreeHugger Robot
5b2731a8da Merge "Add labelFor attributes to text input mode of TimePicker." 2017-03-06 23:40:26 +00:00
Saige McVea
08c41bcf5f Accessibility settings refresh.
Categories were added to accessibility service info objects so that they can be grouped
in system Settings. Services can declare a category in their accessibility manifest file,
and if no category is defined, the service is placed under the "Other services" category.

Bug: 30374533

Test: Manually tested with BrailleBack & CTS tests modified to validate proper loading of summary.

Change-Id: I8718556764f2be4a18ce4e80e6bbd4950a41e387
2017-03-06 15:04:00 -08:00
Fan Zhang
f5d8a886ff Change action bar text color back to accent.
Bug: 34978809
Test: visual

This is a partial rollback of 59d488a1363226c675b8

Based on user feedback we are changing text color back to use accent
in action bar.

Change-Id: Id041a7bf6c6b2552f111c20e8290b70b7801c976
2017-03-06 14:21:57 -08:00
Aurimas Liutikas
7dadd70aa1 Add labelFor attributes to text input mode of TimePicker.
Bug: 30044800
Test: now talkback includes label name when reading EditText values
Change-Id: I2a2e46d803b471afe61777fa98314330e6942771
2017-03-06 22:00:28 +00:00
Chad Brubaker
e45606d6c6 Expose ACCESS_INSTANT_APPS to the verifier
The package verifier needs to be able to see Instant Apps in order to do
its job. It already sees them on first install so no new information
about what Instant Apps are installed is leaked.

Test: builds
Change-Id: I5d892b2d7aa820a9c0c00ac357f20a3210cf3395
2017-03-06 13:14:01 -08:00
Bill Yi
f030bb39c5 Import translations. DO NOT MERGE
Change-Id: Iff822fac67b1b27301b96e63af899e7e1279875f
Auto-generated-cl: translation import
2017-03-06 03:29:50 -08:00
TreeHugger Robot
f4537dcf3b Merge "Minor changes on AutoFill Save UI." 2017-03-04 10:03:59 +00:00
Selim Cinek
c0ac4af13b Improved expand accessibility experience
The expand action is now on the notification itself
instead of the expand button, this way a user immediately
know if it is expanded.
It also improves the click feedback of the expand button

Test: add notifications, observe accessibility feedback
Change-Id: I9c397d839df52d5354d7ae16725ce3e595da19c7
Fixes: 32322410
Fixes: 35064589
2017-03-03 15:13:48 -08:00
Felipe Leme
de4d4c2083 Minor changes on AutoFill Save UI.
- Fixed subtitle layout.
- Added a Shell command to change snackbar lifetime (so CTS tests can verify
  it's dismissed).

BUG: 35727295
Test: CtsAutoFillServiceTestCases (with new tests) pass
Test: manual verification

Change-Id: Ie6d42c94599ad59a319ca6f6a1ab02882f8d5f81
2017-03-03 14:09:29 -08:00
Philip P. Moltmann
4461181f4b Don't run autoFill on detached view or mode=manual
We only run autoFill on views that are attached, auto-fillable, not
auto-fill blocked, resolvedMode=auto and focused. If any of the
conditions change we have to re-evaluate the auto-fill state.

This reverts commit e572989b3f838cc76b51699710d11aa2f992a474.

Test: Ran amended ViewAttributesTest, set a PIN for the device
      (previously crashed)
Bug: 35701500
Change-Id: Idcdf1fd7b7dee6bfbc800fb84fdc1c72dcb088f9
2017-03-03 14:02:43 -08:00
Philip P. Moltmann
ba6f462602 Add autoFillHint property to view
Bug: 35364993
Test: Ran amended ViewAttributesTest
Change-Id: Ib7d2c3dfd5b4a6b638b56c4583af4c9bdf37e346
2017-03-02 12:46:44 -08:00
Dianne Hackborn
594ea5f8b0 Merge "Implement issue #34842682: Add ability to limit permissions based on features" 2017-03-02 18:31:15 +00:00
TreeHugger Robot
3f80513733 Merge changes Ic4370fa8,I81c43329,Ic563a8fe,I6d4be770,I858d1c95, ...
* changes:
  Fixed a bug where a wrong notification could be visible
  Fixed a bug where the icon would dissappear
  Continued low-priority group implementation
  Fixed an issue where the minimum height wasn't applied correctly
  Worked around a bug where the view could render blank
  Fixed another memory leak
  Creating the right views for low-priority group children
  Move the inflation away from the statusbar
2017-03-02 00:52:52 +00:00
TreeHugger Robot
fa18d7cd71 Merge "Remove SystemApi from android.permission.REQUEST_NETWORK_SCORES." 2017-03-01 23:34:39 +00:00
TreeHugger Robot
f2f36e5f75 Merge "Fix some old and annoying doc problems." 2017-03-01 22:03:23 +00:00
Selim Cinek
17fd64b340 Fixed an issue where the minimum height wasn't applied correctly
Test: send multiple message on same thread, observe normal padding
Change-Id: I6d4be7702de0b749963e236cbfa8c1f351742233
Fixes: 35672249
2017-03-01 13:15:08 -08:00
Dianne Hackborn
cd154e9535 Implement issue #34842682: Add ability to limit permissions based on features
Two new attributes for <uses-permission>: android:requiredFeature and
android:requiredNotFeature.

Also update aapt to include this information in badging:

uses-permission: name='android.content.cts.REQUIRED_NOT_FEATURE_UNDEFINED' requiredNotFeature='android.software.cts.undefined'
uses-permission: name='android.content.cts.REQUIRED_MULTI_DENY' requiredFeature='android.software.cts.undefined' requiredNotFeature='android.software.cts'

Test: new PermissionFeatureTest suite.

Change-Id: Icc1f815a4675ae9dd2cb7f61730ab28b5c11228a
2017-03-01 12:40:57 -08:00
Ajay Nambi
8cf7c3fc9f Merge "Add DUN to networkAttributes" am: 32d763b0ed am: 4e8cd7dca6
am: 5e6147faa0

Change-Id: I2ed7b482916804c783e2fa9e7c053e20e8eb59e7
2017-03-01 19:44:48 +00:00
Ajay Nambi
4e8cd7dca6 Merge "Add DUN to networkAttributes"
am: 32d763b0ed

Change-Id: I863e700b6b98bc23924d7f146e09c1c2c27f608f
2017-03-01 19:35:52 +00:00
Treehugger Robot
32d763b0ed Merge "Add DUN to networkAttributes" 2017-03-01 19:25:39 +00:00
Geoffrey Pitsch
af759c52ce Channels for Frameworks notifications
Adapts all notifications used by system services to use channels.
Channels are initialized by SystemServer after the NotificationService
has started.

Test: runtest systemui-notification
Change-Id: I25c45293b786adb57787aeab4c2613c9d7c89dab
2017-03-01 10:17:15 -05:00
TreeHugger Robot
247a3c0132 Merge "Introduce ANSWER_PHONE_CALLS permission" 2017-03-01 01:10:20 +00:00
Sunny Goyal
e19e5677a5 Merge "Sending explicit broadcast to the launcher when a package is installed" 2017-02-28 23:58:38 +00:00
Chet Haase
22d5ff1207 Fix some old and annoying doc problems.
Javadocs don't like comments that have no "." at the end (they will
continue to read more until they find one). So many of the docs
in attrs show up with descriptions that include the dimension format
info... as part of their one-sentence synopsis.

Also, "e.g." confuses javadoc because it brings the sentence to a close
(in the middle).

Also, some attrs lack docs entirely, which has the unfortunate result
of the javadocs having only the format description, which looks pretty
silly. I fixed a small number of these.

Bug: 35834231  clean up bad attr docs
Test: no test, docs only. But I did a docs build and it worked.
Change-Id: Ia7bc49a5084a7be2839b1aa521e53b73a08ac985
2017-02-28 13:32:58 -08:00
Sunny Goyal
6d7cb23236 Sending explicit broadcast to the launcher when a package is installed
Test: Manually tested on device and add CTS tests
Bug: 32920609
Change-Id: Ic23c077a469fb41d6c4e123d4bc022899f634198
2017-02-28 12:55:59 -08:00
TreeHugger Robot
c61276c997 Merge "Fix javadocs for layout attributes" 2017-02-28 19:59:19 +00:00
Jeremy Joslin
0bc56b78e4 Removed config_networkRecommendationPackageNames.
Use config_defaultNetworkRecommendationProviderPackage instead.

Test: Built & run
Bug: 35095406
Change-Id: I7cad63ca55983bbffc2bdd278d9284f75dc805e6
2017-02-28 17:03:18 +00:00
Jeremy Joslin
a9ad1d3af1 Remove SystemApi from android.permission.REQUEST_NETWORK_SCORES.
Copy/paste error, it's not needed.

Test: Built & run
Bug: 34250804
Change-Id: If9e0ff91e559bbcf278913cba47fd3d2073927b4
2017-02-28 16:59:56 +00:00
Chet Haase
c5a6fdb57e Fix javadocs for layout attributes
Bug: 35763496  API Review: layout_marginVertical
Test: doc fixes only, no test
Change-Id: I63248874465d887a81b582be5f9a7d476fb24ea1
2017-02-28 06:19:45 -08:00
Bill Yi
2a830815a1 Import translations. DO NOT MERGE
Change-Id: Ie8189227b7840495e79f5b3bbefac9e3eda81d6f
Auto-generated-cl: translation import
2017-02-28 00:20:21 -08:00
TreeHugger Robot
ffffb47569 Merge "Change internal intents from android.* to com.android.internal.*" 2017-02-27 20:34:21 +00:00
Felipe Leme
b72f012cb4 Added customization to SaveInfo.
Bug: 35727295
Test: CtsAutoFillServiceTestCases pass
Test: m update-api

Change-Id: I7eba36b6ab8181ae1cdbd10b0879927b9f9cf086
2017-02-27 10:14:41 -08:00
Andrei Stingaceanu
ab18567419 AutoSize TextView (part 11) - fix final APIs
* public attr "autoSizeText" becomes "autoSizeTextType"
  (inlined with all other methods and naming)
* documentation for autoSizetextType "uniform" re-worked:
  "The TextView scales text size both horizontally and
  vertically to fit  within the container"
* converted comments into Javadoc for
  TextView#AUTO_SIZE_TEXT_TYPE_NONE and
  TextView#AUTO_SIZE_TEXT_TYPE_UNIFORM
* better documented attr "autoSizePresetSizes" to specify
  it is a resource array of dimensions
* various small fixes in comments

Bug: 35755149
Bug: 35763485
Bug: 35764658
Bug: 32221168
Test: run cts-dev -m CtsWidgetTestCases -t \
      android.widget.cts.TextViewTest

Change-Id: I36afd399e005521b6e85922aa9e1e4418bb960e1
2017-02-27 15:17:46 +00:00
Eugene Susla
cae3d3e59e Introduce ANSWER_PHONE_CALLS permission
This exposes an API to answer a ringing call, as well as a corresponding
runtime permission and appop

Test: Grant the permission and ensure the call gets answered.
Deny the permission, and ensure that the API call throws an exception.
Bug: 30932767
Change-Id: I4c33fcea6b95a30469fa6c0c37090be32b0ad52e
2017-02-24 20:28:46 -08:00
Jack Yu
82c46d11f6 resolve merge conflicts of e091985bb5b5 to stage-aosp-master
Test: Manual
Change-Id: Icaf4663abd3ad233afa3e31ff1939dbb7c07a2a5
2017-02-24 18:47:01 -08:00
Jack Yu
a585180c75 Merge "Added a settings for CMAS message broadcast" 2017-02-25 00:11:12 +00:00
Amit Mahajan
f5ee786475 Change internal intents from android.* to com.android.internal.*
Test: none
Bug: 35269293
Change-Id: I74585b3d6459cee613408d80fe4a3c13327e5dab
2017-02-24 13:29:37 -08:00
Jack Yu
3902857290 Added a settings for CMAS message broadcast
This is for sl4a automation to receive CMAS messages
broadcasdt. The automation should inject the settings
through 'adb settings'.

Test: manual
bug: 34393649
Change-Id: Ic29be11b641f185219146d7fbb05561f5907ea76
2017-02-24 12:18:46 -08:00
Jason Monk
58be7a675b Add colorError
Remove scatered references to old error color and replace them with
references to new colorError

Test: make & visual
Change-Id: Icca8cd790db351c3dfce2197f2046879d062a2c0
2017-02-24 14:57:27 -05:00
Jack Yu
d1d64730b9 Added a settings for CMAS message broadcast
This is for sl4a automation to receive CMAS messages
broadcasdt. The automation should inject the settings
through 'adb settings'.

Test: manual
bug: 34393649
Merged-In: Ic29be11b641f185219146d7fbb05561f5907ea76
Change-Id: Ic29be11b641f185219146d7fbb05561f5907ea76
2017-02-24 04:36:26 +00:00
Adam Lesinski
aea3cf40d6 Whitelist new CHANGE_OVERLAY_PACKAGES permission
The Shell application needs access to change which overlays are
enabled in OverlayManagerService.

Test: Manual: invoke adb exec-out cmd overlay enable some.package.name
when shell is not root (adb unroot on eng builds).
Change-Id: I1849f68e244cfc9b1e13eb0e673dde7be03cba6d
2017-02-23 18:52:30 -08:00