| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
private_handle_t's memory layout must be consistent between the 32-bit
and 64-bit gralloc, in case buffers are passed between processes.
Replace the (variably sized) uintptr_t base with a fixed size uint64_t,
and enforce 8-byte alignment for architectures where uint64_t alignment
varies between 32-bit and 64-bit.
Change-Id: I06cb31d4b9620ea18e5b50d3a3142b5adb2d2a14
Signed-off-by: Greg Hackmann <ghackmann@google.com>
|
|
|
|
| |
Change-Id: I7cf9d04828f19b8d7d1d3b8948bef580b101b10c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A constant sNumInts with a value of 6 was being assigned to the numInts
attribute in the private_handle_t constructor, and was also used in the
validate method. That constant value is appropriate for 32-bit systems
but is not appropriate for a 64-bit system where uintptr_t used for
base attribute will be 64-bit.
sNumInts is now changed to a static inline function that calculates
numInts.
Change-Id: I482ddb5915c9ff55fb2e2a87887a0ec2dc2299ed
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
|
|
|
|
|
|
|
| |
Fix LP64 pointer casting warnings, unused parameters, and
turn off missing initializer warnings.
Change-Id: Idb70f4534282fed64ae81cb1e154d3f5b93091b0
|
|
|
|
|
|
|
| |
LOCAL_MODULE_PATH doesn't work for multiarch builds, replace it
with LOCAL_MODULE_RELATIVE_PATH.
Change-Id: I4e4ceec61d026bbe74ba604554c06104bde42e5e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Android's implementation of vibrator needs to be done inside a
hardware module, so that it can make a vendor implementation possible.
Hw module's name becomes vibrator.default.so.
This change is related to other changes in:
- frameworks/base
- hardware/libhardware_legacy
- device/generic/goldfish
- platform/build
Change-Id: I844279f5535289f079d412fdc44c5cb3c9c1130c
Author: Vincent Becker <vincentx.becker@intel.com>
Signed-off-by: Vincent Becker <vincentx.becker@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: David Wagner <david.wagner@intel.com>
Author-tracking-BZ: 49760 94611
|
|
|
|
| |
Change-Id: Ibc7e70887b61f7dd885c86d412387636d3a6a867
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Iefb424db6f16ffefa40da56c765c9b7a24bea397
|
| |
| |
| |
| | |
Change-Id: Iaae40c06af0dc008429d5dee4f45dc0b156957a1
|
| |\ |
|
| | |
| | |
| | |
| | | |
Change-Id: Iffc2941d98ee16796cf3d44dec1cfa376d9362bb
|
| |/
| |
| |
| | |
Change-Id: I4e9e378940bb56202a6e6882f561b3293ad7225d
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Static camera characteristics can be queried on any device at any time.
Separate the locking for it from the rest of the device to eliminate any
contention between operations on the device and static characteristic
initialization.
Change-Id: I8076378699f274e70c6318e537df4758972de9db
|
| |
| |
| |
| | |
Change-Id: I196ee30ed57707ed4cc46fb3a9c5c07c5bac6fff
|
| |\ |
|
| | |
| | |
| | |
| | | |
Change-Id: Icfe9bf4b4768bbdcb11e6c77ac26163018f9c7c8
|
| |/
| |
| |
| | |
Change-Id: I085796569ea77336d32907ee2287ff7533b0c122
|
| |
| |
| |
| |
| |
| | |
keep traveling pointer local to the walking loop
Change-Id: I0038007d6e7a45e519b9b2162c674132477879cc
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The shutter callback timestamp should originate from the sensor itself,
since it knows exactly when the first line of the frame started
exposing. However, as a fallback (or in the CPU-painting case) query
CLOCK_BOOTTIME instead.
Change-Id: Id57c05525e9c575d009b9deb96a69557fccac16b
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Metadata is currently only used for immutable persistent settings
(static camera characteristics, and the capture templates), but will be
used for dynamic metadata as well. Make it deleteable so we can
create/destroy these at will.
Change-Id: I7372b07b904d5a6b55453093712e0bb2675918b5
|
| |
| |
| |
| | |
Change-Id: I4f51e509d86722c18308f4f1312ca3379cffd795
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
max_buffers and usage are read by the framework inside the struct used
to pass the stream configuration parameters; scribble our new
calculated values whever they are updated internally.
Adds logging to stream creation method (reuse/new).
Change-Id: I04e12880820571900f2ae80c27100f8aedcf9d02
|
| |
| |
| |
| |
| |
| | |
Type is now enum, not mask.
Change-Id: I264da26a457957a7659154e507970e0303c76e25
|
| |
| |
| |
| | |
Change-Id: I4fbd4ad919b855168e3ff5424613271b1fa907af
|
| |
| |
| |
| | |
Change-Id: I0a4b389e1850c10e12a65b3c8a5670c78c6746f7
|
| |
| |
| |
| | |
Change-Id: Id1aa624d377776a7e37b52978664d30c927595be
|
| |
| |
| |
| |
| |
| |
| | |
Basic static metadata statically constructed from preprocessor passes
over an array of camera metadata tags.
Change-Id: I16ea9f4d68120d5a0bc010a4a67b0cbcd761329e
|
| |
| |
| |
| | |
Change-Id: If4e377ba0ac327cc02ac2b9765ce5d406b8960a8
|
| |
| |
| |
| | |
Change-Id: I158ba833549aee47ca3be5673f6f5d33e455ef59
|
| |
| |
| |
| | |
Change-Id: I19c3a6a55a42e60f627702cd4a995664a0dfc4d2
|
| |
| |
| |
| | |
Change-Id: Ic1d20dd7f93a0ca3cd2c3af3b33a7a9df47b5e89
|
| |
| |
| |
| |
| |
| |
| |
| | |
Adds a Stream object, and configureStreams support in parsing the
provided stream_array. Streams are naively setup for sync-less software
painting.
Change-Id: Ibbd90e3e2c7fa984dd5d2dcbd4da7bf4dad43aa1
|
| |
| |
| |
| |
| |
| |
| |
| | |
This c++ helper class is normally provided by frameworks/native's
libutils, but cannot be used from the context of a hardware module. For
now just add the required functionality locally in the hardware module.
Change-Id: I5b399cbeb1c017a95baf19456dbf20569e677fbe
|
| |
| |
| |
| | |
Change-Id: Ic21cd58a750411167ef4b060e8d3abc295edc83d
|
| |
| |
| |
| | |
Change-Id: I2511653b3d2d21d03785ea220c760e2b65f0b035
|
|/
|
|
|
|
| |
Avoiding the use of gnu extensions improves code portability
Change-Id: Icf8e3d4813bcddff40548bb5e65e615f8697b75c
|
|
|
|
|
| |
Bug: 8468756
Change-Id: Ia883f459ea9e2648ca4a0b5a6f09ded4f46f13b3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The register/unregister gralloc calls were avoiding
mmapping/munmapping the shared memory region if the buffer was created
by the current process. This is left over from the pmem-based
implementation, where trying to map the same region twice in the same
process would fail, or would reuse a single mapping without
refcounting.
This causes problems if a buffer is
- allocated in process A,
- transferred from A to process B and registered there
- unregistered/freed in A
- transferred back from B to A and re-registered
Process A then has a new handle to the buffer, but since it originally
created the buffer it will not be mmapped, so trying to read or write
the buffer will crash.
With ashmem, mmaping a region twice in the same process creates two
distinct mappings which can be used and munmapped independently. So
we no longer need to avoid mmapping again in the allocating process.
Bug: 8468756
Change-Id: I167bec5ca07e5534c5e2115630fe8386e481388e
|
|
|
|
| |
Change-Id: Ic36fa7c6193086aa6415647ff8fe59cc358dd99f
|
|
|
|
|
|
|
| |
Default camera HAL statically allocates camera devices. Update camera
device to API v3.
Change-Id: Ic53ffcf3b746b9b4011b932e26dbb0f533cba554
|
|
|
|
|
|
|
| |
Refactor the camera module into a single CameraHAL object. Adds
set_callbacks, new in the v2.1 module API.
Change-Id: I4da677c28d7425f545f68998844fcfa4caf0feb9
|
|
|
|
|
|
|
| |
Explicitly hide all symbols from being exported from the camera HAL
except the symbol required to load the module.
Change-Id: I940b24b8d3895f46e63df3c28e43b8cb012bd637
|
|
|
|
| |
Change-Id: I00ee447e6b57bc57fd09b6e7d8c62cb07cb37cf0
|
|
|
|
|
|
|
| |
Avoid duplicating the api docs in the example HAL, instead point to
canonical source for them.
Change-Id: If3f5acb7a73260248bd00ce01cb1c80f230f7188
|
|
|
|
|
|
|
|
| |
Rely on strong pointers and scope rather than the more error prone
incStrong / decStrong approach which can cause object leaks.
No change in functionality.
Change-Id: I1bfc7f0cdeeac022e4120482cd3521e52ffea94e
|
|
|
|
|
|
|
|
| |
This is meant to be an example and a reference for device manufacturers
on how to build a new Camera v2 HAL. This first patch has basic
configuration and entry/exit.
Change-Id: Ib4166e2eadb813228af38ec31a1215940c070bbf
|
|
|
|
| |
Change-Id: I17094052b67f2069d80ea140442e5a969bd4e96f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Writing to the audio pipe for the remote submix is blocking, unless
the audio output pipe is in shutdown mode. The playback thread
could stay blocked on the write if the input stream has already
been closed.
The change consists in shutting down the pipe also when the input
stream gets closed. When the pipe is in this state, simulate
timing in the write operation so we don't drain the output faster
than realtime.
Bug 7424646
Change-Id: I5feb3be642b0ee7eef10dee0141308684ee9c811
|
|\ |
|