Commit Graph

496 Commits

Author SHA1 Message Date
Anton Hansson
f745315891 Merge "Add gps_debug.conf module" 2018-11-29 09:04:18 +00:00
TreeHugger Robot
331cf14c76 Merge "Add more annotations to framework-media-annotation-srcs" 2018-11-28 05:11:40 +00:00
Dongwon Kang
3584c66ae2 Add more annotations to framework-media-annotation-srcs
Test: build
Bug: 112766913
Change-Id: Ic0bcc71bac70a2a5f2a169e274e925ff4ac44623
2018-11-27 18:08:18 -08:00
TreeHugger Robot
d8a9db8486 Merge "Add interface for SMS message read for financial app mainline module." 2018-11-27 21:54:23 +00:00
Anton Hansson
11905c6b2c Add gps_debug.conf module
Copy the gps_debug.conf from the device-specific folders to
a place closer to the code that uses it.

Bug: 112879252
Bug: 120066492
Test: make
Change-Id: I937e699cb9e891c511ca7b9f4740d45e19668c54
2018-11-27 21:36:03 +00:00
Xiangyu/Malcolm Chen
60cfbed4ff Merge "Migration of IRadio 1.3 types to 1.4." 2018-11-27 18:50:42 +00:00
Paul Duffin
e260927cfd Merge "Make ext build against core.platform.api.stubs" am: ff296e75ce am: f678d38b9a
am: 44f521a39f

Change-Id: I3d8ae281f8c8ba3497b7b2cc13ac3527845984ed
2018-11-27 07:11:57 -08:00
Paul Duffin
44f521a39f Merge "Make ext build against core.platform.api.stubs" am: ff296e75ce
am: f678d38b9a

Change-Id: Ib1fea4e2a10361ea78282267292671fc2c182cc0
2018-11-27 07:00:33 -08:00
Paul Duffin
ba4cee0b1c Make ext build against core.platform.api.stubs
The ext target needs to be switched from core_current to depending on
core.platform.api.stubs (the default when no sdk_version is specified
and no_frameworks_libs = true) as it statically includes
libphonenumber-platform which itself needs to depend on
core.platform.api.stubs as it needs access to the
dalvik.annotation.compat.UnsupportedAppUsage annotation.

Without this change modifying the libphonenumber-platform target to
depend on core.platform.api.stubs causes a build failure.

Tested by changing libphonenumber-platform target to depend on
core.platform.api.stubs and running make checkbuild.

Bug: 117818301
Test: see above
Change-Id: I2b9154d22b67aafb57493b41b527818c37212c34
2018-11-27 12:53:16 +00:00
Felipe Leme
284ad1c3e2 Initial implementation of Augmented Autofill.
Augmented Autofill is a mechanism that will let a system-provided service
provide autofill suggestions when the stardand autofill can't.

Because the Augmented Autofill service is a system app, it has less restrictions
than the standard service; in particular, this service will be responsible for
drawing the autofill UI, although the framework will provide a mechanism to host
the window. Right now, it's creating a TYPE_APPLICATION_OVERLAY window in the
service process roughly below the focused view, but in the long-term it will
use the IME suggestion window to display it.

This CL provides the initial APIs and end-to-end workflow for the simplest
scenario, but it's still full of TODO's.

Test: atest CtsAutoFillServiceTestCases # to make sure it doesn't break it
Test: atest FrameworksCoreTests:SettingsBackupTest
Test: mmm -j150 packages/experimental/FillService &&\
  adb install -r ${OUT}/data/app/FillService/FillService.apk &&\
  adb shell settings put secure intel_service foo.bar.fill/.AiaiService &&\
  adb shell settings put global autofill_smart_suggestion_emulation_flags 2 &&\
  adb shell pm grant foo.bar.fill android.permission.SYSTEM_ALERT_WINDOW

Bug: 119638877

Change-Id: I8d59b4eab3e530cd89b81456681a72fdab532756
2018-11-27 05:09:06 +00:00
Hongming Jin
fa329d3d8b Add interface for SMS message read for financial app mainline module.
Test: Test will be done with the mainline module implementation of this
service.
Bug: 111207447
Change-Id: I3fdd53adbe27ff69ab98b0862e6bf2ae3e6bba77
2018-11-26 13:09:09 -08:00
Malcolm Chen
8310bcdcc9 Migration of IRadio 1.3 types to 1.4.
To better test CBRS, we want IRadio 1.3 to be Android P plus CBRS
HAL interfaces, while 1.4 will be 1.3 plus all other Android Q
interfaces. So we are moving everything currently defined in
android.hardware.radio.V1_3 to android.hardware.radio.V1_4.

Bug: 117805040
Test: build and telephony unittest
Change-Id: I2c9bcf77ebfbda144bf184b43e196c1dd1ca466b
2018-11-25 15:14:47 -08:00
Neda Topoljanac
19f291660d Managed System Updates API
Adding API to install a system update from a file on the device.

Test: manual in TestDPC, CTS tests for negative cases: atest com.android.cts.devicepolicy.DeviceOwnerTest#testInstallUpdate

Fixes: 116511569

Change-Id: I34b5c6344301a9d2d64c98dedc4ed5e4a75c57d1
2018-11-23 16:28:07 +00:00
TreeHugger Robot
c61363e7a2 Merge "Add detectLanguage and suggestConversationActions to TCS" 2018-11-22 11:16:30 +00:00
TreeHugger Robot
e9e01e2cfe Merge "Remove unused Media 2.0 APIs" 2018-11-22 02:13:39 +00:00
Wei Wang
2ca566b525 Merge "Add thermal status API for app and unit test" 2018-11-21 18:34:49 +00:00
Tony Mak
0be540b227 Add detectLanguage and suggestConversationActions to TCS
BUG: 111406942
BUG: 111437455

Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/TextClassifierTest.java

Change-Id: Iee9c970ebbec6590906907d67be3dd4021c1b4b2
2018-11-21 15:36:11 +00:00
Sungsoo Lim
6f7a0f4650 Remove unused Media 2.0 APIs
Bug: 119591238
Test: build
Change-Id: I58d00b64c86df1372eaed74899227d5787d127e2
2018-11-21 09:29:34 +09:00
Wei Wang
37b175448a Add thermal status API for app and unit test
Test: Manually on Thermal HAL 2.0 device
Test: Manually on Thermal HAL 1.1 device
Test: Manually on no Thermal HAL emulator
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java
Bug: 111086696
Bug: 119413961
Change-Id: I6723406123d12339e82e9e87eec14b7f9a301897
2018-11-20 11:56:30 -08:00
Insun Kang
90ed8e65b0 Merge "Add a filegroup rule for building media1.0 mainline module" 2018-11-20 05:54:04 +00:00
Insun Kang
06b25aeabd Add a filegroup rule for building media1.0 mainline module
Bug: 119539695
Test: build
Change-Id: I278db78c96921e2f04a90babe4155f90cd1d0039
2018-11-20 11:07:18 +09:00
Nathan Harold
6ef595468c Merge "Add Support for Async requestCellInfoUpdate()" am: 992aafb2bd am: f3d183108b
am: 247f4e292f

Change-Id: Ic65f1d1c929b22371e827d63281a3447ca29e8bc
2018-11-16 14:07:13 -08:00
Nathan Harold
247f4e292f Merge "Add Support for Async requestCellInfoUpdate()" am: 992aafb2bd
am: f3d183108b

Change-Id: Iee76a8ee4cd04cf5847ab33320635f7dab29d9e2
2018-11-16 12:58:31 -08:00
Nathan Harold
992aafb2bd Merge "Add Support for Async requestCellInfoUpdate()" 2018-11-16 19:13:36 +00:00
Sahin Caliskan
661f548304 Merge "Fix RcsManager and add empty RcsThread class" am: 170c382729
am: 28534639bc

Change-Id: Iac6549fc8216edd7b6f6469f3bf4bc1a06432cd2
2018-11-16 09:59:24 -08:00
Sahin Caliskan
1256486a8f Fix RcsManager and add empty RcsThread class
This change fixes the RcsManager setup and adds an empty RcsThread class. Please see go/rcs-in-telephony-doc for details.

Test: Builds fine
Bug: 109759350
Merged-in: Ie3fe476ab11d515ffab6dcc6ccf5ec801a4c9057
Change-Id: Ie3fe476ab11d515ffab6dcc6ccf5ec801a4c9057
2018-11-15 23:28:24 +00:00
Nathan Harold
2aa2cc1b75 Add Support for Async requestCellInfoUpdate()
Add asynchronous calls to request CellInfo updates.
-Add a request for CellInfo
-Add a request for CellInfo that allows system apps
 such as the LocationProvider to bill the work to
 the app that initiated the location fix.
-Update the behavioral language for getAllCellInfo
 to indicate that depending on the API level of the
 caller, this API will only provide cached info, which
 means that apps can always request an update without
 possibly triggering a call to the modem. This also
 means that the binder will not block due to modem
 delay.

Bug: 37100068
Bug: 63737292
Bug: 26569588
Test: manual (via SL4A)
Change-Id: I25cbc3cecd5d396fc3baa21457c05cd6e273c9c3
2018-11-15 10:53:05 -08:00
Amit Mahajan
62f9aa44f7 Merge changes from topics "getLine1Number fix", "sms_corruption", "Initial RCS CL" am: 1e8399f1ab
am: 5f2441c343

Change-Id: Ifa75e5d760ebc7f7b8aa5de6ec8f3f1002fe50ae
2018-11-13 23:48:03 -08:00
Amit Mahajan
0c081a10ad Initial RCS CL.
This CL adds RcsManager with a dummy API.

Test: build
Bug: 109759350
Merged-in: Ib10a38fac9182ca010d3895431e419f5c1958d59
Change-Id: Ib10a38fac9182ca010d3895431e419f5c1958d59
(cherry picked from commit 7d496bc030)
2018-11-14 00:46:15 +00:00
Sahin Caliskan
4c070fa443 Merge "Fix RcsManager and add empty RcsThread class" 2018-11-13 16:17:06 +00:00
Sahin Caliskan
9458ebccfc Fix RcsManager and add empty RcsThread class
This change fixes the RcsManager setup and adds an empty RcsThread class. Please see go/rcs-in-telephony-doc for details.

Test: Builds fine
Bug: 109759350
Change-Id: Ie3fe476ab11d515ffab6dcc6ccf5ec801a4c9057
2018-11-12 15:52:54 -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
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
Adam Vartanian
b77c9082a5 Merge "Add Conscrypt Public API" am: 5f9193bdad
am: 6be4564805

Change-Id: Ia1d66c69d75840a007a69980cf6e0abe4d5b5a7e
2018-11-12 02:59:13 -08:00
TreeHugger Robot
eeca4f5a30 Merge "Add Inspector annotations" 2018-11-08 21:35:20 +00:00
Adam Vartanian
6333c84514 Add Conscrypt Public API
Bug: 110403421
Test: cts -m CtsLibcoreTestCases -t android.net.ssl
Change-Id: I51e497032e58c73cc6be77d95c3b18b139804859
2018-11-08 15:22:40 +00:00
Ashley Rose
041d90b23e Add Inspector annotations
Add the @InspectableChildren, @InspectableNodeName, and
@InspectableProperty annotations, and a host library containing them for
use in the annotation processor.

Bug: 118893821
Test: m
Change-Id: I11dcec09c2c69db951fc87d37463b6f8ca28d8fe
2018-11-07 17:38:51 -05:00
Wei Wang
bad7c20606 Add thermal service into system_server
This system service will listen to ThermalHAL for throttling events and
take actions accordingly, e.g. shutdown device and/or sending
notification to registered listeners to IThermalSerivce.

Bug: 79443945
Bug: 118510237
Bug: 111086696
Bug: 116541003
Test: Boot and test callback on ThermalHAL 1.1
Test: Boot and test callback on ThermalHAL 2.0
Test: Kill ThermalHAL process
Test: Change device threshold to trigger shutdown
Change-Id: I1f4066c9f1cf9ab46c1738a0a4435802512e4339
2018-11-07 13:38:57 -08:00
Felipe Leme
179a9dccb0 Merge "Initial implementation of the IntelligenceService pipeline." 2018-11-06 20:57:16 +00:00
Felipe Leme
e348dc3486 Initial implementation of the IntelligenceService pipeline.
It's still full of TODOs, but at leats it now provides an end-to-end
workflow from the activity creation / destruction to the service implementation.

Test: mmm -j packages/experimental/FillService && \
      adb install -r ${OUT}/data/app/FillService/FillService.apk && \
      adb shell settings put secure intel_service foo.bar.fill/.AiaiService
Bug: 111276913

Change-Id: Id5daf7b8b51e97c74d9b6ec00f953ddb02b48e46
2018-11-06 10:01:02 -08:00
Roshan Pius
d84d668d45 Merge changes from topic "network_request_match_callback"
* changes:
  WifiManager: Network request match callback registration
  wifi(API): NetworkSpecifier for Wifi NetworkAgent
  wifi(API): Mark old API's deprecated
  wifi(API): New API surface for network suggestion
  wifi(API): New API surface for connection via NetworkRequest
2018-11-06 17:42:58 +00:00
Dario Freni
b1eeab34a6 Merge "Initial support for installing APEX via adb." 2018-11-06 10:18:38 +00:00
Kevin Chyn
8d45688b6d Merge "Add placeholders for IrisManager/Service" 2018-11-06 06:29:22 +00:00
Kevin Chyn
51676d293a Add placeholders for IrisManager/Service
With the system services in place, we can add SELinux policies

Bug: 116530289

Test: Builds
Change-Id: I0fd0dfbbbf258eb4a0ef9019247baaf323578959
2018-11-05 18:57:15 -08:00
Paul Duffin
5061977080 Merge "Remove sun.... libcore classes from light grey/vendor lists" am: 65b79f96cd am: 455c3da3e2
am: a98f107b27

Change-Id: I0625b63280a2560c8725dbeaa390b6e29725ae2b
2018-11-05 06:28:57 -08:00
Paul Duffin
a98f107b27 Merge "Remove sun.... libcore classes from light grey/vendor lists" am: 65b79f96cd
am: 455c3da3e2

Change-Id: I6d6cd4a67c61ed610759c6d798118bd7262d897d
2018-11-05 06:14:19 -08:00
Dario Freni
d8bf22e8c6 Initial support for installing APEX via adb.
Test: adb install package-signed.apex (succeeds)
adb install package-unsigned.apex (fails)
Change-Id: I3ac7971ce6923511a7d574291fe9002c5d55fa1b
2018-11-05 09:24:58 +00:00
Paul Duffin
a0cb5388a5 Remove sun.... libcore classes from light grey/vendor lists
Removes all the sun... libcore classes from the light grey/vendor
lists as they are now using UnsupportedAppUsage annotation.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Test: see above
Bug: 117818301
Change-Id: I8dadc9215e929c5047fdfe8241c430544e963c19
ge-Id: I2a9ed3fbfb0c703eafcf431b93f8a419c5ec83a3
2018-11-01 10:31:09 +00:00
Colin Cross
bd26d4363f Convert statsd and incidentd to Android.bp
am: 05c9e5c24a

Change-Id: Ic5b6353777baf66eb77f7fc6b9846fa4adbca186
2018-10-31 14:12:36 -07:00
Roshan Pius
3c38ee435a WifiManager: Network request match callback registration
Add and Implement the new network request match callback register/unregister
@hide methods to be used by settings UI.

Note: This uses the same pattern used for other callbacks to settings
like traffic state change, softap.

Bug: 113878056
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ia4964759c6b10790dda0fc61a41c4d95dab904c9
2018-10-31 09:23:15 -07:00