308210 Commits

Author SHA1 Message Date
TreeHugger Robot
b1c820edab Merge "resolve merge conflicts of a110feee4cac to master" 2017-02-18 06:19:31 +00:00
TreeHugger Robot
0991eb2f49 Merge "Removes an already defined warning in aapt." 2017-02-18 04:40:31 +00:00
TreeHugger Robot
8ab1a6abc2 Merge "Fix a race when persisting cookie data" 2017-02-18 04:23:47 +00:00
Yohei Yukawa
bbb10e8ec0 Really fix regressions in IMMS#setImeWindowStatus
My previous CL [1] that aimed to fix Bug 35395372 was imperfect.
It just converted InvalidParameterException into NullPointerException
due to a silly mistake in a new error check.

 [1]: Ib9448c551d9a30776a999c27a5ff20f1a095633a
      ee2a7ed3d971f83134a2b28258dd2e56f9634f94

Test: Made sure Bug 35395372 and Bug 35479942 are no longer
      reproducible, that is,
      1. Flash a new image and complete the setup wizard on a
         direct-boot unaware device.
      2. Set a device password and require it upon each device boot.
      3. adb reboot
      4. Observe the default IME does not crash because of
         NullPointerException/InvalidParameterException thrown by IMMS.
Test: Made sure IMM#showSoftInputFromInputMethod(IBinder, int) does
      not throw an NullPointerException even in an extreme case.
      1. Rebuild LatinIME with the following code in LatinIME.java
       @Override
       public AbstractInputMethodImpl onCreateInputMethodInterface() {
           return new InputMethodService.InputMethodImpl() {
               @Override
               public void attachToken(IBinder token) {
                   super.attachToken(token);

                   final InputMethodManager imm =
                       getSystemService(InputMethodManager.class);
                   final IBinder imeToken =
                       getWindow().getWindow().getAttributes().token;
                   imm.showSoftInputFromInputMethod(imeToken, 0);
               }
           };
       }
      2. adb install -r LatinIME.apk
      3. adb shell ime enable com.android.inputmethod.latin/.LatinIME
      4. adb shell ime set com.android.inputmethod.latin/.LatinIME
      5. Tap any text field.
      4. Observe LatinIME does not crash because of
         NullPointerException/InvalidParameterException thrown by IMMS.
Bug: 34628091
Bug: 35079353
Fixes: 35395372
Fixes: 35479942
Change-Id: Id8e34ecb28480755e8141b6e46820b37fe3dc92b
2017-02-17 20:13:52 -08:00
Pulkit Bhuwalka
705cbc684a resolve merge conflicts of a110feee4cac to master
Test: Resolved merge conflict. Built locally.

Change-Id: If8e439d513ac2242b82f67a4c68bc3adfabe2b9c
2017-02-17 20:13:31 -08:00
TreeHugger Robot
28f99293f7 Merge "Fix Rgba16fTests@testTransferFunctionsShader test" 2017-02-18 02:59:33 +00:00
TreeHugger Robot
e453d8e762 Merge "Removing unnecessary call to ArraySet#toArray" 2017-02-18 02:48:42 +00:00
Aurimas Liutikas
75e7d1d73e Removes an already defined warning in aapt.
Apps that expect to use the current SDK don't specify anything in their
manifest and the build system rightfully injects the current SDK.

Any apps that specify their own <uses-sdk> or versionCode are telling
the build system that they are purposely using some other minSdkVersion,
etc (support library demos).

Test: None
Change-Id: I0aba3a71e15703c7bcafcf4d35608a1851dd8567
Fixes: 34901699
2017-02-17 18:44:28 -08:00
TreeHugger Robot
cf7ce6cbda Merge "Fixes issues where the PiP menu activity is out of sync." 2017-02-18 02:25:39 +00:00
TreeHugger Robot
e8430fd574 Merge "Shared library test case addition" 2017-02-18 02:19:16 +00:00
TreeHugger Robot
6f781be91e Merge "Minor improvements to help diagnose auth workflow." 2017-02-18 02:18:24 +00:00
Jean-Michel Trivi
bd39cfaf97 AudioService: prevent NPE on an invalid PIID
When looking for the AudioPlaybackConfiguration to act on a player,
  check that the PIID is valid.
(Note that this is also handled in checkConfigurationCaller())

Test: see bug
Bug 35484407

Change-Id: Ic46ad10f9730593f6600175ab3ca8f496cc6d972
2017-02-17 17:38:04 -08:00
Svet Ganov
ee2028c31f Fix a race when persisting cookie data
bug:34983226

Test: CTS passes

Change-Id: I457154fecdc15c057e276358e443d3c941128ab2
2017-02-17 17:33:52 -08:00
Svetoslav Ganov
ed71756327 Merge "Use accessibility action for touch exploration" 2017-02-18 01:23:03 +00:00
TreeHugger Robot
db53fb0816 Merge "resolve merge conflicts of e86b78a57404 to master" 2017-02-18 01:15:08 +00:00
TreeHugger Robot
6e82080513 Merge "Move Badging from ScoredNetwork to NetworkingBadging." 2017-02-18 01:14:04 +00:00
Romain Guy
dd6f1a7084 Fix Rgba16fTests@testTransferFunctionsShader test
RGBA16F bitmaps used as an SkBitmapShader would not set the hasLinearTexture
flag in the program description, causing a shader to be generated without
the proper opto-electronic transfer function.

Bug: 35482305
Test: bit -t CtsUiRenderingTestCases:android.uirendering.cts.testclasses.Rgba16fTests
Change-Id: I23354f8189a6b27b677eac9df82677e91282a31d
2017-02-17 17:09:21 -08:00
TreeHugger Robot
43b116d5fa Merge "Fix background sensor usage counter" 2017-02-18 01:06:52 +00:00
TreeHugger Robot
d89cf81f80 Merge "Change MaskableIconDrawable to AdaptiveIconDrawable" 2017-02-18 01:04:59 +00:00
TreeHugger Robot
8922f5dbcd Merge "Audio focus enforcement: use VolumeShaper for ducking" 2017-02-18 00:47:33 +00:00
TreeHugger Robot
6955665c73 Merge "Add escrow token APIs to TrustAgentService Security review: b/31273740 Design doc: go/auto_login Test: manual Change-Id: Ib11d4146135a58f1dc451ae8e081977a8f8e6ace" 2017-02-18 00:44:57 +00:00
Winson Chung
61ecc1bb39 Fixes issues where the PiP menu activity is out of sync.
- When the menu activity is hidden or destroyed by the system, we should
  reset the state so that we can restore the input consumer and show again
  property next time the PiP is interacted with.
- Also ensuring that non-focused pinned stack windows are not added to the
  input window list

Bug: 35462085
Bug: 34281221
Test: Relaunch a PiP activity that is single top.
Test: Launch a new task/activity from a PiP activity after
      the menu is visible.

Change-Id: I43829cce50669de704caf5a720c2adf7daf92398
2017-02-17 16:41:13 -08:00
Adam Lesinski
edb88a2b94 Merge "Add ResTable_sparseTypeEntry support" 2017-02-18 00:39:18 +00:00
TreeHugger Robot
18c527b96d Merge "Fix instant app resolution" 2017-02-18 00:24:56 +00:00
TreeHugger Robot
7470861b97 Merge "Move InputMethodAndSubtypeEnabler to SettingsLib and port to TV" 2017-02-18 00:21:23 +00:00
TreeHugger Robot
e868c1419f Merge "Send TIME_SET to manifest receivers, too" 2017-02-18 00:20:52 +00:00
TreeHugger Robot
4b441535c3 Merge changes Ie28325b6,I4e406a94
* changes:
  Display on-going notification for apps using alert windows.
  Set importance for processes displaying app-overlays based on visibility
2017-02-18 00:11:41 +00:00
Tetsutoki Shiozawa
046194a0a7 Merge "Apply RTL layout to the title of ResolverActivity" am: 2122e42e9b
am: add56f7b66

Change-Id: I00cd1ae9bd14043f6ad893076d4adebb59d4cde5
2017-02-18 00:11:27 +00:00
Suprabh Shukla
3dea1c7972 Removing unnecessary call to ArraySet#toArray
Iterating over ArraySet using iterators is still more efficient than
first calling ArraySet#toArray and then iterating over the array.

Test: Minor optimization. make and existing tests should suffice.

Change-Id: Ifc282bfca98cf89b047dddddd78a6de020f27381
2017-02-17 16:11:01 -08:00
TreeHugger Robot
18c76bb197 Merge "Add logging constant for settings search result click" 2017-02-18 00:09:01 +00:00
Tetsutoki Shiozawa
add56f7b66 Merge "Apply RTL layout to the title of ResolverActivity"
am: 2122e42e9b

Change-Id: Ibf9e9d7a0a397e314588322b5c8228cf5fa23957
2017-02-18 00:07:27 +00:00
Fan Zhang
b1d49225c0 Add logging constant for settings search result click
Bug: 34975477
Test: Builds
Change-Id: Ie59fb0639c6aa4044ba4fdb0a71dd489bd2d3b68
2017-02-17 16:07:07 -08:00
TreeHugger Robot
a0e4367133 Merge "Move volume dialog expander" 2017-02-18 00:05:38 +00:00
Colin Cross
de523d80d1 Merge "WallpaperCropper has no tests, it doesn't need junit" am: a34472b7e6
am: 11436455cf

Change-Id: I5c15471c8e98a1a45df669c2d7a6a2956c9227b8
2017-02-18 00:01:24 +00:00
TreeHugger Robot
675d151ee3 Merge "Frameworks: Re-add tagsoup to preloaded-classes" 2017-02-18 00:01:03 +00:00
Colin Cross
11436455cf Merge "WallpaperCropper has no tests, it doesn't need junit"
am: a34472b7e6

Change-Id: I1a2c5018f2f85bb21fccdccd3c736fdc844dcf92
2017-02-17 23:57:56 +00:00
Treehugger Robot
2122e42e9b Merge "Apply RTL layout to the title of ResolverActivity" 2017-02-17 23:57:25 +00:00
Colin Cross
a34472b7e6 Merge "WallpaperCropper has no tests, it doesn't need junit" 2017-02-17 23:49:03 +00:00
Pulkit Bhuwalka
a110feee4c Merge "Remove outdated emulator check which causes BT to not start" am: ad7fb62d4f
am: 806ac5e1dd

Change-Id: I05b90b0f77fa74268f2f92bfa2e4decec3af5745
2017-02-17 23:32:37 +00:00
TreeHugger Robot
89f423d375 Merge "Fix leak in NotificationStackScroller by nulling out translatingParent" 2017-02-17 23:29:10 +00:00
Pulkit Bhuwalka
806ac5e1dd Merge "Remove outdated emulator check which causes BT to not start"
am: ad7fb62d4f

Change-Id: Ia6f9417e6b21ec7911036b8875b9603f8b36152e
2017-02-17 23:28:09 +00:00
TreeHugger Robot
a5e8f6cb8f Merge "AssetManager2: Various fixes" 2017-02-17 23:27:58 +00:00
Treehugger Robot
ad7fb62d4f Merge "Remove outdated emulator check which causes BT to not start" 2017-02-17 23:20:25 +00:00
TreeHugger Robot
16386302d7 Merge "Camera: Make CameraMetadataNative compile-time initializable" 2017-02-17 23:15:27 +00:00
TreeHugger Robot
168ec38060 Merge "Append entries for real" 2017-02-17 23:13:50 +00:00
Dongwon Kang
d66301f7e3 Merge "TIF: specify the type for COLUMN_INTERACTION_COUNT" 2017-02-17 23:07:40 +00:00
Phil Weaver
0adfbd33c8 Use accessibility action for touch exploration
Explore-By-Touch has been dispatching touch events to the screen
rather than using the accessibility API. This was intended as a
workaround for apps that did not properly handle accessibility,
but the workaround itself has been causing bugs in corner cases
where properly accessible Views are partially covered by windows.

This CL first tries to dispatch a click action, and falls back on
the touch dispatch only if the click action fails.

Bug: 35200501
Bug: 26216304
Bug: 20665958
Bug: 34949365
Bug: 34844480
Bug: 29535082

Test: Poking around with first party apps and TalkBack works fine.
This behavior isn't covered by automated testing.

Change-Id: I9cc18399d8f40f7381dfcbef91b5991b711bb7f1
2017-02-17 15:07:33 -08:00
TreeHugger Robot
2a80419409 Merge "Catch reentrancy while executing postponed transactions." 2017-02-17 23:06:17 +00:00
TreeHugger Robot
dd903d4f0e Merge "Modifying dpm.setSecureSetting call for install_non_market_apps" 2017-02-17 23:05:48 +00:00
Colin Cross
af736c9e99 resolve merge conflicts of e86b78a57404 to master
Test: none
Change-Id: I8bf02f8198d003c4453cc59b7a3bccdff688ca15
2017-02-17 15:05:37 -08:00