Commit Graph

374874 Commits

Author SHA1 Message Date
Hung-ying Tyan
c359bbe0ec Allow all system configs in /product
Bug: 115848786
Bug: 110072687
Bug: 80053945
Test: boot Pixel 2 with GSI as system
Change-Id: Ie5baf7d857d765b7cb3def722be4d30e30c2d6a2
Merged-In: Ie5baf7d857d765b7cb3def722be4d30e30c2d6a2
2018-10-02 08:39:47 +00:00
Jeff Sharkey
8883851c71 Merge "Fix ExternalStorageProvider always throw exception when rename" 2018-09-26 16:27:24 +00:00
Neil Fuller
c457d8c95a Merge "Make ext.jar only dependent on public SDK APIs" 2018-09-26 08:12:46 +00:00
Tyler Gunn
5604cc2516 Merge "Mark event-based handover constants as deprecated." 2018-09-26 04:18:35 +00:00
Tony Huang
ac45599364 Fix ExternalStorageProvider always throw exception when rename
ExternalStorageProvider always throw exception when renameDocument
because it will check file exist when getFileForDocId. However,
beforeVisibleFile is not exist after rename, it will throw
exception. Fix it by put getting beforeVisibleFile before rename.

Test: manual test rename in DocumentsUI
Test: atest RenameActualProviderUiTest
Fix: 113302685
Fix: 115304092
Change-Id: I45d60d2f940e3dbc2b121f7cd28acc3c2d085ec4
Merged-In: I45d60d2f940e3dbc2b121f7cd28acc3c2d085ec4
2018-09-25 17:20:28 -06:00
Leon Liao
e238a19aa5 Merge "Rename method isConnectable()" 2018-09-25 23:06:20 +00:00
Hall Liu
544b8efa46 Merge "Add intdef for Telephony network type constants" 2018-09-25 22:45:39 +00:00
vnori
51ec0ebbee Merge "Add hidden API to return "Uploading" bit value from SDP record's MapSupportedFeatures." 2018-09-25 22:35:58 +00:00
Youming Ye
6fa8bcb841 Merge "Show "Call Blocking disabled" notification always when emergency call" 2018-09-25 22:29:39 +00:00
Chen Xu
56d40d3c78 Merge "expose getIsimDomain to systemAPI" 2018-09-25 22:14:34 +00:00
Calin Juravle
23bc5ea51b Merge "Update the reference profile from .dm files only during installs" 2018-09-25 22:00:00 +00:00
Vasu Nori
694752d5b9 Add hidden API to return "Uploading" bit value from SDP record's MapSupportedFeatures.
Bug: 111614861
Test: tested w/ KitchenSink App
Change-Id: I43895183d7b315f57257e1d2045f17dedcb0cfcd
2018-09-25 21:39:31 +00:00
Hall Liu
52a8fdb7bd Merge "Add the EMBMS group call API" 2018-09-25 20:38:23 +00:00
Calin Juravle
346cf7843f Update the reference profile from .dm files only during installs
In order to speed up first boot time we only create the current profile
and do not update the content of the reference profile. A system image
should already be configured with the right profile keys and the
profiles for the speed-profile prebuilds should already be copied (that's
done in #performDexOptUpgrade).

Test: manual (install apps and splits, take OTA)
Bug: 114046578

(cherry picked from commit 5c9a0085a3)

Merged-In: I99db76684430b929c52634c25b457e874648e205
Change-Id: I99db76684430b929c52634c25b457e874648e205
2018-09-25 13:27:25 -07:00
Hall Liu
cb46f9eeba Add intdef for Telephony network type constants
Change-Id: Id212f5009ff2d57344dd747c1837ad9ff1546e31
Fixes: 116592397
Test: compiles
2018-09-25 11:21:30 -07: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
Treehugger Robot
d7fe73d3b3 Merge "Reduce visibility on PackageDexUsage methods." 2018-09-25 11:55:51 +00:00
Treehugger Robot
08b2412696 Merge "Fix minSdkVersion for test." 2018-09-25 11:37:23 +00:00
Alan Stokes
eb1b41f8e1 Fix minSdkVersion for test.
P is 28 not 27, and the test requires P.

Test: atest DexLoggerIntegrationTests
Change-Id: Ib83ec92bf5d7e791bac90331b5dcc3c4b826a4fd
2018-09-25 10:28:52 +01:00
Alan Stokes
58aea515af Reduce visibility on PackageDexUsage methods.
Not a big win, but it makes it clearer that the data is never directly
changed by PackageManager etc.  (We could extract the two nested
classes and then PackageDexUsage wouldn't need to be public at all.)

Test: Still builds.
Test: atest services/tests/servicestests/src/com/android/server/pm/dex

Change-Id: I0a5c0bff473a03178f730e354a2f60694729ba10
2018-09-25 10:04:07 +01:00
Adam Vartanian
9da9b33cc2 Merge "Inline two short methods from Conscrypt" 2018-09-25 08:43:59 +00:00
Kikkawa Shohei
638d11e0bb Show "Call Blocking disabled" notification always when emergency call
Currently "Call Blocking disabled" notification is shown only when any
setting of "Enhanced Blocked number" is enabled, and it's not shown even
if only "blocked number" is enabled.

This patch adds new CarrierConfig key to show "Call Blocking disabled"
notification always when "Enhanced Blocked number" is enabled and
making emergency call.

Test: manual - Verified behavior about Block numbers settings
Test: auto - Passed BlockedNumberProviderTest
Bug: 115697577
Change-Id: I2281c21992928037ea38227b7476adc76b6755e8
2018-09-25 14:18:55 +09:00
Nan Zhang
2be3da34e7 Merge "Add comments for offline-sdk-referenceonly docs" 2018-09-25 03:03:52 +00: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
Tyler Gunn
108349f8d6 Merge "Add support for network identified emergency calls." 2018-09-24 22:50:50 +00: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
Treehugger Robot
4a2dd10d83 Merge "Fix clang-tidy performance warnings in frameworks/base." 2018-09-24 18:34:42 +00:00
Chih-Hung Hsieh
6b3fac2945 Fix clang-tidy performance warnings in frameworks/base.
* Use more efficient overloaded string methods.

Bug: 30411878
Test: build with WITH_TIDY=1
Change-Id: Ia387e61770e1e7211280ed028ef0eef6e632a1d2
2018-09-24 16:29:26 +00:00
Adam Vartanian
54148c0e57 Inline two short methods from Conscrypt
We're trying to reduce unnecessary direct dependencies on Conscrypt.
These two methods are simple and the implementations can't change, so
they're good candidates for inlining directly instead of depending on
the Conscrypt implementation.

Bug: 110404540
Test: atest NetworkSecurityConfigTests (same failures pre/post)
Change-Id: I303d955e3f49885326fe75f451c06a52af745053
2018-09-24 15:34:13 +01:00
Paul Duffin
f7190b65ab Merge "Add serialization methods to whitelist not light greylist" 2018-09-24 11:02:43 +00:00
vichang
0753bca090 Merge "Expose android.icu.text.Bidi API" 2018-09-24 09:56:32 +00:00
Treehugger Robot
41a6efb488 Merge "Enable excluded-input-devices settings for vendor" 2018-09-24 05:43:27 +00:00
Treehugger Robot
0af2cf259b Merge "Frameworks: Remove AsyncTask from preloaded-classes" 2018-09-22 00:29:38 +00:00
Pengquan Meng
2577e1cf8e Merge "Update network selection API" 2018-09-21 21:20:57 +00:00
Jeffrey Vander Stoep
f8529dc891 Merge "Add ConnectivityManager.getConnectionOwnerUid()" 2018-09-21 21:04:20 +00:00
Pengquan Meng
0cecdf70db Update network selection API
Change the manual network selection api in TelephonyManager to support
the OperatorInfo.

Bug: 115401728
Test: manual test
Merged-In: I43dee55ce117873b699cb98c6eb6d41f5dee24ea
Change-Id: I43dee55ce117873b699cb98c6eb6d41f5dee24ea
2018-09-21 10:08:14 -07:00
Andreas Gampe
3238164883 Frameworks: Remove AsyncTask from preloaded-classes
Bug: 113624968
Test: m
Change-Id: I77be78138f13fdc6d3a26aea3f59d01ef0e745e8
2018-09-21 10:05:43 -07:00
Tyler Gunn
5bd90853a5 Add support for network identified emergency calls.
Add support for the IMS call profile to indicate that a call is an
emergency call.
Add supporting connection and call properties so that this can be
propagated to Telecom and ultimately the Dialer app.
Add System API to determine if the device is in a network IDed or dialed
emergency call (used in Telephony).

Test: Manual test using test intents and ecclist property.
Test: Added new telecom unit tests.
Bug: 77565333
Change-Id: I769e7b5000b10662c08fe53c91ef99edc685d2b1
2018-09-21 09:37:07 -07:00
Paul Duffin
e9622a3d3a Add serialization methods to whitelist not light greylist
Checked the contents of the hiddenapi lists before and after the change
and the methods were definitely moved from light greylist to the
whitelist.

Flashed the device and checked the log and did not see anything out of
the ordinary.

Test: frameworks/base/tools/hiddenapi/generate_hiddenapi_lists_test.py
Change-Id: I9b4b2426251e99495f65ae02a3c2c32ce6966625
2018-09-21 11:05:06 +01:00
Takayuki Hoshi
194170e7f7 Merge "Allocate new native handle to store sidebandStream" 2018-09-21 06:24:21 +00:00
Jeff Vander Stoep
0ac2c0945b Add ConnectivityManager.getConnectionOwnerUid()
Allow VPN apps to lookup the UID owner of a network connection.

Requires specifying the:
 - IP address and port for both the source and destination of a TCP
   connection.
 - IP address and port for either source and destination or just
   source for a UDP connection.
Only TCP and UDP protocols are supported. Only connections for UIDs
that apply to the calling VPN app will be resolved. This is intended
to replace direct app access to /proc/net/{tcp,tcp6,udp,udp6}.

The implementation uses netlink inet_diag sockets[1] to perform
the lookup on TCP sockets as well as UDP sockets when supported
(kernel has CONFIG_INET_UDP_DIAG=y).

[1] http://man7.org/linux/man-pages/man7/sock_diag.7.html

Bug: 9496886
Bug: 109758967
Test: atest HostsideVpnTests
Test: atest InetDiagSocketTest on Taimen with CONFIG_INET_UDP_DIAG
    and on Sailfish without CONFIG_INET_UDP_DIAG.
Change-Id: I2bbc7072dd091e2e653dadf6dc05024c04180f34
2018-09-21 06:16:09 +00:00
Treehugger Robot
be42bd86f7 Merge "DO NOT MERGE: Move AM/WM unit tests out of FrameworksServicesTests to WmTests" 2018-09-21 04:18:30 +00:00
Treehugger Robot
824f940195 Merge "Statsd atoms: restrict OEM fields 100000-199999" 2018-09-21 03:00:33 +00:00
Tadashi G. Takaoka
dee5a4dc2a DO NOT MERGE: Move AM/WM unit tests out of FrameworksServicesTests to WmTests
Test: All presubmit and non-flaky tests pass
    129 com.android.server.am
    176 com.android.server.wm
     32 com.android.server.policy
    $ tradefed.sh run commandAndExit WmTests \
        --include-filter com.android.server.am. \
        --include-annotation android.platform.test.annotations.Presubmit \
        --exclude-annotation android.support.test.filters.FlakyTest
    $ tradefed.sh run commandAndExit WmTests \
        --include-filter com.android.server.wm. \
        --include-annotation android.platform.test.annotations.Presubmit \
        --exclude-annotation android.support.test.filters.FlakyTest
    $ tradefed.sh run commandAndExit WmTests \
        --include-filter com.android.server.policy. \
        --include-annotation android.platform.test.annotations.Presubmit \
        --exclude-annotation android.support.test.filters.FlakyTest
Test: No AM/WM unit test in FrameworksServicesTests
    $ tradefed.sh run commandAndExit FrameworksServicesTests \
        --include-filter com.android.server.am.
    $ tradefed.sh run commandAndExit FrameworksServicesTests \
        --include-filter com.android.server.wm.
    $ tradefed.sh run commandAndExit FrameworksServicesTests \
        --include-filter com.android.server.policy.
Bug: 113800711

Change-Id: I01ab256aabf7e1f1b513fe3b92140f6936c2d649
2018-09-21 11:42:15 +09:00
Hall Liu
833a6276ed Merge "Add a new carrier config that supports no-reply timer of CFNRy" 2018-09-21 00:10:36 +00:00
Hall Liu
5405d09204 Merge "Propagates voice call radio technology to connection" 2018-09-20 22:16:50 +00:00
fionaxu
873dccbd6a expose getIsimDomain to systemAPI
This is required for carrier apps to get Imsi domain name as part of
request URI.

Bug: 115884625
Test: telephony unit test
Change-Id: Iad405dc2b2f182039a828e4a4709d273579a8273
2018-09-20 14:33:55 -07:00
Treehugger Robot
9dc1900ea9 Merge "Revision of CallRedirectionService API Review" 2018-09-20 20:16:36 +00:00
Tianjie Xu
aff3248507 Merge "Remove the metrics report in recovery system" 2018-09-20 17:39:36 +00:00
Victor Chang
14c4a6ecce Expose android.icu.text.Bidi API
- All API methods has coverage by existing CTS

Bug: 110093760
Test: m api-stubs-docs-update-current-api droid cts docs
Change-Id: Ifcd1b8c2d93393dd21c5c9a6a2f2a58c76854975
2018-09-20 17:47:46 +01:00