OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Add a debug flag to disable time correction."
Daniel Nishi [Wed, 1 Mar 2017 22:16:46 +0000 (22:16 +0000)]
Merge "Add a debug flag to disable time correction."

7 years agoMerge "Remove FastJNI optimization on AssetManager to avoid dead lock."
TreeHugger Robot [Wed, 1 Mar 2017 22:06:12 +0000 (22:06 +0000)]
Merge "Remove FastJNI optimization on AssetManager to avoid dead lock."

7 years agoMerge "Add QS tile for Night Display when first used"
Christine Franks [Wed, 1 Mar 2017 22:03:51 +0000 (22:03 +0000)]
Merge "Add QS tile for Night Display when first used"

7 years agoMerge "Fix some old and annoying doc problems."
TreeHugger Robot [Wed, 1 Mar 2017 22:03:18 +0000 (22:03 +0000)]
Merge "Fix some old and annoying doc problems."

7 years agoMerge "Add a network scorer label metadata field to NetworkScoreAppData"
TreeHugger Robot [Wed, 1 Mar 2017 21:54:33 +0000 (21:54 +0000)]
Merge "Add a network scorer label metadata field to NetworkScoreAppData"

7 years agoMerge "Use context's userId in ContentResolver class."
TreeHugger Robot [Wed, 1 Mar 2017 21:49:26 +0000 (21:49 +0000)]
Merge "Use context's userId in ContentResolver class."

7 years agoMerge "Add tracing for broadcast sending and processing."
Carmen Jackson [Wed, 1 Mar 2017 21:03:10 +0000 (21:03 +0000)]
Merge "Add tracing for broadcast sending and processing."

7 years agoMerge changes I6c0c8730,Icbae30d2
TreeHugger Robot [Wed, 1 Mar 2017 21:02:22 +0000 (21:02 +0000)]
Merge changes I6c0c8730,Icbae30d2

* changes:
  Fix Wifi Signal strength in the picker.
  Create a Tron event for opening the network details page.

7 years agoMerge "Add the new package stats query to wrapper."
Daniel Nishi [Wed, 1 Mar 2017 20:54:55 +0000 (20:54 +0000)]
Merge "Add the new package stats query to wrapper."

7 years agoAdd QS tile for Night Display when first used
Christine Franks [Mon, 23 Jan 2017 22:45:29 +0000 (14:45 -0800)]
Add QS tile for Night Display when first used

Bug: 30994985
Test: runtest systemui, and manual - verify that the quick settings
panel does not have a Night Display quick settings tile, then turn
Night Display on and verify that the tile has appeared. Multiuser
does NOT work and is tracked separately.

Change-Id: I997b4ca7952016fc703a6bb777e500f4eccce189

7 years agoMerge "Add a process state seq counter to UidRecord."
TreeHugger Robot [Wed, 1 Mar 2017 20:28:54 +0000 (20:28 +0000)]
Merge "Add a process state seq counter to UidRecord."

7 years agoUse context's userId in ContentResolver class.
Sudheer Shanka [Fri, 3 Feb 2017 23:15:57 +0000 (15:15 -0800)]
Use context's userId in ContentResolver class.

- When registering and notifying observers, we should use the user in the
context as opposed to current user.
- Relax the permission check while registering and notifying content observers
to use INTERACT_ACROSS_USERS instead of INTERACT_ACROSS_USERS_FULL permission.

Change-Id: I973936903d4a2272c5722f3b98a057a40c0402be
Fixes: 32955100
Test: Created managed profile and verified that there are not failures.
      runtest -x core/tests/coretests/src/android/content/SecondaryUserContentResolverTest.java
      runtest -x core/tests/coretests/src/android/content/ManagedUserContentResolverTest.java

7 years agoMerge "Add method for plugins to reference global dependencies"
TreeHugger Robot [Wed, 1 Mar 2017 19:55:22 +0000 (19:55 +0000)]
Merge "Add method for plugins to reference global dependencies"

7 years agoMerge "Fix vararg build warning"
TreeHugger Robot [Wed, 1 Mar 2017 19:53:21 +0000 (19:53 +0000)]
Merge "Fix vararg build warning"

7 years agoAdd a network scorer label metadata field to NetworkScoreAppData
Stephen Chen [Wed, 1 Mar 2017 02:11:34 +0000 (18:11 -0800)]
Add a network scorer label metadata field to NetworkScoreAppData

This field allows Network Score Services to pass an alternate label for
the scorer.

Bug: 35848510
Test: runtest --path
frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScorerAppManagerTest.java
runtest --path
frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScoreServiceTest.java

Change-Id: Ic28671c1663bd08b2406045d20c150a209d56054

7 years agoMerge "Add DUN to networkAttributes" am: 32d763b0ed am: 4e8cd7dca6
Ajay Nambi [Wed, 1 Mar 2017 19:44:48 +0000 (19:44 +0000)]
Merge "Add DUN to networkAttributes" am: 32d763b0ed am: 4e8cd7dca6
am: 5e6147faa0

Change-Id: I2ed7b482916804c783e2fa9e7c053e20e8eb59e7

7 years agoMerge "Add DUN to networkAttributes" am: 32d763b0ed
Ajay Nambi [Wed, 1 Mar 2017 19:39:16 +0000 (19:39 +0000)]
Merge "Add DUN to networkAttributes" am: 32d763b0ed
am: 4e8cd7dca6

Change-Id: I802d4cbb1ca1f04d661047c0f4cc0b650295e65c

7 years agoMerge "Add DUN to networkAttributes"
Ajay Nambi [Wed, 1 Mar 2017 19:35:52 +0000 (19:35 +0000)]
Merge "Add DUN to networkAttributes"
am: 32d763b0ed

Change-Id: I863e700b6b98bc23924d7f146e09c1c2c27f608f

7 years agoMerge "Add DUN to networkAttributes"
Treehugger Robot [Wed, 1 Mar 2017 19:25:38 +0000 (19:25 +0000)]
Merge "Add DUN to networkAttributes"

7 years agoMerge "Move graphicstests to coretests"
Sergey Vasilinets [Wed, 1 Mar 2017 19:20:54 +0000 (19:20 +0000)]
Merge "Move graphicstests to coretests"

7 years agoMerge "Only adjust window layers from WindowLayerController"
TreeHugger Robot [Wed, 1 Mar 2017 19:15:16 +0000 (19:15 +0000)]
Merge "Only adjust window layers from WindowLayerController"

7 years agoMerge "Pinned animation: Avoid expensive defensive programming."
TreeHugger Robot [Wed, 1 Mar 2017 19:11:18 +0000 (19:11 +0000)]
Merge "Pinned animation: Avoid expensive defensive programming."

7 years agoAdd a process state seq counter to UidRecord.
Sudheer Shanka [Fri, 24 Feb 2017 00:34:40 +0000 (16:34 -0800)]
Add a process state seq counter to UidRecord.

This seq counter is associated with the process state in UidRecord
and will be incremented whenever the uid state is going from
background to foreground or vice versa.

Bug: 27803922
Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services
Change-Id: I1183d929bc7e0b2c9912de3822eb344d2bb0dcf7

7 years agoMerge "Permit privileged system apps to send SMS without persisting." am: 3d5504724f...
ashastry [Wed, 1 Mar 2017 18:32:10 +0000 (18:32 +0000)]
Merge "Permit privileged system apps to send SMS without persisting." am: 3d5504724f am: 6c567af893
am: 70e47219b4

Change-Id: Ifc032a2dff3402909805cb122693c85fe90d0b41

7 years agoMerge "Permit privileged system apps to send SMS without persisting." am: 3d5504724f
ashastry [Wed, 1 Mar 2017 18:27:52 +0000 (18:27 +0000)]
Merge "Permit privileged system apps to send SMS without persisting." am: 3d5504724f
am: 6c567af893

Change-Id: I1a891d3d8abbf506a91a0236fa7380cfa143e988

7 years agoAdd method for plugins to reference global dependencies
Jason Monk [Fri, 24 Feb 2017 20:57:05 +0000 (15:57 -0500)]
Add method for plugins to reference global dependencies

The new annotation versioning system allows plugins to share common
global interfaces that can be versioned on their own. To facilitate
this add a static method for plugins to get a hold of dependencies.
To get any dependency a plugin must @Requires it so it can be version
checked.

Test: Plugin that uses the new call.
Change-Id: I8e01260f8fbc14465502d506a7aa08212795ad9b

7 years agoMerge "Permit privileged system apps to send SMS without persisting."
ashastry [Wed, 1 Mar 2017 18:23:49 +0000 (18:23 +0000)]
Merge "Permit privileged system apps to send SMS without persisting."
am: 3d5504724f

Change-Id: I94cbf0ab94401149905290e395ddf71371aac849

7 years agoMerge "Permit privileged system apps to send SMS without persisting."
ashastry [Wed, 1 Mar 2017 18:18:46 +0000 (18:18 +0000)]
Merge "Permit privileged system apps to send SMS without persisting."

7 years agoRemove FastJNI optimization on AssetManager to avoid dead lock.
Tim Zhang [Thu, 16 Feb 2017 01:55:27 +0000 (09:55 +0800)]
Remove FastJNI optimization on AssetManager to avoid dead lock.

I found there was a dead lock among main, android.display and GC threads
when running monkey test.
 - Main thread got a mutex and was suspended by GC thread.
 - Android.display thread waited for mutex held by main thread.
 - GC thread waited for suspention of android.display thread.

This will lead to ANR or screen freeze.

Fixes: 32480078
Test: builds

Change-Id: I13cf1eca3cb3b7c01aa754874f2b48aab0b472e8

7 years agoMerge "Add direct sensor report NDK API"
Peng Xu [Wed, 1 Mar 2017 17:58:31 +0000 (17:58 +0000)]
Merge "Add direct sensor report NDK API"

7 years agoMerge "Merge "[AWARE] Add data-path security configuration (PMK)" am: eff6f4fc43...
Android Build Merger (Role) [Wed, 1 Mar 2017 17:55:35 +0000 (17:55 +0000)]
Merge "Merge "[AWARE] Add data-path security configuration (PMK)" am: eff6f4fc43 am: b50d958c4a am: 756216fdf9"

7 years agoMerge "[AWARE] Add data-path security configuration (PMK)" am: eff6f4fc43 am: b50d958c4a
Etan Cohen [Wed, 1 Mar 2017 17:54:35 +0000 (17:54 +0000)]
Merge "[AWARE] Add data-path security configuration (PMK)" am: eff6f4fc43 am: b50d958c4a
am: 756216fdf9

Change-Id: I5cdfbac3dafeecde732ea641cfcfee34c5e376ed

7 years agoMerge "Fix premultiplied flag for hardware bitmaps"
Sergey Vasilinets [Wed, 1 Mar 2017 17:54:05 +0000 (17:54 +0000)]
Merge "Fix premultiplied flag for hardware bitmaps"

7 years agoMerge "Channels for Frameworks notifications"
Geoffrey Pitsch [Wed, 1 Mar 2017 17:51:19 +0000 (17:51 +0000)]
Merge "Channels for Frameworks notifications"

7 years agoMerge "[AWARE] Add data-path security configuration (PMK)" am: eff6f4fc43
Etan Cohen [Wed, 1 Mar 2017 17:49:32 +0000 (17:49 +0000)]
Merge "[AWARE] Add data-path security configuration (PMK)" am: eff6f4fc43
am: b50d958c4a

Change-Id: I99cdde15f3ea9dc4630ccd09a242f3a1148d33bb

7 years agoMerge "Modify SurfaceView to use SurfaceFlinger child surfaces."
Rob Carr [Wed, 1 Mar 2017 17:49:23 +0000 (17:49 +0000)]
Merge "Modify SurfaceView to use SurfaceFlinger child surfaces."

7 years agoMerge "[AWARE] Add data-path security configuration (PMK)"
Etan Cohen [Wed, 1 Mar 2017 17:45:42 +0000 (17:45 +0000)]
Merge "[AWARE] Add data-path security configuration (PMK)"
am: eff6f4fc43

Change-Id: I90b6324a903b6307c084c891d7eba75957e13886

7 years agoMerge "[AWARE] Add data-path security configuration (PMK)"
Etan Cohen [Wed, 1 Mar 2017 17:39:14 +0000 (17:39 +0000)]
Merge "[AWARE] Add data-path security configuration (PMK)"

7 years agoMerge "Reduce flakes."
TreeHugger Robot [Wed, 1 Mar 2017 17:37:36 +0000 (17:37 +0000)]
Merge "Reduce flakes."

7 years agoMerge "Avoid deadlock when installing app"
TreeHugger Robot [Wed, 1 Mar 2017 17:30:08 +0000 (17:30 +0000)]
Merge "Avoid deadlock when installing app"

7 years agoresolve merge conflicts of 81a28efd1b16 to stage-aosp-master am: b455f0deed
Tyler Gunn [Wed, 1 Mar 2017 17:03:04 +0000 (17:03 +0000)]
resolve merge conflicts of 81a28efd1b16 to stage-aosp-master am: b455f0deed
am: 63700b7a8f  -s ours

Change-Id: I485e67447ad5004410ae1d719a4b48baed606517

7 years agoMerge "Expose isInstantApp() to more callers"
TreeHugger Robot [Wed, 1 Mar 2017 16:58:33 +0000 (16:58 +0000)]
Merge "Expose isInstantApp() to more callers"

7 years agoresolve merge conflicts of 81a28efd1b16 to stage-aosp-master
Tyler Gunn [Wed, 1 Mar 2017 16:51:27 +0000 (16:51 +0000)]
resolve merge conflicts of 81a28efd1b16 to stage-aosp-master
am: b455f0deed

Change-Id: Idca0886e3d6e4f1a5eaeeec98e6c7ed46985a29f

7 years agoresolve merge conflicts of 81a28efd1b16 to stage-aosp-master
Tyler Gunn [Wed, 1 Mar 2017 16:44:32 +0000 (08:44 -0800)]
resolve merge conflicts of 81a28efd1b16 to stage-aosp-master

Change-Id: Ic4c1ca055db8e70db49d9fc91dfc705da6136a5d

7 years agoMerge "Rename android.os.Build so it can be dynamically generated"
Diego Perez [Wed, 1 Mar 2017 16:11:11 +0000 (16:11 +0000)]
Merge "Rename android.os.Build so it can be dynamically generated"

7 years agoMerge "Support confirmation of international calls while on WFC only."
Tyler Gunn [Wed, 1 Mar 2017 16:08:39 +0000 (16:08 +0000)]
Merge "Support confirmation of international calls while on WFC only."

7 years agoReduce flakes.
Julia Reynolds [Wed, 1 Mar 2017 14:33:41 +0000 (09:33 -0500)]
Reduce flakes.

Test: runtest systemui-notifications
Change-Id: I48dc8be786246e6c639a14b16784a394eac49a6b

7 years agoAvoid deadlock when installing app
Shunta Sato [Wed, 19 Oct 2016 06:58:52 +0000 (15:58 +0900)]
Avoid deadlock when installing app

Symptom:
System crash is occurred by deadlock

Root cause:
ActivityManagerService's APIs usually hold a lock of itself instance.

In this case, four threads tried to take the same lock and it caused
deadlock.
Following three objects are in a three-cornered deadlocked.
- ActivityManagerService's instance
- PackageInstallerSession.mLock
- PackageManagerService.mPackages

Solution:
Call checkUidPermission before taking a lock of ActivityManagerService's
instance.

Fixes: 32425801
Test: manual
Author: Kazuki Nakayama <kazuki.x.nakayama@sonymobile.com>
Change-Id: I71ce57b1b8f3e0e9ba64b94a7b1f210b702efb6a

7 years ago[AWARE] Add data-path security configuration (PMK)
Etan Cohen [Tue, 21 Feb 2017 18:08:42 +0000 (10:08 -0800)]
[AWARE] Add data-path security configuration (PMK)

Add API to optionally provide a pairwise master key (PMK)
to configure security on a data-path.

Clarify the default API to mean open (unencrypted) data-path.

Bug: 33552694
Test: unit tests and integration (sl4a) tests
Change-Id: I43fe704547f2921b3207f215e42d253837aa04e9

7 years agoChannels for Frameworks notifications
Geoffrey Pitsch [Wed, 15 Feb 2017 14:35:38 +0000 (09:35 -0500)]
Channels for Frameworks notifications

Adapts all notifications used by system services to use channels.
Channels are initialized by SystemServer after the NotificationService
has started.

Test: runtest systemui-notification
Change-Id: I25c45293b786adb57787aeab4c2613c9d7c89dab

7 years agoMerge "Add API Surface for creating IpSec Transforms" am: 7645fa2816 am: 0a6305d5dd
Nathan Harold [Wed, 1 Mar 2017 14:22:57 +0000 (14:22 +0000)]
Merge "Add API Surface for creating IpSec Transforms" am: 7645fa2816 am: 0a6305d5dd
am: 3ddaf3e6b0

Change-Id: Idceae0e5a1af2f357378b03fc0d257dab605b217

7 years agoRename android.os.Build so it can be dynamically generated
Diego Perez [Wed, 1 Mar 2017 14:18:10 +0000 (14:18 +0000)]
Rename android.os.Build so it can be dynamically generated

This will allow the android.os.Build class to be generated dynamically
from the Studio side.
In order to allow the "refactoring" of classses like android.os.Build,
Create needed to be modified.

While adding the test, I've also done a small clean-up of the
AsmGeneratorTest to re-use some code.

Bug: http://b.android.com/210345
Test: Added new test to AsmGeneratorTest
Change-Id: Ie4e1209c1c60b7a33cb427dbd556a9741ec8f8b3

7 years agoMerge "Add API Surface for creating IpSec Transforms" am: 7645fa2816
Nathan Harold [Wed, 1 Mar 2017 14:17:46 +0000 (14:17 +0000)]
Merge "Add API Surface for creating IpSec Transforms" am: 7645fa2816
am: 0a6305d5dd

Change-Id: Ie1798e4d7dda91a970db40e078016fcbcf89149f

7 years agoMerge "Add API Surface for creating IpSec Transforms"
Nathan Harold [Wed, 1 Mar 2017 14:12:55 +0000 (14:12 +0000)]
Merge "Add API Surface for creating IpSec Transforms"
am: 7645fa2816

Change-Id: Ibe70a60c5c5808a7877145cccefcc1f11bfacc51

7 years agoMerge "Add API Surface for creating IpSec Transforms"
Treehugger Robot [Wed, 1 Mar 2017 14:05:47 +0000 (14:05 +0000)]
Merge "Add API Surface for creating IpSec Transforms"

7 years agoMerge "Fix dead lock in Tethering state machine" am: 355dbae680 am: 0703f03953
Erik Kline [Wed, 1 Mar 2017 11:55:44 +0000 (11:55 +0000)]
Merge "Fix dead lock in Tethering state machine" am: 355dbae680 am: 0703f03953
am: 83385ed04a

Change-Id: I7d0974d5ec4e3cab1581e1cce0e01eeb6bf7448a

7 years agoMerge "Fix dead lock in Tethering state machine" am: 355dbae680
Erik Kline [Wed, 1 Mar 2017 11:50:41 +0000 (11:50 +0000)]
Merge "Fix dead lock in Tethering state machine" am: 355dbae680
am: 0703f03953

Change-Id: I233d796cf67a71ebc43970f949930de46a0ddb3f

7 years agoMerge "Fix dead lock in Tethering state machine"
Erik Kline [Wed, 1 Mar 2017 11:46:10 +0000 (11:46 +0000)]
Merge "Fix dead lock in Tethering state machine"
am: 355dbae680

Change-Id: Idd08726f3eeebba49a9ad909464377af67600d30

7 years agoMerge "Fix dead lock in Tethering state machine"
Erik Kline [Wed, 1 Mar 2017 11:40:02 +0000 (11:40 +0000)]
Merge "Fix dead lock in Tethering state machine"

7 years agoMerge "Also test for additional NetworkCallback calls" am: dff6c5c30d am: 47d8385184
Erik Kline [Wed, 1 Mar 2017 11:13:14 +0000 (11:13 +0000)]
Merge "Also test for additional NetworkCallback calls" am: dff6c5c30d am: 47d8385184
am: 02310829cf

Change-Id: I0264a471312423e896a1c2f479c0eeda737a1567

7 years agoMerge "Also test for additional NetworkCallback calls" am: dff6c5c30d
Erik Kline [Wed, 1 Mar 2017 11:08:06 +0000 (11:08 +0000)]
Merge "Also test for additional NetworkCallback calls" am: dff6c5c30d
am: 47d8385184

Change-Id: I19ff91b1397abe20920bbae8aa6c976c6bcac0ba

7 years agoMerge "Also test for additional NetworkCallback calls"
Erik Kline [Wed, 1 Mar 2017 11:03:08 +0000 (11:03 +0000)]
Merge "Also test for additional NetworkCallback calls"
am: dff6c5c30d

Change-Id: I00b3f7be06bde167872d0cdefe940cda5e138846

7 years agoMerge "Also test for additional NetworkCallback calls"
Treehugger Robot [Wed, 1 Mar 2017 10:55:34 +0000 (10:55 +0000)]
Merge "Also test for additional NetworkCallback calls"

7 years agoMerge "More accurate cascading submenu position"
TreeHugger Robot [Wed, 1 Mar 2017 09:45:27 +0000 (09:45 +0000)]
Merge "More accurate cascading submenu position"

7 years agoAlso test for additional NetworkCallback calls
Erik Kline [Tue, 28 Feb 2017 07:20:20 +0000 (16:20 +0900)]
Also test for additional NetworkCallback calls

Specifcally:
    - onCapabilitiesChanged
    - onLinkPropertiesChanged
    - onNetworkSuspended

Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 32163131

Change-Id: Ie0f7c8ac21313b11980bb335c89ecde6fd8e311c

7 years agoMerge "Move some static methods from NPMS to NPM class."
TreeHugger Robot [Wed, 1 Mar 2017 08:38:43 +0000 (08:38 +0000)]
Merge "Move some static methods from NPMS to NPM class."

7 years agoMerge "Fix default value for mUidState.get."
TreeHugger Robot [Wed, 1 Mar 2017 06:38:12 +0000 (06:38 +0000)]
Merge "Fix default value for mUidState.get."

7 years agoMerge "AudioService: fix volume shaper release"
TreeHugger Robot [Wed, 1 Mar 2017 06:19:16 +0000 (06:19 +0000)]
Merge "AudioService: fix volume shaper release"

7 years agoAdd API Surface for creating IpSec Transforms
Nathan Harold [Fri, 13 Jan 2017 02:38:57 +0000 (18:38 -0800)]
Add API Surface for creating IpSec Transforms

This CL adds an API to set up an IPSec Security Association
and Security Policy to perform Transport-Mode and Tunnel-Mode encapuslation
of IP Packets.

Bug: 30984788
Bug: 34811752
Test: 3481205234811227
Change-Id: Ic9f63c7bb366302a24baa3e1b79020210910ac0a

7 years agoOnly adjust window layers from WindowLayerController
Robert Carr [Mon, 27 Feb 2017 19:33:33 +0000 (11:33 -0800)]
Only adjust window layers from WindowLayerController

Various animation adjustment logic will directly set mAnimLayer
outside of WindowLayerController. If we end up setting this layer
very high, we can end up moving it above the special windows
collected in WindowLayersController.

Bug: 33702491
Bug: 35396882
Test: bit FrameworksServicesTests:com.android.server.wm.WindowTokenTests
Change-Id: I9850529ecd6f0067bc24421515b39b645885a3ec

7 years agoMove graphicstests to coretests
sergeyv [Wed, 1 Mar 2017 02:28:27 +0000 (18:28 -0800)]
Move graphicstests to coretests

Two reason for merge:
1. Currently graphicstests aren't runned as part of acpt
2. Separation was confusing: android.graphics package existed in both apks: frameworks & coretests.

Test: refactoring CL.
Change-Id: I0ade3ebbc2d06074ae81a2c390475f1f434dd873

7 years agoMerge "set bounds"
TreeHugger Robot [Wed, 1 Mar 2017 02:24:30 +0000 (02:24 +0000)]
Merge "set bounds"

7 years agoMerge "Fix memory-leak warnings from the static analyzer" am: 2006bfc9ad am: 43fd84a03c
George Burgess IV [Wed, 1 Mar 2017 02:02:40 +0000 (02:02 +0000)]
Merge "Fix memory-leak warnings from the static analyzer" am: 2006bfc9ad am: 43fd84a03c
am: 0d0ccb0c19

Change-Id: I0abbba291721af2b66735dcbd33bbc406767536c

7 years agoMerge "Fix memory-leak warnings from the static analyzer" am: 2006bfc9ad
George Burgess IV [Wed, 1 Mar 2017 01:58:36 +0000 (01:58 +0000)]
Merge "Fix memory-leak warnings from the static analyzer" am: 2006bfc9ad
am: 43fd84a03c

Change-Id: Id2b577a021a3163d9f489235bf7f76c5f5ae527e

7 years agoMerge "Fix memory-leak warnings from the static analyzer"
George Burgess IV [Wed, 1 Mar 2017 01:53:27 +0000 (01:53 +0000)]
Merge "Fix memory-leak warnings from the static analyzer"
am: 2006bfc9ad

Change-Id: I2efd6e42c72d3163505a23e8a95e45526a5ef642

7 years agoFix Wifi Signal strength in the picker.
Sundeep Ghuman [Wed, 1 Mar 2017 01:23:09 +0000 (17:23 -0800)]
Fix Wifi Signal strength in the picker.

Bug: b/35854026
Test: Tracked in b/35854035 and currently blocked.
Change-Id: I6c0c8730e891b29de2db3d935193f3feecac8182

7 years agoCreate a Tron event for opening the network details page.
Sundeep Ghuman [Mon, 27 Feb 2017 23:57:58 +0000 (15:57 -0800)]
Create a Tron event for opening the network details page.

Bug: 35807357
Test: NA
Change-Id: Icbae30d2e4af4e46e289cad490a6531157c54d5e

7 years agoMerge "Add boolean when instant apps are available"
TreeHugger Robot [Wed, 1 Mar 2017 01:49:04 +0000 (01:49 +0000)]
Merge "Add boolean when instant apps are available"

7 years agoFix premultiplied flag for hardware bitmaps
sergeyv [Tue, 28 Feb 2017 23:25:10 +0000 (15:25 -0800)]
Fix premultiplied flag for hardware bitmaps

Test: android.uirendering.cts.testclasses.HardwareBitmapTests
bug:35752428
Change-Id: I2d21822e13c007c760f2fb42370aeb9240fcb5fa

7 years agoMerge "Fix memory-leak warnings from the static analyzer"
Treehugger Robot [Wed, 1 Mar 2017 01:45:51 +0000 (01:45 +0000)]
Merge "Fix memory-leak warnings from the static analyzer"

7 years agoAdd direct sensor report NDK API
Peng Xu [Thu, 16 Feb 2017 07:25:21 +0000 (23:25 -0800)]
Add direct sensor report NDK API

Added libandroid mapping and implementation of the following API:

  * ASensorManager_configureDirectReport
  * ASensorManager_createSharedMemoryDirectChannel
  * ASensorManager_createHardwareBufferDirectChannel
  * ASensorManager_destroyDirectChannel
  * ASensor_getHighestDirectReportRateLevel
  * ASensor_isDirectChannelTypeSupported

Test:  cts-tradefed run cts --module CtsSensorTestCases \
      --test android.hardware.cts.SensorNativeTest

Bug: 30985702
Change-Id: Ic808cc50d1ecbc789944ef77a4b247dc0c83c28a

7 years agoPinned animation: Avoid expensive defensive programming.
Robert Carr [Wed, 1 Mar 2017 01:18:29 +0000 (17:18 -0800)]
Pinned animation: Avoid expensive defensive programming.

Sys-trace revealed contention here as the overwhelming
cause of missed frames during the animation (typically contention
with relayout). The checks aren't necessary, and there is a visible
gain from removing the contention here.

Bug: 35396882
Test: Manual
Change-Id: I5151c603ac445c7832c9c499b663e5b9ec54e9f4

7 years agoFix vararg build warning
Maurice Lam [Wed, 1 Mar 2017 01:12:31 +0000 (17:12 -0800)]
Fix vararg build warning

Fix the following build warning:
[...]/InputMethodAndSubtypeUtil.java:399: warning: non-varargs call
of varargs method with inexact argument type for last parameter;
    ListFormatter.getInstance(locale).format(subtypeNames), locale);
                                                   ^
cast to Object for a varargs call
cast to Object[] for a non-varargs call and to suppress this warning

Test: Existing tests pass (cd tests/robotests && mma)
Change-Id: Ie13ff713d3dbbe1f308fcd105656a484b89c8f1d

7 years agoMerge "Merge "Add @hide to RttAudioMode IntDef" am: 22af0f3377 am: c284379659 am...
Android Build Merger (Role) [Wed, 1 Mar 2017 01:11:50 +0000 (01:11 +0000)]
Merge "Merge "Add @hide to RttAudioMode IntDef" am: 22af0f3377 am: c284379659 am: f000639f82"

7 years agoMerge "Add @hide to RttAudioMode IntDef" am: 22af0f3377 am: c284379659
Hall Liu [Wed, 1 Mar 2017 01:11:04 +0000 (01:11 +0000)]
Merge "Add @hide to RttAudioMode IntDef" am: 22af0f3377 am: c284379659
am: f000639f82

Change-Id: Ibcb239e0aa3499386f6f71026084276b07554cdb

7 years agoMerge "Introduce ANSWER_PHONE_CALLS permission"
TreeHugger Robot [Wed, 1 Mar 2017 01:10:17 +0000 (01:10 +0000)]
Merge "Introduce ANSWER_PHONE_CALLS permission"

7 years agoMerge "Add @hide to RttAudioMode IntDef" am: 22af0f3377
Hall Liu [Wed, 1 Mar 2017 01:05:58 +0000 (01:05 +0000)]
Merge "Add @hide to RttAudioMode IntDef" am: 22af0f3377
am: c284379659

Change-Id: I892dd9f7c070aade5962b53277a860a55ed237ea

7 years agoMerge "Add @hide to RttAudioMode IntDef"
Hall Liu [Wed, 1 Mar 2017 01:01:29 +0000 (01:01 +0000)]
Merge "Add @hide to RttAudioMode IntDef"
am: 22af0f3377

Change-Id: Ifdfdf7ced2f88188314475c99dd58cdf886f014d

7 years agoMerge "Add @hide to RttAudioMode IntDef"
Hall Liu [Wed, 1 Mar 2017 00:51:37 +0000 (00:51 +0000)]
Merge "Add @hide to RttAudioMode IntDef"

7 years agoExpose isInstantApp() to more callers
Todd Kennedy [Wed, 1 Mar 2017 00:34:15 +0000 (16:34 -0800)]
Expose isInstantApp() to more callers

Instead of just allowing the instant app itself, also allow anyone
with ACCESS_INSTANT_APP permission or apps that the instant app
has granted access.

Change-Id: I5a79ef9520db908ba9ab56af0157b1646d2d8cc1
Fixes: 34123112
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest

7 years agoMerge "fix typo"
Todd Kennedy [Wed, 1 Mar 2017 00:25:01 +0000 (00:25 +0000)]
Merge "fix typo"

7 years agofix typo
Todd Kennedy [Wed, 1 Mar 2017 00:20:09 +0000 (16:20 -0800)]
fix typo

Fixes: 35840741
Test: None; it's a javadoc fix
Change-Id: Ic59fe12351c24630d7ba18ffaafeef8035be35f5

7 years agoFix memory-leak warnings from the static analyzer
George Burgess IV [Wed, 25 Jan 2017 00:30:22 +0000 (16:30 -0800)]
Fix memory-leak warnings from the static analyzer

Warnings:
frameworks/base/core/jni/android_view_InputChannel.cpp:145:5: warning:
Potential memory leak
jobject serverChannelObj =
android_view_InputChannel_createInputChannel(env,
^~~~~~~~~~~~~~~~~~~~~~~~
frameworks/base/core/jni/android_view_InputChannel.cpp:151:5: warning:
Potential memory leak
jobject clientChannelObj =
android_view_InputChannel_createInputChannel(env,
^~~~~~~~~~~~~~~~~~~~~~~~

The warnings were complaining about that we might leak
nativeInputChannel, in android_view_InputChannel_createInputChannel,
since we're allocating it as an arg and not always putting it somewhere.

Bug: None
Test: Builds without warnings
Change-Id: I62163adee5d420ad78c8d4c74aafefc8a58f765b

7 years agoMerge "Sending explicit broadcast to the launcher when a package is installed"
Sunny Goyal [Tue, 28 Feb 2017 23:58:35 +0000 (23:58 +0000)]
Merge "Sending explicit broadcast to the launcher when a package is installed"

7 years agoMerge "Remove drawer code from settings"
TreeHugger Robot [Tue, 28 Feb 2017 23:38:42 +0000 (23:38 +0000)]
Merge "Remove drawer code from settings"

7 years agoAdd boolean when instant apps are available
Todd Kennedy [Mon, 27 Feb 2017 19:45:13 +0000 (11:45 -0800)]
Add boolean when instant apps are available

Bug: 34168547
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Ic1072d02aa4d43947e689e4381c2c5ee43704dd0

7 years agoMerge "Check hwbinder status before checking the returned result"
TreeHugger Robot [Tue, 28 Feb 2017 23:23:10 +0000 (23:23 +0000)]
Merge "Check hwbinder status before checking the returned result"

7 years agoAdd @hide to RttAudioMode IntDef
Hall Liu [Tue, 28 Feb 2017 23:17:44 +0000 (15:17 -0800)]
Add @hide to RttAudioMode IntDef

IntDefs apparently require an @hide annotation to avoid breaking CTS
tests. Adding it here.

Change-Id: Ifd748b55e68091132571df7e74fdb797bd6a83fc
Test: CTS
Fix: 35808951

7 years agoMerge "TIF: add WatchNextPrograms in TvContracts"
TreeHugger Robot [Tue, 28 Feb 2017 23:14:54 +0000 (23:14 +0000)]
Merge "TIF: add WatchNextPrograms in TvContracts"

7 years agoset bounds
Todd Kennedy [Tue, 28 Feb 2017 23:11:52 +0000 (15:11 -0800)]
set bounds

temporary workaround to prevent ephemeral app uninstallation from
crashing the system server.

Bug: 35673160
Test: manually uninstall ephemeral app and see the framework doesn't crash
Change-Id: I6542206b51a00ca4321de4310a59620569b1516a