374644 Commits

Author SHA1 Message Date
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
Chih-Hung Hsieh
002a574a7d Use multiple patterns and emails in per-file syntax.
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: Ia3e1df3f5ba8ad29489a017e55890b4dbb23a64d
2018-08-23 14:53:16 -07:00
Chih-Hung Hsieh
8b6749f59d Use multiple patterns and emails in per-file syntax.
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: I6264226e752bd44832b687563d98b43e8584643b
2018-08-23 14:45:49 -07:00
Chih-Hung Hsieh
ff5193f4e3 Use multiple patterns and/or emails in per-file syntax.
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: I8f78e02a634d4aab4996a735369dc1fb51232e89
2018-08-23 14:35:37 -07:00
Chih-Hung Hsieh
5de6996772 Fix errors in LOG_FATAL_IF arguments.
They were found only when compiled with clang-tidy.

Bug: 111850071
Test: build with WITH_TIDY=1
Change-Id: I696b9095dc44e9ed7a8a7a90346804a01de39072
Merged-In: I696b9095dc44e9ed7a8a7a90346804a01de39072
(cherry picked from commit acb1de84434480d80a33499d93df1e14f1f2ed03)
2018-08-23 14:28:15 -07:00
Chih-Hung Hsieh
c8adc53ea2 Use multiple patterns and/or emails in per-file syntax.
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: Ia3fd16d2deb945ae4d0d66541ff824942d5e77f0
2018-08-23 14:27:46 -07:00
Hall Liu
7fe46504be Merge "Add EXTRA_SKIP_CALL_FILTERING PhoneAccount extra" 2018-08-23 20:17:07 +00:00
Blake Lawson
0c9ed965d3 Fix typo in IpConfiguration comment
Bug: NONE
Test: NONE
Change-Id: Ib2ce166532292266da17ec85c16e400afe4f9111
2018-08-23 08:43:07 -07:00
Mathew Inwood
b4936a336b Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal.telephony

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: Ib9bb9c8ba23a3305c8b72600fa5fd3109b4f6ee1
Merged-In: Ia06d9a50c456201dc7ecb960ff1a1563617777a5
2018-08-23 11:47:41 +01:00
Mathew Inwood
0d9029cf3c Merge "Add @UnsupportedAppUsage annotations" 2018-08-23 10:45:36 +00:00
David Brazdil
9b1068cc52 Support whitelist entries from class2greylist
Whitelist used to be the same as all entries in API stubs. This is no
longer true as libcore will generate hidden bridge methods which are
supposed to be whitelisted. CL in build/make calls class2greylist on
each boot classpath module to dump their list and this patch creates
a build rule for the new whitelist.

Bug: 112186571
Test: m appcompat, diff public-list.txt whitelist.txt
Change-Id: I7b3957ea9ed8bebb483609d94b1e6f169f4379dd
2018-08-23 10:35:05 +01:00
Mathew Inwood
a838206e94 Add @UnsupportedAppUsage annotations
For packages:
  android.telephony
  android.telephony.cdma
  android.telephony.data
  android.telephony.euicc
  android.telephony.gsm
  android.telephony.ims
  android.telephony.ims.aidl
  android.telephony.ims.compat
  android.telephony.ims.compat.feature
  android.telephony.ims.compat.stub
  android.telephony.ims.feature
  android.telephony.ims.stub
  android.telephony.mbms
  android.telephony.mbms.vendor

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: I02d900d6d0ec9a6b2172a71911fec61d04e4d235
Merged-In: I22547ac0ed384d74d61cfd51d20c140e392a597f
2018-08-23 09:37:53 +01:00
Remi NGUYEN VAN
bd0cc31c12 Add a SharedLog method to log errors w/ stacktrace
Test: manual: ran code using this method and checked log.
Change-Id: I2cea553ae0dd8a8f2f629718e92aa642c62eb120
2018-08-23 17:29:51 +09:00
Remi NGUYEN VAN
a420b57a6b Add DhcpServingParams
Those parameters will be used to start DhcpServer or update its
configuration.

Test: runtest DhcpServingParamsTest.java
Bug: b/109584964
Change-Id: Id8d3dcf62d66dcb02accffa8d8500e30f07af452
2018-08-23 17:29:48 +09:00
Mathew Inwood
5404443a55 Add myself as OWNERS for UnsupportedAppUsage.java.
Test: N/A
Change-Id: I8cfe22c504844f7f0cc50c81fe718e49fc6705f6
2018-08-23 09:16:57 +01:00
Treehugger Robot
c9b01b87b1 Merge "Add compatibility check for (system|test_)api-stubs-docs" 2018-08-23 07:33:31 +00:00
Remi NGUYEN VAN
1885805aac Add fields to DHCP packets for server use-case
Also add DhcpReleasePacket

Test: runtest -x DhcpPacketTest.java, manual: still obtains IP
Bug: b/109584964
Change-Id: I19e68e8857646555ea56995880979a8a722757d7
2018-08-23 16:03:12 +09:00
Remi NGUYEN VAN
12da4a5efc Add util to add an ARP table entry
This is to be used by the new DhcpServer to add ARP entries with new
addresses before sending unicast responses.

Test: manual: cat /proc/net/arp with implementation based on this
Bug: b/109584964
Change-Id: I3559893583aa3c49b188ad689a41ee2f3e9d9bf3
2018-08-23 16:01:44 +09:00
Remi NGUYEN VAN
c1413d0a27 Add DHCP utils extracted from DhcpClient
DhcpClient can then be migrated to at least DhcpSocketFactory, and
eventually DhcpPacketListener.
These classes will be used to implement the new DhcpServer.

FdEventsReader is PacketReader with generic T instead of byte[], to
allow reading both received payload and source IP from a UDP socket with
Os.recvfrom().

Bug: 109584964
Test: runtest --no-hidden-api-checks frameworks-net
Change-Id: Idd7dc36938748af701b45f50bde76a2592c9bfdd
2018-08-23 16:01:44 +09:00