633 Commits

Author SHA1 Message Date
Jiyong Park
1cc9566ee2 glob pattern is used for AIDL files under frameworks/base
This change removes the manullay curated list of AIDL files and replace
them with globs.

In addition, framework-aidl-mappings no longer sets frameworks-defaults
to its src property, but instead uses the several variables like
framework_srcs, framework_aidl_local_include_dirs, etc. to get the
same files/dirs list as the framework.

The variables will eventually be replaced with filegroups when aidl
include paths are better handled (i.e. 'path' property of all filegroups
for a module contributes to the AIDL include paths for all AIDL files in
the module).

Bug: 70046217
Test: m

Change-Id: I59728ed06d66d44bc19bcd8530042c01add5fc2b
2019-08-14 12:25:06 +09:00
Makoto Onuki
62242c48e0 Introduce framework-minus-apex and create jobscheduler-framework.jar
Bug: 137763703
Test: Clean local build + "flash -w" and boot
Test: Presubmit
Test: atest CtsJobSchedulerTestCases
Test: ./cts/tests/signature/runSignatureTests.sh
Change-Id: Ie2a5a7a17f903ac18de0bcdde5be25311a62fa01
2019-08-12 18:11:57 +00:00
Artur Satayev
fa05ca260a Add @UnsupportedAppUsage annotations.
This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 137350495
Test: m
Change-Id: I55c7845cb7c22808a85dd5185eccfe93c2064b76
2019-08-01 13:44:37 +01:00
Soonil Nagarkar
fb6b187bfb Remove obsolete constants.
These constants are not in use anywhere.

Test: na
Bug: 137675020
Change-Id: I9f1b2101b75779ff2f9c5f9d945189eccff782ae
2019-07-19 02:09:11 +00:00
Soonil Nagarkar
1c572559c6 Improve dumpsys formatting
Make dumpsys readable.

Test: n/a
Change-Id: Ie1701227b8dddaee7636c37f97c9469729e499c3
2019-07-10 14:27:50 -07:00
Soonil Nagarkar
ad6b61875e Pass binder identity through sendExtraCommand
Allow providers to see the identity of the caller of sendExtraCommand
and update documentation.

Bug: 116799964
Test: Presubmits
Change-Id: Ibb63dc3ce223bc1e3ae89e65cf2973a3619c057f
2019-07-02 09:36:11 -07:00
Soonil Nagarkar
a172288449 Merge "Restore GpsStatus listeners" into qt-dev am: beff33a3bd am: 5a57ce5366
am: 654d4d1c6f

Change-Id: I6cbef0e437351ba55a1f4ce8d93efffae52222ae
2019-05-24 17:46:27 -07:00
Soonil Nagarkar
beff33a3bd Merge "Restore GpsStatus listeners" into qt-dev 2019-05-23 23:42:15 +00:00
Anil Admal
dae874bf30 Merge "Merge "Update non-framework emergency location request notification" into qt-dev am: d566984298 am: 6d8da46657" into qt-r1-dev-plus-aosp
am: 22c9978625

Change-Id: Ief2edb3b9005301d56efa1d52358b06680f00687
2019-05-22 16:03:09 -07:00
Soonil Nagarkar
fc7d3bc858 Restore GpsStatus listeners
BUG: 132249089
Test: CTS/manual
Change-Id: I5bd3356240aee07acced1c10e7c67fff35d67bbb
2019-05-22 15:22:20 -07:00
Anil Admal
61da5f06ad Update non-framework emergency location request notification
- Incorporate notification text feedback in b/116328114 so that
  it translates well in different locales.
- Implement PWG recommendation to always notify user of non-framework
  location requests and not make it configurable. Remove es_notify_int
  configuration parameter.

Bug: 116328114
Bug: 130892418
Test: Manual plus existing tests pass.
Change-Id: Iad972eb1a6fe6c6ed5646edb00c1ea483a077553
2019-05-20 16:33:09 -07:00
TreeHugger Robot
4d346b743c Merge "Guard isProviderPackage with permission" 2019-05-15 20:40:31 +00:00
Anil Admal
a59b2645f1 Merge "User notification of NFW emergency requests similar to IGnssNi.hal" into qt-dev am: 6c87ec4022
am: b0e8562d7f

Change-Id: I8d34859876e4ceedebe29959553b6d96c43af13d
2019-05-08 20:11:43 -07:00
Anil Admal
8a246a2bce User notification of NFW emergency requests similar to IGnssNi.hal
Fixes: 130892418
Test: Manual
Change-Id: Ie505f4c08ffbabfaba3a072c5e14cf8a732c6860
2019-05-07 17:51:21 -07:00
TreeHugger Robot
c5b34213dd Merge "Add RequiresApi annotations to LocationProvider" 2019-05-03 00:04:24 +00:00
Soonil Nagarkar
514dff4f9b Guard isProviderPackage with permission
Add READ_DEVICE_CONFIG permission requirement for using
isProviderPackage(). Now with more correctness.

Bug: 126614252
Test: manual
Change-Id: I38108a971e0f1dadc8fca8373c80d5d38099f161
2019-04-30 12:04:28 -07:00
David Christie
3fcb6dfae8 Revert "Guard isProviderPackage with permission"
This reverts commit 24136098c098a7d2fff464cc1b20ee60ed4d972f.

Reason for revert: b/131637158. For some reason the Android system doesn't seem to have this permission.

Bug: 131637158

Change-Id: I7fd1e25a1bbb57f98a6ee0d07b8954c1cbcf08c2
2019-04-30 01:19:55 +00:00
Soonil Nagarkar
24136098c0 Guard isProviderPackage with permission
Add READ_DEVICE_CONFIG permission requirement for using
isProviderPackage().

Bug: 126614252
Test: manual
Change-Id: Iba68994e0faecda075ad37db6e1b9fe457bbaaef
2019-04-25 15:32:43 -07:00
Anil Admal
d4203ddebf Merge "Add separate hasCapabilityName() methods in GnssCapabilities" into qt-dev 2019-04-23 15:32:05 +00:00
Anil Admal
3ba0fa9999 Add separate hasCapabilityName() methods in GnssCapabilities
Fixes: 130802613
Test: Verified on a Pixel device.
Change-Id: I00418f12004b28de666ec2a73203611f73af3e18
2019-04-19 18:26:46 -07:00
Anil Admal
ec6ec82ef5 Change getGnssCapabilites() return type to @NonNull
Fixes: 130802725
Test: Manual
Change-Id: I01c3f2aa593c3b5f08b57b77960afc21bb155da7
2019-04-19 15:24:16 -07:00
Soonil Nagarkar
44efeaef4d Add RequiresApi annotations to LocationProvider
Ensures that lint tests can run properly from client code which uses
this library.

Bug: 130188099
Test: manual
Change-Id: I1d3c8e486c38633d73c405f2c6f9b350ef1e6946
2019-04-15 18:45:22 -07:00
Yu-Han Yang
284234ea8c Log constellation types in GnssMetrics
Bug: 121157068
Test: on device
Change-Id: I9e2c1238e46422f9c11b748567c2741ed95aeaa0
2019-04-12 18:22:05 +00:00
Yu-Han Yang
ae7e07abba Log constellation types in GnssMetrics
Bug: 121157068
Test: on device
Change-Id: I9e2c1238e46422f9c11b748567c2741ed95aeaa0
2019-04-12 11:14:40 -07:00
TreeHugger Robot
433bb84545 Merge "Adding documentation to getElapsedRealtimeUncertaintyNanos following api council guidance." into qt-dev 2019-04-08 17:13:58 +00:00
Yu-Han Yang
f85b047705 Merge "Change elapsedRealtimeUncertaintyNanos from long to double" into qt-dev am: 5589916a5d
am: da6ea54597

Change-Id: Ia6ccdb35e881bcbe17bc64318bd32c7514da3349
2019-04-05 22:42:12 -07:00
Pierre Fite-Georgel
d017319f57 Adding documentation to getElapsedRealtimeUncertaintyNanos following api council guidance.
Test: N/A comment only
Bug: 129769397
Change-Id: I906494b0b72898149322959f5900626a12d6d86b
(cherry picked from commit d6d4d1efa2084c79161c1ffac303477e9d8e72fe)
2019-04-06 00:44:46 +00:00
Yu-Han Yang
3cd9a8631c Change elapsedRealtimeUncertaintyNanos from long to double
Bug: 129166160
Fixes: 129166160

Test: builds and existing tests passed
Change-Id: I948382a9e486b8ddc1ba6a9fe0fd9bb88e9bfb71
2019-04-05 23:23:51 +00:00
Pierre Fite-Georgel
d6d4d1efa2 Adding documentation to getElapsedRealtimeUncertaintyNanos following api council guidance.
Test: N/A comment only
Bug: 129769397
Change-Id: I906494b0b72898149322959f5900626a12d6d86b
2019-04-05 15:18:05 -07:00
Anil Admal
312fddb323 Update getGnssCapabilities() in LMS to include sub-HAL capabilities (part 2)
Implement the getGnssCapabilities() method in LocationManagerService
class to return the capabilities exposed through the GnssCapabilities
class. This part 2 is a follow up to CL ag/6776830.

Bug: 128913861
Test: Tested with cuttlefish and blueline device.
Change-Id: I766e8dc841b5f329d1773e5b37076ed99c55ebf6
2019-04-02 16:17:43 -07:00
TreeHugger Robot
c5f9e22bb3 Merge "Convert Android.mk file to Android.bp" 2019-03-28 19:04:55 +00:00
Wei Wang
114922a8fa Address API council review comments.
Rename the setters and getter for location package extra. The getter is
not used by prebuilt apps, so they are renamed directly. The setter is
used by GmsCore, so mark as @removed for now.

Bug: 123587501
Test: Manual

Change-Id: Ia5167d20aff92242036e3642a176fe2ab03d8a52
2019-03-26 16:11:18 -07:00
Sasha Smundak
b61bab6a58 Convert Android.mk file to Android.bp
Files failing automerge from AOSP.
See build/soong/README.md for more information.

Bug: 122332340
Test: treehugger
Change-Id: I92f7584aeaf502336f67e04fbc22634784c9305d
2019-03-26 15:18:41 -07:00
TreeHugger Robot
c90040e0b3 Merge "Add elapasedRealtimeNanos and elapsedRealtimeUncertaintyNanos to GnssClock" 2019-03-22 18:04:53 +00:00
Brad Ebinger
8a838a991d Merge "Query isEmergencySmsMode API when checking if emergency for GPS" am: dedc27142d am: 3b176bc1de
am: 6862694d61

Change-Id: Id37265bae6fc641b77073c16b5a1b9a54a49b750
2019-03-22 10:59:52 -07:00
Brad Ebinger
6862694d61 Merge "Query isEmergencySmsMode API when checking if emergency for GPS" am: dedc27142d
am: 3b176bc1de

Change-Id: I26112e78477a755fe0fd373a8fdbdceb864fcea0
2019-03-22 10:48:18 -07:00
Yu-Han Yang
5d3dcd5625 Add elapasedRealtimeNanos and elapsedRealtimeUncertaintyNanos to GnssClock
Bug: 128713045
Test: atest GnssClockTest
Change-Id: I5950184202cfbb3b7a7a777b88045d0fb3ea98b1
2019-03-21 17:39:57 -07:00
Chad Brubaker
39392304c5 Merge "Add location backed system clock" 2019-03-21 16:23:31 +00:00
Yu-Han Yang
6b49665d79 Add CONSTELLATION_IRNSS constant in GnssStatus
Bug: 119270132
Test: builds and existing tests passed.
Change-Id: Ida9c33ddf87d799ff6e46dab7312d4e3dfc66d33
2019-03-20 17:47:22 -07:00
Chad Brubaker
f113333b98 Add location backed system clock
This provides a permissionless way to use the location (e.g. GNSS)
provided time data for more accurate time keeping.

Test: atest LocationManagerTest#testGnssProvidedClock
Bug: 123530510
Change-Id: Ifbc45997868040abbb3e1399a8649911afb0af05
2019-03-20 16:10:08 -07:00
Anil Admal
500b316a02 Merge "Update getGnssCapabilities() in LMS to include sub-HAL capabilities" 2019-03-20 23:05:12 +00:00
Brad Ebinger
5eeb79d4b5 Query isEmergencySmsMode API when checking if emergency for GPS
When location SUPL request comes in for GPS NI handler,
also check emergency SMS mode in telephony, which
is true for a carrier defined amount of time after an
emergency SMS is sent.

Bug: 126091115
Test: manual - send fake emergency sms, check api is true.
Change-Id: I34d26d2940af5b0c412e20ce3668344da8656339
2019-03-20 11:11:10 -07:00
Anil Admal
993497864e Update getGnssCapabilities() in LMS to include sub-HAL capabilities
The GNSS capabilities in the gnss@2.0 HAL have been refactored
(b/128028791, b/127434062, b/128309220). The sub-HAL capabilities
in the top level IGnssCallback.hal have been moved into their
respective sub-HALs. Consequently, the getGnssCapabilities()
method in LocationManagerService is hereby modified to include
the capabilities from all sub-HALs and the top level HAL.

A new GnssCapabilities class needs to be added so that we don't
expose the implementation details of the capabilities (a Java
int bitmask of capability flags) to the LocationManager client.

Bug: 128913861
Test: TBD
Change-Id: I5ed90332c7c0e783de771f573a58f79d1d6d89ff
2019-03-20 09:51:39 -07:00
Soonil Nagarkar
eaffea6d57 Update API documentation
Add information on exact API level for intent extra.

Bug: 128904083
Test: manual
Change-Id: Ie45feeea43b0fed72bee682b1c6a2076a2f85824
2019-03-19 12:31:28 -07:00
Soonil Nagarkar
3126c90786 Add PROVIDERS_CHANGED_ACTION extra for provider
Give clients a way to know which providers have changed state, useful
since LOCATION_PROVIDERS_ALLOWED will be removed in the future.

Bug: 127372321
Test: manual
Change-Id: I16c0acbaad97930bea23084b50193582cc918fa2
2019-03-18 12:00:44 -07:00
TreeHugger Robot
2df78c38f8 Merge "Address API review comments" 2019-03-16 18:56:36 +00:00
TreeHugger Robot
7475b9b7bf Merge "Change CodeType from enum to string (framework)" 2019-03-15 02:07:11 +00:00
Lifu Tang
0f69b15099 Address API review comments
- Add comment to clarify that onGetSummary() is only called on K and Q
- Annotate context parameter as @NonNull

Bug: 123222995
Test: Build and flash
Change-Id: I18ea3c80031a344be03307ca7fc26beb76288698
2019-03-14 12:35:42 -07:00
TreeHugger Robot
9c5458edb7 Merge "Remove deprecated Settings APIs." 2019-03-14 17:06:04 +00:00
Soonil Nagarkar
d55e1b1788 Merge "Revert removal of GpsStatus APIs" 2019-03-14 04:23:13 +00:00