Commit Graph

317044 Commits

Author SHA1 Message Date
Todd Kennedy
7833e7c5cb null check before dereference
Change-Id: I6ae219b68920c160e104b307f60802fd75e705ce
Fixes: 62908319
Test: Manual
2017-06-26 07:51:54 -07:00
TreeHugger Robot
ba003a97f8 Merge "[Companion] Fix NPE in associate" into oc-dev 2017-06-19 21:52:19 +00:00
TreeHugger Robot
139dbe5c1c Merge "Do not update currently open tooltip." into oc-dev 2017-06-19 21:01:47 +00:00
TreeHugger Robot
5e3fb57af8 Merge "Reduce no-op notification log messages." into oc-dev 2017-06-19 20:32:18 +00:00
Dianne Hackborn
8a95d49d8f Merge "Maybe fix issue #62199092: Alarm didn't ring, upcoming alarm..." into oc-dev 2017-06-19 17:04:11 +00:00
Siyamed Sinir
58df6ab93f Merge "Fix crash during TextView.onCreateContextMenu" into oc-dev 2017-06-19 16:53:17 +00:00
TreeHugger Robot
c885c24e10 Merge "Fix flash of ambient on fp unlock" into oc-dev 2017-06-19 15:26:19 +00:00
Todd Kennedy
65ffdba7f7 Merge "Track both framework and app overlays per package" into oc-dev 2017-06-18 17:06:27 +00:00
TreeHugger Robot
f0bdfbc508 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-06-17 05:58:02 +00:00
TreeHugger Robot
314457a424 Merge "Only preload selected pages" into oc-dev 2017-06-17 02:50:03 +00:00
TreeHugger Robot
65c00b2f4e Merge "APs from old scans should not have RSSI values set." into oc-dev 2017-06-17 02:15:08 +00:00
Bill Yi
b7cf1a1940 Import translations. DO NOT MERGE
Change-Id: Id2e2ab20c78bfcf7ab82807c33466fed3116236b
Auto-generated-cl: translation import
2017-06-16 18:39:16 -07:00
Dianne Hackborn
443d35a001 Maybe fix issue #62199092: Alarm didn't ring, upcoming alarm...
...notification was stuck

Don't deliver to a ProcessRecord that has been killed, instead
go through creating a new process.

Test: manual

Change-Id: I74eb0843200b5b99d6496e4b3f6eef5ed38c926e
2017-06-16 18:00:31 -07:00
TreeHugger Robot
215ebb941d Merge "Revert "Trim text from autofillvalue when checking for empty."" into oc-dev 2017-06-17 00:53:04 +00:00
Phil Weaver
c91290a6e9 Merge "Separate a11y and autofill view ids" into oc-dev 2017-06-17 00:46:05 +00:00
Casey Burkhardt
4ab690a50d Merge "Resolve 3 inconsistencies in accessibility button API - Unify logic for detecting availability of the accessibility button - Ensure the initial visibility state is propagated to A11yMS - Ensure services only receive availability callbacks for changes" into oc-dev 2017-06-17 00:41:06 +00:00
Eugene Susla
0435e5e79f [Companion] Fix NPE in associate
The root cause of the exception was that the activity destroy listener was
reacting to any activity being destroyed instead of just the one used with
the CompanionDeviceManager

Fixes: 62549525
Test: Ensure the attached bug no longer reproduces
Change-Id: I2f977e9ac9176247f5be9d08d19b3875f2b4a703
2017-06-16 17:22:04 -07:00
Bryce Lee
1e1c5d7b77 Merge "Create native Surface object on updateWindow for legacy apps." into oc-dev 2017-06-16 23:15:10 +00:00
Felipe Leme
313cf3fb93 Revert "Trim text from autofillvalue when checking for empty."
This reverts commit c5d4e068f2.

Change-Id: I4027cf0f91ebb9032c21efad7025118891188bc6
2017-06-16 22:57:58 +00:00
TreeHugger Robot
b3b13ff62c Merge "Trim text from autofillvalue when checking for empty." into oc-dev 2017-06-16 22:50:49 +00:00
Tyler Freeman
2c3ca52a91 DO NOT MERGE ANYWHERE Vibrator: Allow priority vibrations in low-power mode for accessibility. am: 79613777df -s ours
am: cf82b09998  -s ours

Change-Id: I128c5a5b07fc2aef5ada9118e3cc491a87970758
2017-06-16 22:43:12 +00:00
Tyler Freeman
cf82b09998 DO NOT MERGE ANYWHERE Vibrator: Allow priority vibrations in low-power mode for accessibility.
am: 79613777df  -s ours

Change-Id: I965bac24a8d62b44b08679bda58b8ba37dbed5b4
2017-06-16 22:36:26 +00:00
TreeHugger Robot
e8f1a74361 Merge "Log last home activity and result we tried to start" into oc-dev 2017-06-16 21:57:28 +00:00
TreeHugger Robot
b5979092b8 Merge "Disable notification sounds on TV" into oc-dev 2017-06-16 21:55:34 +00:00
TreeHugger Robot
a89414962d Merge "Use an optimized findViewNodeByAutofillId(id) to get just one node." into oc-dev 2017-06-16 21:45:46 +00:00
Phil Weaver
846cda9397 Separate a11y and autofill view ids
Autofill seems to need IDs to be preserved across things
like configuration changes, while accessibility will not
function without views with unique ids. Separating out the
two types of IDs. We can re-combine them once it's clear
that both demands can be satisfied.

Bug: 62301218
Test: Run a11y and autofill CTS, and verify that the play
store app functions with TalkBack after a screen rotation.

Change-Id: I17a99de2874768fc0ade3aa354130dd1f6b4cd7e
2017-06-16 14:36:36 -07:00
Winson Chung
64b044680c Merge changes I20bdab1b,Id82f9081 into oc-dev
* changes:
  Fix backwards flag causing crash.
  Fixing issue with PiP aspect ratio being clobbered.
2017-06-16 21:32:50 +00:00
Bryce Lee
02949f1415 Create native Surface object on updateWindow for legacy apps.
There are some apps that use the Surface object itself to indicate
changes. As a result, recycling the existing Surface object for
updates can lead to such apps ignoring events such as size changes.

This changelist restores the original behavior for legacy apps, where
the underlying native Surface object is recreated during updates.

Fixes: 62108743
Test: go/wm-smoke
Test: Open affected application, observe expansion to fullscreen when
      nav bar disappears. Rotate to other orientation and observe
      expansion to fullscreen.

Change-Id: I874602b6b8686c6ecb05cf7b1a04ec4b700ad3f9
2017-06-16 14:00:40 -07:00
Todd Kennedy
560830c9f0 Track both framework and app overlays per package
Always bundle framework and app overlays. The old implementation, where
framework and app overlays were tracked independently, lead to an error
in the following scenario:

  1. Enable app overlay -> change reflected in app
  2. Enable framework overlay -> error: no change reflected in app
  3. Disable app overlay -> change reflected in app, including framework
     overlay

This change also leads to better architecture since the package manager
no longer needs to know that an app's overlays consist of both framework
and app specific overlays. Instead, that knowledge is handled by the
overlay manager.

Also, correct indentation in "cmd package dump packages" output and
remove obsolete constant DUMP_ENABLED_OVERLAYS.

Test: Manual
Change-Id: I707fc00052a15b22fb8c17e6155732520e6b2e52
Bug: 62680061
2017-06-16 14:00:16 -07:00
Felipe Leme
c5d4e068f2 Trim text from autofillvalue when checking for empty.
Test: VirtualContainerActivityTest#testSaveDialogNotShownWhenBackIsPressed
Fixes: 62667931

Change-Id: I7e673eedd39fff7af89c694d0bfc5a495f14ea26
2017-06-16 13:41:37 -07:00
Tyler Freeman
79613777df DO NOT MERGE ANYWHERE Vibrator: Allow priority vibrations in low-power mode for accessibility.
This is mainly for Wear devices that don't have speakers.

Bug: 37543478
Bug: 37257715

Merged-In: Ia6dffa7e528886e7c84390dbb33b44f298c7afa4
Change-Id: Ia6dffa7e528886e7c84390dbb33b44f298c7afa4
2017-06-16 13:19:28 -07:00
Rob Carr
6f87503ed8 Merge "ViewRootImpl: More null checks for performTraversals." into oc-dev 2017-06-16 19:55:12 +00:00
Wale Ogunwale
59bcba6b17 Log last home activity and result we tried to start
To help debug ANR.

Bug: 38121026
Test: manual
Change-Id: I484301810d07dcf7330dfdbab7310eac14638b90
2017-06-16 12:51:50 -07:00
Fyodor Kupolov
6db4406fbd Merge "Always log new user state to event log" into oc-dev 2017-06-16 19:51:06 +00:00
Tony Mantler
ab55f0f2b0 Disable notification sounds on TV
Bug: 38495875
Test: BuzzBeepBlinkTest
Change-Id: Iffebe2063de3d73c1538a3bbbe9edd2233005ba3
2017-06-16 12:47:19 -07:00
Siyamed Sinir
532f3c989e Fix crash during TextView.onCreateContextMenu
Test: bit CtsWidgetTestCases:TextViewTest

Bug:62450393
Change-Id: I162c28d253ca197eba9c4c148c76179c2880daa5
2017-06-16 19:32:41 +00:00
TreeHugger Robot
6cde68752c Merge "Throw IAE when service add null AutofillIds on SaveInfo methods." into oc-dev 2017-06-16 19:23:45 +00:00
Felipe Leme
94b56207a4 Use an optimized findViewNodeByAutofillId(id) to get just one node.
Session was using findViewNodesByAutofillIds(ids) before, which not only was
not optimal, but error prone (for example, it could return a non-empty array
with an empty value).

Test: CtsAutoFillServiceTestCases pass
Fixes: 62532979

Change-Id: If984f1263cc3f2aac1d1e098687fe02d73c55211
2017-06-16 11:51:49 -07:00
Philip P. Moltmann
9bab45a2da Only preload selected pages
Otherwise if only some pages are selected all (non-selected) pages in
between are preloaded.

Test: Selected only some pages of a large document and observed which
      pages got preloaded
      cts-tradefed run cts-dev -m Print
Fixes: 62296301
Change-Id: I3a97cfa6991e5a95ff73628c4bb540c629160c0c
2017-06-16 11:49:10 -07:00
Vladislav Kaznacheev
dd469d171d Do not update currently open tooltip.
Currently if View.setTooltipText is called while
the tooltip is being shown for that view, it will
update the displayed text. The tooltip then will
resize to wrap around the new text, but not change
its position. This looks confusing if the new text
is significantly shorter or longer.

Removing this functionality until proper
re-positioning is implemented.

Bug: 38491655
Test: android.view.cts.TooltipTest passes
Change-Id: I79689288185888854b992b89e19fe381d3ac50e4
2017-06-16 11:31:23 -07:00
TreeHugger Robot
5d969b9862 Merge "enable/disable dexopt for instant apps remotely" into oc-dev 2017-06-16 18:07:53 +00:00
Winson Chung
06b50ab4b9 Fix backwards flag causing crash.
Bug: 62692677
Test: Use an activity options that requires the bitmap copy, ensure
      that it does not crash.

Change-Id: I20bdab1b91dfe47f7fe134fd17fe104eb4b27ec1
2017-06-16 11:07:29 -07:00
Fyodor Kupolov
a9a83f0d32 Always log new user state to event log
Previously it wasn't logged for stopping users...

Test: manual
Bug: 38121026
Change-Id: I0fc37224ce1043745dfffcc78639f003c35b402e
2017-06-16 17:56:32 +00:00
Winson Chung
401f78e822 Fixing issue with PiP aspect ratio being clobbered.
- We should only initialize the initial aspect ratio to the default
  aspect ratio once, instead of when the resources are reloaded.
  Otherwise, they will be clobbered when the configuration changes.
  This is a regression from ag/2295004.

Bug: 62702553
Test: Set PiP aspect ratio from landscape-locked activity, ensure that
      it stays in that aspect ratio after the pip menu dismisses.

Change-Id: Id82f9081c25c7d6482cf7bcf0268fedb9068eabe
2017-06-16 10:52:40 -07:00
Marco Nelissen
acbd7ba4aa libmedia_jni.so doesn't need libjhead.so am: 9a4a34afd8 -s ours am: 398d50feeb -s ours am: 49fc959be3 -s ours am: 23118a9b77 -s ours am: 45cd809caa -s ours am: ce4c7df6a0 -s ours am: 035e2a5c37 -s ours am: 4e5ed845c7 -s ours am: 3cd244e872 -s ours am: a9bf75f50c -s ours am: 21caf4aee4 -s ours
am: 009b3c6aec  -s ours

Change-Id: Ied441cf591abb8933a5601c6d36066e0288dfbd7
2017-06-16 17:38:19 +00:00
Marco Nelissen
009b3c6aec libmedia_jni.so doesn't need libjhead.so am: 9a4a34afd8 -s ours am: 398d50feeb -s ours am: 49fc959be3 -s ours am: 23118a9b77 -s ours am: 45cd809caa -s ours am: ce4c7df6a0 -s ours am: 035e2a5c37 -s ours am: 4e5ed845c7 -s ours am: 3cd244e872 -s ours am: a9bf75f50c -s ours
am: 21caf4aee4  -s ours

Change-Id: I25f1f4394b6a5a6b3708df13be41299865e76d52
2017-06-16 17:24:37 +00:00
Marco Nelissen
21caf4aee4 libmedia_jni.so doesn't need libjhead.so am: 9a4a34afd8 -s ours am: 398d50feeb -s ours am: 49fc959be3 -s ours am: 23118a9b77 -s ours am: 45cd809caa -s ours am: ce4c7df6a0 -s ours am: 035e2a5c37 -s ours am: 4e5ed845c7 -s ours am: 3cd244e872 -s ours
am: a9bf75f50c  -s ours

Change-Id: Ib75388665c3586c09e963917bc54b020aae22dce
2017-06-16 17:12:09 +00:00
Marco Nelissen
a9bf75f50c libmedia_jni.so doesn't need libjhead.so am: 9a4a34afd8 -s ours am: 398d50feeb -s ours am: 49fc959be3 -s ours am: 23118a9b77 -s ours am: 45cd809caa -s ours am: ce4c7df6a0 -s ours am: 035e2a5c37 -s ours am: 4e5ed845c7 -s ours
am: 3cd244e872  -s ours

Change-Id: I256e1413df73fd577708d5dcb84074e3a8ed61ab
2017-06-16 16:59:57 +00:00
Marco Nelissen
3cd244e872 libmedia_jni.so doesn't need libjhead.so am: 9a4a34afd8 -s ours am: 398d50feeb -s ours am: 49fc959be3 -s ours am: 23118a9b77 -s ours am: 45cd809caa -s ours am: ce4c7df6a0 -s ours am: 035e2a5c37 -s ours
am: 4e5ed845c7  -s ours

Change-Id: Iae9f79e4b91c4ef5e844259709e3055607a781b8
2017-06-16 16:51:14 +00:00
Marco Nelissen
4e5ed845c7 libmedia_jni.so doesn't need libjhead.so am: 9a4a34afd8 -s ours am: 398d50feeb -s ours am: 49fc959be3 -s ours am: 23118a9b77 -s ours am: 45cd809caa -s ours am: ce4c7df6a0 -s ours
am: 035e2a5c37  -s ours

Change-Id: Ib6f84a832e27329e0eabf000b89e93145c43a31a
2017-06-16 16:41:20 +00:00