Commit Graph

17637 Commits

Author SHA1 Message Date
Felipe Leme
49a38c6f1c Added BaseAdapter.setAutofillOptions()
Also changed ArrayAdapter to use it, when set.

Fixes: 37518906
Test: cts-tradefed run commandAndExit cts-dev -m CtsWidgetTestCases  -t android.widget.cts.BaseAdapterTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsWidgetTestCases  -t android.widget.cts.ArrayAdapterTest
Test: m update-api

Change-Id: I5e883555b0fb9d084b57b9239595bf0632fc41af
2017-06-21 13:36:56 -06:00
Jeff Sharkey
257529dcae Fix searching for overridden methods.
If the superclass is an abstract class, we want to search it for
possibly overridden methods; we don't want to search ourselves.

This bug resulted in (incorrectly) thinking that overridden "default"
methods from interfaces were standalone methods on the class.  (The
expected behavior has always been to omit any overridden methods from
the public API surface area to avoid redundant noise.)

Test: make update-api
Bug: 62675475
Change-Id: Ic92544908692bd9af329d302165e18c7b4738e43
2017-06-21 11:08:45 -06:00
TreeHugger Robot
02d082dd0b Merge "Add Window.isWideColorGamut()" 2017-06-21 01:02:56 +00:00
Romain Guy
adae59b020 Add Window.isWideColorGamut()
This API returns true when all the following conditions are met:
- The app has requested the window to be in wide color gamut mode
- The display has a wide color gamut
- The device supports wide color gamut rendering

Bug: 62832666
Test: CtsColorModeTest
Change-Id: Idae1527b88959689bb637b6dd4db756d09fabe77
2017-06-20 16:01:57 -07:00
Nate Fischer
5c937a4b6a Merge "Add WebViewClient#onSafeBrowsingHit() API" 2017-06-20 03:01:39 +00:00
Julia Reynolds
b852e56668 Migrate managed services from setting to policy xml
Change-Id: Ie20f91dbdd0ba6b57b5909cbf0152a32754fe02d
Fixes: 62263757
Test: runtest systemui-notification, cts AudioManagerTest,
cts-verifier DND tests, verify bug reports after toggling
access for various types of managed services, verified
default approved services aren't renabled on boot; verified that
they are reenabled after a device reset, verified that
settings are migrated after a restore from OC backup.
2017-06-19 17:43:30 +00:00
Nate Fischer
0c3043622e Add WebViewClient#onSafeBrowsingHit() API
This adds the WebViewClient#onSafeBrowsingHit() API and its default
implementation.

This also adds the relevant constants. This includes
SAFE_BROWSING_THREAT_UNKNOWN, in case we expose new threat types in the
future.

Bug: 62723291
Test: N/A
Change-Id: I0b424a952466b23db4cf296573680a0a6c61b981
2017-06-16 16:53:44 -07:00
Lucas Dupin
2276eede81 Merge "Merge "WallpaperColors refactor" into oc-dr1-dev am: 04d2ec59e8" into oc-dr1-dev-plus-aosp
am: fcee629aa6

Change-Id: Idf98ceb1465c1e83de1cc5c0aa46077289ed2f6d
2017-06-16 20:33:29 +00:00
Lucas Dupin
84b89d9d59 WallpaperColors refactor
Hiding color extraction into WallpaperColors.
This enables us to create WallpaperColors from a a Bitmap
or Drawable.

Fixes: 62197187
Fixes: 62490115
Test: runtest --path cts/tests/app/src/android/app/cts/WallpaperColorsTest.java
Change-Id: I614cfa205e02b551a141642eac6de21251c3bff6
2017-06-16 09:27:43 -07:00
Lucas Dupin
84a333c7eb Merge "Hide WallpaperService.Engine colors API." into oc-dr1-dev am: 1133cf2b8a
am: edc2917b69

Change-Id: Id25fbbca90dbac2b4149c5aaa6ca3d3ee4c8b537
2017-06-16 04:58:21 +00:00
Lucas Dupin
2b0dab0da7 Hide WallpaperService.Engine colors API.
All apps that need it are bundled in DR.
We need to unhide it for MR1.

Test: make
Bug: 62490115
Change-Id: I58d0a020ec7b1af8cb2659d6957de4bf4d4fa596
2017-06-14 18:30:51 -07:00
TreeHugger Robot
2d84bdcaea Merge "Expose USER_SETUP_COMPLETE as Test API." 2017-06-14 01:37:37 +00:00
Jeff Sharkey
52feccbf41 Merge "Revert "Hide APIs not intended to ship in DR."" 2017-06-13 17:40:58 +00:00
Adam Vartanian
57a8d53130 Merge "DO NOT MERGE Remove createSocket(Socket, InputStream, boolean) from APIs." into oc-dr1-dev am: 87587fbda2
am: 0cbfb82f38

Change-Id: I7c7876d9fe871178be0918f0c8c48218527a18e0
2017-06-13 08:27:31 +00:00
Adam Vartanian
87587fbda2 Merge "DO NOT MERGE Remove createSocket(Socket, InputStream, boolean) from APIs." into oc-dr1-dev 2017-06-13 08:13:34 +00:00
Jeff Sharkey
9039636535 Revert "Hide APIs not intended to ship in DR."
This reverts commit 0c28d43fe1.
2017-06-12 16:26:53 -06:00
Jeff Sharkey
83559ba8d5 Merge "Hide APIs not intended to ship in DR." into oc-dr1-dev am: 3d4c62de10
am: dd96cfc4ef

Change-Id: I02eab4f04913de48c182176da6559fb14559f459
2017-06-12 22:09:16 +00:00
TreeHugger Robot
9af361bb69 Merge "Deprecate screen brightness boost detection." 2017-06-12 21:34:27 +00:00
Felipe Leme
9923012638 Expose USER_SETUP_COMPLETE as Test API.
Test: m -j90 update-api
Fixes: 62538627

Change-Id: I247d27341ce06b29f257d00a9058be4c0f662db0
2017-06-12 14:33:03 -07:00
TreeHugger Robot
70919cc55f Merge "TIF: add TvContract.isRecordedProgramUri() method" 2017-06-12 19:16:50 +00:00
Jeff Sharkey
0c28d43fe1 Hide APIs not intended to ship in DR.
This CL will be reverted once it merges into the next release branch
to re-introduce the proposed APIs.

This CL also makes the following code changes to preserve API
compatibility:

-- It keeps the recently added RemoteViews.clone() synchronized logic
intact, but moves it inside the method to avoid changing the API
signature.

-- It reverts the RttCall.read() behavior to the oc-dev logic, since
we can't throw IOException until we get an API level bump.  (The
original logic returned null instead of throwing.)

Test: builds, boots
Bug: 62427252, 62431886, 62427329
Bug: 62468911, 62431162, 62428935, 62429096
Bug: 37290820, 37359238, 36886243
Bug: 30143923, 35761231, 62192626, 29829689
Change-Id: I83d723f598cb0ee1fe198e65debd86ef7fd0420c
2017-06-12 10:26:01 -06:00
Roozbeh Pournader
aa8380fa22 Merge "Internationalize InputFilter.AllCaps" 2017-06-09 22:23:52 +00:00
Julius D'souza
b22da80734 Deprecate screen brightness boost detection.
Deprecated:
PowerManager#isScreenBrightnessBoosted
ACTION_SCREEN_BRIGHTNESS_BOOST_CHANGED

Bug: 62348163
Test: isScreenBrightnessBoosted should return false.
Change-Id: Ia580daeffb249110a6adf1e46052966a718226cb
2017-06-09 12:24:38 -07:00
Adam Vartanian
3120b33204 DO NOT MERGE Remove createSocket(Socket, InputStream, boolean) from APIs.
This method wasn't intended to be new API for DR1.

Bug: 62428936
Test: make
Change-Id: I5c0d523d0f61ab544cd987fa92daefcc79fc0732
2017-06-09 12:25:36 +00:00
Roozbeh Pournader
205a993928 Internationalize InputFilter.AllCaps
The new code support non-BMP characters, as well as locale-specific
uppercasing and fine-grained span copying.

The modern capitalization code in AllCapsTransformationMethod is
moved to TextUtils now, so InputFilter.AllCaps can share it.

Fixes: 37222101
Test: New CTS and core tests are added.
Test: cts-tradefed run cts-dev --module CtsTextTestCases
Test: adb shell am instrument -w -e package android.text com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I021ff2a97a60396fb1b6e4940d91d3cd6ccb6196
2017-06-08 15:38:28 -07:00
Svetoslav Ganov
62031b8937 Merge "Ensure only test print services enabled - framework" into oc-dev
am: 053fb9120e

Change-Id: I5f07488ba286cb3d01c75d96e1003edba845daf8
2017-06-08 16:01:54 +00:00
Svetoslav Ganov
2dcedc1276 Ensure only test print services enabled - framework
Test: cts-tradefed run cts-dev -m CtsPrintTestCas

bug:62232727

Change-Id: I1050272586d1c03dc1b1dfdb8b10e258912a249b
2017-06-07 18:50:05 -07:00
TreeHugger Robot
d131f19c50 Merge "Add new haptic feedback constant for virtual key release." 2017-06-06 21:35:51 +00:00
Michael Wright
e14b0647f1 Add new haptic feedback constant for virtual key release.
Test: None
Change-Id: I99cd2086b9f269ca3f3036c70304b0cb7c9369e9
2017-06-02 19:13:58 +01:00
Alan Viverette
8464e3101a Merge "Annotate test method visibility in WindowManager" into oc-dev am: 0b83588177
am: 35eb249ebb

Change-Id: I3d20aa3c99046b6185695f8e85f7a61474620d4d
2017-06-02 17:43:40 +00:00
Alan Viverette
35eb249ebb Merge "Annotate test method visibility in WindowManager" into oc-dev
am: 0b83588177

Change-Id: I0393d702b3fd308dd16becefceea15f932fea599
2017-06-02 17:34:38 +00:00
TreeHugger Robot
0b83588177 Merge "Annotate test method visibility in WindowManager" into oc-dev 2017-06-02 17:26:54 +00:00
TreeHugger Robot
92d89fd7f4 Merge "Expose hidden apis used by CTS as TestApi" 2017-06-01 15:00:05 +00:00
Conrad Chen
f98a4f2a60 TIF: add TvContract.isRecordedProgramUri() method
Test: cts-tradefed run cts -m CtsTvTestCases
Bug: 37577698
Change-Id: I91bfae8db1c3fa2e50313b0501423aefae37366f
2017-05-31 17:32:00 -07:00
Alan Viverette
39259dd33c Annotate test method visibility in WindowManager
Change-Id: I36714b4eb39c937cc3c42fac604fd0fa9900ae47
Fixes: 62066862
Test: n/a
2017-05-31 15:06:09 -04:00
Nate Fischer
b4ec958c7c Merge "Add WebView#{init,shutdown}SafeBrowsing APIs" 2017-05-31 00:17:48 +00:00
Peter Qiu
66197daa9d Merge changes from topic 'hide_passpoint_r2' into oc-dev am: 4bd47fce86
am: 421018f44b

Change-Id: I6d56c9c822e707ed41fc3a4b3c0ca58188bc1000
2017-05-30 19:08:03 +00:00
Peter Qiu
421018f44b Merge changes from topic 'hide_passpoint_r2' into oc-dev
am: 4bd47fce86

Change-Id: I71fe905c7842384d7700f02f923b12cdae9bf594
2017-05-30 18:55:37 +00:00
TreeHugger Robot
4bd47fce86 Merge changes from topic 'hide_passpoint_r2' into oc-dev
* changes:
  hotspot2: hide Release 2 APIs
  Voice Messaging Intent API.
2017-05-30 18:47:12 +00:00
Nate Fischer
0e72c181c8 Add WebView#{init,shutdown}SafeBrowsing APIs
This adds the APIs for the WebView#initSafeBrowsing and
WebView#shutdownSafeBrowsing static methods.

Implementation for these APIs landed in 60.0.3112.0

Also, this fixes an already-existing error with import order (failed
Checkstyle hook). No actual change to imports.

BUG: 62192626
Test: manual - built a custom app which calls methods via reflection
Change-Id: I763349182443dc20cff1e7f08475290fac65c233
2017-05-30 11:40:26 -07:00
Peter Qiu
ff323d3ce9 hotspot2: hide Release 2 APIs
These APIs are based on the design of the legacy OSU app.  Since
the app will be redesigned, hide these APIs for now.

Bug: 38260972
Test: build
Change-Id: I56b9c27305624306773284a7cc1721606037462d
2017-05-30 09:47:43 -07:00
Renat Aksitov
931983d607 Voice Messaging Intent API.
Removing EXTRA_SENDER_ACCOUNT_HASH, needs more work.

Bug 37747843

Test: make -j11 docs

Change-Id: I3046611510f85cf69ceff7c2274cda3b692581b9
(cherry picked from commit 2c4201448e)
2017-05-30 09:47:42 -07:00
Jiaquan He
2a03e99843 Check state_focus in foreground. am: 0bdf1c9c76
am: 74282f0745

Change-Id: I6266996179177f5812a82537510bf58e5c3f6b0d
2017-05-30 13:34:35 +00:00
Jiaquan He
74282f0745 Check state_focus in foreground.
am: 0bdf1c9c76

Change-Id: Ie7b36dfa723a110d553c2f6a5926314758e0da53
2017-05-27 00:19:35 +00:00
TreeHugger Robot
759669988b Merge changes from topic 'highlight_fixed' into oc-dev
* changes:
  Check default focus highlight for ImageView.
  Check state_focus in foreground.
2017-05-27 00:11:10 +00:00
Tony Mak
4128499373 Merge "Remove the old version of setAffiliationIds" into oc-dev am: 8d902a9e28
am: 754f6e22b0

Change-Id: I95a4b13ed76b6ce38c50047c9c6c923bf2ef7778
2017-05-26 13:12:48 +00:00
Tony Mak
754f6e22b0 Merge "Remove the old version of setAffiliationIds" into oc-dev
am: 8d902a9e28

Change-Id: I219958d5f9d74845b0ec03f88903ea6b9ec345c6
2017-05-26 13:06:23 +00:00
Clara Bayarri
35a078fb48 Expose hidden apis used by CTS as TestApi
Bug: 62066271
Test: See topic
Change-Id: I746189fe18ee465d7ada2de59e77a13566b9941f
2017-05-26 13:09:56 +01:00
Jiaquan He
0bdf1c9c76 Check state_focus in foreground.
This commit checks whether the state_focus is specified in the
foreground of a view. If it is, the default focus highlight won't
show up.

Test: cts-tradefed run singleCommand cts --skip-device-info
--skip-preconditions --abi armeabi-v7a -m CtsViewTestCases -t
android.view.cts.View_DefaultFocusHighlightTest#testIsDefaultFocusHighlightNeeded
Bug: 37288730
Change-Id: I5256eb656c1b8729d685edb914e867ee9a3a92a4
2017-05-24 16:13:38 -07:00
TreeHugger Robot
9a4b440542 Merge "Unhide system feature flag FEATURE_WIFI_PASSPOINT" 2017-05-24 15:51:32 +00:00