Commit Graph

87042 Commits

Author SHA1 Message Date
David Brazdil
0215bc8af3 Merge "Simplify HIDDEN_API_ENFORCEMENT_ flags" 2018-11-13 15:50:41 +00:00
TreeHugger Robot
b513876655 Merge "Camera: Enhance support for monochrome camera" 2018-11-13 15:27:10 +00:00
Wale Ogunwale
99b5308dca Merge "Expose display ID related APIs for use by CTS" 2018-11-13 15:04:59 +00:00
Anton Hansson
4a08723c5f Merge "Make Environment.getProductDirectory() @TestApi" 2018-11-13 12:53:07 +00:00
TreeHugger Robot
504fdabba9 Merge "Move native process memory state pulling code" 2018-11-13 12:12:44 +00:00
TreeHugger Robot
1b34837e69 Merge "Add get/setExtras to TextLinks and TextSelection" 2018-11-13 12:09:42 +00:00
Tony Mak
916bb9e37e Add get/setExtras to TextLinks and TextSelection
Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/TextSelectionTest.java
Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/TextLinksTest.java
Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts/TextClassifierValueObjectsTest.java

BUG: 118690735

Change-Id: I5786db40b24b38020514f96b1d642835c9a9db51
2018-11-13 12:09:22 +00:00
TreeHugger Robot
9005dafb74 Merge "Implements TextClassifierImpl.suggestConversationActions" 2018-11-13 11:14:08 +00:00
Tony Mak
adbebcc634 Implements TextClassifierImpl.suggestConversationActions
TODO: Construct RemoteAction for contextual actions.
TODO: Map Person object to user id.
TODO: Consider to use LangID to infer the locale. And get a new model when locale is changed.

BUG: 111437455
BUG: 111406942

Test: atest ./core/tests/coretests/src/android/view/textclassifier/TextClassificationManagerTest.java

Change-Id: Id35066455918b3321fcd30df0ff215e30586a4b3
2018-11-13 11:12:40 +00:00
Tiger Huang
fc2184596e Expose display ID related APIs for use by CTS
For CtsWindowManagerDeviceTestCases:WindowFocusTests

Bug: 111361570
Test: atest WindowFocusTests android.view.cts.KeyEventTest
Change-Id: I273120f71f42d2eaa52786b4a350f3c099d11989
2018-11-13 13:38:23 +08:00
Daichi Hirono
320a0124e8 Merge "Update API doc of View.DragShadowBuilder" am: 29f0f9a910 am: 0539710f6f
am: 1fa1b991f0

Change-Id: I647a5644db8dbcee6ceff59eba798e7b0e1d4f52
2018-11-12 19:57:43 -08:00
Sudheer Shanka
52b976d8be Merge "Update storage sandbox path translation methods." 2018-11-13 03:51:48 +00:00
Daichi Hirono
1fa1b991f0 Merge "Update API doc of View.DragShadowBuilder" am: 29f0f9a910
am: 0539710f6f

Change-Id: I211e1b255fbdc4a49533409d7879f953780800a8
2018-11-12 19:47:19 -08:00
TreeHugger Robot
998b52ba83 Merge "Introduce multi-client IME for special form factors" 2018-11-13 03:43:48 +00:00
Treehugger Robot
29f0f9a910 Merge "Update API doc of View.DragShadowBuilder" 2018-11-13 03:15:51 +00:00
TreeHugger Robot
3ab40f1866 Merge "Add sm set-isolated-storage [true|false]" 2018-11-13 01:19:24 +00:00
Shuzhen Wang
a8d36036f2 Camera: Enhance support for monochrome camera
- Add new Color Filter Array enum.
- Clarify doc for Bayer pattern related metadata.
- Add DngCreator support for monochrome camera raw.

Test: Camera CTS
Test: Capture a monochrome DNG image and inspect with LightRoom
Bug: 70216652
Change-Id: I329f224e3763dd5c777815a3cbb9dd7bd198c038
2018-11-12 16:31:39 -08:00
Yohei Yukawa
bae5bea23c Introduce multi-client IME for special form factors
An advanced multi-display support is requested for certain Android
form-factors so that user(s) can type text on each display at the same
time without losing software keyboard focus in other displays. This is
not possible in existing Android IMEs that are built on top of
InputMethodService class, because the assumption that a single IME
client can be focused at the same time was made before Android IME
APIs were introduced in Android 1.5 and many public APIs in
InputMethodService have already relied heavily on that
assumption. Updating InputMethodService class to support multi-client
scenario is, however, quite challenging because:

 1. doing so would introduce an unacceptable amount of complexity into
    InputMethodService, which is already hard to maintain,

 2. IME developers still need to update their implementation to be
    able to support parallel requests from multiple focused IME
    client, which may require non-trivial redesign in their side
    (e.g. input decoder, typing history database, ...), and

 3. actual use cases for multi IME clients are expected to be evolved
    rapidly hence the new protocol is not yet stable and not yet ready
    to be exposed as public APIs.

This is why a new type of IME needs to be designed and developed
specifically for such special multi-display environments, rather than
reusing existing InputMethodService public class.

Note that there must be no behavior change unless multi-client IME is
explicitly enabled with 'adb shell setprop', which requires root
permission.

See multi-client-ime.md for details.

Fix: 114662040
Test: Manually verified as follows:
  1. make -j MultiClientInputMethod
  2. adb install -r $OUT/system/priv-app/MultiClientInputMethod/MultiClientInputMethod.apk
  3. adb root
  4. adb shell setprop persist.debug.multi_client_ime \
       com.example.android.multiclientinputmethod/.MultiClientInputMethod
  5. adb reboot
  6. Try multiple text input scenario
Change-Id: I41dfe854557b178d8af740bc2869c936fc88608b
2018-11-12 15:20:20 -08:00
TreeHugger Robot
8d6acdec61 Merge "Starting the default activity when an app widget's default/fallback view is clicked" 2018-11-12 23:18:30 +00:00
Sudheer Shanka
87915d66c3 Update storage sandbox path translation methods.
Update these methods to consider if the app is sandboxed or not.
Earlier, only apps with WRITE_MEDIA_STORAGE have access to full
external storage. So, clients had to check this before calling
these translate methods. Now, apps under instrumention might also
have full storage access and DownloadProvider will also start
using these translate methods. So, instead of having the clients
deal with it, move the logic of checking if an app is sandboxed or
not into these translate methods.

Bug: 117229024
Bug: 119265456
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Test: atest services/tests/servicestests/src/com/android/server/StorageManagerServiceTest.java

Change-Id: If679e71a906bb2106752721409b4410557fb3e28
2018-11-12 14:56:58 -08:00
TreeHugger Robot
581cccdde9 Merge "Implement launch bounds logic in Android (3/3)" 2018-11-12 22:01:31 +00:00
TreeHugger Robot
a79fac052f Merge "Add ACTION_PAGE_UP/DOWN/NEXT/PREVIOUS" 2018-11-12 21:52:20 +00:00
Qasid Ahmad Sadiq
9570561a4f Add ACTION_PAGE_UP/DOWN/NEXT/PREVIOUS
This not only indicates if something is paged, it also indicates what
direction a page can be scrolled towards.

Test: The API Builds, there is no executable code here, that is for
another CL
Bug: 119425427

Change-Id: I0a40079f4e31e48bc53445a247e301c0d09d2497
2018-11-12 21:52:09 +00:00
TreeHugger Robot
f5525d4529 Merge "Includes foreground services in top notification section." 2018-11-12 21:42:27 +00:00
TreeHugger Robot
79dc57f06c Merge "Fix off-by-one error in historical app ops." 2018-11-12 21:40:18 +00:00
Josh Gao
bd1db80249 Merge "Close PFD.AutoClose{In,Out}putStream before the PFD itself." am: 8fe23dfeff am: dcf129f380
am: a355924be3

Change-Id: I9db1facad1b464715a1d8d64d9caa1ebd5d3ba43
2018-11-12 13:28:18 -08:00
Josh Gao
a355924be3 Merge "Close PFD.AutoClose{In,Out}putStream before the PFD itself." am: 8fe23dfeff
am: dcf129f380

Change-Id: I6926ff23f7360ba2acf2b87dff1b20c548d7d0d4
2018-11-12 13:12:13 -08:00
Oleg Kibirev
7502c41e8a Merge "Add key code for thumbs up, thumbs down and profile switch keys" 2018-11-12 20:57:31 +00:00
Josh Gao
8fe23dfeff Merge "Close PFD.AutoClose{In,Out}putStream before the PFD itself." 2018-11-12 20:34:21 +00:00
Michael Dooley
4d75ccd328 Merge "Converting sound trigger v2.2 getModelState to be asynchronous" 2018-11-12 19:27:39 +00:00
Joel Galenson
d829b16b0b Fix off-by-one error in historical app ops.
Both the comment and the usage suggest that this index should be
exclusive, not inclusive.

Bug: 111061782
Test: Call getBackgroundAccessCount without crashing
Change-Id: Ie4eb5a59874afd27bed0706cd177757155351b49
2018-11-12 10:43:55 -08:00
Winson Chung
d27f6b3fc6 Merge "Expose task id and activity component in task snapshot and assist structure" 2018-11-12 17:56:22 +00:00
Garfield Tan
891146c6a6 Implement launch bounds logic in Android (3/3)
This CL introduces persistence to launch bounds logic. It also wires up
the following state changes and persister:
1) freeform resizing;
2) windowing mode change;
3) display change;
4) task closing.

We may still need to persist immersive mode, but that needs further
discussion.

Changed launch bounds modifier a bit so that it won't launch tasks that
are completely out of the new display or conflict to existing tasks.

Bug: 113252871
Test: Manual tests on that freeform launch bounds are persisted across
reboots.
atest WmTests:LaunchParamsPersisterTests
atest WmTests:LaunchParamsControllerTests
atest WmTests:PersisterQueueTests
Change-Id: I20f3056735253c668c7f09c6eb5204e6a5990b1c
2018-11-12 09:11:35 -08:00
TreeHugger Robot
81cf7de86c Merge "Turn on feature flag of settings contextual homepage." 2018-11-12 16:11:48 +00:00
Gus Prevas
b0c1a4622c Includes foreground services in top notification section.
This change modifies the various components which treat high-priority
notifications differently, including the status bar, the lockscreen, and
the notification layout algorithm, such that foreground service
notifications are always included among the high-priority notifications.
This logic is now centralized in NotificationData.

Bug: 116622974
Bug: 118805186
Test: manually
Change-Id: Ia13c1aac0cf91c400594df96ce267e768133f8d1
2018-11-12 10:55:53 -05:00
Alison Cichowlas
69f39989c2 Merge changes from topic "sharesheet-refactor"
* changes:
  Add URI shared by screenshot into extras.
  Re-patching in Sharesheet security model changes.
2018-11-12 15:19:11 +00:00
Emily Chuang
7e15b7cc40 Turn on feature flag of settings contextual homepage.
Fixes: 118691898
Test: manual
Change-Id: I434d3c7827c03857974211a354264c542e1323f7
2018-11-12 18:16:35 +08:00
Rafal Slawik
c37626215b Move native process memory state pulling code
Refactor the pulling code to avoid going to AcitivityManagerService.
Instead call MemoryStatUtil that reads procfs directly from
StatsCompanionService.

Bug: 118736433
Test: atest UidAtomTest
Change-Id: Idf57e3cd33058651f363c89828f71d19f25e6450
2018-11-12 09:59:35 +00:00
TreeHugger Robot
c79ca1476b Merge "Q Upstream: Use ParcelFileDescriptor for storing large clip data." 2018-11-12 02:19:55 +00:00
Chilun Huang
e01fd19426 Merge "Implement new API of external display settings (1/2)" 2018-11-12 01:50:25 +00:00
TreeHugger Robot
929cd0837a Merge "Add RoleManager into SystemServiceRegistry." 2018-11-10 17:07:26 +00:00
Chilun
8753ad366b Implement new API of external display settings (1/2)
- Using DisplaySettings class for storing the display settings.
- Define flags in WindowManager.
- Have direct IWindowManager APIs to set and change display settings at
  runtime.
- Mark TODO to original usage of the flags.
- Add test case of DisplaySettings.
- Expose some APIs for CTS usage.

Bug: 114338689
Test: atest DisplayWindowSettingsTests
Test: atest CtsApacheHttpLegacy27ApiSignatureTestCases
Change-Id: I64ed14866d45cd5817fc3c895b6110c79c37b0ad
2018-11-10 16:49:56 +08:00
TreeHugger Robot
cc88db5a9d Merge "Add global property to store opt-in application package name." 2018-11-10 04:26:23 +00:00
Svetoslav Ganov
d641d64ab4 Merge "Allow adopting a subset of shell permissions" 2018-11-10 01:10:31 +00:00
TreeHugger Robot
1045456b95 Merge "AM: Fix deadlock when calling AMS from ATMS/WM" 2018-11-10 01:09:26 +00:00
Varun Shah
25eb63ac4a Merge "Exposes Intent.METADATA_SETUP_VERSION as SystemApi for SUW." 2018-11-10 00:23:56 +00:00
TreeHugger Robot
2f6bfcbd6f Merge "Calling opChanged on package suspend / unsuspend" 2018-11-09 23:02:59 +00:00
Hai Zhang
4ef21d0308 Add RoleManager into SystemServiceRegistry.
This change adds RoleManager into SystemServiceRegistry so that
Context.getSystemService() can work properly for RoleManager.

Bug: 110557011
Test: build
Change-Id: I81b7ed87e71f0deee090252f5bedf42eb79806aa
2018-11-09 14:43:51 -08:00
Android Build Merger (Role)
9abb06e83d Merge "Merge "DexLoadReporter needs to handle arbitrary class loaders." am: f2d5ace011 am: 1e29264790 am: 0a0559c0ce" 2018-11-09 22:24:36 +00:00
Alan Stokes
07317d001c Merge "DexLoadReporter needs to handle arbitrary class loaders." am: f2d5ace011 am: 1e29264790
am: 0a0559c0ce

Change-Id: I3a89a9da435cf557fd296066df7b9c5b316e87c2
2018-11-09 14:23:00 -08:00