OSDN Git Service

android-x86/frameworks-native.git
7 years agoMerge "Support pointer capture in InputReader"
TreeHugger Robot [Thu, 26 Jan 2017 07:22:21 +0000 (07:22 +0000)]
Merge "Support pointer capture in InputReader"

7 years agoMerge "Remove from preloads/file_cache when clearing the cache"
TreeHugger Robot [Thu, 26 Jan 2017 06:43:11 +0000 (06:43 +0000)]
Merge "Remove from preloads/file_cache when clearing the cache"

7 years agoMerge "vulkan: Stub/forwarding implementation of gpdp2 in nulldrv"
Chris Forbes [Thu, 26 Jan 2017 02:32:18 +0000 (02:32 +0000)]
Merge "vulkan: Stub/forwarding implementation of gpdp2 in nulldrv"

7 years agoMerge "Add mode to open call with O_CREAT" am: af78fe13a0 am: f6b468db7b am: 2b0fedb71e
George Burgess IV [Thu, 26 Jan 2017 01:39:38 +0000 (01:39 +0000)]
Merge "Add mode to open call with O_CREAT" am: af78fe13a0 am: f6b468db7b am: 2b0fedb71e
am: b640267dd1  -s ours

Change-Id: I7de019ab141fd0f3164d0d489e8e8412ed13fcbd

7 years agoMerge "Add mode to open call with O_CREAT" am: af78fe13a0 am: f6b468db7b
George Burgess IV [Thu, 26 Jan 2017 01:37:08 +0000 (01:37 +0000)]
Merge "Add mode to open call with O_CREAT" am: af78fe13a0 am: f6b468db7b
am: 2b0fedb71e

Change-Id: I7710b8e0e21243edf1136fa87bb36655bc5b5b95

7 years agoMerge "Add mode to open call with O_CREAT" am: af78fe13a0
George Burgess IV [Thu, 26 Jan 2017 01:34:39 +0000 (01:34 +0000)]
Merge "Add mode to open call with O_CREAT" am: af78fe13a0
am: f6b468db7b

Change-Id: I6ec7cd3bfa79ac95a042e26455073cb3cbec60c3

7 years agoMerge "Add mode to open call with O_CREAT"
George Burgess IV [Thu, 26 Jan 2017 01:32:36 +0000 (01:32 +0000)]
Merge "Add mode to open call with O_CREAT"
am: af78fe13a0

Change-Id: I488ffb3be9152532fd3e7eddd7bc78d311673420

7 years agoMerge "Add mode to open call with O_CREAT"
Treehugger Robot [Thu, 26 Jan 2017 01:25:52 +0000 (01:25 +0000)]
Merge "Add mode to open call with O_CREAT"

7 years agoSupport pointer capture in InputReader
Vladislav Kaznacheev [Fri, 16 Dec 2016 02:14:58 +0000 (18:14 -0800)]
Support pointer capture in InputReader

When pointer capture is enabled, the pointer icon is hidden,
the pointer location is not changing, and CursorInputMapper
generates "captured" events with relative offsets instead of
absolute positions.

Captured events have their source set to a newly introduced
SOURCE_MOUSE_RELATIVE (of SOURCE_CLASS_TRACKBALL).

Test: InputReader_test --gtest_filter=
    CursorInputMapperTest.Process_PointerCapture

Bug: 30897034
Change-Id: Id30cb8e7edac56ab813e22a834cc44ab263d1003

7 years agovulkan: Stub/forwarding implementation of gpdp2 in nulldrv
Chris Forbes [Wed, 25 Jan 2017 23:45:49 +0000 (12:45 +1300)]
vulkan: Stub/forwarding implementation of gpdp2 in nulldrv

Implements gpdp2 in terms of the core 1.0 functions. This is just
enough to be able to demonstrate CTS against gpdp2, and shake out
any bad loader interactions.

Where we hadn't bothered to implement the core function in nulldrv,
don't do it for gpdp2 equivalent either.

Test: dEQP-VK.api.info.get_physical_device_properties2 etc
Change-Id: I04ac05a01a67c6e03bd1a569701b046cf86877e9

7 years agoMerge "Vulkan: only report refreshDuration, not {min|max}RefreshDuration"
Ian Elliott [Wed, 25 Jan 2017 22:45:36 +0000 (22:45 +0000)]
Merge "Vulkan: only report refreshDuration, not {min|max}RefreshDuration"

7 years agoAdd mode to open call with O_CREAT
George Burgess IV [Wed, 25 Jan 2017 21:51:53 +0000 (13:51 -0800)]
Add mode to open call with O_CREAT

This change was already applied internally. For us to submit FORTIFY, we
need to push it out here. Otherwise, we get compile-time errors about
this.

Bug: 32073964
Test: Builds with FORTIFY.
Change-Id: Ib500aca933468c06f7ceb796a9bb6a16c118e366
Merged-In: I63eb3d5499ae7e9ff9a77393763e39b747fd4611

7 years agoVulkan: only report refreshDuration, not {min|max}RefreshDuration
Ian Elliott [Wed, 25 Jan 2017 20:09:20 +0000 (13:09 -0700)]
Vulkan: only report refreshDuration, not {min|max}RefreshDuration

Test: Manually tested with a modified cube demo, that reports the refresh
duration returned from this extension.

As part of discussions within Khronos, it was decided that
VK_GOOGLE_display_timing should only report one refresh duration for a display,
and assume that it's refresh rate is fixed (which is the case for our current
devices).

Change-Id: I772348281c18a36b02dcfe0519d1943e25a41f7c

7 years agoRemove from preloads/file_cache when clearing the cache
Fyodor Kupolov [Wed, 7 Sep 2016 20:07:45 +0000 (13:07 -0700)]
Remove from preloads/file_cache when clearing the cache

Test: pm trim-caches 50G internal
Bug: 31008665
Change-Id: If74f4d3c2d838ecb924aba84ad76293af34089bc

7 years agoMerge changes I96f8ad86,I84dcd82e,Ifcece69f
Rob Carr [Wed, 25 Jan 2017 19:14:27 +0000 (19:14 +0000)]
Merge changes I96f8ad86,I84dcd82e,Ifcece69f

* changes:
  SurfaceFlinger and libgui: Support for child layers.
  SurfaceFlinger: Use traversal functions to iterate LayerList.
  SurfaceFlinger and libgui: Switch Z-order to signed type.

7 years agoMerge "Add support for BLOB format to HardwareBuffer."
TreeHugger Robot [Wed, 25 Jan 2017 17:23:21 +0000 (17:23 +0000)]
Merge "Add support for BLOB format to HardwareBuffer."

7 years agoMerge "Fix min delay for virtual geomag vector sensor"
TreeHugger Robot [Wed, 25 Jan 2017 07:24:55 +0000 (07:24 +0000)]
Merge "Fix min delay for virtual geomag vector sensor"

7 years agoFix min delay for virtual geomag vector sensor
Grigory Dzhavadyan [Tue, 1 Nov 2016 00:02:32 +0000 (17:02 -0700)]
Fix min delay for virtual geomag vector sensor

bug: 31808374

N-CTS requires this to be <= 10 ms

Change-Id: I0959fa2cb9ae40bc832726fedccc77366aba1520
(cherry picked from commit f1a9141f72fc73af0485d12f5e4b5b176dbe9f34)

7 years agoinstalld: add command 'removeIdmap'
Mårten Kongstad [Tue, 15 Dec 2015 13:02:30 +0000 (14:02 +0100)]
installd: add command 'removeIdmap'

Add an installd command to remove an idmap file. This is the inverse of
the 'idmap' command and is intended for clean-up once an idmap file is
no longer needed because an APK was removed, etc.

This commit depends on a corresponding commit in frameworks/base (with
the same Change-Id).

Bug: 31052947
Test: run tests from 'OMS: tests for OverlayManagerService'
Change-Id: Iae19a519803f0c172b02a32faa283ef36f43863c

7 years agoAdd support for BLOB format to HardwareBuffer.
Craig Donner [Wed, 25 Jan 2017 02:16:10 +0000 (18:16 -0800)]
Add support for BLOB format to HardwareBuffer.

Test: updated CTS test to check for error conditions if the blob dimensions are
bad.
Bug: 34050596

Change-Id: I48e78fa3f133f6283737ade78bdf35094981aef9

7 years agoMerge "Rename colorimetry to color mode"
TreeHugger Robot [Wed, 25 Jan 2017 01:20:23 +0000 (01:20 +0000)]
Merge "Rename colorimetry to color mode"

7 years agoMerge "Plumb refresh cycle duration up to VK_GOOGLE_display_timing."
Ian Elliott [Tue, 24 Jan 2017 23:18:23 +0000 (23:18 +0000)]
Merge "Plumb refresh cycle duration up to VK_GOOGLE_display_timing."

7 years agoMerge "BufferQueue: Add bufferReplaced flag in QueueBufferOutput"
TreeHugger Robot [Tue, 24 Jan 2017 23:12:51 +0000 (23:12 +0000)]
Merge "BufferQueue: Add bufferReplaced flag in QueueBufferOutput"

7 years agoMerge "Add function to determine if SensorDevice support direct report"
Peng Xu [Tue, 24 Jan 2017 23:04:08 +0000 (23:04 +0000)]
Merge "Add function to determine if SensorDevice support direct report"

7 years agoSurfaceFlinger and libgui: Support for child layers.
Robert Carr [Mon, 24 Oct 2016 23:27:39 +0000 (16:27 -0700)]
SurfaceFlinger and libgui: Support for child layers.

Add support for parenting Layers in a tree. Layers
follow scene-graph style rules, that is to say:
   1. A child is cropped to the final bounds of the parent.
   2. A child inherits the parent's transform (including position)
   3. A child's Z ordering is relative to the parent and bounded between
      the parents siblings.
   4. A childs lifetime is bounded by it's parents lifetime.

Test: New tests in Transaction_test plus manual testing with later branches.
Change-Id: I96f8ad863665b9a70b6f845561344c297b7e6eff

7 years agoSurfaceFlinger: Use traversal functions to iterate LayerList.
Robert Carr [Mon, 28 Nov 2016 22:09:09 +0000 (14:09 -0800)]
SurfaceFlinger: Use traversal functions to iterate LayerList.

In preparation for the Layer hierarchy. There we will need
to use such a style to traverse the tree of layers.

Test: Just a refactoring. SurfaceFlinger still works.
Change-Id: I84dcd82e713f1bdbe911658793ce11460267a956

7 years agoSurfaceFlinger and libgui: Switch Z-order to signed type.
Robert Carr [Mon, 28 Nov 2016 18:51:00 +0000 (10:51 -0800)]
SurfaceFlinger and libgui: Switch Z-order to signed type.

In preparation for SurfaceFlinger child layers. In that model
children's Z order will be relative to their parent. We need
negative Z values to represent children stacking below their
parent (e.g. SurfaceView). Java side already uses signed types
strangely enough.

Test: Basically a refactoring. SurfaceFlinger still works.
Change-Id: Ifcece69f6f9d917cbf5238a59f8e5de1e8ba6a25

7 years agoVR: Add API to plumb surface type and owner through to SurfaceFlinger
Albert Chaulk [Tue, 22 Nov 2016 18:52:43 +0000 (13:52 -0500)]
VR: Add API to plumb surface type and owner through to SurfaceFlinger

This is a cherry-pick of
https://googleplex-android-review.git.corp.google.com/c/1648886/

Test: None
Bug: None
Change-Id: I338c84c2576ab85fa4f6d8e759c9e7ce912cdd61

7 years agoPlumb refresh cycle duration up to VK_GOOGLE_display_timing.
Ian Elliott [Fri, 20 Jan 2017 20:13:20 +0000 (13:13 -0700)]
Plumb refresh cycle duration up to VK_GOOGLE_display_timing.

Test: Manually tested with a modified cube demo, that reports the refresh
duration returned from this extension.

Change-Id: Ib9499429119e910585a4ee9341c3a2d86a3bdae0

7 years agoMerge "Make dataspace accessible to surface flinger"
Courtney Goeltzenleuchter [Tue, 24 Jan 2017 15:28:02 +0000 (15:28 +0000)]
Merge "Make dataspace accessible to surface flinger"

7 years agoMerge "Track AudioService method: disableRingtoneSync"
TreeHugger Robot [Tue, 24 Jan 2017 15:05:22 +0000 (15:05 +0000)]
Merge "Track AudioService method: disableRingtoneSync"

7 years agoTrack AudioService method: disableRingtoneSync
Robin Lee [Tue, 24 Jan 2017 11:16:54 +0000 (11:16 +0000)]
Track AudioService method: disableRingtoneSync

Bug: 30658854
Test: cts-tradefed --test com.android.cts.devicepolicy.ManagedProfileTest
Change-Id: Ie38497f2ff268689171671c8e87cf75b1e2e22ae

7 years agoAdd function to determine if SensorDevice support direct report
Peng Xu [Tue, 24 Jan 2017 04:06:27 +0000 (20:06 -0800)]
Add function to determine if SensorDevice support direct report

Added a function to SensorDevice to indicate if direct report is
supported. This avoided a crash condition in non-HIDL implementation.

Test: test with demo app on a HAL w/ and w/o direct report support
Change-Id: If68497bb8890b9e6003c2afeec38d16daf81f237

7 years agoMerge "Properly align a packed structure." am: 24257dda48 am: 7e500210be am: bfee6aee59
Stephen Hines [Tue, 24 Jan 2017 02:26:43 +0000 (02:26 +0000)]
Merge "Properly align a packed structure." am: 24257dda48 am: 7e500210be am: bfee6aee59
am: e226d82702

Change-Id: I3c9e07e48928390a98c01299fd16d58154f34150

7 years agoMerge "Properly align a packed structure." am: 24257dda48 am: 7e500210be
Stephen Hines [Tue, 24 Jan 2017 02:22:06 +0000 (02:22 +0000)]
Merge "Properly align a packed structure." am: 24257dda48 am: 7e500210be
am: bfee6aee59

Change-Id: I801b129aa66816d9639f9b089ca35fc82caf69fa

7 years agoAllow bugreport broadcasts to launch manifest receivers
Christopher Tate [Mon, 23 Jan 2017 20:20:21 +0000 (12:20 -0800)]
Allow bugreport broadcasts to launch manifest receivers

Bug 34594835

Test: bugreport via hard buttons
Change-Id: I7a944f2dfa35d278d2f78d1b37beab4468bd1bb4

7 years agoMerge "Properly align a packed structure." am: 24257dda48
Stephen Hines [Tue, 24 Jan 2017 01:21:35 +0000 (01:21 +0000)]
Merge "Properly align a packed structure." am: 24257dda48
am: 7e500210be

Change-Id: If09a200e9efa35ecc8611d087a7ba63f99f2a330

7 years agoMerge "Properly align a packed structure."
Stephen Hines [Tue, 24 Jan 2017 01:20:04 +0000 (01:20 +0000)]
Merge "Properly align a packed structure."
am: 24257dda48

Change-Id: I66d07aab4dfa72afe44270d866514102f660aab6

7 years agoMerge "Properly align a packed structure."
Treehugger Robot [Tue, 24 Jan 2017 01:15:06 +0000 (01:15 +0000)]
Merge "Properly align a packed structure."

7 years agoRename colorimetry to color mode
Romain Guy [Tue, 24 Jan 2017 00:58:08 +0000 (16:58 -0800)]
Rename colorimetry to color mode

This API was introduced in O

Bug: 32984164
Test: compile
Change-Id: Ia58bc52d79ea746ad2feabafad326c90f385ee0a

7 years agoMerge "vulkan: Allow HAL to expose KHR_swapchain_front_buffered"
Chris Forbes [Tue, 24 Jan 2017 00:13:59 +0000 (00:13 +0000)]
Merge "vulkan: Allow HAL to expose KHR_swapchain_front_buffered"

7 years agoMerge "Update CommandWriter to CommandWriterBase"
TreeHugger Robot [Mon, 23 Jan 2017 21:48:43 +0000 (21:48 +0000)]
Merge "Update CommandWriter to CommandWriterBase"

7 years agovulkan: Allow HAL to expose KHR_swapchain_front_buffered
Chris Forbes [Mon, 23 Jan 2017 21:16:48 +0000 (10:16 +1300)]
vulkan: Allow HAL to expose KHR_swapchain_front_buffered

All the API surface for this is in libvulkan, but we need the driver to
have opted in to the more relaxed rules wrt which image layouts may
appear where.

Test: build
Change-Id: I9f1b3cf3df84d928a8b216180a5798bb1bfb046d

7 years agoMerge "sensors HAL uses "default" service name"
Chris Phoenix [Mon, 23 Jan 2017 20:42:53 +0000 (20:42 +0000)]
Merge "sensors HAL uses "default" service name"

7 years agoMerge "Adding AHardwareBuffer header."
TreeHugger Robot [Mon, 23 Jan 2017 19:29:01 +0000 (19:29 +0000)]
Merge "Adding AHardwareBuffer header."

7 years agoMerge "Removed duplicated build from bugreport name."
TreeHugger Robot [Mon, 23 Jan 2017 19:24:29 +0000 (19:24 +0000)]
Merge "Removed duplicated build from bugreport name."

7 years agoMerge "Update atrace to work with tracefs, not debugfs" am: a92616ecfe am: ea7c1845ee...
Paul Lawrence [Mon, 23 Jan 2017 18:39:43 +0000 (18:39 +0000)]
Merge "Update atrace to work with tracefs, not debugfs" am: a92616ecfe am: ea7c1845ee am: 00613eaf8d
am: 3e715e9929

Change-Id: I3b7c015a8fb37aa5b135e7b329f31c9bf4d31166

7 years agoMerge "Update atrace to work with tracefs, not debugfs" am: a92616ecfe am: ea7c1845ee
Paul Lawrence [Mon, 23 Jan 2017 18:34:25 +0000 (18:34 +0000)]
Merge "Update atrace to work with tracefs, not debugfs" am: a92616ecfe am: ea7c1845ee
am: 00613eaf8d

Change-Id: Ia24e8eb3bc9b1b9ea5ce4047233c3cbd82016e29

7 years agoMerge "Update atrace to work with tracefs, not debugfs" am: a92616ecfe
Paul Lawrence [Mon, 23 Jan 2017 18:31:12 +0000 (18:31 +0000)]
Merge "Update atrace to work with tracefs, not debugfs" am: a92616ecfe
am: ea7c1845ee

Change-Id: I5e31ed34bbaf173577b3b33bbda0f4e4c6a67f92

7 years agoMerge "Update atrace to work with tracefs, not debugfs"
Paul Lawrence [Mon, 23 Jan 2017 18:26:56 +0000 (18:26 +0000)]
Merge "Update atrace to work with tracefs, not debugfs"
am: a92616ecfe

Change-Id: I139cd33d0a943bff3385cbd3ebc52eb47bc82be5

7 years agoMerge "Update atrace to work with tracefs, not debugfs"
Treehugger Robot [Mon, 23 Jan 2017 18:20:51 +0000 (18:20 +0000)]
Merge "Update atrace to work with tracefs, not debugfs"

7 years agoRemoved duplicated build from bugreport name.
Felipe Leme [Mon, 23 Jan 2017 17:41:00 +0000 (09:41 -0800)]
Removed duplicated build from bugreport name.

It got duplicated by a bad git merge :-(

Change-Id: I476e63405fa7b0ef858728da7400ee860b56296f
Fixes: 33257711
Test: manual verification
Test: dumpstate_test passes

7 years agoMerge "dumpsys: add option to list hardware services." am: 4d741ebedc am: 57d82aa9fd...
Steven Moreland [Sat, 21 Jan 2017 21:29:51 +0000 (21:29 +0000)]
Merge "dumpsys: add option to list hardware services." am: 4d741ebedc am: 57d82aa9fd am: 42b3ff58a6
am: bb7afe6ac9

Change-Id: I5696bb6d3175687f1107a964a53af8940667d5c8

7 years agoMerge "dumpsys: add option to list hardware services." am: 4d741ebedc am: 57d82aa9fd
Steven Moreland [Sat, 21 Jan 2017 21:24:59 +0000 (21:24 +0000)]
Merge "dumpsys: add option to list hardware services." am: 4d741ebedc am: 57d82aa9fd
am: 42b3ff58a6

Change-Id: If9c58d07862e23e96ce89dc0fa282f49302379bb

7 years agoMerge "dumpsys: add option to list hardware services." am: 4d741ebedc
Steven Moreland [Sat, 21 Jan 2017 21:20:28 +0000 (21:20 +0000)]
Merge "dumpsys: add option to list hardware services." am: 4d741ebedc
am: 57d82aa9fd

Change-Id: Ife39a9b63ccf7a8fd83ad9b142c68cb0b0f321e4

7 years agoMerge "dumpsys: add option to list hardware services."
Steven Moreland [Sat, 21 Jan 2017 21:15:29 +0000 (21:15 +0000)]
Merge "dumpsys: add option to list hardware services."
am: 4d741ebedc

Change-Id: I78070b7363e0562a0b236035989dcb9ae666d6d6

7 years agoMerge "dumpsys: add option to list hardware services."
Treehugger Robot [Sat, 21 Jan 2017 21:11:50 +0000 (21:11 +0000)]
Merge "dumpsys: add option to list hardware services."

7 years agolibEGL: Add initialization tracing am: bb5a921fef -s ours
Jesse Hall [Sat, 21 Jan 2017 05:30:12 +0000 (05:30 +0000)]
libEGL: Add initialization tracing am: bb5a921fef  -s ours
am: f876f22584  -s ours

Change-Id: I017f5e01a7dae1378a196376b8169cc6cffbb967

7 years agolibEGL: Add initialization tracing
Jesse Hall [Sat, 21 Jan 2017 05:26:22 +0000 (05:26 +0000)]
libEGL: Add initialization tracing
am: bb5a921fef  -s ours

Change-Id: Ic964dad618db0a3f55f55b607330d5acddf6b676

7 years agosensors HAL uses "default" service name
Chris Phoenix [Sat, 21 Jan 2017 04:06:28 +0000 (20:06 -0800)]
sensors HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

Bug: 33844934
Change-Id: I83295febf0fd9e63cbbbc0b3c57962ec5961cee5

7 years agodumpsys: add option to list hardware services.
Steven Moreland [Fri, 20 Jan 2017 23:24:51 +0000 (15:24 -0800)]
dumpsys: add option to list hardware services.

This gives a convenient way to dump information about hidl services.
When hidl services dump information themselves as well, that dump will
be made here as well.

Bug: 33382892
Test: dumpsys_test, dumpsys --hw works as expected
Change-Id: Ib08b5d052e63ed6260035ee8d3ad3dac296202b1

7 years agoMerge "vibrator HAL uses "default" service name"
Chris Phoenix [Sat, 21 Jan 2017 02:51:31 +0000 (02:51 +0000)]
Merge "vibrator HAL uses "default" service name"

7 years agoMerge "libEGL: Add initialization tracing" into nyc-mr2-dev-plus-aosp
Jesse Hall [Sat, 21 Jan 2017 02:46:04 +0000 (02:46 +0000)]
Merge "libEGL: Add initialization tracing" into nyc-mr2-dev-plus-aosp
am: a348fabfe0

Change-Id: I12aa15717824cb9e6b6430f1d404620a4be34f15

7 years agovibrator HAL uses "default" service name
Chris Phoenix [Thu, 19 Jan 2017 23:53:00 +0000 (15:53 -0800)]
vibrator HAL uses "default" service name

The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds; verify HAL still works

Bug: 33844934

Change-Id: Ifd6c601c854a87ee60c14bb2e73d95d25236690e

7 years agoAdding AHardwareBuffer header.
Craig Donner [Tue, 3 Jan 2017 18:24:58 +0000 (10:24 -0800)]
Adding AHardwareBuffer header.

Bug: 34050596
Test: build (should have no functional change from header), and new CTS tests
run using cts-tradefed on a Pixel XL
Change-Id: Ib2b566ad76667f9309843724eedef20d9621238e

7 years agoresolve merge conflicts of 1508ae60c to master
Jesse Hall [Sat, 21 Jan 2017 00:51:04 +0000 (16:51 -0800)]
resolve merge conflicts of 1508ae60c to master

Test: make
Change-Id: I414f4299ae637c6cc21d556e568d93378e49fa5d

7 years agolibEGL: Add initialization tracing
Jesse Hall [Fri, 20 Jan 2017 01:43:26 +0000 (17:43 -0800)]
libEGL: Add initialization tracing

The first call to eglGetDisplay() loads drivers and initializes
dispatch tables. This currently takes significant time (85-100 ms),
and can must be done before the first frame of an app can be shown.

This change adds systrace markers for the major parts of this process,
as a precursor to optimizing them.

Bug: 34404021
Test: manual systrace of calculator app startup on bullhead
Change-Id: Ibdd62ba4eb0d69e472c64081554c16283967ae08
Merged-In: If1ecb5a81f9d33daf72c6f3e5b403972f8529b2d

7 years agoMerge "libEGL: Add initialization tracing" into nyc-mr2-dev-plus-aosp
Jesse Hall [Fri, 20 Jan 2017 23:57:58 +0000 (23:57 +0000)]
Merge "libEGL: Add initialization tracing" into nyc-mr2-dev-plus-aosp

7 years agoUpdate atrace to work with tracefs, not debugfs
Paul Lawrence [Tue, 17 Jan 2017 17:50:18 +0000 (09:50 -0800)]
Update atrace to work with tracefs, not debugfs

When tracefs is mounted, tracing is under /sys/kernel/tracing not
/sys/kernel/debug/tracing. Modify atrace to detect this situation and
get the right files.

Bug: 31856701
Test: Run atrace, check output is same where ever tracefs is mounted
Change-Id: I78df0da91d9f56c56077d1b8b9dba7b0126b2d8d

7 years agoMerge "Add Binder support for Parcelable exceptions." am: 7ebfeb9d1c am: fa418b2b15...
Jeff Sharkey [Fri, 20 Jan 2017 23:12:30 +0000 (23:12 +0000)]
Merge "Add Binder support for Parcelable exceptions." am: 7ebfeb9d1c am: fa418b2b15 am: cd9254082d
am: f0ad79668f

Change-Id: Ia256ad9a6bf073f5b3000985217b9dac04bd306f

7 years agoMerge "Add Binder support for Parcelable exceptions." am: 7ebfeb9d1c am: fa418b2b15
Jeff Sharkey [Fri, 20 Jan 2017 23:03:51 +0000 (23:03 +0000)]
Merge "Add Binder support for Parcelable exceptions." am: 7ebfeb9d1c am: fa418b2b15
am: cd9254082d

Change-Id: I0ab52eaf2b93da53396cec416a8a0a0e30220b4c

7 years agoMerge "Add Binder support for Parcelable exceptions." am: 7ebfeb9d1c
Jeff Sharkey [Fri, 20 Jan 2017 22:56:56 +0000 (22:56 +0000)]
Merge "Add Binder support for Parcelable exceptions." am: 7ebfeb9d1c
am: fa418b2b15

Change-Id: I59c64df526ae8ba0c07532f983a224b72b427060

7 years agoMerge "Add Binder support for Parcelable exceptions."
Jeff Sharkey [Fri, 20 Jan 2017 22:49:47 +0000 (22:49 +0000)]
Merge "Add Binder support for Parcelable exceptions."
am: 7ebfeb9d1c

Change-Id: Ia9fe213e51fef0fe2b000ed188b943079f9c9535

7 years agoMerge "Add Binder support for Parcelable exceptions."
Jeff Sharkey [Fri, 20 Jan 2017 22:45:03 +0000 (22:45 +0000)]
Merge "Add Binder support for Parcelable exceptions."

7 years agolibEGL: Add initialization tracing
Jesse Hall [Fri, 20 Jan 2017 01:43:26 +0000 (17:43 -0800)]
libEGL: Add initialization tracing

The first call to eglGetDisplay() loads drivers and initializes
dispatch tables. This currently takes significant time (85-100 ms),
and can must be done before the first frame of an app can be shown.

This change adds systrace markers for the major parts of this process,
as a precursor to optimizing them.

Bug: 34404021
Test: manual systrace of calculator app startup on bullhead
Change-Id: If1ecb5a81f9d33daf72c6f3e5b403972f8529b2d

7 years agoMerge "Add i2c tracing support to atrace" am: 2630e78f53 am: 8b6f035960 am: 1fd4f885dc
Michael Wright [Fri, 20 Jan 2017 20:18:17 +0000 (20:18 +0000)]
Merge "Add i2c tracing support to atrace" am: 2630e78f53 am: 8b6f035960 am: 1fd4f885dc
am: decf4e53b1

Change-Id: If9efc719e961e94e408380f483d8f32dd119b235

7 years agoMerge "Add i2c tracing support to atrace" am: 2630e78f53 am: 8b6f035960
Michael Wright [Fri, 20 Jan 2017 20:15:25 +0000 (20:15 +0000)]
Merge "Add i2c tracing support to atrace" am: 2630e78f53 am: 8b6f035960
am: 1fd4f885dc

Change-Id: Ic643712f08bad7561b3d490513d25da94ac64c20

7 years agoMerge "Add i2c tracing support to atrace" am: 2630e78f53
Michael Wright [Fri, 20 Jan 2017 20:12:55 +0000 (20:12 +0000)]
Merge "Add i2c tracing support to atrace" am: 2630e78f53
am: 8b6f035960

Change-Id: Ie9ec292bfaa8f2ea6f29daeca624edda6c5e18af

7 years agoMerge "Add i2c tracing support to atrace"
Michael Wright [Fri, 20 Jan 2017 20:10:25 +0000 (20:10 +0000)]
Merge "Add i2c tracing support to atrace"
am: 2630e78f53

Change-Id: Icc06121228858c35b90ef5ad0d4a0ecc470a3909

7 years agoMerge "Add feature flag for TelephonyManager#get/setAllowedCarriers" am: c4fc77792c...
Polina Bondarenko [Fri, 20 Jan 2017 20:08:31 +0000 (20:08 +0000)]
Merge "Add feature flag for TelephonyManager#get/setAllowedCarriers" am: c4fc77792c am: 969f4742f4 am: 1b11e44b94
am: 3b16cc25fd

Change-Id: Ic6c5756c217273b31dc2c5770f30da133a84a7e4

7 years agoMerge "Add i2c tracing support to atrace"
Treehugger Robot [Fri, 20 Jan 2017 20:07:13 +0000 (20:07 +0000)]
Merge "Add i2c tracing support to atrace"

7 years agoMerge "Add feature flag for TelephonyManager#get/setAllowedCarriers" am: c4fc77792c...
Polina Bondarenko [Fri, 20 Jan 2017 20:05:42 +0000 (20:05 +0000)]
Merge "Add feature flag for TelephonyManager#get/setAllowedCarriers" am: c4fc77792c am: 969f4742f4
am: 1b11e44b94

Change-Id: Ied26a01c8b70c897fe5cb775436447620d1baa97

7 years agoMerge "Add feature flag for TelephonyManager#get/setAllowedCarriers" am: c4fc77792c
Polina Bondarenko [Fri, 20 Jan 2017 20:03:12 +0000 (20:03 +0000)]
Merge "Add feature flag for TelephonyManager#get/setAllowedCarriers" am: c4fc77792c
am: 969f4742f4

Change-Id: I7e755924f2a3e1556fcdc47068c0a863276ce984

7 years agoMerge "Add feature flag for TelephonyManager#get/setAllowedCarriers"
Polina Bondarenko [Fri, 20 Jan 2017 20:01:12 +0000 (20:01 +0000)]
Merge "Add feature flag for TelephonyManager#get/setAllowedCarriers"
am: c4fc77792c

Change-Id: I4368431b3537bde427d8bb68f33fc8b6cf876f15

7 years agoMerge "Add feature flag for TelephonyManager#get/setAllowedCarriers"
Treehugger Robot [Fri, 20 Jan 2017 19:55:15 +0000 (19:55 +0000)]
Merge "Add feature flag for TelephonyManager#get/setAllowedCarriers"

7 years agoBufferQueue: Add bufferReplaced flag in QueueBufferOutput
Shuzhen Wang [Thu, 19 Jan 2017 07:02:36 +0000 (23:02 -0800)]
BufferQueue: Add bufferReplaced flag in QueueBufferOutput

For async buffer queue, when queueBuffer overwrites a previously queued
buffer, because consumer won't be able to acquire the overwritten
buffer, onBufferReleased isn't triggered either.

This makes it difficult to track which buffer in the buffer queue
becomes free other than calling dequeueBuffer(). Adding a flag in
QueueBufferOutput addresses this issue.

Test: TestBufferReplacedInQueueBuffer in BufferQueue_tests
Bug: 34481539
Change-Id: Ic7f4be2d3f9691dd6b007a450240614c0c420f0d

7 years agoMerge "Added device name to bugreport file."
TreeHugger Robot [Fri, 20 Jan 2017 19:24:22 +0000 (19:24 +0000)]
Merge "Added device name to bugreport file."

7 years agoAdd i2c tracing support to atrace
Michael Wright [Thu, 18 Aug 2016 18:56:43 +0000 (19:56 +0100)]
Add i2c tracing support to atrace

Cherry-picking from internal master

Test: None
Change-Id: Iaf0daa0982bd8d2355d3590d43ad78711e764ee0

7 years agoFix typo in new enum, VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE
Ian Elliott [Fri, 20 Jan 2017 16:15:48 +0000 (09:15 -0700)]
Fix typo in new enum, VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE

Test: build

Change-Id: I5ed26459e7ab2c358dad731025e4b83ae71b3de0

7 years agoMerge "Add wide color gamut and HDR resource qualifiers"
TreeHugger Robot [Fri, 20 Jan 2017 04:09:59 +0000 (04:09 +0000)]
Merge "Add wide color gamut and HDR resource qualifiers"

7 years agovulkan: return OUT_OF_DATE from GetSwapchainStatus if not current
Chris Forbes [Thu, 19 Jan 2017 23:50:17 +0000 (12:50 +1300)]
vulkan: return OUT_OF_DATE from GetSwapchainStatus if not current

We don't yet have good ways to detect other ways in which the swapchain
may have gone bad, but it's easy to detect the case where the swapchain
is not current for the surface it targets.

Test: build
Change-Id: Id882a4a699d65f323e8a5e181f0e25e903039f21

7 years agoMerge "Direct report mode support in sensor service and client"
TreeHugger Robot [Thu, 19 Jan 2017 23:21:58 +0000 (23:21 +0000)]
Merge "Direct report mode support in sensor service and client"

7 years agoAdd wide color gamut and HDR resource qualifiers
Romain Guy [Thu, 19 Jan 2017 00:36:21 +0000 (16:36 -0800)]
Add wide color gamut and HDR resource qualifiers

Test: aapt tests
Bug: 32984164
Change-Id: I2bd81f6a08ef1b4fa4ba7eb05b6a923f82fcc78a

7 years agoMerge "Minor tweaks to VK_GOOGLE_display_timing"
TreeHugger Robot [Thu, 19 Jan 2017 22:46:20 +0000 (22:46 +0000)]
Merge "Minor tweaks to VK_GOOGLE_display_timing"

7 years agoMerge "Measure external storage using new GIDs." am: f5a21ba425 am: 973d5aeb17 am...
Jeff Sharkey [Thu, 19 Jan 2017 22:11:50 +0000 (22:11 +0000)]
Merge "Measure external storage using new GIDs." am: f5a21ba425 am: 973d5aeb17 am: 9715247a54
am: 3801d6668c

Change-Id: Iced41d9d4d5ccc146e044de68046b8ee48d2fc52

7 years agoMerge "Measure external storage using new GIDs." am: f5a21ba425 am: 973d5aeb17
Jeff Sharkey [Thu, 19 Jan 2017 22:09:20 +0000 (22:09 +0000)]
Merge "Measure external storage using new GIDs." am: f5a21ba425 am: 973d5aeb17
am: 9715247a54

Change-Id: Ic1687f3b78ba2b3be689eb9462f568e7a68c54d8

7 years agoMerge "Measure external storage using new GIDs." am: f5a21ba425
Jeff Sharkey [Thu, 19 Jan 2017 22:06:49 +0000 (22:06 +0000)]
Merge "Measure external storage using new GIDs." am: f5a21ba425
am: 973d5aeb17

Change-Id: If3e585b5a35faa1f0151351affa23b382976dc4a

7 years agoMerge "Measure external storage using new GIDs."
Jeff Sharkey [Thu, 19 Jan 2017 22:04:19 +0000 (22:04 +0000)]
Merge "Measure external storage using new GIDs."
am: f5a21ba425

Change-Id: Id8f48276b4768a9e49b943e7142c33d7a365374a

7 years agoMerge "Measure external storage using new GIDs."
Jeff Sharkey [Thu, 19 Jan 2017 22:00:50 +0000 (22:00 +0000)]
Merge "Measure external storage using new GIDs."

7 years agoDirect report mode support in sensor service and client
Peng Xu [Thu, 3 Nov 2016 18:57:10 +0000 (11:57 -0700)]
Direct report mode support in sensor service and client

Added SensorDirectConnection to represent the direct channel.
The life-cycle is similar to that of SensorEventConnection.
Modified SensorDevice and SensorDeviceTreble to support new
HAL API. Added support in SensorManager, SensorService, binder
classes. Also added related helper functions in Sensor and dumpsys
support in SensorList.

Test: manual test with demo app
Bug: 30985702
Change-Id: I8750294b6aab717ed7f525299be642f1f0b85558