Commit Graph

21479 Commits

Author SHA1 Message Date
Salvador Martinez
5980543478 Merge changes from topic "dynamic_power_saver"
* changes:
  Create APIs to interact with DynamicPowerSaver
  Create new battery saver mode
2018-11-13 20:23:03 +00:00
TreeHugger Robot
1eec951795 Merge "Added moar ContentCapture APIs (and their initial implementation)." 2018-11-13 19:40:40 +00:00
Tyler Gunn
743ad8a78c Merge "Unsupported app usage API cleanup" am: a2b2183a24 am: ff98c6d69f
am: 940dd816a3

Change-Id: I571ad85a3e643459c3040ee4ccb3e3e2d84c741a
2018-11-13 10:34:43 -08:00
Tyler Gunn
940dd816a3 Merge "Unsupported app usage API cleanup" am: a2b2183a24
am: ff98c6d69f

Change-Id: I3bbf9b130374b2f387de56034d22e2cf6248a9ac
2018-11-13 10:18:44 -08:00
Hui Yu
81f977753a Merge "Add UsageStats events for foreground service start/stop." 2018-11-13 18:16:19 +00:00
Tyler Gunn
a2b2183a24 Merge "Unsupported app usage API cleanup" 2018-11-13 17:49:01 +00:00
Salvador Martinez
812ea7554b Create APIs to interact with DynamicPowerSaver
This creates the PowerManager APIs that allow apps with the
appropriate permissions to interact with Dynamic Power Saver.

Bug: 111450127
Test: WIP
Change-Id: I5b9483fa0fba81a4ade622b1f3dbaec580b68a67
2018-11-13 09:33:50 -08:00
vichang
321d0727c4 Merge "Expose Transliterator API" am: 6274341f10 am: 170fa7c300
am: 816a0c8a3a

Change-Id: I96cb201e20e00341ed1f8e63f242dc435b398eea
2018-11-13 08:46:01 -08:00
vichang
816a0c8a3a Merge "Expose Transliterator API" am: 6274341f10
am: 170fa7c300

Change-Id: I41ac38ecb09a32075be7209ad02e5c30284065c6
2018-11-13 08:25:34 -08:00
vichang
6274341f10 Merge "Expose Transliterator API" 2018-11-13 15:43:35 +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
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
Jeff Tinker
ac91c6eb47 Merge "Add new offline management APIs to MediaDrm" 2018-11-13 07:03:35 +00:00
Felipe Leme
88eae3bc69 Added moar ContentCapture APIs (and their initial implementation).
There are 4 new APIs on View:
  - boolean setImportantForContentCapture()
  - boolean getImportantForContentCapture()
  - boolean isImportantForContentCapture()
  - boolean onProvideContentCaptureStructure()

And 4 on IntelligenceManager:
  - void notifyViewAppeared()
  - void notifyViewDisappeared()
  - void notifyViewTextChanged()
  - ViewStructure newVirtualViewStructure()

These methods are similar to the equivalent methods that are used for Autofill
and/or Assist, except for the following differences:

- The view hierarchy nodes are reported as they are rendered, rather than at
  once in a tree, recursively. Hence, the ViewStructure implementation does
  not implement the methods that add children to it, and views that provide
  virtual hierarchies must manually call IntelligenceManager to create the
  ViewStructure to their children and notify when their children are added and
  removed.
- It does not support methods added for Autofill to handle HTML pages (such
  as setHtmlInfo() and setWewbDomain()), as they're not important in the
  Content Capture context.
- Similarly, it also does not support setDataIsSensitive(), because the
  Intelligence service does not have the same restrictions as the Autofill
  service.

The CL also provides the initial implementation of these APIs, although still
full of TODOs (for example, we're not holding the events to send as a batch
yet).

Test: m -j update-api doc-comment-check-docs
Bug: 117944706

Change-Id: I43f06ce82bfe3b14d8d13fb3b2ebee223db83284
2018-11-12 22:29:26 -08: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
andychou
c9e506a2d1 Merge "Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist" am: 36ac46a915
am: b4ce0e3f2e

Change-Id: I0b57d71afa81ea671403b36e7d797eeb7ed675b1
2018-11-12 20:23:38 -08:00
Treehugger Robot
36ac46a915 Merge "Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist" 2018-11-13 03:48:59 +00:00
Chen Xu
e2cecc8c0b Merge "new SystemAPI for roamingType in NetworkRegistrationState" am: 24df195e78 am: 0c9e00dd03
am: 29f4070ffd

Change-Id: I7532464329575f2eed3127aa9e44c02bd8777557
2018-11-12 18:17:45 -08:00
Chen Xu
29f4070ffd Merge "new SystemAPI for roamingType in NetworkRegistrationState" am: 24df195e78
am: 0c9e00dd03

Change-Id: I188a31f6b5f22c73c6892e30972c5a0d06f82ed1
2018-11-12 17:55:45 -08:00
Hui Yu
e361a23bba Add UsageStats events for foreground service start/stop.
1. Send FOREGROUND_SERVICE_START event when foreground service starts.
Send FOREGROUND_SERVICE_STOP event when foreground service stops.
2. One app can multiple foreground services and multiple services can be
started. Because this, in UsageStats, change mLastForegroundEvent to
className to event map, do this for both activity and foreground
service. Change UsageStatsProto and UsageStatsXmlV1 to support this
change.
3. Add more test cases in UsageStatsTest.java.

Test: start music player which is foreground service, observce these
two events when start play and pause play.

Change-Id: I3dc14f5b73cc114a53b8c51f90d3011d9ace35ac
Bug: 112002260
Test: atest UsageStatsTest#testForegroundService
atest frameworks/base/services/tests/servicestests/src/com/android/server/usage/UsageStatsDatabaseTest.java
atest frameworks/base/core/tests/coretests/src/android/app/usage/UsageStatsTest.java
2018-11-12 17:41:03 -08:00
Chen Xu
24df195e78 Merge "new SystemAPI for roamingType in NetworkRegistrationState" 2018-11-13 01:16:25 +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
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
Oleg Kibirev
7502c41e8a Merge "Add key code for thumbs up, thumbs down and profile switch keys" 2018-11-12 20:57:31 +00:00
Tyler Gunn
6e3ecc40f8 Unsupported app usage API cleanup
This CL includes a number of cleanups related to unsupported app usage
tags.

TelecomManager#EXTRA_IS_HANDOVER - public APIS exist for this usecase;
updated docs and limit to P with maxtarget sdk.
TelecomManager#getSimCallManager(int userId) - marked as max target P;
there is a public API available which can be used to accomplish the same
thing.  Nobody should be calling this.
TelecomManager#getCallCapablePhoneAccounts(boolean) - marked as max
target P; callers should use the version without the boolean parameter.

Deprecate CAPABILITY_CAN_UPGRADE_TO_VIDEO; its redundant.

New public API:
Promote TelecomManager#getSystemDialerPackage() to public API; its a
benign API and doesn't expose anything which can't be inferred other ways.

New system APIs:
TelecomManager#getCurrentTtyMode() - used by settings app.
TelecomManager#setDefaultDialer() - used by useful for settings app.
TelecomManager#TTY_MODE* constants - used by getCurrentTtyMode API.

Test: Compile / run unit tests
Bug: 119305590
Change-Id: I67d6213e6c689fb545fc9ceae4a359831f97c32f
2018-11-12 11:30:56 -08:00
Pengquan Meng
275161b420 Merge "Add 5G NR cellInfo" am: 4a7a3934b6
am: 89d69159c9

Change-Id: I28b7d4f95923d12919aa6946cafe1bf5a919db20
2018-11-12 08:58:46 -08:00
Pengquan Meng
4a7a3934b6 Merge "Add 5G NR cellInfo" 2018-11-12 16:28:57 +00:00
andychou
d9b97ecefe Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist
Add ImsReasonInfo.CODE_SIP_TRANSACTION_DOES_NOT_EXIST and
PreciseDisconnectCause.SIP_TRANSACTION_DOES_NOT_EXIST
It will map by PRECISE_CAUSE_MAP in ImsPhoneCallTracker.java

Bug: 78204171
Test: local build pass
Change-Id: I10ec05256f748007657e4a8e60d07b1fd8a4f8b2
Merged-In: Iaa9673e4fa9568078161231df1b06735b862ca09
2018-11-12 15:21:41 +00:00
Adam Vartanian
1eb0ccc905 Merge "Add Conscrypt Public API" am: 5f9193bdad am: 6be4564805
am: b77c9082a5

Change-Id: Icdc50533d439aa13aefea01939f9950ea826e150
2018-11-12 06:55:37 -08:00
Brad Ebinger
8a9766e621 Merge "Expose SRVCC state changes as @SystemAPI" am: c10b96899e am: 657343b811
am: 30858dc7ac

Change-Id: Iddb02abd34c1971b906acf734a878aad22387c57
2018-11-12 04:50:17 -08:00
Shuo Qian
86d66b4d3e Merge "Merge "Introduce getRssi() in CellSignalStrengthLte" am: 5bdf255e0d am: e819bd7a1e" into pi-dev-plus-aosp
am: c8e008b0b4

Change-Id: Icb0e4c780f842b4153287c376fe7be583f1d2540
2018-11-12 04:23:52 -08:00
Adam Vartanian
b77c9082a5 Merge "Add Conscrypt Public API" am: 5f9193bdad
am: 6be4564805

Change-Id: Ia1d66c69d75840a007a69980cf6e0abe4d5b5a7e
2018-11-12 02:59:13 -08:00
Adam Vartanian
5f9193bdad Merge "Add Conscrypt Public API" 2018-11-12 10:31:28 +00:00
Chilun Huang
e01fd19426 Merge "Implement new API of external display settings (1/2)" 2018-11-12 01:50:25 +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
a87656a7b5 Merge "Tweak RenderNode final/constructor API" 2018-11-10 06:31:40 +00:00
Svetoslav Ganov
d641d64ab4 Merge "Allow adopting a subset of shell permissions" 2018-11-10 01:10:31 +00:00
Varun Shah
25eb63ac4a Merge "Exposes Intent.METADATA_SETUP_VERSION as SystemApi for SUW." 2018-11-10 00:23:56 +00:00
Brad Ebinger
30858dc7ac Merge "Expose SRVCC state changes as @SystemAPI" am: c10b96899e
am: 657343b811

Change-Id: I43bdae25b265586db2417e7f512eac04800de047
2018-11-09 15:27:27 -08:00
John Reck
e5bc78ff9d Tweak RenderNode final/constructor API
Bug: 112709971
Test: builds
Change-Id: Idc558645015078b923bd94abc320b2a65d8d2c6b
2018-11-09 15:18:43 -08:00
Brad Ebinger
c10b96899e Merge "Expose SRVCC state changes as @SystemAPI" 2018-11-09 23:02:38 +00:00
Shuo Qian
61db02b01a Merge "Introduce getRssi() in CellSignalStrengthLte" am: 5bdf255e0d
am: e819bd7a1e

Change-Id: I77c5ba0bf87afde281473134a306595c052820cc
2018-11-09 14:47:08 -08:00
Shuo Qian
5bdf255e0d Merge "Introduce getRssi() in CellSignalStrengthLte" 2018-11-09 22:07:50 +00:00
Victor Chang
0a2aaba14a Expose Transliterator API
All the public APIs have been covered by CtsIcuTestCases.

Test: CtsIcuTestCases
Bug: 109663008
Bug: 109837373
Change-Id: Ib03c80629be727c7b17642177fa520ed808409c1
2018-11-09 20:12:55 +00:00
Svet Ganov
5e86959d04 Allow adopting a subset of shell permissions
Add an API to allow adopting a subset of shell UID permissions.

Test: added - android.app.uiautomation.cts.UiAutomationTest#testAdoptSomeShellPermissions
      passed - atest atest android.app.uiautomation.cts.UiAutomationTest

bug:80415658

Change-Id: I5cd8beeed7e586b2ac4e0cb16686cef738641e23
2018-11-09 11:51:26 -08:00
Philip P. Moltmann
cb35c807ea Merge "Allow location provider to deep link into permissions UI" 2018-11-09 17:29:35 +00:00