Commit Graph

64324 Commits

Author SHA1 Message Date
Erik Wolsheimer
12e319b735 Do not listen for clock ticks, time changes, timezone changes, or time format changes when TextClock is not visible am: e12cd3bb3b
am: 4d855f15ab

Change-Id: I9bebe0ea19701dcdb924c20534a418f7ad19440a
2016-10-05 23:09:29 +00:00
Erik Wolsheimer
4d855f15ab Do not listen for clock ticks, time changes, timezone changes, or time format changes when TextClock is not visible
am: e12cd3bb3b

Change-Id: I4ce1dcc5184f8cf03904a19631b9efe4be1b47fa
2016-10-05 22:46:12 +00:00
Phil Weaver
6e91196404 Merge "Move a11y event dispatch back to ui thread." 2016-10-05 21:13:48 +00:00
TreeHugger Robot
838277059f Merge "More fixes in drag/drop docs." 2016-10-05 20:11:11 +00:00
Erik Wolsheimer
e12cd3bb3b Do not listen for clock ticks, time changes, timezone changes, or time format changes when TextClock is not visible
BUG: 31840153
Change-Id: I11adf1036fb25b28aee5caba6daa1ab0d9d1f23a
2016-10-05 12:45:37 -07:00
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
Vadim Tryshev
ad57431f49 More fixes in drag/drop docs.
Bug: 31702571
Test: Built docs, inspected in Chrome.
Change-Id: Ib7c421a6eacac5e352bbba64eedb9f8b689cbe60
2016-09-30 16:47:07 -07: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
Tao Bao
9bd481b3cf Handle the race condition when calling uncrypt services.
am: 1eabf53437

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

Change-Id: I890142436b2442cced212550ac916bedf1306bc9
2016-09-30 23:15:04 +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
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
1eabf53437 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
(cherry picked from commit 794c8b0b3f)
2016-09-29 23:12:16 -07: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