Commit Graph

301953 Commits

Author SHA1 Message Date
Andreas Gampe
733d007279 Merge changes Ia4bec085,I59095f2a
* changes:
  Enable logwrapper functionality on user builds
  Zygote: Add invoke-with to zygote protocol
2016-12-16 19:24:13 +00:00
Marie Janssen
fa63068deb Bluetooth: fix issues re-enabling after crash
When Bluetooth crashes, sometimes an LE app restarts it before
ActivityManager gets a chance.  In this case, the Bluetooth manager
would assume the state should be LE only and did not continue to fully
enabled.

Luckily in this case the persisted system state is also ON.  Use the
persisted state as information about whether we should be fully enabled.

Test: basic sanity check, forced crash of BT
Bug: 33632976
Change-Id: I546d7abccb82a26fcca2eb70d6d7c76e9510404e
2016-12-16 11:23:30 -08:00
Marie Janssen
ffcf88f36e Bluetooth: log message improvements
Some log improvements:
 - Reduce logspam
 - Use names for states in logs instead of numbers
 - Be more consistent with messages

Also remove some commented out dead code.

Test: run on phone, observe more useful logs
Change-Id: I32163278e148be144c03d4e8aaf0eb761226c94c
2016-12-16 11:22:04 -08:00
Amith Yamasani
694753465b Fix for race in writeToParcel and unparcel
Don't access the parcelled data while it might be recycled
by another thread.

Also make a local reference of mMap, which could be modified
by another thread.

Bug: 33325384
Test: Hard to repro, so no test
Change-Id: I77f6545ac174236a3da69c0c0f3a01b2eda3f34b
2016-12-16 11:19:42 -08:00
Vitalii Tomkiv
5cbce85fd3 Make sure Zygote is running at process priority 0 after VM has started.
Boosting up zygote priority before VM startup, saves ~450ms of boot time
for N9, 180ms for Nexus 5X.

(cherry picked from commit 5d551a5ac3)

Bug: 28866384
Test: m
Test: Device boots
Change-Id: Ic85892b408e15bbc1de7ce706f113f23974fe478
2016-12-16 11:19:33 -08:00
Christine Franks
22ed8175ce Add config_demoModePassword
am: 566525c6bb

Change-Id: Idc99f301b936be1f1a8a70b33f2ff02f396f9da0
2016-12-16 19:17:33 +00:00
Adrian Roos
a1e18b6748 Merge "Merge "FalsingLog: Fix false positive Log.wtfs" into nyc-mr2-dev am: 6ce17fb072" into nyc-mr2-dev-plus-aosp
am: 0979227c6f

Change-Id: I4c9b5f67ac5c98b00f7c114dbc506b9062d9dbe3
2016-12-16 19:14:49 +00:00
Adrian Roos
db87f804ad Merge "FalsingLog: Fix false positive Log.wtfs" into nyc-mr2-dev am: 6ce17fb072
am: d980b03299

Change-Id: If7570c0d3f3aa0005e2704872279fc87d6aaec48
2016-12-16 19:14:44 +00:00
Adrian Roos
3c89b41900 Merge "FalsingLog: Fix false positive Log.wtfs am: 64f87bad12" into nyc-mr2-dev-plus-aosp
am: c584b7191d

Change-Id: Ib9f63c9a6ca2b32235475574aad8749ef38d0262
2016-12-16 19:13:29 +00:00
Adrian Roos
37e6d2b433 FalsingLog: Fix false positive Log.wtfs am: 64f87bad12
am: 5b5faea151

Change-Id: Id2d99a67a648c5e1aa65de003f35081bf2ebfbc2
2016-12-16 19:13:21 +00:00
Andreas Gampe
298f6a2847 Merge "NativeLibraryHelper: Minor fixes" am: c1536f0d10 am: 109a82d7e3 am: 77274269ba
am: 49a25312b9

Change-Id: Id780d7d12d7432984bf7cfaa3b928f0a0163ebb1
2016-12-16 19:12:21 +00:00
Christine Franks
ee3af13cf2 Merge "Add config_demoModePassword" into nyc-mr2-dev 2016-12-16 19:10:59 +00:00
Connor O'Brien
ab6e4e23a0 Merge "Move ConsumerIrService to HIDL HAL" 2016-12-16 19:03:26 +00:00
Android Build Merger (Role)
0979227c6f Merge "Merge "FalsingLog: Fix false positive Log.wtfs" into nyc-mr2-dev am: 6ce17fb072" into nyc-mr2-dev-plus-aosp 2016-12-16 19:03:07 +00:00
Android Build Merger (Role)
c584b7191d Merge "FalsingLog: Fix false positive Log.wtfs am: 64f87bad12" into nyc-mr2-dev-plus-aosp 2016-12-16 19:02:48 +00:00
TreeHugger Robot
cf4d807481 Merge "Add new RGBA_F16 bitmap config" 2016-12-16 19:02:06 +00:00
Adrian Roos
d980b03299 Merge "FalsingLog: Fix false positive Log.wtfs" into nyc-mr2-dev
am: 6ce17fb072

Change-Id: Id22b291757e72e7aa2e56e1f2ed65f7dcb7b00b0
2016-12-16 19:02:05 +00:00
Adrian Roos
5b5faea151 FalsingLog: Fix false positive Log.wtfs
am: 64f87bad12

Change-Id: Ief66fe0f832737f733d728a8b0533bcabfc3c57c
2016-12-16 19:01:58 +00:00
Andreas Gampe
49a25312b9 Merge "NativeLibraryHelper: Minor fixes" am: c1536f0d10 am: 109a82d7e3
am: 77274269ba

Change-Id: Id450c7da8d22390c0e7506ed9058bdbf261d3ef4
2016-12-16 19:01:52 +00:00
Jason Monk
556cfb6a36 Turn on dexmaker sharing classloaders for sysui tests
This will allow us to mock package private things. It also happens
to speed up the tests, a lot.

Test: runtest systemui
Change-Id: I48f39ee282a4ea3163c642c8290f302428c4a5f4
2016-12-16 14:01:25 -05:00
TreeHugger Robot
6a435500d4 Merge "Add a flag for whether non-system apps can be installed on internal." 2016-12-16 18:59:05 +00:00
Torne (Richard Coles)
898fd69451 Add the webview zygote socket to the zygote whitelist.
Allow the webview zygote socket to be open at time of fork, so that
webview renderers can be forked successfully.

(cherry picked from commit a7fcb2bc2a)

Test: WebView functions correctly with multiprocess dev setting enabled
Bug: 21643067
Change-Id: I312846433a43a8e4548cb2f98b96b56acf9f5333
2016-12-16 10:53:35 -08:00
Andreas Gampe
77274269ba Merge "NativeLibraryHelper: Minor fixes" am: c1536f0d10
am: 109a82d7e3

Change-Id: I362df209d24a9e2602da1b8cf72e4ea63b5e7f60
2016-12-16 18:53:01 +00:00
Kaori Katou
ed7bf5eecc Assist app is not launched when long-pressing on Home key
To get Assist component and launch it correctly,
The proper userId should be passed
to AssistUtils#getAssistComponentForUser().

Bug: 30777883
Test: manual - install LegacyAssistant app and long-press on Home key

Change-Id: I9f18ffdd9fc893235d77ed8145a765736a679478
(cherry picked from commit 70554e01c6)
2016-12-16 10:52:20 -08:00
Adrian Roos
6ce17fb072 Merge "FalsingLog: Fix false positive Log.wtfs" into nyc-mr2-dev 2016-12-16 18:49:56 +00:00
Andreas Gampe
109a82d7e3 Merge "NativeLibraryHelper: Minor fixes"
am: c1536f0d10

Change-Id: I81e69315c5f74341ddf3472263462f8fdf935797
2016-12-16 18:44:54 +00:00
Joe LaPenna
56346808a1 Set com.android.networkrecommendation as the default network recommendation service.
BUG: 33224286
Test: Build image and verified the config value was set.

Change-Id: Id657c28753eaa6050bb2d82e45f70f694ce7e7dd
Merged-In: Id657c28753eaa6050bb2d82e45f70f694ce7e7dd
2016-12-16 10:42:23 -08:00
Vadim Tryshev
418b1fc512 Restricting navigation into and from clusters.
Tabbing loops inside cluster. Tabbing outside of clusters (i.e. in
the default cluster) won’t enter clusters. Initial focus won’t go
into a cluster.

Arrows work like before.

Bug: 32151632
Test: Manual checks. CTS test will be added after feature freeze.
Change-Id: Icecbd75394e2dd4afe2e1c4e6bc9ac64f6785699
2016-12-16 10:41:44 -08:00
Roozbeh Pournader
d681725437 Merge "Switch Chronometer to use ICU instead of duration_hours etc" 2016-12-16 18:39:06 +00:00
Winson Chung
010927a967 Move tasks to fullscreen stack when removing the pinned stack.
- When the user dismisses the PiP, it's not necessarily desirable
  for the tasks to be destroyed and non-accessible from Overview.
  As a result, we shift the tasks from the pinned stack to the
  fullscreen stack, either under the existing top visible
  fullscreen task, or to the top of the stack if the fullscreen
  stack is not visible.

Bug: 33304808
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testRemovePipWithNoFullscreenStack
Test: #testRemovePipWithVisibleFullscreenStack
Test: #testRemovePipWithHiddenFullscreenStack

Change-Id: I802f44949705f86c55bdbd8ce0fd839513a8d95b
2016-12-16 10:35:32 -08:00
Tao Bai
c53fae1001 WebView: Add the definition of crash API.
Bug: 30824898
Test: There is no test yet, this patch just add the defintion of API,
 and make it easy to work on chromium side.

Change-Id: I7fdaf894f18cc8bad8e84465e4a0390b22f8bba8
2016-12-16 10:33:37 -08:00
Treehugger Robot
c1536f0d10 Merge "NativeLibraryHelper: Minor fixes" 2016-12-16 18:31:25 +00:00
phweiss
c94b637305 DO NOT MERGE Add network logging icon to Quicksettings when enabled
Add the network logging icon in Quick Settings' footer if
network logging is enabled, possible next to the VPN icon.
Quicksettings has to be able to tell that network logging
is enabled, so this CL changes DPM.isNetworkLoggingEnabled() to be
callable from the device owner or from any app with the MANAGE_USERS
permission.

The icon is only a placeholder until the official icon is finished.

CTS Verifier tests will be added when all Network logging UX changes are
done.

Cherry-picked from master, and then modified to work in N:
I had to remove the QSFooterTest change because the testing infrastructure
is not there in N. Also, I had to add DPMS.enforceDeviceOwnerOrManageUsers()
to which did not exist in N before.

BUG: 33126618
BUG: 29748723
Test: Manual, CTS-Verifier tests will be added in a follow-up

(cherry picked from commit a4e169ed68)

Change-Id: Ib35d323605ab11f883a4b6199d1db79b9e53c49b
2016-12-16 19:25:29 +01:00
Romain Guy
f7e79d6eb3 Remove RGBX_FP16 format
Bug: 32984164
Test: compile
Change-Id: I22ffe0991d3c4add68317a0554dcac6a7ac56d12
2016-12-16 10:23:21 -08:00
Joe Onorato
10e237e5c8 Merge changes from topic 'incident_1'
* changes:
  First checkin of incident reporting.
  Add a native class to interact with DropBoxManager.
2016-12-16 18:19:50 +00:00
Michal Karpinski
a775ad997b Initialize AtomicBoolean for NetworkLogger#mIsLoggingEnabled
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithSingleUser
Bug: 29748723

(cherry picked from commit e4dfd2d002)

Change-Id: Ib175f1d57093590b0080f32dc5f6c60ea50066e0
2016-12-16 18:18:57 +00:00
Michal Karpinski
e4dfd2d002 Initialize AtomicBoolean for NetworkLogger#mIsLoggingEnabled
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithSingleUser
Bug: 29748723
Change-Id: Ib175f1d57093590b0080f32dc5f6c60ea50066e0
2016-12-16 18:09:12 +00:00
Chris Craik
66b9d4486a Revert "try to stop using exotic clipps"
This reverts commit 834653bcf8.

Change-Id: Ie8cb787490832a0be154ec1263313982157faa81
2016-12-16 17:49:48 +00:00
Aurimas Liutikas
e298756bf8 Merge "Point to the new checkstyle location for frameworks/base PREUPLOAD hook." 2016-12-16 17:45:09 +00:00
Romain Guy
9505a65527 Add new RGBA_F16 bitmap config
This configuration uses 64 bits per pixel. Heach component is stored as a
half precision float value (16 bits). Half floats can be decoded/encoded
using android.util.Half.

RGBA_F16 bitmaps are used to decode wide-gamut images stored in 16 bit
formats (PNG 16 bit for instance). aapt is currently not aware of PNG
16 bits so such files must be placed in raw/ resource directories.

This first pass provides only partial drawing support with hardware
acceleration. RGBA_F16 bitmaps are stored in linear space and need
to be encoded to gamma space with the appropriate OETF to be rendered
properly on Android's current surfaces. They are however suitable for
linear blending. Full rendering support will be provided in a future
CL (BitmapShaders might be a bit tricky to handle properly during
shader generation).

Bug: 32984164
Test: bit CtsGraphicsTestCases:android.graphics.cts.BitmapRGBAF16Test

Change-Id: I328e6b567441a1b9d152a3e7be944a2cf63193bd
2016-12-16 09:15:07 -08:00
Vitalii Tomkiv
1e52ce48a6 Make sure Zygote is running at process priority 0 after VM has started.
Boosting up zygote priority before VM startup, saves ~450ms of boot time
for N9, 180ms for Nexus 5X.

(cherry picked from commit 5d551a5ac3)

Bug: 28866384
Test: m
Test: Device boots
Change-Id: Ic85892b408e15bbc1de7ce706f113f23974fe478
2016-12-16 09:06:28 -08:00
Todd Kjos
8175f0955a Revert "Add boost to increase the load on newly-forked zygote processes."
This reverts commit 6d43a861d0.

(cherry picked from commit 0f2ded62ae)

Test: m
Test: Device boots
Change-Id: I627e47c6ead4ce2d2bffa923a32a56d06c022df7
2016-12-16 09:05:50 -08:00
Tamas Berghammer
0ca16fa584 Enable logwrapper functionality on user builds
When an app is debuggable, check whether a script called "wrap.sh" exists
in the app's native library directory. If so, start the app using the
invoke-with functionality over the script. Weaken the invoke-with check
on the zygote side to allow the functionality for debuggable apps.

The goal of the functionality is to make malloc debug, strace and other
similar tools available for NDK based application developers.

Bug: 33668201
Test: manual - debug malloc can be enabled using the new feature
Change-Id: Ia4bec0854cf4dc08446f1671494200f54ef366ee
2016-12-16 09:03:06 -08:00
Tamas Berghammer
b8f7c351b9 Zygote: Add invoke-with to zygote protocol
Add "--invoke-with" to the zygote connection protocol. It was
already understood as an argument by the zygote.

Bug: 33668201
Test: m
Change-Id: I59095f2ac542aadff78a7ff1dded86cf5f192707
2016-12-16 09:03:01 -08:00
Makoto Onuki
de315b99dc Merge "ShortcutManagre: foreground check, more tests." 2016-12-16 17:01:35 +00:00
Pankaj Kanwar
32d76c703f Merge "Notify user when user fails to connect to the network." into nyc-mr2-dev am: 99291e8f35
am: 04c372c271

Change-Id: I7a9299d098b7e30406cfa4713acba2e251ef7ec3
2016-12-16 16:43:23 +00:00
pkanwar
5d4d60eb3a Notify user when user fails to connect to the network. am: 2b7a8a9ab0
am: e5ca431af0

Change-Id: I68d43ccca0239948f0e464999dc08c084b7a82f0
2016-12-16 16:42:19 +00:00
Andreas Gampe
c012ae3815 NativeLibraryHelper: Minor fixes
Skip over directories when iterating library files. Ensure correct
temp file naming.

Bug: 33668201
Test: m
Test: Device boots
Test: Manual: Install debuggable and non-debuggable apps
Change-Id: I2f0547e965d9a0c478e333a13b2db02f4eedac2c
2016-12-16 08:23:55 -08:00
Pankaj Kanwar
04c372c271 Merge "Notify user when user fails to connect to the network." into nyc-mr2-dev
am: 99291e8f35

Change-Id: I8d340854a4f46ddff8e1432396b9110e438215eb
2016-12-16 16:15:10 +00:00
pkanwar
e5ca431af0 Notify user when user fails to connect to the network.
am: 2b7a8a9ab0

Change-Id: I04401c95fa9014e6e988ca0e80de8289ce486bdc
2016-12-16 16:15:03 +00:00