374762 Commits

Author SHA1 Message Date
Remi NGUYEN VAN
80f3ddca8a Merge "Add varargs methods to build DhcpServingParams" 2018-08-28 08:08:07 +00:00
Remi NGUYEN VAN
b0762eb3db Ignore DHCP packet sent from non-68 client port
This differs from previous behavior where dnsmasq would reply to port 68
if the client had no configured address (ciaddr empty in request), or
send replies to the client port if the request ciaddr matched the
assigned lease.
Not all DHCP servers preserve this behavior, and there is no good known
use-case for it. Not replying to such packets is less error-prone and
closer to the standard.

Bug: b/109584964
Test: Added test in DhcpServerTest.py passes
Change-Id: I88d467336cc4f4e4c9498c3787ec22fdef5e1cdd
2018-08-28 13:57:40 +09:00
Erik Kline
f4fa982339 Remove ResolveUtil from frameworks/base callers
Use the Private DNS bypass logic that was moved into Network.

Once all callers of ResolvUtil are updated to use this interface
ResolvUtil can be deleted.

Test: as follows
    - built, flashed, booted
    - runtest frameworks-net passes
    - connection to captive portal network detects portal correctly
      and the login activity functions as expected

Bug: 64133961
Bug: 72345192
Bug: 73872000
Bug: 78548486

Change-Id: If11ef2b5ffdc729f8449cf18dccd5f1eccbc51e6
2018-08-28 12:59:21 +09:00
Remi NGUYEN VAN
a13007ad0f Add DhcpServer
This first version can serve discover/request/release, although there
are some small behavior changes with current implementation which will
be addressed later.

Also removes final modifiers on start() and stop() in FdEventsReader, to
allow mocking the methods in tests with the current mockito lib.

Test: Added tests pass, manual: flashed a device using the server
Change-Id: I025366ff7d51c4ba31152af50f3dd2b5e280a54d
2018-08-28 12:50:47 +09:00
Treehugger Robot
afa1c743be Merge "Add system_server to system group only if per_app_memcg is true" 2018-08-28 03:46:04 +00:00
Minchan Kim
696873ea17 Add system_server to system group only if per_app_memcg is true
P18 or other high-performance devices shouldn't use per-memcg so
it was disabled on those devices[1]. However, we didn't turn off
for system_server memcg so those devices still have two seperate
LRU groups which would have less efficient memory reclaim.

Therefore, this patch makes memcg use for system_server only if
per_app_memcg is enabled.

[1] https://googleplex-android-review.git.corp.google.com/c/platform/system/core/+/4178592

Bug: 110858093
Test: confirm via cat /dev/memcg/system/tasks is none
Change-Id: Ic0e3157bf8ff5de69767797b5508946ca3efeb68
Merged-In: Ic0e3157bf8ff5de69767797b5508946ca3efeb68
Signed-off-by: Minchan Kim <minchan@google.com>
(cherry picked from commit 5fa8af2b10d24fb6c08099d258bf887baf68ffb0)
2018-08-28 01:45:11 +00:00
Jack Yu
4d21a4035d Added access networks manager
Added access networks manager to manage qualified networks
for data connection.

Test: Manual
Bug: 73659459
Change-Id: I7f65a875f37d5472193ec7740437dffb9ecdb94a
2018-08-27 17:07:31 -07:00
Sumit Das
c1a6ebcd7d IMS: Support Robocall Feature For MT VOLTE Calls
-Added a new call fail error code for user marked unwanted calls.
-Updated system-current.txt file to replect the modified API

Bug: 110976451
Change-Id: I7bbc45a39d637f93127097e8b27981c9519fe0e7
CRs-Fixed: 2226444
2018-08-27 23:23:59 +00:00
Sumit Das
beec8ad586 Avoid WiFi to Cellular silent redial when roaming
-Adding a new call fail reason code to notify user that CSFB option
  is not available in CS roaming network.

Bug: 78154720
Change-Id: I5fe8c0ed7460e164ac79f851b96ca0f7303b093a
CRs-Fixed: 2226273
2018-08-27 23:23:39 +00:00
Siarhei Vishniakou
0b607447b6 Fallback BUTTON_MODE to HOME
Currently, BUTTON_MODE falls back to MENU.
It is not clear which functionality relies on that. However, many
joysticks currently map their "branded" button, for example, the "XBOX"
key on the Xbox joystick, and "PS" key on the playstation joystick, to
the BUTTON_MODE. On other joysticks, the same button is mapped to
"HOME". So it would make sense to have this button to fall back to HOME
in order to make the behaviour consistent.

Also, remap the "XBOX" button on the Xbox controller to "BUTTON_MODE".
This would give apps the chance to intercept this key and actually use
it, instead of limiting it to the system.

Bug: 37115804
Bug: 77803694
Test: Made a test app to dump out joystick events in response to
dispatchKeyEvent. Then either returned true or false to ensure that the
fallback happens. If returning true, the app has handled the event, and
HOME is not dispatched. If returning false, the app does not care about
the event. Therefore, HOME is generated and the phone goes to home
screen (so the app gets closed).

Change-Id: I023620551f52d34638303db60f8a4ca37f06d4d8
Merged-In: I023620551f52d34638303db60f8a4ca37f06d4d8
2018-08-27 15:53:33 -07:00
Siarhei Vishniakou
bfb5b8b03e Remap PS key to BUTTON_MODE
In an earlier commit, ag/4071802, (Change-Id:
I33e922a2c52582f44d65f20024d7dca1f9d05a5e), this particular file was
overlooked.
Quick fix here to make everything consistent. We will add the other
variants of these devices in the future.

Test: partial cherry-pick from Sony CL on aosp
Bug: 79881694
Change-Id: I8ab46fde8650724464b1e799cd948682c56e5b52
Merged-In: I8ab46fde8650724464b1e799cd948682c56e5b52
2018-08-27 15:51:48 -07:00
sqian
c6cb9ca941 Deprecate some system apis in TelephonyManager
Discussed and proposed in https://docs.google.com/spreadsheets/d/1OJ6EXJ-Zys21mZ1BHgJeWkcfLq0pPxBR765r46ck80U/edit#gid=0

Bug: 62346128
Test: compile
Change-Id: Ied111e4fe39cadaab738beca0a1c0a74eb27b01e
Merged-In: Ied111e4fe39cadaab738beca0a1c0a74eb27b01e
(cherry picked from commit f8f3e97cc55c08f23e913ea8f1c44748bf4ec0ed)
2018-08-27 15:06:22 -07:00
David Brazdil
ac0ddfd9c5 Merge "Support whitelist entries from class2greylist" 2018-08-27 21:41:04 +00:00
Jack Yu
6d94f19b54 Merge "Fix to read Tethering APN data terminated by empty parameters correctly" 2018-08-27 21:04:56 +00:00
Joel Fernandes (Google)
299488d7c1 Rename map names in read_mapinfo
ART is removing dependency on ashmem for naming maps. Due to this, the
naming of the mappings have changed. Rename them in the debug info so
that it is working.

Also remove "/dev/ashmem/libc malloc", its now "anon:libc malloc" which
is already tested earlier in the code.

Bug: 111903542
Change-Id: I5071384f87701af208d6471c66ba425ccbda22ec
Signed-off-by: Joel Fernandes (Google) <joelaf@google.com>
Signed-off-by: Joel Fernandes <joelaf@google.com>
2018-08-27 17:39:55 +00:00
Chih-hung Hsieh
78755a8c97 Merge "Fix errors in LOG_FATAL_IF arguments." 2018-08-27 17:33:07 +00:00
Treehugger Robot
a3a0c28d15 Merge "PackageManager: Add "-a" to list packages" 2018-08-27 16:26:07 +00:00
Chih-hung Hsieh
88e452bfe6 Merge "Use multiple patterns and/or emails in per-file syntax." 2018-08-27 16:25:01 +00:00
Treehugger Robot
faac4ad153 Merge "Use multiple patterns and/or emails in per-file syntax." 2018-08-27 08:34:46 +00:00
Chih-hung Hsieh
1d4cb7b380 Merge "Use multiple patterns and/or emails in per-file syntax." 2018-08-27 07:27:44 +00:00
Chih-hung Hsieh
5dfb67a24a Merge "Use multiple patterns and emails in per-file syntax." 2018-08-27 07:27:27 +00:00
Remi NGUYEN VAN
a758720394 Add varargs methods to build DhcpServingParams
In common use-cases, only one gateway or DNS server may be set, so the
added methods make it easier for clients to build the parameters.

Bug: b/109584964
Test: runtest --no-hidden-api-checks frameworks-net
Change-Id: Ib54bc60a54ad4ef0605baea62d87b9f14caf8aa7
2018-08-27 10:57:14 +09:00
Andreas Gampe
4559d841c8 PackageManager: Add "-a" to list packages
Add an option to list all known packages.

Bug: 80284247
Test: m
Test: manual
Merged-In: I5890d4e7431417beeaa278cf8f3ce906eac39e23
Change-Id: I5890d4e7431417beeaa278cf8f3ce906eac39e23
2018-08-25 09:13:30 -07:00
Makoto Onuki
7a8e363c0b Merge "Fix OWNERS (change google.com to android.com)" 2018-08-25 00:23:16 +00:00
Treehugger Robot
ec67984561 Merge "Add PhoneCapabilityChanged in phone state listener" 2018-08-24 23:26:08 +00:00
Meng Wang
3284e35061 Expose KEY_CARRIER_DEFAULT_WFC_IMS_{ROAMING_,}MODE_INT
Bug: 112867975
Test: make
Change-Id: I5d02d35e34f6030339d67e217ac224eab994af87
2018-08-24 15:55:31 -07:00
Malcolm Chen
5ee5c14ecb Add PhoneCapabilityChanged in phone state listener
Add a new hidden event PhoneCapabilityChanged that can be
listned to know phone capability has changed.

Bug: 92796390
Test: build
Change-Id: I12ccde1a1c4257ac50c2cfa73d2d5b58dd7e1518
Merged-In: I12ccde1a1c4257ac50c2cfa73d2d5b58dd7e1518
2018-08-24 15:39:01 -07:00
Greg Kaiser
9d10637e01 Merge changes Ie072511b,I6424f90c
* changes:
  TreeInfo: Make ~ErrorHandler() virtual
  RenderThread: Make ~IFrameCallback() virtual
2018-08-24 22:23:02 +00:00
Makoto Onuki
1fda56bbda Fix OWNERS (change google.com to android.com)
Bug: N/A
Test: N/A
Change-Id: I9a9eecfff1a72d7da55be0df73f29985b19c1e38
2018-08-24 14:58:42 -07:00
Makoto Onuki
7e54042f9c Merge "Actually make OWNERS in sync with the internal version" 2018-08-24 21:56:34 +00:00
Tyler Gunn
3b34781f84 Add equality method for PhoneAccount.
Checks for equality between two PhoneAccounts, not taking into account
the icon, which cannot be compared with equality.

Test: Manual as part of telephony account registry updates.
Test: Added new unit tests to test equality.
Bug: 112884689
Change-Id: I0129954b5c124e349b82fcc91604fdccf0bad089
2018-08-24 14:17:05 -07:00
Cassie
6d0a571dea Move SECRET_CODE_ACTION from Telephony.Sms.Intents to TelephonyManager.
Bug: 112440728
Test: Telephony
Change-Id: If030a6b519b6a8b8b92c570e77a458fd23cdbb68
2018-08-24 13:58:25 -07:00
Treehugger Robot
7113ec2cb4 Merge "dump package name" 2018-08-24 20:50:44 +00:00
Makoto Onuki
83c1a68491 Actually make OWNERS in sync with the internal version
Bug: N/A
Test: N/A
Change-Id: Idc1dcc7753a5cf731475ae0f8f01ccd54ac0e3b3
2018-08-24 12:47:20 -07:00
Todd Kennedy
895e19edf0 dump package name
Test: aapt2 dump packagename foo.apk bar.apk
Bug: 113105112
Change-Id: Ibea429adc3a2a890be10548824583addc59ad42d
Merged-In: Ibea429adc3a2a890be10548824583addc59ad42d
2018-08-24 19:29:22 +00:00
Chih-Hung Hsieh
2caaf9bbeb Use multiple patterns and/or emails in per-file syntax.
* Remove old owner fkupolov@google.com

Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: Iead25e8ad986dd0957492d55ecf24a565f339c67
2018-08-24 11:56:48 -07:00
Chih-hung Hsieh
62d0edc6ef Merge "Use multiple patterns and emails in per-file syntax." 2018-08-24 18:52:43 +00:00
Makoto Onuki
aea74ff62a Merge "Update OWNERS for database code" 2018-08-24 16:20:55 +00:00
Greg Kaiser
174b50fa50 TreeInfo: Make ~ErrorHandler() virtual
ErrorHandler has a pure virtual function, so we also make its
destructor virtual, to assure any children classes will get
properly destructed.

Test: TreeHugger
Change-Id: Ie072511b450d507f8764b0888d232ffac8f6d6f5
2018-08-24 06:10:18 -07:00
Neil Fuller
69a13aded0 Merge "Track rename of org.kxml to com.android.org.kxml 2" 2018-08-24 11:53:05 +00:00
Treehugger Robot
18c144cf62 Merge "IpClient: fix in InitialConfiguration validation." 2018-08-24 09:18:38 +00:00
Treehugger Robot
7b7e05459f Merge "Fix typo in IpConfiguration comment" 2018-08-24 03:43:38 +00:00
Remi NGUYEN VAN
e01b4ce6c7 Merge changes I2cea553a,Id8d3dcf6,I19e68e88,I35598935,Idd7dc369, ...
* changes:
  Add a SharedLog method to log errors w/ stacktrace
  Add DhcpServingParams
  Add fields to DHCP packets for server use-case
  Add util to add an ARP table entry
  Add DHCP utils extracted from DhcpClient
  Add DhcpLeaseRepository
2018-08-24 03:09:55 +00:00
Treehugger Robot
2ef6338351 Merge "Add more tracing for obtainStyledAttributes" 2018-08-24 00:11:50 +00:00
Greg Kaiser
a95435b836 RenderThread: Make ~IFrameCallback() virtual
IFrameCallback has a pure virtual method, but its destructor was
non-virtual.  While CanvasContext, which inherits from
IFrameCallback, declares its own destructor virtual, this is not
sufficient when accessing via an IFrameCallback pointer.

We fix this by making the base destructor virtual.

Test: Treehugger
Change-Id: I6424f90c16caea417b5f80b60d76a7ca7c7ef97c
2018-08-23 17:07:56 -07:00
Nathan Harold
713eef404e Merge "Add Conversion from CellIdentity to CellLocation" 2018-08-23 23:01:23 +00:00
Chih-Hung Hsieh
e5657128e2 Use multiple emails in per-file syntax.
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: I16349f12fa566ec0772b4744aa33e65b614d054b
2018-08-23 16:00:42 -07:00
Nan Zhang
a17beeb779 [java9] Convert hiddenapi-list target to Metalava
This blocks how we try java9 for droiddoc since "hiddenapi-lists-docs"
targets depends on libcore sources. So migrate this target to Metalava.

Test: m -j hiddenapi-lists-docs
Bug: b/78245848
Change-Id: Iae47d351d974e33490c3a1e9bb9f0f5d15eedfaf
Merged-In: Iae47d351d974e33490c3a1e9bb9f0f5d15eedfaf
2018-08-23 15:35:33 -07:00
Chih-Hung Hsieh
6a6fde006f Use multiple patterns and/or emails in per-file syntax.
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: Ib6c033d1306c2b1a8d6b021e87d53ba9dedfdae5
2018-08-23 15:16:55 -07:00
Chih-Hung Hsieh
f690aebc09 Use multiple patterns and emails in per-file syntax.
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: I1de13d357c4bcc51fd75d0df6f9bc994dfd17efb
2018-08-23 15:11:24 -07:00