Commit Graph

87055 Commits

Author SHA1 Message Date
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
TreeHugger Robot
a5a4386a30 Merge "Uses back and home button for screen pinning when recents is invisible" 2018-02-01 02:13:11 +00: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
Matthew Ng
c4356fb753 Uses back and home button for screen pinning when recents is invisible
All the text and screen pinning hint shows tells the user that the back
and home button should be held to exit screen pinning. The hint also do
not have the recents button shown if it is invisible. The toast code has
been moved to recents and services calls through to post a toast message
depending if the recents button is visible.

Test: manual
Fixes: 72059911
Change-Id: I93abf5072b97760f33e7e77421544a4b3ad27beb
2018-01-31 15:06:02 -08:00
TreeHugger Robot
3a2e3b03dc Merge "Revert "Revert "Adds generic intent Instant App resolution""" 2018-01-31 22:38: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
TreeHugger Robot
75ca5dff32 Merge "Remove feature flag for suggestion ui v2." 2018-01-31 21:15:18 +00:00
TreeHugger Robot
466fb53324 Merge "Add fading to the pattern unlock screen." 2018-01-31 20:32:39 +00: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
TreeHugger Robot
00646ee730 Merge "Add Confirmation API." 2018-01-31 18:40:32 +00:00
Vishwath Mohan
dcc1f19417 Add fading to the pattern unlock screen.
This CL sets the user traced pattern on the unlock screen to fade as
it's drawn, reducing the chances of shoulder surfing.

Test: Build, set a pattern, and try.
Change-Id: I2ad37a10782d826d076dcf5142700d8facc2f52e
2018-01-31 10:28:09 -08: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
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
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
TreeHugger Robot
4b4539b6b0 Merge "Revert "Removes EphemrealResolverService and related"" 2018-01-31 09:57:17 +00:00
Abodunrinwa Toki
fe20cdd910 Smart Linkify API
Uses the TextClassifier to generate links on a background thread.
The links are applied on the calling thread.

Test: see topic
Bug: 67629726
Change-Id: I0f1940a2ffbf19f4436c0a20b0c62e6bbc03cd7a
2018-01-31 09:42:36 +00:00
David Brazdil
d960cc4a51 Show hidden API warning once per process
In order to not spam users with warning toasts, add a boolean flag
that guards the displaying of a warning message about hidden API
usage and is set after the first time a message is shown.

Bug: 64382372
Test: manual
Change-Id: If7ea995ddf4727a15eccf55dad42ef7775b1fc91
2018-01-31 08:03:29 +00:00
Felipe Leme
c83abcb3dd Minor javadoc clarification.
Test:  mmm -j frameworks/base/:doc-comment-check-docs
Bug: 72693031
Fixes: 72562886

Change-Id: Ia9c3ac12cb41eea7ee30f7ec6c2e68b5603751fd
2018-01-30 22:54:49 -08:00
Sungsoo Lim
7d30e1c554 MediaSession2: Hide system apis
Test: build
Change-Id: I6c56c260a002086bbd2c20420b301c66635215c3
2018-01-31 15:43:55 +09:00
TreeHugger Robot
8420d5e596 Merge "Introduce a TextClassifierManagerService." 2018-01-31 05:26:27 +00:00
TreeHugger Robot
2043082f96 Merge "Move View related methods to helper class" 2018-01-31 04:48:32 +00:00
TreeHugger Robot
8028c8cd5d Merge "Dump per uid Binder Proxy Count before ProxyMap assert" 2018-01-31 04:31:32 +00:00
TreeHugger Robot
d7e0860b43 Merge "Re-added support for deprecated BIND_AUTOFILL permission." 2018-01-31 03:20:10 +00:00
TreeHugger Robot
8fe62bea0b Merge "New autofill APIs: DateTransformation and DateValueSanitizer." 2018-01-31 03:02:41 +00:00
Patrick Baumann
1e0c91968e Revert "Removes EphemrealResolverService and related"
This reverts commit 5564f880db.

Reason for revert: Resolve merge conflict for another revert (ag/3537193)
Bug: 72710855
Change-Id: Id7c3a3993a45c588ee4668d7486d67d764541b1e
2018-01-31 03:00:26 +00:00
Christofer Åkersten
a6c97e4615 Move View related methods to helper class
Test: Instantiate MediaControlView2
Change-Id: Ia958a97b38e67f236ee510978c379af9249d2887
2018-01-31 11:27:40 +09:00
TreeHugger Robot
3a247b19dd Merge "Removes EphemrealResolverService and related" 2018-01-31 02:05:32 +00:00
TreeHugger Robot
b78bb44a87 Merge "Atom: Shutdown sequence event" 2018-01-31 02:05:26 +00:00
TreeHugger Robot
32697552f2 Merge "Minor optimization for CollectionUtils.mapNotNull" 2018-01-31 01:52:32 +00:00
Patrick Baumann
860b8ba719 Revert "Adds generic intent Instant App resolution"
This reverts commit 3e8bd0f3b5.

Reason for revert: b/72710855

Change-Id: I1378ccb5c5c16256e472e1ff7c3ad2460e091300
Fixes: 72710855
2018-01-31 01:35:13 +00:00
Dan Cashman
1dbe6d0284 Add key rotation.
Change certificate checks to also consider the possibility of
signing certificate rotation by checking the
SigningDetails#pastSigningCertificates field.  In particular, add a
SigningDetails#checkCapability method which reports whether or not
the older SigningDetails is an ancestor of the current one, and
queries whether or not the old one has been granted capabilities,
such as being a sharedUser.

Bug: 64686581
Test: Builds, boots, browser and camera work, all with v3 signing.

Change-Id: I4199ff3f2d9ae959325b117b28e666ae31889800
2018-01-30 16:59:31 -08:00