Commit Graph

401 Commits

Author SHA1 Message Date
Makoto Onuki
8426a06516 Merge "Add API surface for "keep SMS app running"." 2018-09-27 14:30:41 +00:00
Makoto Onuki
df7e481b20 Add API surface for "keep SMS app running".
Bug: 109809543
Test: build & boot
Change-Id: Ie9ebf1f34052394a92c3f260413c18596709d3a3
2018-09-26 11:51:06 -07:00
TreeHugger Robot
dfc12dba82 Merge "Export lib3 to AOSP (System server part)" 2018-09-26 16:53:28 +00:00
Neil Fuller
013239edfb Merge "Make ext.jar only dependent on public SDK APIs" am: c457d8c95a am: 1f30b816d8
am: 3701764e81

Change-Id: I4952ddacd81bb3fc78b72bc9fc845f962f11a060
2018-09-26 06:49:50 -07:00
Neil Fuller
3701764e81 Merge "Make ext.jar only dependent on public SDK APIs" am: c457d8c95a
am: 1f30b816d8

Change-Id: I01daf30a865d16e29de80e39f61752b6931681ae
2018-09-26 06:30:38 -07:00
Neil Fuller
c457d8c95a Merge "Make ext.jar only dependent on public SDK APIs" 2018-09-26 08:12:46 +00:00
Hall Liu
abdaf5b51f Merge "Add the EMBMS group call API" am: 52a8fdb7bd am: 6c6c859c6a
am: 210a4862f6

Change-Id: I3e7f4f0feb7b675a5870b9367fe788f58246d6fa
2018-09-25 15:02:39 -07:00
Hall Liu
210a4862f6 Merge "Add the EMBMS group call API" am: 52a8fdb7bd
am: 6c6c859c6a

Change-Id: I7e98519115c67eaa49694a3514b80fc54afcc17b
2018-09-25 14:47:25 -07:00
Hall Liu
52a8fdb7bd Merge "Add the EMBMS group call API" 2018-09-25 20:38:23 +00:00
Tony Mak
64c4cb2ea9 Export lib3 to AOSP (System server part)
The java counterpart of the JNI is now moved to external/libtextclassifier.

Test: atest android.view.textclassifier.TextClassificationManagerTest

Change-Id: Ide5e58d1c80d9a028cea4e9192a91aeac2843c71
2018-09-25 13:42:44 +01:00
Neil Fuller
8c1e3a8eb4 Make ext.jar only dependent on public SDK APIs
ext.jar can be built using only public SDK APIs. This
makes that obvious.

Bug: 113148576
Test: make ext
Change-Id: I792b14924878623f832f3afbb1d3e23fba34d5bf
2018-09-25 13:09:41 +01:00
Nan Zhang
c070f7588b Merge "Add comments for offline-sdk-referenceonly docs" am: 2be3da34e7 am: a9fec7e73b
am: 2abeaddf26

Change-Id: I16e1ff435686b419d611ffeda8e3125eef567a3f
2018-09-24 21:58:27 -07:00
Nan Zhang
2abeaddf26 Merge "Add comments for offline-sdk-referenceonly docs" am: 2be3da34e7
am: a9fec7e73b

Change-Id: Iaffef1c043350533a81d44e99b63565c0c51e7a2
2018-09-24 21:43:56 -07:00
Hall Liu
a7b0c1f054 Add the EMBMS group call API
Add APIs for apps to access a LTE broadcast group call service provided
by a preinstalled middleware app, and add system APIs for the
preinstalled middleware app to communicate with frontend apps.

Bug: 112731375
Test: CTS
Change-Id: Ie6817cbc6c3b69de7a4d66c4cfc103b02e15ad6b
2018-09-24 17:26:25 -07:00
Nan Zhang
963612bd72 Add comments for offline-sdk-referenceonly docs
Add comment to provide some cautions in case of we make some changes on
the doc target names in the future.

Test: N/A
Bug: b/116221385
Change-Id: Ibb21ca51c1eed990fe5dfceb6a8170821e70f8cf
2018-09-24 12:11:23 -07:00
Kevin Chyn
352adfec61 2/n: Rename BiometricPromptService to BiometricService
This is in preparation for BiometricManager. Each Manager should have its
own Service.

Bug: 112570477

Test: BiometricPromptDemo works
Change-Id: Ibbbd499a0fd5a2050b329ee038776c6c9f49cdb2
2018-09-20 23:51:40 -07:00
Yuzhou Jia
35339498ef Merge "Make Changes to VoiceInteraction API for supporting System checking an assistant voice action availability on AAE." 2018-09-20 01:02:44 +00:00
jiayuzhou
21a353b701 Make Changes to VoiceInteraction API for supporting System checking
an assistant voice action availability on AAE.

Test: build and test on AAE.
Bug: 110587280

Change-Id: If37036e0dbe021fee9c95caf7e450330ca24ae32
2018-09-19 10:21:59 -07:00
Nan Zhang
7cba8a7fe4 Merge "Enable api-versions.xml generation for api-stubs" 2018-09-19 14:34:04 +00:00
Nan Zhang
4881262573 Merge "Enable jdiff for api-stubs-docs" am: 61d0ec49ef am: f886bc1a94
am: aab7836c24

Change-Id: Id4dc90a8d4c3cf5c8231676df6c1db69d56050bd
2018-09-18 23:02:26 -07:00
Nan Zhang
aab7836c24 Merge "Enable jdiff for api-stubs-docs" am: 61d0ec49ef
am: f886bc1a94

Change-Id: I43ef41ee14d0ba434a5783f9b3daf944f30bd542
2018-09-18 22:33:50 -07:00
Nan Zhang
f886bc1a94 Merge "Enable jdiff for api-stubs-docs"
am: 61d0ec49ef

Change-Id: I0eae62d725ddefa6ef719b8d34eb1ca9eb8a7b41
2018-09-18 22:15:43 -07:00
Treehugger Robot
61d0ec49ef Merge "Enable jdiff for api-stubs-docs" 2018-09-19 03:02:19 +00:00
Nan Zhang
4079654c0a Enable api-versions.xml generation for api-stubs
Test: m -j
out/target/common/obj/PACKAGING/api-stubs-docs_generated-api-versions.xml
Bug: b/78245848

Change-Id: I2800f49e264473f5ec78e074cfd844c72342522f
Merged-In: I2800f49e264473f5ec78e074cfd844c72342522f
2018-09-19 01:56:48 +00:00
Nan Zhang
1774082767 Merge "Enable api-versions.xml generation for api-stubs" into stage-aosp-master am: f46a3a3acc
am: 4127448aa7

Change-Id: I1a308ab34a49a94241bc3989f8109526a184a18f
2018-09-18 18:18:40 -07:00
Nan Zhang
4127448aa7 Merge "Enable api-versions.xml generation for api-stubs" into stage-aosp-master
am: f46a3a3acc

Change-Id: Ic144a897c4d6b96945cd8a4e878f5b2fed2afa4f
2018-09-18 18:00:46 -07:00
TreeHugger Robot
f46a3a3acc Merge "Enable api-versions.xml generation for api-stubs" into stage-aosp-master 2018-09-19 00:44:11 +00:00
Nan Zhang
91cc76631e Enable api-versions.xml generation for api-stubs
Test: m -j
out/target/common/obj/PACKAGING/api-stubs-docs_generated-api-versions.xml
Bug: b/78245848

Change-Id: I2800f49e264473f5ec78e074cfd844c72342522f
2018-09-18 12:45:02 -07:00
Pete Gillin
50df226b69 Merge "Rename the ojluni-annotated-stubs target." am: 542d032f03 am: cddbd39be7
am: 59fa25a5f5

Change-Id: Idd9e6ee25e60b9882f3992cf1b19f929eca37621
2018-09-18 11:20:16 -07:00
Pete Gillin
59fa25a5f5 Merge "Rename the ojluni-annotated-stubs target." am: 542d032f03
am: cddbd39be7

Change-Id: I2c512a54b8bb3a0824ea1c279ca67e52a23f4a18
2018-09-18 11:01:52 -07:00
Nan Zhang
81f29f5cd6 Enable jdiff for api-stubs-docs
And also clean legacy MK code in Android.mk

Test: api-stubs-docs-diff
Bug: b/78245848
Change-Id: I733e0e2c29f8273db3ffb9730c70d5b4e2b1438d
2018-09-17 15:29:11 -07:00
Pete Gillin
ff97819d8b Rename the ojluni-annotated-stubs target.
All of the annotations under this are intended for use in the SDK. In
order to make this clear (because other types of annotations are
planned), this change renames the target to
ojluni-annotated-sdk-stubs.

Bug: 115746226
Test: `make api-stubs-docs`
Change-Id: I11366b6293b681cb4c8118fc117601a671c33282
2018-09-17 16:35:59 +01:00
Nan Zhang
7ae5a1e47f Merge "Migrate all offline/online sdk docs generation to use Metalava" am: 741521940a am: 8a1bb5f429
am: cebca6f778

Change-Id: Ia29f2051519738494c0ca4bae251704452dc439d
2018-09-13 17:47:05 -07:00
Nan Zhang
cebca6f778 Merge "Migrate all offline/online sdk docs generation to use Metalava" am: 741521940a
am: 8a1bb5f429

Change-Id: Id20e302216639fb78a860673abf244229358a7f5
2018-09-13 17:33:17 -07:00
Nan Zhang
7764a4b84f Migrate all offline/online sdk docs generation to use Metalava
These targets all depend on libcore sources which are blocker for us to
enable java9 feature, so convert them to Metalava.

Also enable API level annotations for api-stubs-docs, offline-sdk-docs,
and online-sdk-docs.

Test: m -j docs
Bug: b/78245848
Change-Id: I354d699a79cc5e6580b50e0613e7602c77b9c0b5
2018-09-12 16:31:49 -07:00
Nan Zhang
9a9f44c010 Merge "For metalava target, use droidstubs instead of droiddoc" am: 5eb84c0065 am: b910944852
am: 520267b93f

Change-Id: I71efe4a921fe3a03f90b90870b400d242acf5eb1
2018-09-12 15:57:56 -07:00
Nan Zhang
520267b93f Merge "For metalava target, use droidstubs instead of droiddoc" am: 5eb84c0065
am: b910944852

Change-Id: I41e110dee813021552fee125ddbcbdbaba2d6703
2018-09-12 15:08:04 -07:00
Nan Zhang
894c9ec583 For metalava target, use droidstubs instead of droiddoc
droidstubs is used to generate stubs files only.

Test: m -j api-stubs-docs
Bug: b/8d0763849
Change-Id: Ia7c3d19ed2ec7b0f5b96008e5780dbcd5a32402b
2018-09-11 15:41:50 -07:00
Dongwon Kang
1941814f8e Merge "MediaPlayer2: use protobuf instead of parcel in invoke()" 2018-09-10 18:32:32 +00:00
TreeHugger Robot
826a36c19b Merge "Add a new Binder interface to allow IMS to directly talk to IMMS" 2018-09-07 02:11:07 +00:00
Treehugger Robot
f4fc71f370 Merge "Build android.test.* with java_sdk_library" 2018-09-07 01:01:59 +00:00
Sooraj Sasindran
d71ccc543e Merge "Introduce AlternativeNetworkAccess APIs" 2018-09-06 20:32:01 +00:00
Yohei Yukawa
c54c117164 Add a new Binder interface to allow IMS to directly talk to IMMS
Historically, InputMethodService (IMS) has relied on
InputMethodManager's hidden methods to communicate with
InputMethodManagerService (IMMS).  Because of this, InputMethodManager
(IMM) has ended up being a mixture of IPC endpoint for both IME
clients and IME itself.

There are multiple problems.

 * IMM is instantiated in almost all user mode processes.  This means
   that unnecessary IPC endpoints have been accessible to them via
   reflection.  Even though those endpoints refuses request without a
   valid IME window token, and even though we have tighten up use of
   private APIs in the runtime level, exposing unnecessary IPC
   endpoints is still questionable.
 * Mixing multiple responsibilities has been caused unnecessary
   complexity in IMM.  In Bug 70282603, we have moved some APIs from
   IMM to IMS to sort out this complexity that are surfaced in API
   boundary, but in the implementation level everything remained to be
   the same.

Now that Bug 70282603 is fixed, the natural next step is to start
implementing actual an IPC connection from IMS to IMMS without relying
on IMM.

Here is the new diagram that describes (most of) IPC interfaces around
IMEs.

   APP---(1)---IMMS
     \          |
      \         |
       \        |
        \       |
         \      |
         (2)   (3)
           \    |
            \   |
             \  |
              \ |
               \|
               IME

 (1): IInputMethodManager.aidl: send requests from APP to IMMS
      IInputMethodClient.aidl:  send requests from IMMS to APP
 (2): IInputMethodSession.aidl: send requests from APP to IME
      IInputContext.aidl:       send requests from IME to APP
       -> this is the actual interface behind InputConnection
 (3): IInputMethod.aidl:        send requests from IMMS to IME
      IInputMethodPrivilegedOperations.aidl:
                                send requests from IME to IMMS

IInputMethodPrivilegedOperations.aidl is what this CL is adding.

With that, this CL moves 5 IPC methods
  from IInputMethodManager.aidl (1)
  to IInputMethodPrivilegedOperations.aidl (3).

There remain some IPC methods that are intended to be used only from
IMEs in IInputMethodManager.aidl because those methods have been
unfortunately exposed via public APIs in InputMethodmanager.

Although all of those public APIs were deprecated in Android P as part
of Bug 70282603, we still need to keep maintaining those APIs until
(most of) IMEs migrate to APIs that are newly introduced in
InputMethodService.  It would take several years.

IInputMethodManager#getInputMethodWindowVisibleHeight() is another
method that we cannot migrate right now because some apps have already
relied on its corresponding hidden method in IMM, as discussed in Bug
113914148.

Fix: 113177698
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: I2f3ec3c5de546fb3603275a4b64000ed3f863b65
2018-09-06 11:39:50 -07:00
Sooraj Sasindran
165c9e90fb Introduce AlternativeNetworkAccess APIs
Introduce AlternativeNetworkAccess APIs

Bug: 113106744
Test: Verified using test app to make api calls
Change-Id: I7f470cd6028a12cc66a660d58720f803271d38eb
2018-09-06 10:32:56 -07:00
Mathew Inwood
88924e0e24 Merge "Processor for @UnsupportedAppUsage annotations." am: e5440456ca am: 22ea0b7a52
am: d20588332d

Change-Id: I097550eeaf0307e3518aaf2d8e3f30338f9fa9dc
2018-09-05 10:01:21 -07:00
Mathew Inwood
d20588332d Merge "Processor for @UnsupportedAppUsage annotations." am: e5440456ca
am: 22ea0b7a52

Change-Id: I0fd41ccc78872eae55e8341a8a38d6c6b39e0114
2018-09-05 09:43:35 -07:00
Mathew Inwood
bad89e5e5b Processor for @UnsupportedAppUsage annotations.
The processor outputs unsupportedappusage_index.csv, containing source
position info for every@UnsupportedAppUsage annotation processed. It is a
mapping of dex signature to the source postion of the annotation on that
signature. It is used as input for scripts which update the annotations.

We include a META-INF file which causes the compiler to automatically
pick up the annotation processor. Otherwise we would need to explicitly
specify the processor with a -processor flag to javac.

We create a new build target for just the @UnsupportedAppUsage annotation
and the @IntDef annotation (which it depends on) so that the processor can
also depend on that directly.

The processor only runs on a new build target framework-annotation-proc
so that it is not invoked as part of a regular build. This is done so
that we don't slow down peoples builds: Soong does not support annotation
processors when javac sharding is in use. This workaround can be removed
once b/77284273 is fixed.

Test: m framework-annotation-proc
Bug: 113853502

Change-Id: Ie9cd5a90ddf7a51f6035e849703fc39ad9127557
2018-09-05 15:01:21 +01:00
TreeHugger Robot
0df9368b0f Merge "Build android.test.* with java_sdk_library" into pi-dev-plus-aosp 2018-09-03 01:06:33 +00:00
TreeHugger Robot
f75320d841 Merge "Add an enum file for stats event" 2018-09-01 04:21:20 +00:00
sqian
1b4f1de0a7 Merge "Call Redirection Surface in Telecom out going call flow" am: 11486bfab2
am: 54016bdbca

Change-Id: I30adaf5566a55aa867f859b42a49bbbfb0b8d651
2018-08-31 18:04:17 -07:00