Commit Graph

70652 Commits

Author SHA1 Message Date
Phil Weaver
65097bf83f Move a11y event dispatch back to ui thread.
Test: Ran CTS

Bug: 31753900
Change-Id: I0ba096cb99dd8347a7e9d6c41ff0aa8293dc5d15
2016-10-05 11:08:20 -07:00
TreeHugger Robot
85153a12eb Merge "Allow print services to read advanced options." 2016-10-05 16:54:40 +00:00
Robin Lee
f1ac71dbe2 Merge "Redact work notifications separately from personal" 2016-10-05 14:59:31 +00:00
Philip P. Moltmann
8f6feec73f Allow print services to read advanced options.
Test: Ran adjusted test that is subitted along side
Change-Id: Ic662c6a6e56c3184611b30947fd715b57df196c0
Fixes: 28913410
2016-10-04 17:19:33 -07:00
Nate Fischer
ad64a12bd1 Merge "Add APIs to get WebViewClient and WebChromeClient" 2016-10-04 20:31:39 +00:00
Nate Fischer
6e585844a0 Add APIs to get WebViewClient and WebChromeClient
Add getWebViewClient and getWebChromeClient to WebView and WebViewProvider.
These APIs both return null if the client is not yet set.

Change-Id: I22044713a43ab09a9a5a63138247bfecb60f2522
Test: N/A
Bug: 31843416
2016-10-04 11:12:47 -07:00
John Reck
06007a8b09 Merge "SystemClock JNI update" 2016-10-04 15:58:05 +00:00
John Reck
f6f26015f2 Merge "DisplayEventReceiver -> @FastNative" 2016-10-04 15:57:42 +00:00
John Reck
413671bafa Merge "Trace @FastNative" 2016-10-04 15:57:34 +00:00
John Reck
e46af37e3e DisplayEventReceiver -> @FastNative
Test: make && boot
Change-Id: Id75648a2398a13c5af24eabc217bdef778618872
2016-10-03 16:21:30 -07:00
John Reck
9481c9e842 SystemClock JNI update
Switch to @CriticalNative
Test: make & boot

Change-Id: I5ead83f5c201bf9bb50a39b5c6dcd8b6ac6b5ba5
2016-10-03 16:03:31 -07:00
John Reck
0970997326 Update MotionEvent JNI
Switch to @CriticalNative & @FastNative
Test: make & boot

Change-Id: I8962663348b354d30995b397619ee101e405e57c
2016-10-03 15:47:18 -07:00
John Reck
6be2cab50b Trace @FastNative
Test: make & boot
Change-Id: Ibd0160bd98639961b07f430b3fdf210a5796234b
2016-10-03 14:38:06 -07:00
TreeHugger Robot
c097209f91 Merge "Making old apps passing null ClipData to startDrag work again." 2016-10-03 17:51:58 +00:00
John Reck
b8a5b9ad76 Merge "Switch Parcel to FastNative" 2016-10-03 16:50:36 +00:00
Hemal Patel
1c2e1e5e0a Docs: Fixed the Service link am: 1918214589 am: e361f735d4
am: 417e4e4609

Change-Id: If4c8d3d91c199f3d9818514f507844bab8e38507
2016-10-01 02:00:13 +00:00
Hemal Patel
417e4e4609 Docs: Fixed the Service link am: 1918214589
am: e361f735d4

Change-Id: If7fc70c876f999c8a1d6635a3d39bbcc85708dc9
2016-10-01 01:53:53 +00:00
Hemal Patel
e361f735d4 Docs: Fixed the Service link
am: 1918214589

Change-Id: I52410cb0cccf0c1c99b13504672acdb0eadb9bc5
2016-10-01 01:46:01 +00:00
TreeHugger Robot
d67b4f53d5 Merge "Some fixes in ClipData and ClipDescription delivery." 2016-10-01 00:32:20 +00:00
Vadim Tryshev
697331784b Making old apps passing null ClipData to startDrag work again.
This is for compatibility; see the bug.

Bug: 31865195
Test: manually rant an old app
Change-Id: If2f55ffd424b31f18610b96dd30bca87408e3df0
2016-09-30 17:25:30 -07:00
Android Build Merger (Role)
58679382ca Merge "SurfaceView only call forceDisconnect if isValid am: 6ba466ff3e am: 5a0da698a7 am: 88123c4ef4" 2016-10-01 00:24:12 +00:00
John Reck
15473e00ae SurfaceView only call forceDisconnect if isValid am: 6ba466ff3e am: 5a0da698a7
am: 88123c4ef4

Change-Id: I612a1aafbb9deace211845d93c20f8edaf0746e4
2016-10-01 00:23:16 +00:00
TreeHugger Robot
0ec37b9f51 Merge "Adding a setting to toggle WAL mode for contacts" 2016-10-01 00:02:35 +00:00
Tao Bao
a2108434fd Merge "Handle the race condition when calling uncrypt services." am: 42d25b5992 am: 86df8ecdf3 am: ade17dea88
am: 2a327506cf

Change-Id: I29cc6009fcd4d58a2f11adba425a6dafeeecb4ab
2016-10-01 00:01:03 +00:00
John Reck
88123c4ef4 SurfaceView only call forceDisconnect if isValid am: 6ba466ff3e
am: 5a0da698a7

Change-Id: I356848f7edb11304d9ab4584dab8e5895ff49762
2016-09-30 23:23:17 +00:00
John Reck
5a0da698a7 SurfaceView only call forceDisconnect if isValid
am: 6ba466ff3e

Change-Id: I890142436b2442cced212550ac916bedf1306bc9
2016-09-30 23:15:04 +00:00
Jorim Jaggi
bc5a090d92 Fix crash if drawable doesn't have constant state am: 92d0602a7c am: 0ea9093df7
am: 38afe3a0c0

Change-Id: I698682c8257ea63c41bd55faa579e24609baac74
2016-09-30 23:04:23 +00:00
Vadim Tryshev
a61efa4c33 Some fixes in ClipData and ClipDescription delivery.
See the bug.

Bug: 31809803
Test: Ran Drag/Drop CTS
Change-Id: Ie48a172bc465cd33e176801865e54e8aded4ce55
2016-09-30 15:36:35 -07:00
Suprabh Shukla
502fd881a7 Adding a setting to toggle WAL mode for contacts
Bug: 1492819
Change-Id: I577b4950c57fb4cd85bd6cfc9d3ae05fdcbefda5
2016-09-30 15:06:05 -07:00
Hemal Patel
1918214589 Docs: Fixed the Service link
Bug: 29086415
Change-Id: Id9505ade39c19eb817f556d72f689568148e1782
2016-09-30 14:59:23 -07:00
John Reck
6ba466ff3e SurfaceView only call forceDisconnect if isValid
Change-Id: I683c2f937f44d8b3d912839a3e91cbd5b5c7f437
Fixes: 31778946
Test: Manual, launch Cookie Jam then tap recents
2016-09-30 21:33:34 +00:00
Tao Bao
2a327506cf Merge "Handle the race condition when calling uncrypt services." am: 42d25b5992 am: 86df8ecdf3
am: ade17dea88

Change-Id: I617b48ed7e57a0903bdc577b18b45f9added0e65
2016-09-30 20:52:08 +00:00
Tao Bao
ade17dea88 Merge "Handle the race condition when calling uncrypt services." am: 42d25b5992
am: 86df8ecdf3

Change-Id: I1dc6ea14b4de99bf65f9efff4f22c0bd99e2f86f
2016-09-30 20:46:05 +00:00
Tao Bao
86df8ecdf3 Merge "Handle the race condition when calling uncrypt services."
am: 42d25b5992

Change-Id: Ia5d37580f8bf1489fcc5ccf9c74cf64b94858dc6
2016-09-30 20:40:03 +00:00
Tao Bao
42d25b5992 Merge "Handle the race condition when calling uncrypt services." 2016-09-30 20:30:43 +00:00
John Reck
71207b5a11 Switch Parcel to FastNative
Also fixes ParcelBenchmark to have bounded
memory usage to avoid OOM'ing during runs

Test: refactor, no behavior change

ParcelBenchmark results from bullhead
Before:
      timeReadByte 74.43ns
      timeReadInt 74.49ns
      timeReadLong 74.13ns
      timeWriteByte 81.81ns
      timeWriteInt 82.09ns
      timeWriteLong 81.84ns

After:
      timeReadByte 47.08ns
      timeReadInt 48.38ns
      timeReadLong 48.16ns
      timeWriteByte 55.90ns
      timeWriteInt 55.85ns
      timeWriteLong 56.58ns

Change-Id: I61b823d1d2beb86e00c196abd4dce65efa8fa7f0
2016-09-30 11:19:10 -07:00
Jorim Jaggi
38afe3a0c0 Fix crash if drawable doesn't have constant state am: 92d0602a7c
am: 0ea9093df7

Change-Id: Idee382b4a6adb2322ce9d62c4f672e2b0c1d6191
2016-09-30 09:19:03 +00:00
Jorim Jaggi
0ea9093df7 Fix crash if drawable doesn't have constant state
am: 92d0602a7c

Change-Id: I8ab088ad588eac8baa674d551201713562d973ef
2016-09-30 09:10:11 +00:00
Jorim Jaggi
a04451827e Merge "Fix crash if drawable doesn't have constant state" into nyc-mr1-dev 2016-09-30 09:02:41 +00:00
Przemyslaw Szczepaniak
0053ff7e01 Merge "Add new StrictMode thread policy - DETECT_UNBUFFERED_IO" am: c60c70dcf9 am: 8297d74de5
am: 61eb1615a6

Change-Id: I00de82b6e9d12b7f6bd602515c21f6922d8d1983
2016-09-30 09:01:52 +00:00
Przemyslaw Szczepaniak
61eb1615a6 Merge "Add new StrictMode thread policy - DETECT_UNBUFFERED_IO" am: c60c70dcf9
am: 8297d74de5

Change-Id: Ic0778b573e1d9f0b1a9af6257ce91f9251beec30
2016-09-30 08:55:55 +00:00
Przemyslaw Szczepaniak
8297d74de5 Merge "Add new StrictMode thread policy - DETECT_UNBUFFERED_IO"
am: c60c70dcf9

Change-Id: I33ffda7e4e0ef230a4de28560262339cea102ec4
2016-09-30 08:50:41 +00:00
Tao Bao
794c8b0b3f Handle the race condition when calling uncrypt services.
We call uncrypt services to setup / clear bootloader control block (BCB)
for scheduling tasks under recovery (applying OTAs, performing FDR).
However, we cannot start multiple requests simultaneously. Because they
all use the same socket (/dev/socket/uncrypt) for communication and init
deletes the socket on service exits.

This CL fixes the issue by a) adding synchronized blocks for the service
requests; b) checking the availability of the socket before initiating a
new one.

Note that adding synchronized blocks to RecoverySystem doesn't help,
because the calls could be made from different processes (e.g. priv-app,
system_server).

Bug: 31526152
Test: FDR works while a priv-app keeps calling clear BCB.

Change-Id: I95308989e849a9c98a9503ac509f2bc51ed3de19
2016-09-29 16:07:19 -07:00
Dianne Hackborn
f5ac9e6483 Merge "New infrastructure to switch remaining commands to "cmd" calls." 2016-09-29 19:57:05 +00:00
TreeHugger Robot
c2370dfdd6 Merge "Add app op name string for a runtime permission" 2016-09-29 19:11:46 +00:00
Tianjie Xu
1eb20e1bda Log the error when uncrypt timeouts
am: 2a03586998

Change-Id: I9d85069026d777468cb41dcdf5e2ecd83812efb1
2016-09-29 18:10:00 +00:00
Tianjie Xu
e422b0b29f Merge "Log the error when uncrypt timeouts" into nyc-mr1-dev 2016-09-29 18:03:30 +00:00
Dianne Hackborn
354736e196 New infrastructure to switch remaining commands to "cmd" calls.
This introduces a new feature of the IBinder command protocol
to allow the shell command implementation to call back into
its caller to ask it to open files in the calling context.  This
is needed so that commands that have arguments specifying files
can open those files as the calling shell, not the system (or
whatever) process.

To test this all out, move the "am start" implementation over
to ActivityManagerShellCommand, in particular along with its
option to specify a file in which to write profiling data.

Test: Manual

Change-Id: I0c1e3857defefbd19a2ac29413aafbb34b1e48a3
2016-09-29 10:58:44 -07:00
Shubham Ajmera
c95b2c85f3 Add new StrictMode thread policy - DETECT_UNBUFFERED_IO
This will enable the developers to check if they could replace an unbuffered
I/O operation with a corresponding buffered I/O operation.

The policy can be set as follow:
     StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
        .detectUnbufferedIO().build());

Test: vogar BlockGuardTest
Bug: 3018772
Change-Id: Ib804a8e9980ae40abfd216f8b87c250fd413bd5c
(cherry picked from commit 9b7184a8fd)w
2016-09-29 16:36:12 +01:00
Abodunrinwa Toki
2e0a36c4cb Merge "FloatingActionMode: Avoid calling delayed code if view is inactive." 2016-09-29 14:52:29 +00:00