374660 Commits

Author SHA1 Message Date
Mathew Inwood
5e37d22671 Include dark greylist entries from annotations.
@UnsupportedAppUsage annotations support setting a maxTargetSdk property
on the which results in the member being placed on the dark grey list,
or in future on a P or Q blacklist.

Bug: 114361293
Test: m
Change-Id: I33be28f8afb034a030bdf5cf29d43ba72f50bfcd
2018-09-07 16:52:25 +01:00
David Brazdil
fdd378c594 Merge "Move ApplicationInfo.usesNonSdkApi to private flags" 2018-09-07 09:32:13 +00:00
David Brazdil
3d93d8f323 Merge changes from topic "hiddenapi-dark-grey"
* changes:
  Ignore comment lines in hidden api lists
  Mark hidden API lists .KATI_RESTAT
  Check in P dark greylist, use it for hidden API list generation
2018-09-07 09:31:56 +00:00
Treehugger Robot
4be1419838 Merge "Always enable bandwidth control in Q" 2018-09-07 02:44:10 +00:00
Treehugger Robot
f4fc71f370 Merge "Build android.test.* with java_sdk_library" 2018-09-07 01:01:59 +00:00
Ryan Prichard
c9fc995e0e Merge changes from topic "b113052379-cp-from-pi-dev-p2"
* changes:
  Camera: Documentation update to remove physicalIds
  Camera: Documentation updates for calibration and distortion correction
2018-09-06 20:35:24 +00:00
Treehugger Robot
f9fa9a63bb Merge "Make SubscriptionManager.getSubId public" 2018-09-06 20:06:02 +00:00
Tobias Thierer
0d2f465ed7 Merge "Fix compilation when targeting OpenJDK 9." 2018-09-06 18:12:44 +00:00
Tobias Thierer
8fb3615729 Fix compilation when targeting OpenJDK 9.
CL [1] added a new compilation target that uses internal API
that is now in the jdk.compiler module and is not exported
(it is subject to removal without notice in future versions of
OpenJDK). The fact that these packages are not exported suggests
that a replacement API is already available, but I don't know the
details.

For now, this CL uses javac command-line flags to export these
packages, which fixes compilation. Since the commit message from
CL [1] implies that the entire tool can be removed once bug 77284273
is fixed, a longer-term solution should not be required.

[1] https://android-review.googlesource.com/c/platform/frameworks/base/+/745655
    commit bad89e5e5b171a71e42d7c738ec97a39747e4318

Test: The following breaks before but not after this CL:
  EXPERIMENTAL_USE_OPENJDK9=true make unsupportedappusage-annotation-processor
Bug: 113853502

Change-Id: I24b77af9262891428a01e2eccc18fa3a5c3b3bc9
2018-09-06 17:33:57 +01:00
David Brazdil
fa5e8361c4 Move ApplicationInfo.usesNonSdkApi to private flags
No need to create an extra field for a boolean flag. Move the recently
added ApplicationInfo.usesNonSdkApi to one bit in privateFlags.

This also solves an issue where the field was not propagated during
copying of the data structure.

Bug: 113315999
Test: phone boots
Merged-In: I09f8f39454c013a84893ac304904a4412fc542bf
Change-Id: I09f8f39454c013a84893ac304904a4412fc542bf
(cherry picked from commit a5b4df2a8937fed8cb07fa5b63252d013c808fe7)
2018-09-06 15:31:33 +01:00
David Brazdil
ae88d4e21e Ignore comment lines in hidden api lists
It is sometimes useful to add comments at the top of a source file. This
patch changes hidden API list generation to ignore lines beginning with
a hash.

Note that due to the sorting constraints on hidden API lists, comments
can be only at the top of the files.

Test: m appcompat
Change-Id: I1bc6fd44d1b1f10a5adc45093d7f7ed5a0c5a54f
2018-09-06 15:10:28 +01:00
David Brazdil
081a589ad9 Mark hidden API lists .KATI_RESTAT
Change hidden API list generation build rule so that it checks if
outputs have changed and only commit them when changes have been made.
.KATI_RESTAT instructs ninja to restat the outputs and remove reverse
dependencies when rebuilding dependencies is not needed.

Bug: 113278235
Test: m appcompat
Change-Id: Ic3ec82534a6d79b6a85f865a6e9eb5f0b3f12424
2018-09-06 12:15:11 +01:00
David Brazdil
3cc74c71ef Check in P dark greylist, use it for hidden API list generation
We want to preserve the same semantics as P wrt dark greylist. This will
eventually become the "blacklist for target SDK >= P".

Bug: 113881436
Test: phone boots
Change-Id: I3bb72102e1d054eb0f2cae089ab633a0bc2bb276
2018-09-06 11:10:51 +01:00
Treehugger Robot
08d7a208e8 Merge "Tighten up neighbor timers if IpReachabilityMonitor is in use" 2018-09-06 08:42:05 +00:00
Erik Kline
5b43cea3c8 Tighten up neighbor timers if IpReachabilityMonitor is in use
Currently the kernel sends 3 probes, 1000ms apart when a neighbor is
in NUD_PROBE state (either naturally or artificially moved to that
state when, for example, confirming network configuration following
an AP association/roam).

With this change the device sends 5 probes at 750ms apart.  This
gives the network infrastructure a chance to respond to any of
5 probes instead of any of only 3, at a cost of increasing the total
probe time from 3s to 3.75s.

Future changes may read these values from settings (or from somewhere
else) so that experiments may be conducted or values adjusted based on
other information.

Test: as follows
    - built, flashed, booted
    - runtest frameworks-net passes
    - examinaton of /proc settings on wifi shows updated values
    - connected to a test network, disconnected the backhaul, ran
      "adb shell dumpsys wifi ipclient confirm" while watching
      "adb shell tcpdump -n -i wlan0 -l -vv arp", and observed
      5 ARP who-has ("solicits") ~750ms apart.
Bug: 62476366
Bug: 62845299
Change-Id: Ib805531b08624805bb63703a5b338b9ff48171d4
2018-09-06 11:41:39 +09:00
Treehugger Robot
460a529471 Merge "Add process-lifecycle-owner-initializer to tests." 2018-09-05 23:03:36 +00:00
Treehugger Robot
024387744a Merge "Convert AudioAttribute to Stream correctly" 2018-09-05 22:43:07 +00:00
Treehugger Robot
ef98a2ca1c Merge changes I7f1ef2e8,I498bc261
* changes:
  Convert sysui to bp
  Cleanup trying to move to bp
2018-09-05 22:42:52 +00:00
Alison Cichowlas
b7a11d3748 Add process-lifecycle-owner-initializer to tests.
Bug: 112587252
Bug: 114073652
Test: This is to fix the tests.
Change-Id: I083db4e2eb4efd8d4a914f33ac259aa317e568de
Merged-In: I083db4e2eb4efd8d4a914f33ac259aa317e568de
(cherry picked from commit 5f5ad2e6274f28772d70de0a97301fd17ab7f4d3)
(cherry picked from commit 0757deaad67bfa7d09e210566fdc7638fd8b8e3f)
2018-09-05 13:57:10 -07:00
Jason Monk
2c3a8045cd Convert sysui to bp
Test: tests gonna test, builds gonna build
Change-Id: I7f1ef2e82ce2c74253c57de8d73079dcfe2d2264
Merged-In: I7f1ef2e82ce2c74253c57de8d73079dcfe2d2264
(cherry picked from commit a2f2d82f2698ca4d9fcfad2a94b5b683646c085d)
(cherry picked from commit 1a8ee9d2f9bda161301469488d9a27baf5398233)
(cherry picked from commit 83ce30d807c3621f47f753e75f41d2b887e3ccba)
2018-09-05 13:57:10 -07:00
Jason Monk
4a8305dca6 Cleanup trying to move to bp
- Remove some resources that don't appear to do anything
 - Don't assume resource ids are final, because they aren't when
   compiled as a library

Test: build
Change-Id: I498bc2612d3f47df5f567c18c29e1666431e971c
Merged-In: I498bc2612d3f47df5f567c18c29e1666431e971c
(cherry picked from commit 05dd5671720985c03f35ec476591fb0d8399a018)
(cherry picked from commit a9b2fcad7a1ba9b5a459f46cc40504c7ea4fe590)
(cherry picked from commit 4c9d66e56cc8c324c2dc87f75e6338b7464d6eaf)
2018-09-05 13:57:09 -07:00
Treehugger Robot
0b8f17b3ba Merge "statsd: fix double close." 2018-09-05 18:16:46 +00:00
Mathew Inwood
e5440456ca Merge "Processor for @UnsupportedAppUsage annotations." 2018-09-05 16:13:32 +00:00
Treehugger Robot
6d9bf6a207 Merge changes I02362055,I8ab46fde
* changes:
  Fallback BUTTON_MODE to HOME
  Remap PS key to BUTTON_MODE
2018-09-05 15:48:46 +00:00
Mathew Inwood
bad89e5e5b Processor for @UnsupportedAppUsage annotations.
The processor outputs unsupportedappusage_index.csv, containing source
position info for every@UnsupportedAppUsage annotation processed. It is a
mapping of dex signature to the source postion of the annotation on that
signature. It is used as input for scripts which update the annotations.

We include a META-INF file which causes the compiler to automatically
pick up the annotation processor. Otherwise we would need to explicitly
specify the processor with a -processor flag to javac.

We create a new build target for just the @UnsupportedAppUsage annotation
and the @IntDef annotation (which it depends on) so that the processor can
also depend on that directly.

The processor only runs on a new build target framework-annotation-proc
so that it is not invoked as part of a regular build. This is done so
that we don't slow down peoples builds: Soong does not support annotation
processors when javac sharding is in use. This workaround can be removed
once b/77284273 is fixed.

Test: m framework-annotation-proc
Bug: 113853502

Change-Id: Ie9cd5a90ddf7a51f6035e849703fc39ad9127557
2018-09-05 15:01:21 +01:00
Hugo Benichi
90d5e7b190 Merge changes Ie28e6c80,I3cb9b2ce
* changes:
  ConnectivityService: dumpsys args for dumping networks or requests only.
  ConnectivityService: Sort requests and networks in dumpsys.
2018-09-05 05:54:24 +00:00
Hugo Benichi
1468381dea ConnectivityService: dumpsys args for dumping networks or requests only.
This patch adds two arguments to ConnectivityService dumpsys handler so
that only current networks or only current requests are dumped:

- "adb shell dumpsys connectivity networks" will dump current networks.
- "adb shell dumpsys connectivity requests" will dump current requests.

Bug: none
Test: Compiled, flashed, booted, checked that both new dumpsys args work
      as expected.

Change-Id: Ie28e6c800795eb49f386b609e8222a25e73dfc84
2018-09-05 13:04:12 +09:00
Hugo Benichi
a2a917cc6c ConnectivityService: Sort requests and networks in dumpsys.
This patch adds two utility functions for sorting requests and networks
tracked by ConnectivityService by request id and network id
respectively.

These utility functions are then used to improve the output of
adb shell dumpsys connectivity so that networks and requests are
printed in a more stable fashion.

Bug: none
Test: Compiled, flashed, booted, checked output of adb shell
      dumpsys connectivity.

Change-Id: I3cb9b2ceab64145611a416dcb8c5d512838a2626
2018-09-05 13:03:55 +09:00
Treehugger Robot
4eb385c5da Merge "Use multiple patterns and/or emails in per-file syntax." 2018-09-04 21:43:28 +00:00
Treehugger Robot
ea829b5ba7 Merge "DO NOT MERGE: Reordered imports according to Android style." 2018-09-04 21:34:05 +00:00
Chenbo Feng
52f1e6f663 Always enable bandwidth control in Q
The current bindwith control check the qtaguid module before start. But
since the bandwidth controlling feature is tested by CTS already, all
devices should have either xt_qtaguid or proper eBPF program to support
that by default. So just delete the checking code and always try to turn
it on when device start

Bug: 30950746
Test: The bindwith control start correctly on new devices.
Change-Id: I4cc5ebfbcf89181fcdba3a2711b637722e56ce73
2018-09-04 14:30:44 -07:00
Tri Vo
0f34408378 Merge "Update PageTypeInfoParser to be less restrictive." 2018-09-04 21:12:12 +00:00
Fan Zhang
09c5a1d208 DO NOT MERGE: Reordered imports according to Android style.
Test: rebuild
Change-Id: I7b1ad77039868c6a827478fbbb32e0fd5c9a29cf
2018-09-04 13:57:29 -07:00
Ryan Prichard
3cd4b66ceb Merge changes from topic "b113052379-cp-from-pi-dev-p1"
* changes:
  Camera: hardware level related doc update
  Camera: codegen doc update
2018-09-04 20:20:17 +00:00
Treehugger Robot
680f6e802c Merge "Let SoftInputWindow handle BadTokenException" 2018-09-04 19:08:27 +00:00
Josh Gao
3330d1208f statsd: fix double close.
Previously, fdopen was being called on a file descriptor that was owned
by a unique_fd without releasing. This leads to a double close, since
both fclose and the unique_fd destructor will try to close the fd.

Bug: http://b/113880863
Test: treehugger
Change-Id: I6f6f48d304861b5e4d7efee0d3ad0e30178a95a4
2018-09-04 11:12:04 -07:00
Treehugger Robot
154519eb52 Merge "IMMS should preserve selected IME upon boot" 2018-09-04 17:10:34 +00:00
Brad Ebinger
e310df92db Merge "Only make a subset of Call Barring options visible per carrier" 2018-09-04 16:46:34 +00:00
Treehugger Robot
cc11cf2ef2 Merge "Disable tests failing with ICU62" 2018-09-04 09:21:26 +00:00
Treehugger Robot
8ac363088c Merge "Add DENSITY_600" 2018-09-03 20:25:30 +00:00
Paul Hu
e227eeef1c Merge "PermissionMonitor: Limit preinstalled apps network permissions" 2018-09-03 09:16:52 +00:00
Mathew Inwood
6483ac1af4 Merge "Delete hiddenapi-p-light-greylist." 2018-09-03 08:56:55 +00:00
Seigo Nonaka
9a9a878952 Disable tests failing with ICU62
Bug: 111299224
Bug: 113701305
Test: atest android.text.method.ForwardDeleteTest
Merged-In: Ic872c632a68a31c3fee2916d0ff4fce83b76eff6
Change-Id: Ic872c632a68a31c3fee2916d0ff4fce83b76eff6
(cherry picked from commit dd2c429104cbdefdb09dae34bbf52558a7f893b9)
2018-09-03 08:09:59 +00:00
Remi NGUYEN VAN
c651fcc98c Merge changes I4decffcc,I283e88b1
* changes:
  Ignore DHCP discover and request w/ invalid giaddr
  Send ciaddr in DHCP server ACK if set by client
2018-09-03 02:12:55 +00:00
Remi NGUYEN VAN
eb5f458884 Merge "Minor logging fixes for new DHCP server" 2018-09-03 01:31:11 +00:00
Treehugger Robot
29664b8206 Merge "Fix oldMergedSS is altered to OUT_OF_SERVICE." 2018-09-01 02:02:24 +00:00
Shuo Qian
cec2e41d43 Merge "Deprecate some system apis in TelephonyManager" 2018-08-31 23:43:58 +00:00
Treehugger Robot
11486bfab2 Merge "Call Redirection Surface in Telecom out going call flow" 2018-08-31 23:42:39 +00:00
Treehugger Robot
ba8322d06a Merge changes from topic "from-pi-gsi-3"
* changes:
  Don't apply filter in readback, when there is no scaling
  Set AppStandbyController charging state on init
  Fix TextureView.getBitmap with scale layer transform
2018-08-31 23:38:53 +00:00
sqian
cae1f264b9 Call Redirection Surface in Telecom out going call flow
- Provide a Call Redirection API Surface
- Provide a key "KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING"
  in the CarrierConfigManager
- Create .aidl interfaces for Call Redirection
(CallRedirectionService.aidl, CallRedirectionAdapter.aidl)

Bug: 64959558
Test: Compile
Change-Id: Ic119fa445e66f1275eabf944c77fdc981bc9a2a7
Merged-In: Ic119fa445e66f1275eabf944c77fdc981bc9a2a7
(cherry picked from commit ea8970cd55fa561dbad9579925fee4db469a539b)
2018-08-31 12:59:40 -07:00