Commit Graph

309172 Commits

Author SHA1 Message Date
Diego Perez
3d3e69ce6d Fix BridgeContext.resolveThemeAttribute color parsing
When passed a color, resolveThemeAttribute was not parsing the value
into the .data field.

Bug: http://b.android.com/232870
Test: Added new test
Change-Id: I9d91e3a70c24f1e71d9d89977fe79b0965e98893
2017-02-20 11:08:26 +00:00
Rubin Xu
82c2d94e89 Merge "Normalize empty credential into null" 2017-02-20 11:03:26 +00:00
TreeHugger Robot
7bde762f3b Merge "Add support for remote views backed auto-fill UI" 2017-02-20 10:59:43 +00:00
Andrei Stingaceanu
2c2c3eea8e Merge "AutoSize TextView (part 10) - final APIs" 2017-02-20 10:27:07 +00:00
Svet Ganov
00c771dc7d Add support for remote views backed auto-fill UI
Test: CTS and manual

Change-Id: Ia09f0208d78439491052e4886a0e71c387b73370
2017-02-20 00:37:33 -08:00
TreeHugger Robot
71fe435056 Merge "MediaSessionService: Notify volume key long-presses when the screen is off" 2017-02-20 04:06:04 +00:00
Jaekyun Seok
b8789dd9cd Allow default permission exceptions to be read from vendor partition
Soc vendors should be allowed to add their own default permission
exceptions because they can install their own apps in /vendor/app.

Test: building succeeded and tested on sailfish.
Bug: 35369237
Change-Id: I7fd0044f4edee6524232c6f8d77481c26535e1d6
2017-02-20 11:25:07 +09:00
Jaewan Kim
d61a87baf0 MediaSessionService: Notify volume key long-presses when the screen is off
When the screen is off, MediaSessionService doesn't get the volume key
long-press events from the PhoneWindowManager because PhoneWindowManager
intercepts them and only sends initial down and up events.
This is intended because users cannot see the safety warning dialog
which warns users about too loud volume.

This CL assumes that volume key is long-pressed if the key up doesn't
happen after the initial down within the long-press timeout, and notify
them with IOnVolumeKeyLongPressListener.

Bug: 35328001
Test: Manual test
Change-Id: I3b5aec4c2dd66a181bf41786f1417cc65874356c
2017-02-20 10:57:37 +09:00
Phil Weaver
e3bf23bed9 Merge "Verify fingerprint exists before using it" 2017-02-19 04:48:19 +00:00
Colin Cross
a3b2212eda Revert "Remove outdated emulator check which causes BT to not start"
This reverts commit d98a4e5021.

Merged-In: Ibd1596584928f2aa2c799501536abc9b384d1cda
Change-Id: Ibd1596584928f2aa2c799501536abc9b384d1cda
2017-02-19 03:28:17 +00:00
Colin Cross
278028e97a Merge "Revert "Remove outdated emulator check which causes BT to not start"" 2017-02-19 03:27:35 +00:00
Romain Guy
dc43a6c99c Add missing GLES 3.x metadata
Prevent a crash when glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS) returns 0

Bug: 33106868
Test: Manual test app
Change-Id: If843b99efe5498f88ec10e1bd2b2819a01983864
2017-02-18 17:34:28 -08:00
TreeHugger Robot
827225b46d Merge "AudioService: prevent NPE on an invalid PIID" 2017-02-18 23:53:12 +00:00
TreeHugger Robot
5653fd68f9 Merge "Fix a race in persisting instant cookie" 2017-02-18 23:47:10 +00:00
Colin Cross
039deed1fd Revert "Remove outdated emulator check which causes BT to not start"
This reverts commit d98a4e5021.

Change-Id: Ibd1596584928f2aa2c799501536abc9b384d1cda
2017-02-18 13:35:45 -08:00
Svetoslav Ganov
1139944efd [DO NOT MERGE] The system can post notifications for any package
The platform is able to post notifications on behalf of
any app and muting the notifications for this app should
properly work by attributing the notification not to the
system but to the app on whose behalf the notication is
posted.

Test: manual

bug:34966823

Change-Id: I4ebb2f5da1540557a8e7203b054a90ff967237f2
2017-02-18 21:11:03 +00:00
Chad Brubaker
7fe0a5ac56 Use requesting userId for ApplicationInfo lookup
Change-Id: I4f29f31e48d66d16181fb415fd864de2746def94
Fixes: 34771610
Test: runtest --path
frameworks/base/services/tests/servicestests/src/com/android/server/pm/UserManagerTest.java
2017-02-18 12:14:02 -08:00
Isaac Chen
d34fac541a Turned ENABLE_CPUSETS into runtime decision.
ENABLE_CPUSETS is usually set in BoardConfig.mk to use CONFIG_CPUSETS
feature of Linux kernel.

This change turns the build time variable into runtime decision by
checking if a special file, "tasks", can be found under the mount
point, /dev/cpuset, for cpusets.

Bug: 34726944

Test: Tested on Sailfish
          without cpuset mounted
	  with cpuset mounted, but without schedtune mounted
	  with cpuset mounted and with schedtune mounted

Change-Id: I1c044c3c9d4d15360a1605e7022da84d94df4014
2017-02-18 16:42:54 +08:00
Svet Ganov
312c6cc6a6 Fix a race in persisting instant cookie
Test: CTS passes and manual too

Change-Id: I8beb7edb84e5f7e2a181a9c237d6f0f761805d70
2017-02-17 23:41:15 -08:00
Miao Wang
2570c1206a Update RenderScript JNI code for Treble
- Include rsApiStubs.h instead of rs.h, and remove unused
  dependencies for rs.h in Android.mk.
  - Remove libRSDriver.so from LOCAL_REQUIRED_MODULE, since it is not
  required nor directly used by librs_jni.so.
  - Fix the discrepancy in ElementGetNativeData and
  ElementGetSubElements, respective to NDK APIs exposed in libRS.so.

  rsApiStubs.h contains all public RenderScript APIs exposed in libRS.so.
  It fixes the mismatch of the declarations and definitions of the two
  functions mentioned above. And it does not rely on the auto generated
  header (rsgApiFuncDecl.h) anymore.

Bug: 34396220
Test: mm
Change-Id: Iedb1b976cfa9033dccefe78cbe80c8022f990e53
2017-02-17 23:34:01 -08:00
Tetsutoki Shiozawa
04215148cf Merge "Apply RTL layout to the title of ResolverActivity" am: 2122e42e9b am: add56f7b66
am: 046194a0a7

Change-Id: Ic431cf76e498998b2b9c6d2e40ee46bd00db5a4d
2017-02-18 06:28:47 +00:00
Colin Cross
0cbda3181f Merge "WallpaperCropper has no tests, it doesn't need junit" am: a34472b7e6 am: 11436455cf
am: de523d80d1

Change-Id: Ib567b678baa71884b7d8b5b603cd4a9e3ced1c75
2017-02-18 06:27:33 +00:00
TreeHugger Robot
b1c820edab Merge "resolve merge conflicts of a110feee4c 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
      ee2a7ed3d9

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 a110feee4c 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
Conrad Chen
735a8d8fe9 TIF: fix NPE caused by invalid component name
Fixes NPE caused by invalid component name in TvInputInfo.Builder

Test: bug fix
Bug: 29457556
Change-Id: I92a77777373669c893299eaad7367a68aa458156
2017-02-17 17:41:40 -08: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 e86b78a574 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
Glen Kuhne
173c3b3e89 Move wifi.proto to shared service .jar
Changes to ART are causing nano-proto's generated java base classes
to conflict with their duplicates in other projects, leading to a
NullPointerException.

Moving wifi.proto to the same build as other framework service protos in order
for them to share and not generate a duplicate CodedOutputByteBufferNano
classes.

wifi.proto previously lived at:
frameworks/opt/net/wifi/service/proto/wifi.proto

Merged-In: Ia30391453e8d6614edc7f4397e9c17cfe95cf63e
Bug: 32261442
Test: Builds, and existing Unit tests pass
Change-Id: Ia30391453e8d6614edc7f4397e9c17cfe95cf63e
2017-02-17 16:43:41 -08: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
Fyodor Kupolov
4b4ce6fa17 Log pm install time and package name
Bug: 32559349
Test: manual
Change-Id: Ibfbea8cab2ab085109ee4d5a248bfacf82cdfbbb
2017-02-17 16:30:00 -08: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