Commit Graph

79221 Commits

Author SHA1 Message Date
Richard Ledley
5f2f820c81 Remove selection on nonselectable text (which would be there if a user tapped Linkified text) if a TextView loses focus.
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest

Bug: 67629726
Change-Id: Ifc3039f0c814c422b2d727f837ca9c88abc2ebe8
2018-02-06 18:09:49 +00:00
TreeHugger Robot
9d3986bdc3 Merge "Add Ambient Brightness tracker API" 2018-02-01 12:15:15 +00:00
David Brazdil
7d69d3a855 Merge "Droidfood only: Move private APIs to dark greylist by default" 2018-02-01 11:07:39 +00:00
TreeHugger Robot
3d67f4a039 Merge "Add information about brightness config to slider events." 2018-02-01 10:37:30 +00:00
David Brazdil
b43351f84a Droidfood only: Move private APIs to dark greylist by default
In order to tune the API lists, we initialize the light greylist with
APIs we know are used by popular apps. All the other private APIs are
moved into dark greylist. Light greylist will be set to not warn at
all, while dark greylist will produce warnings. This will allow us to
collect logs and tune the lists without breaking all of our dogfooders.

Bug: 64382372
Bug: 72793280
Test: make
Change-Id: Ice6c487eeca8900e6a70abe1b87e8c211ef1066e
2018-02-01 09:47:59 +00:00
TreeHugger Robot
fd673f3239 Merge "Implements StatsManager temporary stubs." 2018-02-01 07:37:30 +00:00
Jan Althaus
b3dc010599 Merge "Updating TextClassifier factory model names" 2018-02-01 06:43:45 +00:00
Benedict Wong
309cb2838f Merge "Fix minor bugs with tunnel mode implementation" am: cb9cd96c50 am: b7afa3f6fb
am: dcb9219764

Change-Id: Ie74c4edcc7586e0220ff948222010e126841e8f7
2018-02-01 04:12:18 +00:00
TreeHugger Robot
ab4332d616 Merge changes I855f5315,I9ac7e13e,I003837a9
* changes:
  WSA: More dead code.
  Restore pinned stack shadows.
  Nuke WSA#mClipRect/mHasClipRect
2018-02-01 04:03:36 +00:00
Benedict Wong
dcb9219764 Merge "Fix minor bugs with tunnel mode implementation" am: cb9cd96c50
am: b7afa3f6fb

Change-Id: I9c2a844d9ccc401a34d0e6318506406e8c33fab6
2018-02-01 03:49:45 +00:00
Benedict Wong
b7afa3f6fb Merge "Fix minor bugs with tunnel mode implementation"
am: cb9cd96c50

Change-Id: I94210f595e904d13711feb97e77a3373d8cce1b0
2018-02-01 03:30:44 +00:00
TreeHugger Robot
daaa009003 Merge changes I4a907600,If3205033
* changes:
  Marking used instant apps fields as System API
  Revert "Revert "Removes EphemrealResolverService and related""
2018-02-01 02:27:32 +00:00
David Chen
76ce2d6d04 Implements StatsManager temporary stubs.
Need to use the old API for a bit, so the temporary API will convert
the arguments for ConfigKey from String to Long and then call the
correct API from statsd.

This can be deleted in the future.

Test: Test that marlin-eng can build.
Change-Id: Iebaf2debc08c749ecaae631201e7d039b916f0ce
2018-01-31 16:52:52 -08:00
Jerry Zhang
5f2a4ef763 Merge changes from topic "UsbManager-changes"
* changes:
  Usb changes and strings for connected devices 2.0
  Refactor and clean up USB, add tests
2018-01-31 23:41:32 +00:00
TreeHugger Robot
70f93ee673 Merge "Add API to set tonal shadow color" 2018-01-31 23:17:12 +00:00
TreeHugger Robot
b0c854ef99 Merge "Fixing generateLinks and java docs" 2018-01-31 23:16:13 +00:00
Benedict Wong
cb9cd96c50 Merge "Fix minor bugs with tunnel mode implementation" 2018-01-31 22:45:26 +00:00
TreeHugger Robot
3a2e3b03dc Merge "Revert "Revert "Adds generic intent Instant App resolution""" 2018-01-31 22:38:48 +00:00
Shuzhen Wang
842961310c Merge "OutputConfiguration: Fix missing mIsShared in parcel read" into oc-dev am: 5f7cdba8ab am: df255a4a6b
am: 152acb5162

Change-Id: I744ced5fe3d6ad25c4aaf8deb438286ba5803480
2018-01-31 22:07:48 +00:00
Patrick Baumann
159cd024d9 Marking used instant apps fields as System API
Change-Id: I4a907600b9fa75b1789843a9c2e7d2c33aaaff6b
Fixes: 71852699
Bug: 72450666
Bug: 72700831
Test: builds and AIA still functional
2018-01-31 14:00:18 -08:00
Patrick Baumann
577d402d0d Revert "Revert "Adds generic intent Instant App resolution""
This reverts commit 860b8ba719.

The original change that was reverted contained a bug that allowed an
http view/browsable intent used to query for browsers to be considered
as a candidate for instant apps. This was resulting in an attempt to
bind to the instant app resolver while holding a lock on mPackages.

This change ensures that PMS doesn't bind while checking for the browser
status of a package in both the instant app filtering code and by adding
the FLAG_IGNORE_EPHEMERAL to the canonical browser intent.

Reason for revert: Applying fix

Change-Id: I4896b3a15416a11fdc3f6c191e552c4ce8963623
Fixes: 63117034
Fixes: 71916178
Test: Manual using test app at google_experimental/users/patb/InstantAppsInP
Test: atest android.appsecurity.cts.EphemeralTest passes after modification
2018-01-31 14:00:18 -08:00
Patrick Baumann
43c97a0e90 Revert "Revert "Removes EphemrealResolverService and related""
This reverts commit 1e0c91968e.

Reason for revert: Original issue fixed

Fixes: 38137176
Fixes: 38121489
Test: manual; builds and instant apps launch
Change-Id: If320503381b21580ac1b127c49f754b39ffcc93b
2018-01-31 14:00:18 -08:00
Shuzhen Wang
152acb5162 Merge "OutputConfiguration: Fix missing mIsShared in parcel read" into oc-dev am: 5f7cdba8ab
am: df255a4a6b

Change-Id: I273a04bfcab3b26da4bc745445d144db1a0c9419
2018-01-31 21:49:57 +00:00
Shuzhen Wang
df255a4a6b Merge "OutputConfiguration: Fix missing mIsShared in parcel read" into oc-dev
am: 5f7cdba8ab

Change-Id: Ic55969e029228542f79e870cb7b5c68602b9a084
2018-01-31 21:28:00 +00:00
TreeHugger Robot
75ca5dff32 Merge "Remove feature flag for suggestion ui v2." 2018-01-31 21:15:18 +00:00
TreeHugger Robot
5f7cdba8ab Merge "OutputConfiguration: Fix missing mIsShared in parcel read" into oc-dev 2018-01-31 21:11:32 +00:00
Robert Carr
32bcb10e33 Restore pinned stack shadows.
We use the approach of outsetting the stack bounds and then
insetting windows which don't have surfaceInsets by said outsets.

Test: Manual. go/wm-smoke
Bug: 72657549
Change-Id: I9ac7e13ec696f88f02794175d0d44ac870f91d33
2018-01-31 12:39:46 -08:00
TreeHugger Robot
0f069cc224 Merge "Minor javadoc clarification." 2018-01-31 20:27:31 +00:00
David Brazdil
059054ff3f Merge "Show hidden API warning once per process" am: 880839d2d1 am: 169a159207
am: 5379c4fe3a

Change-Id: Iebf487a69de640fdcd181bc2bb8e8f8dbe826b8c
2018-01-31 19:53:52 +00:00
David Brazdil
5379c4fe3a Merge "Show hidden API warning once per process" am: 880839d2d1
am: 169a159207

Change-Id: I11b174f82b8a71884de6b384f9478d125ce45ab4
2018-01-31 19:45:39 +00:00
TreeHugger Robot
7f03076ba5 Merge "Add API to only map to slice uri and not bind" 2018-01-31 19:42:35 +00:00
Jerry Zhang
327b809ad1 Refactor and clean up USB, add tests
Change UsbManager apis to use long instead of string, to match
usb hal. Change UsbDeviceManager internals to match as well.

Remove isFunctionEnabled and add getEnabledFunctions. Callers
would often call isFunctionEnabled for every possible function
to get the list of functions, so getEnabledFunctions reduces the
number of aidl calls.

Separate out dependencies between UsbHandler and UsbDeviceManager
and staticize the UsbHandler classes. Add unit tests with
mocked out dependencies to test state transitions for UsbHandler.

Bug: 62876645
Test: atest UsbTests
Change-Id: I785c4c24121a70e725de9742c6af50a6bf1baea0
2018-01-31 11:40:48 -08:00
David Brazdil
169a159207 Merge "Show hidden API warning once per process"
am: 880839d2d1

Change-Id: I2da706085d0ee0cb047b6b5c516c8a91487b77eb
2018-01-31 19:39:30 +00:00
TreeHugger Robot
b7158102ba Merge "Changed dataset methods that take a Pattern filter to accept null." 2018-01-31 19:32:37 +00:00
John Reck
d8be4a0abe Add API to set tonal shadow color
Bug: 68211332
Test: HwAccelerationTests's coloredshadow demo & CTS test in topic
Change-Id: I09f5d1067b3200564a9d47219f70985edf3a2527
2018-01-31 11:28:11 -08:00
Jakub Pawlowski
5332988c62 Fix bad type for txPower in PeriodicAdvertisingReport serialization
Bug: 69634768
Test: compilation
Change-Id: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2
Merged-In: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2
2018-01-31 18:45:05 +00:00
TreeHugger Robot
00646ee730 Merge "Add Confirmation API." 2018-01-31 18:40:32 +00:00
Felipe Leme
09d58a4e3b Changed dataset methods that take a Pattern filter to accept null.
In this case, null means the field should not be filterable, which is useful
in the cases where it represents a non-authenticated value like a password.

Test: atest CtsAutoFillServiceTestCases:LoginActivityTest#filterTextDisabledUsingNullRegex
Test: atest CtsAutoFillServiceTestCases:LoginActivityTest

Bug: 71359055
Fixes: 72711778

Change-Id: Idc8248f6c95fdb50b934840689616e42ddd6378c
2018-01-31 17:47:12 +00:00
TreeHugger Robot
88640b594d Merge "Add View#mClipBounds to ViewDebug." 2018-01-31 17:42:26 +00:00
Jan Althaus
dd68de50fb Fixing generateLinks and java docs
Also fixed import order

Test: Ran framework core tests
Change-Id: I8e99cfc8bab8f7c9f18310634c9565200df43e7f
2018-01-31 17:55:57 +01:00
TreeHugger Robot
f6659f9613 Merge "Camera: "getMaxSharedSurfaceCount" should be non-static" 2018-01-31 16:00:47 +00:00
TreeHugger Robot
dd020f6fb9 Merge "Add key rotation." 2018-01-31 15:55:10 +00:00
TreeHugger Robot
0a2ff2f64c Merge "APK Signature Scheme v3: add version number to proof-of-rotation." 2018-01-31 15:26:33 +00:00
Jaewan Kim
bc55661b11 Merge "MediaSession2: Hide system apis" 2018-01-31 14:12:56 +00:00
Jan Althaus
abb4fc8464 Updating TextClassifier factory model names
The smartselection token no longer accurately describes the purpose of the
model. This change brings the factory models in line with the path for the
updated model.

Test: Ran framework core tests and tested manually
Change-Id: I7641db313c94b99bb6960cf1efd24f796bb092a2
2018-01-31 13:43:11 +01:00
Abodunrinwa Toki
0172104cf3 Merge "Smart Linkify API" 2018-01-31 12:37:16 +00:00
TreeHugger Robot
cb6854eb8f Merge "Implement TextClassifier.getLogger API" 2018-01-31 11:56:41 +00:00
Peeyush Agarwal
cc155ddc69 Add Ambient Brightness tracker API
Test: atest com.android.server.display.AmbientBrightnessStatsTrackerTest
&& atest android.hardware.display.AmbientBrightnessDayStatsTest
Bug: 69406079
Change-Id: I4b13c6bdd3e9fdded8086371f46dba0fd3102b98
2018-01-31 11:01:56 +00:00
Abodunrinwa Toki
3bb4436138 Implement TextClassifier.getLogger API
- Introduces getLogger() API.
 - A logger should run in the client's process. This helps us manage
   sessions specific to a client.
 - The logger exposes a tokenizer that clients may use to tokenize
   strings for logging purposes.
 - Logger subclasses need to provide a writeEvent() implementation.
 - SelectionEvent is serializable over IPC.
 - Logger takes care of the session management. It writes session
   specific information into the SelectionEvent.
 - We still keep the SmartSelectionEventTracker for now so clients
   can slowly move off of it. The plan is to delete it.
 - The plan is to include support other event types. e.g. link events.

Bug: 64914512
Bug: 67609167
Test: See topic
Change-Id: Ic9470cf8f969add8a4c6570f78603d0b118956cd
2018-01-31 10:09:54 +00:00
TreeHugger Robot
397c38d017 Merge "Revert "Adds generic intent Instant App resolution"" 2018-01-31 09:57:26 +00:00