Commit Graph

277220 Commits

Author SHA1 Message Date
Paul Duffin
ccb0445027 Prepare for removal of legacy-test from default targets
In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

(cherry picked from 6387604f9e672ece85e07c4bcbd7be396867f06f)

Bug: 30188076
Test: make checkbuild
Merged-In: I13e88297731253420e4e5f5291d503f13a39a156
Change-Id: I58446eb8c45d8ac2bcdbc9fa40d1321e811bdd4b
2017-01-19 09:43:05 +00:00
Treehugger Robot
0ac7232b7c Merge "Eschew unspecified IP addresses for DNS servers" 2017-01-19 09:38:27 +00:00
Erik Kline
fed4194af0 Eschew unspecified IP addresses for DNS servers
Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-wifi passes (though no test covers this code yet)
Bug: 34210527
Change-Id: I2d44445982dfb3221f7b6394daf0479c1fa8a6e1
2017-01-19 17:01:46 +09:00
Tao Bao
9311dbf9e4 Merge "Revert "RecoverySystem: Fix the issue in installPackage()."" 2017-01-19 01:47:10 +00:00
Tao Bao
cc76991f37 Revert "RecoverySystem: Fix the issue in installPackage()."
This reverts commit 9f7a0acd2d.

Bug: 34350643
Bug: 34396955
Test: installPackage() doesn't cause deadlock if it doesn't call
      processPackage() prior to that.
Change-Id: I1da055c86a3326ae341da1b4d5dc79ab4be256fb
2017-01-19 01:31:57 +00:00
Peng Xu
cec2ebf676 Merge "TYPE_DYNAMIC_SENSOR_META should be wake up sensor" 2017-01-19 01:11:49 +00:00
Josh Gao
cfb19e3ac8 Merge changes from topic 'kill_debuggerd'
* changes:
  Switch android.os.Debug to libdebuggerd_client.
  app_process: don't use PR_SET_NO_NEW_PRIVS.
  Remove peercred check from NativeCrashListener.
2017-01-18 23:04:09 +00:00
Treehugger Robot
5fd543ec34 Merge "Update/cleanup Bluetooth Codec strings in Developer Settings" 2017-01-18 20:20:48 +00:00
Pavlin Radoslavov
0e038dec6f Update/cleanup Bluetooth Codec strings in Developer Settings
Misc. fixes and cleanup related to the Bluetooth Codec strings
in Developer Settings:

 * Update the codec name "aptX-HD" -> "aptX HD" to reflect the vendor
   defined writing:
   https://www.aptx.com/aptx-hd
 * Increase some of the "CHAR LIMIT" values for the purpose
   of translation to other languages
 * Update some of the text in the UI (for clarity)
 * Added new string: "Streaming: " that is used in the UI summary

Test: UI visual observation
Bug: b/34188102 b/34206536 b/34209576 b/34210861 b/34207126 b/34211204
Bug: b/34206992 b/34210910 b/34210162 b/34205434 b/34198432 b/34186749
Bug: b/34188141 b/34188657 b/34192932 b/34188655
Change-Id: I9dc609594864b5d29394c49e0bce64416706c81c
2017-01-18 19:03:44 +00:00
Glen Kuhne
c82d1ddaf4 Merge "Unhide WifiConfiguration proxy accessors" 2017-01-18 18:08:36 +00:00
Treehugger Robot
1aa24246cf Merge "Notify user switch event to NetworkController" 2017-01-18 15:32:28 +00:00
Jason Monk
943a52862e Merge "SystemUI: Add NFC tile" 2017-01-18 14:07:53 +00:00
Anas Karbila
f7648f4483 SystemUI: Add NFC tile
This patch adds a tile for QuickSettings
which controls the setting of NFC.

The drawable is from material.io.

Test: Enable and disable NFC using tile

Change-Id: I7dfaf3a4dca0c01d24be397e43ab131eb9885f62
Signed-off-by: Anas Karbila <anaskarbila@aospa.co>
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2017-01-18 12:12:03 +00:00
Paul Duffin
c20518139a Merge "Add legacy-android-test target containing android.test classes" 2017-01-18 11:19:58 +00:00
Narayan Kamath
71b1d50531 Merge "API: Unhide MethodHandles API (java.lang.invoke)." 2017-01-18 09:46:16 +00:00
Treehugger Robot
85f67dc60a Merge "Restore legacy types when registering mobile requests" 2017-01-18 09:34:36 +00:00
Erik Kline
dd8e8911c6 Restore legacy types when registering mobile requests
Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
    - vanilla wifi to mobile tethering (no DUN)
    - tested with DUN by:
        - adding "dun" to the APN type
        - adb shell settings put global tether_dun_required 1
        - verified the bug exists without this fix
Bug: 32163131
Bug: 34364553
Change-Id: Idf1a9a2c8191c40abed29e1789f62aefb83ed1ce
2017-01-18 17:27:31 +09:00
Calin Juravle
b3edbd7432 Merge "Refactor PackageDexOptimizer" 2017-01-18 03:59:20 +00:00
Treehugger Robot
228123dd53 Merge "PackageDexOptimizer: fix typo in log message." 2017-01-18 03:42:47 +00:00
Calin Juravle
bb10525a66 Refactor PackageDexOptimizer
Split performDexoptLI in multiple smaller helpers. This will help in
adding the logic to process secondary dex files.

The goal is to move towards simple logic which can be reused between
compiling the package's code and its secondary dex files.

Test: device boots, packages get compiled in the background job,
      adb shell cmd package compile -m speed|speed-profile packageName

Bug: 32871170

(cherry picked from commit 2d4b6ad7f3)

Change-Id: I802c16ec5c142d89b23c788011ef8f3daf5a9a61
Merged-In: I2d55edf42baa768f990939a82b3d52edf5f68a2c
2017-01-17 18:30:44 -08:00
Jorge Lucangeli Obes
ae9ad65e99 PackageDexOptimizer: fix typo in log message.
'oatDir' is the only token that has a space around the '='. None of the
other tokens in the log message do. Make the log message consistent so
that grepping is easier -- and the log message looks better.

Before:
PackageManager.DexOptimizer: Running dexopt (dex2oat) on:
/system/priv-app/Telecom/Telecom.apk pkg=com.android.server.telecom
isa=arm64 vmSafeMode=false debuggable=false
target-filter=interpret-only oatDir = null sharedLibraries=null

After:
PackageManager.DexOptimizer: Running dexopt (dex2oat) on:
/system/priv-app/Telecom/Telecom.apk pkg=com.android.server.telecom
isa=arm64 vmSafeMode=false debuggable=false
target-filter=interpret-only oatDir=null sharedLibraries=null

Bug: None
Test: Build, flash, grep for log message.

(cherry picked from commit 0f62508236)

Change-Id: Ic14ed7f634f1b36a76ed7b1e658c85078b87b4ad
Merged-In: I84162ec3535e3f83a60a62d40cbaf8e74d2051c6
2017-01-17 18:30:32 -08:00
Jeff Sharkey
32aac7b9c9 Merge "Only measure each UID once in InstallerTest." 2017-01-18 01:11:00 +00:00
Glen Kuhne
6862d2f6c6 Unhide WifiConfiguration proxy accessors
Unhiding HttpProxy accessors in WifiConfiguration.
This change occurs in parrallel with changes that restrict updating of
WifiConfigurations with new or updated proxy info to uids
holding permission OVERRIDE_WIFI_CONFIG, or holding DeviceOwner or
ProfileOwner policies.

Bug: 14669153
Test: None
Change-Id: Id69525cfec152ea52697693f9a3bd6f86019c694
Merged-In: Id69525cfec152ea52697693f9a3bd6f86019c694
2017-01-17 15:33:12 -08:00
Jeff Sharkey
dd0edac92f Only measure each UID once in InstallerTest.
Test: builds, boots
Bug: 34341727
Change-Id: Ic8250b7383f52adf30139ceed02469a9d278dc18
2017-01-17 15:25:35 -07:00
Josh Gao
3ce369601e Switch android.os.Debug to libdebuggerd_client.
Bug: http://b/30705528
Test: m
Change-Id: Iac3860d0e63660b91a4b08075fca8a4a222ac913
2017-01-17 13:55:20 -08:00
Josh Gao
92517e4c03 app_process: don't use PR_SET_NO_NEW_PRIVS.
selinux should provide equivalent protection, and this prevents
transitioning to a helper binary for crash dumping.

Bug: http://b/30705528
Change-Id: I64b05236931d418f268b193418e937ab6b0985e0
2017-01-17 13:55:20 -08:00
Josh Gao
b9eb093c3c Remove peercred check from NativeCrashListener.
crash_dump will be running as the user of the process that crashed. Use
selinux to restrict access instead.

Bug: http://b/30705528
Change-Id: Ief69b16499d9cb56b120d58eca8db511b521a11a
2017-01-17 13:55:20 -08:00
Paul Duffin
2ffc4addb0 Add legacy-android-test target containing android.test classes
In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds a
legacy-android-test target, containing only the android.test
classes, for use by any targets that depend on those classes.

Bug: 30188076
Test: make checkbuild
Change-Id: Ifc0a9a23d4ac3c78428bb9dde38e547e6978ba7e
2017-01-17 20:37:35 +00:00
Ta-wei Yen
68d03b23bb Merge "Add getNetworkSpecifier() and getCarrierConfig()" 2017-01-17 19:38:27 +00:00
Randy Pan
cdad7f334b Merge "Keep WIFI_FEATURE defines in sync with HAL" 2017-01-17 18:10:02 +00:00
Treehugger Robot
751e3af81e Merge "Track libcore change 7d105d591c14afd00f894e8f3483adcbee6e901a" 2017-01-17 17:55:18 +00:00
Narayan Kamath
0ad648f301 API: Unhide MethodHandles API (java.lang.invoke).
Tracks libcore change 58a12375dd5c2dc721f8d0433b5cb11737bc349d.

Test: make docs
Change-Id: I6e35fef1078d3c26a56bcea79eb2a3e993ca8714
2017-01-17 13:33:46 +00:00
Tobias Thierer
a2343a7e78 Merge "API: Update java.util.Date to OpenJDK8u60" 2017-01-17 10:41:36 +00:00
Treehugger Robot
cf59ff79c5 Merge "Delete dead code." 2017-01-17 05:44:58 +00:00
Treehugger Robot
5511f7cfc2 Merge "Move tests added in n-mr2 into new aosp location." 2017-01-17 04:49:08 +00:00
Treehugger Robot
f9a28d7ba4 Merge "Start of UpstreamNetworkMonitor unittests" 2017-01-17 04:38:22 +00:00
Treehugger Robot
6e4fe6b37f Merge "Enable mobile data always on." 2017-01-17 04:15:34 +00:00
Erik Kline
885a9098cf Start of UpstreamNetworkMonitor unittests
Test only the ConnectivityManager request and callback registering
and releasing.  Testing behaviour triggered by activating these
callbacks will be in a separate change.

Test: runtest frameworks-net
Bug: 32163131
Change-Id: Ibfe66bbe2e61d81e8f13ac3b98e000d0d4534efa
2017-01-17 11:08:29 +09:00
Lorenzo Colitti
5d6bf6d2b1 Enable mobile data always on.
Test: has been on in fishfood several months.
Bug: 23113288
Change-Id: I73ba432f619d28dab78e2d865d56aa7e7c5a67f9
2017-01-17 11:07:50 +09:00
Tao Bao
3b2fe9f7b9 Merge "RecoverySystem: Fix the issue in installPackage()." 2017-01-16 18:19:25 +00:00
Treehugger Robot
ba17ea752b Merge "VPN reconnection fails after manually disabling VPN" 2017-01-16 17:51:06 +00:00
Treehugger Robot
dc61ad0ad8 Merge "Make TelephonyManager.getImei a system APIs." 2017-01-16 17:49:59 +00:00
Przemyslaw Szczepaniak
2ad3ce4175 Track libcore change 7d105d591c14afd00f894e8f3483adcbee6e901a
Test: CtsLibcoreTestCases
Bug: 30964930
Change-Id: Ia3cacc2256c5fd84c97eb50d52ebf23d3181a8ba
2017-01-16 17:21:17 +00:00
Martijn Coenen
c5e5442acd Merge "Add nullable parameter to readEmbeddedBuffer." 2017-01-16 14:48:11 +00:00
Erik Kline
e446acf954 Move tests added in n-mr2 into new aosp location.
Test: runtest frameworks-net
Change-Id: I3ca0d7e01a3f31be05d4a1a72a95c7e37a0a567e
2017-01-16 15:24:31 +09:00
Treehugger Robot
8df5bd1028 Merge "Extract UpstreamNetworkMonitor to its own file" 2017-01-16 05:36:06 +00:00
Treehugger Robot
37727596cc Merge "ConnectivityServiceTest: some fixes in CallbackInfo" 2017-01-16 04:52:45 +00:00
Erik Kline
9bba340fd4 Extract UpstreamNetworkMonitor to its own file
Test: as follows:
    - built (bullhead)
    - flashed
    - booted
    - runtest framworks-net passes
Bug: 32163131

Change-Id: I87ff041e008e45065c9722de8130df53684fb2a9
2017-01-16 12:10:18 +09:00
Hugo Benichi
4e1619f034 ConnectivityServiceTest: some fixes in CallbackInfo
- CallbackInfo becomes a static class so that it can be instantiated
  and looked at more easily than before.
- CallbackInfo gains hashCode() because it has equals().
- effectively final field are qualified final
- fixes bug when polling the next callback: poll() on a LinkedBlockingQueue
  returns null when timing out, which was not failing the test cleanly.

Test: ConnectivityServiceTest passes
Bug: 32561414
Change-Id: I64d382a35fe83f21bded98e6906c1ec70a8f1085
2017-01-16 11:15:04 +09:00
Yifan Hong
fe4d257887 Merge "BBinder -> BHwBinder." 2017-01-14 00:49:23 +00:00