374644 Commits

Author SHA1 Message Date
Remi NGUYEN VAN
eca5b4e753 Add DhcpLeaseRepository
This is a first component to build the new DHCP server.

Test: added tests pass
Bug: b/109584964
Change-Id: I5657d89c3010a23e9289ac827bf78381477d1355
2018-08-23 15:55:39 +09:00
Jack Yu
5831d309fa Merge "Fixed java doc error" 2018-08-23 00:23:54 +00:00
Jack Yu
a219efb6da Fixed java doc error
Test: Build
Bug: 111774203
Change-Id: Icced6451465d0a4e5c2a9eaf8203d3456a83ab08
2018-08-22 17:19:44 -07:00
Sean Kelley
4d3c17862c Add EXTRA_SKIP_CALL_FILTERING PhoneAccount extra
This adds a new @hide extra to PhoneAccount which will allow
TelecomService to skip call filtering on PhoneAccounts which set it to
true. This will be useful to allow devices like Wear which receive
bridged calls that have already undergone call filtering to avoid doing
it again.

Bug: 65223222
Change-Id: I5b9992735a8cc29c70282daf5c6e285bfc8a4217
Merged-In: I5b9992735a8cc29c70282daf5c6e285bfc8a4217
2018-08-23 00:01:51 +00:00
Jack Yu
2947e54c3d Merge "Added a new carrier config for data connection failed radio restart" 2018-08-22 23:42:36 +00:00
Jack Yu
3399f3644d Added a new carrier config for data connection failed radio restart
Added a new carrier config that can trigger modem restart when
receiving specific setup data fail cause code.

Test: Telephony sanity tests
Bug: 111774203
Change-Id: I39d648117f778a4548a3d50e624dbd841956c6cc
2018-08-22 14:16:47 -07:00
Jack Yu
63de9eabec Merge "Added qualified networks services" 2018-08-22 20:18:11 +00:00
Tyler Gunn
a6d6bf816b Merge "Update BlockedNumberContract to indicate why a call was blocked." 2018-08-22 20:12:04 +00:00
Makoto Onuki
5b3c10cb28 Update OWNERS for database code
Test: N/A

Change-Id: If657f1ac87d9a9e77162816c7ac6abb719b834d4
Merged-in: If657f1ac87d9a9e77162816c7ac6abb719b834d4
2018-08-22 15:43:13 -04:00
Mathew Inwood
29f955559a Merge "Add maxTargetSdk to @UnsupportedAppUsage annotation." 2018-08-22 14:14:25 +00:00
David Brazdil
473654c377 Merge "Greylist requested hidden API" 2018-08-22 09:14:05 +00:00
Mathew Inwood
d991a40892 Add maxTargetSdk to @UnsupportedAppUsage annotation.
This will be used by the runtime to limit access to APIs based on their
targetSdkVersion in the manifest.

When adding new maxTargetSdk values to non-SDK interfaces, we use the
SDK version of the latest major (i.e. new letter) release of Android
that has been made public. e.g. while Q is in development, we add new
maxTargetSdk values of 28 (Build.VERSION_CODES.P), even if a P MR1 has
already been released.

We do this because:
- It reduces the number of distinct SDK levels that have to be
  considered and enforced in the runtime.
- Using past releases means that there is always a well established
  value to use.

See go/hidden-api-annotations for more context.

Test: m
Bug: 110868826
Change-Id: Idbe78510acf538ce941a9a61a64fcc0bdc4de38e
2018-08-22 09:54:46 +01:00
Mathew Inwood
30ea09ab75 Merge "Remove @UnsupportedAppUsage annotations from generated code." 2018-08-22 07:01:45 +00:00
Mathew Inwood
df82ab2de2 Merge "Add @UnsupportedAppUsage annotations" 2018-08-22 06:56:20 +00:00
Treehugger Robot
c3824e5d57 Merge "Be the current user to get A2DP proxy" 2018-08-22 05:40:11 +00:00
Luke Huang
0e5b480b1b Merge "Ipfwd-related commands porting" 2018-08-22 02:56:55 +00:00
Jack Yu
a3ab5750a4 Added qualified networks services
Added the qualified networks service, which is a base
class for vendor's qualified network service to extend.
The service is to update frameworks the available
networks for data setup for each APN type.

Test: Manual
Bug: 73659459
Change-Id: I7238aeac8e48be2a17245de77239b242703bcb7e
2018-08-21 17:57:57 -07:00
Hall Liu
b29e727b32 Merge "Pass correct parameters to API sendMultipartTextMessage" 2018-08-21 22:27:27 +00:00
Nathan Harold
7590feeb3a Add Conversion from CellIdentity to CellLocation
Add OO conversion from CellIdentity to CellLocation
in the respective CellIdentity classes.

Bug: 67711865
Test: manual
Change-Id: I4e2dab7de5e5c5fa3bb42a22b14934874560c9fc
2018-08-21 20:44:25 +00:00
Eric Holk
c37457799b Add more tracing for obtainStyledAttributes
Much of the time for View inflation is spent in calls to
obtainStyledAttributes. This change adds more granular tracing of this method so
we can better attribute how inflation time is spent.

Test: manual - looked at systrace for starting an app.

Change-Id: Ib72aef1e8b788ce5a61ba13b57bb4417a263b48c
2018-08-21 13:35:07 -07:00
Mathew Inwood
6d891937a3 Merge "Add @UnsupportedAppUsage annotations" 2018-08-21 17:59:50 +00:00
Nan Zhang
cd060d9808 Add compatibility check for (system|test_)api-stubs-docs
Test: m -j api-stubs-docs
Bug: b/78245848
Change-Id: Ia4a337ac464232ac8a5bd054b940a7d7f1f4e213
2018-08-21 10:39:42 -07:00
Treehugger Robot
041eb388de Merge "Add note for FLAG_CANCEL_CURRENT when stopping scan" 2018-08-21 17:01:00 +00:00
Mathew Inwood
29ec6e6264 Remove @UnsupportedAppUsage annotations from generated code.
Revert back to using the greylist file for this code, since the annotations
would be lost next time the code is regenerated.

Bug: 110868826
Test: m

Merged-In: Ib245a2f1457ced34d5b1a3248161fa4a211ba5e9
Change-Id: Ib245a2f1457ced34d5b1a3248161fa4a211ba5e9
2018-08-21 17:27:35 +01:00
David Brazdil
47451322ee Greylist requested hidden API
Greylist APIs from public requests which used to be off-limits because
the classes were not discovered by Doclava.

Bug: 79904498
Bug: 79902686
Test: N/A
Change-Id: If6678bed5c2da076f97e3de7ff0bc4e7ebaf1965
2018-08-21 16:59:24 +01:00
Pete Gillin
8ab61fb0dd Merge "Stop reading the generated ojluni sources in droiddoc." 2018-08-21 15:14:55 +00:00
Mathew Inwood
a85f4eb6c6 Add @UnsupportedAppUsage annotations
For packages:
  android.widget

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: 110868826
Test: m
Change-Id: Idf7ccc7a850fa984ea16f91cdd70159087274e5c
Merged-In: Ic61019b1df85448a158fc2ba55c326353222c6b9
2018-08-21 16:08:34 +01:00
Mathew Inwood
3b2cd9244d Merge "Code reformatting for upcoming automated code changes." 2018-08-21 14:03:43 +00:00
Neil Fuller
12a0f5ff79 Track rename of org.kxml to com.android.org.kxml 2
Update boot-image-profile.txt to track libcore class renames.

The class renames may have caused a regression in some
performance metrics, though overall boot time was unaffected.

There's no reason not to update the boot-image-profile.txt.

Metrics affected:
SystemServerTiming_StartUsageService_avg
SystemServerTiming_StartJobScheduler_avg
SystemServerTiming_StartJobScheduler_avg

Test: build only
Bug: 111055375
Bug: 112595254
Change-Id: Ia421cb5dfd46cd0661fe51d481e8fca6aa35b60f
2018-08-21 11:00:27 +01:00
Saki Oomori
bf7d22f3cd Fix to read Tethering APN data terminated by empty parameters correctly
If Tethering APN data is terminated by empty parameters(",,,"), the
tethering APN data is not read correctly from configuration file.

Because second argument of split() is not set in ApnSetting.java, these
empty parameters are ignored and an error occurs during parameter length
check later.

To fix this, second argument of split() should be set as "-1".

Bug: 112876857
Test: manual - Checked that Tethering APN data could be read correctly.
Change-Id: I18be0131287dc927334d51522f1c816da83d4add
2018-08-21 08:50:33 +00:00
Mathew Inwood
fc38791616 Merge "Code reformatting for upcoming automated code changes." 2018-08-21 06:45:04 +00:00
Cheney Ni
4b6d6c202b Be the current user to get A2DP proxy
After user switched, Bluetooth process will be restarted to run as
secondary user and some system process like AudioService keeps as
primary user. When BluetoothA2dp did rebind, it still used primary UID
for those system process and caused they could not invoke A2DP APIs.

This changes to use current user ID when rebinding to A2dpService and
system process can get correct A2DP proxy after user switched.

Bug: 112469503
Test: manual
Change-Id: If5ee945b0dcf2044ef2baedd762751fa6ef3d09a
2018-08-21 14:08:00 +08:00
Treehugger Robot
657650eaf0 Merge "Fix double close in NativeLibraryHelper.openApkFd." 2018-08-21 03:01:53 +00:00
Treehugger Robot
fbc0ea6385 Merge "Update owner file" 2018-08-21 01:02:50 +00:00
Fan Zhang
a0145d8dd4 Update owner file
Test: rebuild
Change-Id: I0b4093e986e3a73f4ddbd0a15e4366a9c3496172
2018-08-20 16:16:10 -07:00
Stanley Tng
20fc9a250e Add note for FLAG_CANCEL_CURRENT when stopping scan
Added a note in the Android API documentation for stopScan to make sure
that the flag FLAG_CANCEL_CURRENT is not used when creating the
PendingIntent parameter.

Bug: 77658091
Test: Just compile since not logic is changed
Change-Id: I55f33ae68679310ba4899708a2072a40fea0b3b4
2018-08-20 16:15:58 -07:00
Treehugger Robot
c465fef277 Merge "Convert platformprotosnano and platformprotoslite to Android.bp" 2018-08-20 22:11:21 +00:00
Treehugger Robot
c1fd61b302 Merge "Add IntDef to BluetoothAdapter IO_CAP constants" 2018-08-20 21:43:24 +00:00
Treehugger Robot
c07d4e7118 Merge "Mark symbols as dynamic for shared libraries" 2018-08-20 21:31:28 +00:00
Colin Cross
432141676a Convert platformprotosnano and platformprotoslite to Android.bp
See build/soong/README.md for more information.

Test: m checkbuild
Change-Id: Icfb0001df2e35b5ed799511ff4f2f563d626134b
2018-08-20 13:57:24 -07:00
Tyler Gunn
2b1be6b7c0 Update BlockedNumberContract to indicate why a call was blocked.
Previously only returned true/false. Now returning a status code indicating
why the call was blocked.

Bug: 63966743
Test: Manual, updated unit tests
Change-Id: I65ea52944f592fa789a27c5965a9ebe5e36be221
2018-08-20 13:45:36 -07:00
Pete Gillin
d41686cea5 Stop reading the generated ojluni sources in droiddoc.
These sources contain the result of applying the annotations from
ojluni.jaif to the ojluni sources. Now that ojluni.jaif is empty, this
is a noop, so this change switches back to reading the original
sources.

Bug: 111639530
Test: `make docs` is not affected
Change-Id: Idb98aa4f054a11bfcbcb8a84dd6f357a0a025c49
2018-08-20 17:33:46 +01:00
Treehugger Robot
661facc2f1 Merge "Code reformatting for upcoming automated code changes." 2018-08-20 15:11:28 +00:00
Mathew Inwood
a4be791434 Merge "Add @UnsupportedAppUsage annotations" 2018-08-20 14:42:25 +00:00
Mathew Inwood
597229d681 Merge "Add @UnsupportedAppUsage annotations" 2018-08-20 14:41:52 +00:00
Mathew Inwood
986d790edb Code reformatting for upcoming automated code changes.
Adding annotations to individual fields cannot be easily done when there
are two fields defined in a single statement. Put each definition in a
statement of its own.

See go/UnsupportedAppUsage for more context.

Bug: 110868826
Test: m
Change-Id: If3adee4136f3c406e9cebd9d2845b22b979b8353
2018-08-20 14:55:21 +01:00
Mathew Inwood
e5ad598d11 Add @UnsupportedAppUsage annotations
For packages:
  android.view.textservice
  android.view.textclassifier.logging
  android.view.textclassifier
  android.view.inputmethod
  android.view.autofill
  android.view.accessibility
  android.view

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: 110868826
Test: m
Change-Id: Ie4663ebd4640b2893e575e599582d2c9530da313
Merged-In: I4147b038ed7adf0311ee9918b44766f82a057eaf
2018-08-20 14:52:19 +01:00
Treehugger Robot
44bafe6837 Merge "AdapterService: Only bind HeadsetService in ON state." 2018-08-20 13:32:26 +00:00
Mathew Inwood
c185f08c4a Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal
  com.android.internal.annotations
  com.android.internal.app
  com.android.internal.app.procstats
  com.android.internal.appwidget
  com.android.internal.backup
  com.android.internal.car
  com.android.internal.content
  com.android.internal.inputmethod
  com.android.internal.location
  com.android.internal.logging
  com.android.internal.midi
  com.android.internal.net
  com.android.internal.os
  com.android.internal.policy
  com.android.internal.statusbar
  com.android.internal.telecom
  com.android.internal.telephony.euicc
  com.android.internal.textservice
  com.android.internal.util
  com.android.internal.view
  com.android.internal.view.animation
  com.android.internal.view.menu
  com.android.internal.widget

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: 110868826
Test: m
Change-Id: I1c2954c5a579f073017c1794fd2d200e0a471602
Merged-In: Ib31b52e6957869e5744dadbb35cb4584ef17187f
2018-08-20 14:28:54 +01:00
Makoto Onuki
4893a2026c Merge "Default to FULL synchronous mode for sqlite DBs in system server" 2018-08-20 13:03:26 +00:00