Commit Graph

301953 Commits

Author SHA1 Message Date
Abodunrinwa Toki
4cf097cf78 Merge "Introduce TextAssistant for Smart Text Share feature." 2016-11-23 16:29:42 +00:00
Jorim Jaggi
324e1539bc Merge "Only acquire FPM if feature is available" 2016-11-23 15:29:51 +00:00
Jorim Jaggi
241ae10b21 Add explicit method to dismiss Keyguard
The flag is a bit clunky for most cases, and a method is more
clear.

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardTests

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardLockedTests

Test: runtest systemui -c
com.android.systemui.keyguard.DismissCallbackRegistryTest

Bug: 30961403
Bug: 27422134
Change-Id: I39de90c7cfecd99350a74f72cd76418e337f2b79
2016-11-23 16:27:35 +01:00
Jorim Jaggi
a42938e803 Execute app transition when start locking task
This issue always existed but now only became visible because
occluding/unoccluding Keyguard relies on activity transitions.

Test: Have pattern, lock task, unlock without 5 seconds, make sure
activity is not lingering around.
Bug: 32771855

Change-Id: Ib75bf904dd69db64bd64d13d518897ce9cf44394
2016-11-23 14:29:49 +01:00
Michal Karpinski
a20d8bb249 Unhiding strong auth timeout API
Unhiding the API that was previously hidden (in order to ship in MR1).

Bug: 29825955
Change-Id: Ifce73b1917b939e68e9a8dd2cc7379717214b8b7
2016-11-23 12:09:15 +00:00
Michal Karpinski
08be96ec87 Disable DO single user features when clearDeviceOwner() is called
regardless of the amount of users

Bug: 32901196
Bug: 29748723
Change-Id: Ie419b5e496e23656cbe5436942d9aba402bfe68e
2016-11-23 11:42:31 +00:00
TreeHugger Robot
81981fe852 Merge "Fix ConnectivityServiceTest testRequestBenchmark" 2016-11-23 11:24:15 +00:00
Diego Perez
dc3bb324ce Fix tests when running from the command line
When loading classes from the jar file, we can't just use the
URLClassLoader since it can not enumerate files in a jar directory.
Restoring the ModuleClassLoader and making all paths relative to the
system class loader (as opposed to relative to the class location).

Change-Id: Ib3f5d12dd5c964d0ba9cc6c5ec9cb556c989e653
(cherry picked from commit 2a4a6c81f8a103be5c48d8a0605a3e4416e8f7f1)
2016-11-23 11:01:44 +00:00
Jorim Jaggi
3e416cf4a8 Merge "Fix Keyboard flicker" 2016-11-23 10:27:26 +00:00
Sergey Yakovlev
989c44be2c Update Samsung Print Recommendation Plugin (to support Mopria printers)
- Extract common part of MDNSFilterPlugin to common utils, MDNSFilteredDiscovery.java (other vendors can use it too)
- Refactor Samsung Print Recomendation Plugin to use MDNSFilteredDiscovery.java
- Add Mopria devices detection to Samsung Print Recomendation Plugin

*Samsung Print Service Plugin supports Mopria printers since v3.00.161011.

Test: Tested manually. Test app was developed to make sure that Samsung Print Recommendation plugin can find both Samsung and Mopria devices. Additionally MDNSFilterPlugin was tested on HP printers.
Change-Id: Idc0d311171495f879564336370a86f7a8890378b
2016-11-23 13:26:48 +03:00
Jorim Jaggi
3f12426d00 Only acquire FPM if feature is available
Test: Boot non-fp device, observe no wtf
Change-Id: If32b2370413f8bfe1477af52809c76e8c892cafa
Fixes: 32976626
2016-11-23 10:25:48 +00:00
Narayan Kamath
683ed6c356 Merge "PackageManager: Avoid creating encoders for appIds being written /config/sdcardfs" 2016-11-23 10:23:09 +00:00
Narayan Kamath
a83fd30650 Merge "PackageManager: Remove obsolete SCAN_NO_PATHS / SCAN_DEFER_DEX flags." 2016-11-23 10:18:11 +00:00
Narayan Kamath
5b29ecad48 PackageManager: Remove obsolete SCAN_NO_PATHS / SCAN_DEFER_DEX flags.
SCAN_NO_PATHS hasn't been used in the past several years, and was
introduced to deal with ASEC containers, and those are now handled by
DefaultContainerService.

SCAN_DEFER_DEX has been made obsolete by the JIT work we've done in N.

Test: make & boot
Change-Id: Ib2ffa8bd3c31d645a7efc5d78b03ca0774590f07
2016-11-23 10:17:34 +00:00
Narayan Kamath
6d051fc68d PackageManager: Avoid creating encoders for appIds being written /config/sdcardfs
We know they will be ASCII, so use String.getBytes(US-ASCII) which is
much faster than creating a new ICU based CharsetEncoder for UTF-8 every time
we write one of these files (there will be a lot of them).

Test: make + manual.
Change-Id: I8eb62862ea1083e194d3f23ac68bb40aaae5efd5
2016-11-23 10:13:03 +00:00
Hugo Benichi
99c8294ef0 ConnectivityServiceTest: fix testAvoidBadWifiSettings
This patch introduces an assertEventuallyThat helper function in
ConnectivityServiceTest which given a boolean function retries until the
function returns true or until a maximum retry time is reached.

This function is used to fix flakyness of testAvoidBadWifiSetting where
the Message posted by reevaluate() could reach the Handler's
MessageQueue after waitForIdle takes effect, resulting in the test to
fail.

Instead of fixing the flakyness by introdcing hard sleep times,
assertEventuallyThat is used to reduce the overall test time.

With this change the test has been observed to pass with 100% success
rate over 50000 invocations.

Test: $ runtest frameworks-net
Bug: 32561414
Change-Id: Ib20f4656620b119456c2cb1c709a7fe8195fe44d
2016-11-23 18:29:52 +09:00
Hugo Benichi
38be57b438 Fix ConnectivityServiceTest testRequestBenchmark
This patch fixes flakyness of testRequestBenchmark by adjusting time
limit for callback registration from 100ms to 180ms, and time limits for
onAvailable and onLost triggers from 30ms to 40ms.

With these timeouts the test succeeds 100% over 5000 iterations.

When using 150ms for registration timeout, running the test 5000 times
fails 2 times.

When using 30ms for onLost timeout, running the test 5000 times fails
1 times.

In addition, this patch also cleans testRequestBenchmark and uses the
more stable SystemClock.elapsedRealtime() for duration measurements.

Test: $ runtest frameworks-net
Bug: 32561414
Change-Id: I7601b2f1f11f83914f885a74c8a376173eed186b
2016-11-23 18:27:05 +09:00
Jiabin
ef1659f624 TIF: Add support for more linux dvb device path.
Test: Manually verified with usb tuner devices and archer.

Bug: 32330170
Change-Id: I37585d92277d3c61c92728eebc44a65c815e9ecf
2016-11-23 15:18:34 +09:00
Jeff Davidson
373c206278 Merge "Expose TelephonyManager#{set,get}DataEnabled." am: 99d6227782 am: fa8e6c0f5a am: b369ad4b19
am: 1cea0c249d  -s ours

Change-Id: I759166ff02040ac7244b35815de04230773dff5d
2016-11-23 04:21:24 +00:00
Jeff Davidson
1cea0c249d Merge "Expose TelephonyManager#{set,get}DataEnabled." am: 99d6227782 am: fa8e6c0f5a
am: b369ad4b19

Change-Id: I0ed5ac68a7974ade21b1d6aa2279fde179070c0c
2016-11-23 04:14:23 +00:00
Jeff Davidson
b369ad4b19 Merge "Expose TelephonyManager#{set,get}DataEnabled." am: 99d6227782
am: fa8e6c0f5a

Change-Id: I55d2e8ffcf70aad48acdf1fa97da5b2874d26925
2016-11-23 04:06:07 +00:00
Jeff Davidson
fa8e6c0f5a Merge "Expose TelephonyManager#{set,get}DataEnabled."
am: 99d6227782

Change-Id: Iacdd6d802725ab1b45c273ad7c8de7c85c8cb801
2016-11-23 04:01:22 +00:00
Jeff Davidson
99d6227782 Merge "Expose TelephonyManager#{set,get}DataEnabled." 2016-11-23 03:55:27 +00:00
TreeHugger Robot
2ca81f45c4 Merge "Add test for TileUtils." 2016-11-23 03:38:47 +00:00
George Burgess IV
a1963e422b Merge "Fix static analyzer warnings." am: 9c69c41b95 am: 4cfb0f020f am: 6ab25ba5f1
am: cf1a558aed

Change-Id: I4e2608df649dfd3384aadd1f69d88ffc69bf7ea9
2016-11-23 03:05:46 +00:00
George Burgess IV
cf1a558aed Merge "Fix static analyzer warnings." am: 9c69c41b95 am: 4cfb0f020f
am: 6ab25ba5f1

Change-Id: I60b13b493cde64c7d202ba28534bca227f6d4941
2016-11-23 03:01:12 +00:00
George Burgess IV
6ab25ba5f1 Merge "Fix static analyzer warnings." am: 9c69c41b95
am: 4cfb0f020f

Change-Id: I127bbf30a44342e2464a29c7b1793861f3c44931
2016-11-23 02:56:11 +00:00
George Burgess IV
4cfb0f020f Merge "Fix static analyzer warnings."
am: 9c69c41b95

Change-Id: I62b951aa16a714343f155fa3af86f58933212ebb
2016-11-23 02:52:13 +00:00
Treehugger Robot
9c69c41b95 Merge "Fix static analyzer warnings." 2016-11-23 02:45:54 +00:00
sergeyv
da6c8ffcc5 Introduce Bitmap.Config.Hardware with @hide annotation
Test: HardwareBitmapTests
bug:30999911
Change-Id: Iaa0e18842704cb6bcd483c63a095dcb22baaf5e0
2016-11-22 18:28:54 -08:00
Jakub Pawlowski
e3fb0afa96 Merge "Bluetooth: report proper advertiser status on error" am: b509957e62 am: 673c0e5596 am: e8ceb15b51
am: 0debe3c5b7

Change-Id: Iff59148dd5862bf0dcc51112b27ced7e9f76bef6
2016-11-23 02:15:40 +00:00
Jakub Pawlowski
0debe3c5b7 Merge "Bluetooth: report proper advertiser status on error" am: b509957e62 am: 673c0e5596
am: e8ceb15b51

Change-Id: I21eb000be58fd61b238e2401cf266b6f132acc83
2016-11-23 02:08:12 +00:00
Jakub Pawlowski
e8ceb15b51 Merge "Bluetooth: report proper advertiser status on error" am: b509957e62
am: 673c0e5596

Change-Id: Ic91b1c614e9cc71e7d57bd39ac31ec1127f08f65
2016-11-23 02:03:13 +00:00
Jakub Pawlowski
673c0e5596 Merge "Bluetooth: report proper advertiser status on error"
am: b509957e62

Change-Id: I1bb0a029a9044c3931e158c7ef02ffee4cb0f1cd
2016-11-23 01:58:03 +00:00
Treehugger Robot
b509957e62 Merge "Bluetooth: report proper advertiser status on error" 2016-11-23 01:51:52 +00:00
Griff Hazen
51d00d88ed Workaround for javac compilation issue of lambda code
frameworks/base/services/core/java/com/android/server/wm/WindowState.java:601: error: variable w1 might not have been initialized

BUG: 32554459
Change-Id: I939ad4917f0b53d6f3f090ed2643b5e0354c37a3
2016-11-22 17:42:35 -08:00
Jeff Davidson
40db40878e Expose TelephonyManager#{set,get}DataEnabled.
setDataEnabled requires MODIFY_PHONE_STATE or carrier privileges.
getDataEnabled will work with any of the above or
ACCESS_NETWORK_STATE.

Merged-In: I2d5a9df2e55f3f7be1729abefe137c00ae1d6c4e
Test: Exercised APIs from test app, updated and executed CTS tests
Change-Id: I2d5a9df2e55f3f7be1729abefe137c00ae1d6c4e
Fixes: 32644451
2016-11-22 17:28:57 -08:00
Jeff Davidson
64ed1646e6 Merge "Expose TelephonyManager#{set,get}DataEnabled." 2016-11-23 01:23:49 +00:00
Baligh Uddin
b1df48d326 Merge remote-tracking branch 'goog/cw-f-dev' into fix_merger
Bug: 32849428

* goog/cw-f-dev: (98 commits)
  Revert "Catch KeyStoreException for setting profile lock"
  Fix createConfirmDeviceCredentialIntent for wear for CTS.
  Fix default dialog background colour for watch devices.
  Catch KeyStoreException for setting profile lock
  Add cross-links between FINE and COARSE location permissions. bug: 25371600
  Fixed a bug with the emergency affordance in multi user
  Zygote: Additional whitelists for runtime overlay / other static resources.
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Zygote : Block SIGCHLD during fork.
  colors: add missing accent_material_{700,50} resources.
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Zygote : Block SIGCHLD during fork.
  DO NOT MERGE ANYWHERE Revert "DO NOT MERGE ANYWHERE libhwui: make setSurface asynchronous"
  ...

Change-Id: I63468da5bfa21ed9ac5985bbdbf3a61d4c389aa0
2016-11-22 17:19:45 -08:00
TreeHugger Robot
3f5de07e92 Merge "Add visibility table to account manager database." 2016-11-23 00:09:51 +00:00
Fan Zhang
cdbe1d645b Add test for TileUtils.
- Verify it skips non-system apps.
- Verify it parses category correctly.

Bug: 32460089
Test: make RunSettingsLibRoboTests
Change-Id: I743309206e1969dee4b1e62146be64eb4d143614
2016-11-22 15:47:05 -08:00
TreeHugger Robot
1bd3240008 Merge "Fix Skia render node projection to match HWUI" 2016-11-22 23:43:25 +00:00
TreeHugger Robot
5129574825 Merge "Launch ephemeral intent" 2016-11-22 22:53:49 +00:00
Ashutosh Joshi
28b3dcea85 Merge "Deprecate the activity recognition HAL." 2016-11-22 22:53:42 +00:00
TreeHugger Robot
44efac310a Merge "Implement tooltip support in View" 2016-11-22 22:15:46 +00:00
Todd Kennedy
08a04878b0 Require INSTALL_PACKAGES permission
Although it's not technically necessary for the ephemeral installer
to hold the INSTALL_PACKAGES permission, it leads to a pretty
poor experience -- the user has to confirm ephemeral installation --
which is a primary reason for ephemeral apps.

Change-Id: Ic3f947d677964521cd4742f66c1c3fe808c4c55a
Fixes: 33073519
Test: manual; installed packages w/ and w/o INSTALL_PACKAGES and only the apps with INSTALL_PACKAGES were made the installer
2016-11-22 14:07:45 -08:00
Dmitry Dementyev
e5768621de Add visibility table to account manager database.
Bug: https://b.corp.google.com/issues/33046496
Test: unit tests.
Change-Id: I92e94fb2185dbba965a5328048ada59fc2b5512a
2016-11-22 13:58:26 -08:00
Stan Iliev
db45a4bfaf Fix Skia render node projection to match HWUI
Fix Skia render node projection to match HWUI. Port
FrameBuilderTests_projectionReorder test for Skia pipeline.
Add new tests in both HWUI and Skia to cover more projection
use cases.

Test: built and run on angler-eng
Change-Id: Ibf27af211452ae95d595aca7723ea63f48b0b282
2016-11-22 16:38:20 -05:00
Jakub Pawlowski
76f517a173 Bluetooth: report proper advertiser status on error
When advertiser is not started because too many advertisers are
registered, return proper error code.

Bug: 30622771
Test: sl4a ConcurrentBleAdvertisingTest
Change-Id: I57384ff30132e9a7ee17dcf191ff89baa7abf1ef
2016-11-22 13:38:15 -08:00
Ian Pedowitz
a53e2bc3c0 Merge "Revert "Move Resource creation out of ContextImpl constructor"" 2016-11-22 21:30:01 +00:00