440 Commits

Author SHA1 Message Date
Wyatt Riley
e5d975cdff Merge "GNSS Batching - Default Implementation" 2017-02-08 02:08:06 +00:00
Wyatt Riley
cf879db366 GNSS Batching - Default Implementation
Connections from .hal layer, through to
Location Manager System APIs

Bug: 31974439
Test: builds, boots, ordinary GNSS & new GNSS batching
      basic functional checks on Marlin
Change-Id: If75118c27b5ed34cfc16c9f817b60a3be5485095
2017-02-07 14:55:21 -08:00
Ashutosh Joshi
d9b6cf1fe9 Merge "Make requested service for context hub service compliant." 2017-02-07 20:21:16 +00:00
TreeHugger Robot
7058e33856 Merge "thermal HAL uses "default" service name" 2017-02-06 21:06:39 +00:00
Chris Phoenix
51c3b50c56 thermal 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

Bug: 33844934

Change-Id: Id35c5eac388dada951b2f3708554a84337a500c9
2017-02-06 17:32:00 +00:00
Keun-young Park
9b73a5473a wait for sensor service before starting WMS
- Starting sensor service in separate thread led into occasional 1 sec
  blocking of WMS inside PhoneWindowManager to get sensor service.
- Change startSensorService into blocking call and call it from
  separate thread using SystemServerInitThreadPool.
- This does not improve best case boot-up time but fixes occasional 1 sec delay
  which is happening in 10 to 20% rate. So this is potential 100 to 200ms saving for many runs.

bug: 34846045
Test: multiple reboots.
Change-Id: Ia08fa3284aed5e576acaac6fbfd74b9db9f7d63c
2017-02-03 15:36:01 -08:00
Ashutosh Joshi
4c43591588 Make requested service for context hub service compliant.
Ensure that the requested service name for context hub service is
the same as the default service name.

Test: GTS "Hello World" test passes.
Change-Id: I772c7ae6858416e6aabaceeefff23a5255a4b513
2017-01-26 17:21:04 -08:00
Vladislav Kaznacheev
3787de16d2 Implement pointer capture API
When in pointer capture mode, mouse pointer disappears and
further mouse events are dispatched to the focused view
in the window which has requested capture.

The captured events have the source SOURCE_MOUSE_RELATIVE
belonging to SOURCE_CLASS_TRACKBALL. They are
dispatched through dispatchCapturedPointerEvent /
onCapturedPointerEvent. There is also a new listener.

Pointer capture mode may only be granted to a currently
focused window, and will be canceled upon a window focus change.

Test: cts-tradefed ... --test android.view.cts.PointerCaptureTest
Bug: 30897034
Change-Id: I6e5934aa415ac2b6dda1cee173d0f23e5021af84
2017-01-25 13:13:45 -08:00
TreeHugger Robot
3ca3107a82 Merge "power HAL uses "default" service name" 2017-01-25 05:41:59 +00:00
Chris Phoenix
e9d42decca light 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

Bug: 33844934
Change-Id: Id22d27d7e401de426b1a236067c1b4c7f6c99a3e
2017-01-23 23:56:38 +00:00
Chris Phoenix
717d36e051 power 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: I2f296bc40e36082d8889d2796cf839cb41a21fc3
2017-01-23 13:18:39 -08:00
Chris Phoenix
bc21539a76 Merge "vibrator HAL uses "default" service name" 2017-01-21 02:51:35 +00:00
Chris Phoenix
c310a90495 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: I7ad730bc5b52b9bd3c63410f6f926cbc08d0b73c
2017-01-21 02:34:16 +00:00
Chris Phoenix
8df9f81c49 Merge "TvInput HAL uses "default" service name" 2017-01-20 23:17:19 +00:00
Polina Bondarenko
8d5bb11126 Added NAN temperature value handling to HardwarePropertiesManager.
Consider NAN temperature value as undefined temperature.

Bug: 34107726
Test: cts

Change-Id: I933fe3a1c1eb88960cee2eb32cbc56a88d9da9e4
2017-01-19 17:48:29 +01:00
TreeHugger Robot
a85963aba9 Merge "Unhide public methods for API Council review. Test: Existing unit tests still pass. Change-Id: I49b81f99e4e8d8300fbc6b3d74f336d4f291d171" 2017-01-19 13:50:26 +00:00
gomo
127ba323d9 Unhide public methods for API Council review.
Test: Existing unit tests still pass.
Change-Id: I49b81f99e4e8d8300fbc6b3d74f336d4f291d171
2017-01-18 19:48:28 -08:00
Chris Phoenix
3526a10c43 TvInput 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

In support of b/33844934

Change-Id: Iaf379982c1e8e03b46a1fddf5f047c70cd3e6938
2017-01-18 18:48:06 -08:00
Chris Phoenix
dab0b0be93 consumerir 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

In support of b/33844934

Change-Id: Icff606bb704d2ee60e1fa8fbbb57ff0cc6db9bc1
2017-01-18 17:10:06 -08:00
TreeHugger Robot
10868fd79a Merge "Validate custom pointer icons aren't null." 2017-01-18 19:44:58 +00:00
Michael Wright
b004b5137e Validate custom pointer icons aren't null.
Bug: 33853287
Test: cts
Change-Id: I844a9aec6e37e306a77eee0644a774f6470cf5df
2017-01-18 18:09:29 +00:00
Brian Duddie
0dc14171a2 Merge "ContextHubService: Pass nanoapp header data explicitly" 2017-01-18 17:16:05 +00:00
Brian Duddie
3d730c0f2e Merge "ContextHubService: Simplify hubId logic, ensure type correctness" 2017-01-18 02:09:22 +00:00
gomo
4402af6be9 GNSS O Features according to go/o-gps-hal
Added "Tow Known" as a possible gnss measurement state. As well added Automatic Gain Control (AGC)
to allow jammer detection. Also added the GNSS carrier frequeny to SV status. Also added vertical
GPS position uncertainty, speed uncertainty and bearing uncertainty. Also propagate locaton new
fields to geofence engine.
Test: Existing unit tests still pass.

Change-Id: I472b2fd2516cb7614877dea4bb054a34f50844dc
2017-01-15 18:02:21 -08:00
TreeHugger Robot
acb1d39224 Merge "Treble GNSS - Removing FlpHardwareProvider" 2017-01-14 04:47:07 +00:00
Brian Duddie
6644c4547c ContextHubService: Pass nanoapp header data explicitly
Update to be compliant with the HIDL change to pass the nanoapp's binary
data via struct NanoAppBinary, which contains explicit fields parsed out
of the common nanoapp header, and the rest of the data after the header
passed separately.

Bug: 34182159
Test: run hello world context hub GTS test
Change-Id: I9e961c0f57567b3061302f193e4907332dcbad09
2017-01-13 19:46:36 -08:00
Brian Duddie
8c51b00e4c ContextHubService: Simplify hubId logic, ensure type correctness
Update nativeSendMessage() to simplify the logic for mapping the hub
handle to hub ID, and also update the types of some variables to ensure
their correctness. Also, rewrite unnecessary alias declarations as
simpler using declarations.

Test: run hello world context hub GTS test
Change-Id: I8f9154a0ff2c81eff9eb509e9b0936e34569ec55
2017-01-13 15:34:07 -08:00
Ashutosh Joshi
8fa60ce20e Merge "Add a callback handler for nanoApp aborts." 2017-01-12 23:50:06 +00:00
Wyatt Riley
2e4e1a17e4 Treble GNSS - Removing FlpHardwareProvider
Removal of legacy FlpHardwareProvider jni,
and minimal java implementation.

Restoration of GNSS batching functionality,
with default implementation using
fused_location.h supporting libraries, would
continue in the Treble aligned GNSS HAL.

Bug: 31974439
Test: Ensured that system boots cleanly, and FLP HAL is not used
      and that GPS operation (GMaps & 3rd party test app)
      still looks fine.
Change-Id: I7b3834ddd4e754576af30cdbe2a92f53947d85a7
2017-01-12 12:11:51 -08:00
Mark Salyzyn
173215d1b2 resolve merge conflicts of ec7e2a164c37 to master
Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I49c6e41b79061e2b3c0352e3ac8fa5ebb152b6f5
2017-01-12 08:28:30 -08:00
Mark Salyzyn
ec7e2a164c Merge "Replace cutils/log.h and log/logger.h with android/log.h or log/log.h (part deux)" am: 2225a0640b am: d1740f0f5b
am: 6dacea63d9

Change-Id: Ife229cc450dbbb5f43941fcd1b08b86f0e41a779
2017-01-12 15:59:48 +00:00
Ashutosh Joshi
ccb8e67525 Add a callback handler for nanoApp aborts.
Adding a placeholder for nanoApp abort handling.
The placeholder is necessary to check in HAL changes.
It does not do anything interesting for now.

Test: Build compiles.
Change-Id: Iaf1220c73f28ccd4cb4e5e3830e7988b45c4d899
2017-01-11 17:23:05 -08:00
Mark Salyzyn
96bf5985d5 Replace cutils/log.h and log/logger.h with android/log.h or log/log.h
(part deux)

Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I7417936c4d3666608fccfe51a312c90ecefba2fb
2017-01-11 15:30:30 -08:00
TreeHugger Robot
f88f0f1b1e Merge "Use bitfields in GNSS HAL" 2017-01-11 18:33:21 +00:00
Mark Salyzyn
db15537e6e resolve merge conflicts of 082a1721b516 to master
Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I17f178f425975c1c0dbd48091d25b101956d505e
2017-01-11 08:30:17 -08:00
Hridya Valsaraju
b39eb40587 Use bitfields in GNSS HAL
Test: mm
Bug: 31974439
Change-Id: Ic14715d7bc55a3460756b07190bf02d6cebe3c52
2017-01-11 08:08:40 -08:00
Mark Salyzyn
082a1721b5 Merge "Replace cutils/log.h and log/logger.h with log/log.h" am: e7fcbcb991 am: 6143cbf1e5
am: ef8ccc8510

Change-Id: If6673f44c7d08960f3a0a86703cebf577bd21f1b
2017-01-11 15:45:46 +00:00
TreeHugger Robot
e4c95d275a Merge "JNI attach/detach threads executing GNSS HAL callback methods" 2017-01-11 04:41:05 +00:00
Santos Cordon
f85ab8306f Add Brightness setting for VR Mode.
am: d6a5660a2c

Change-Id: If371f485471eb1ab0a3e07964c197cb9b8ef1c9f
2017-01-11 03:12:05 +00:00
Santos Cordon
e89ba5222c Merge "Add Brightness setting for VR Mode." 2017-01-11 03:02:02 +00:00
Santos Cordon
3107d29c8f Add Brightness setting for VR Mode.
This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Test: runtests frameworks-core
Test: Turn vr mode on and change brightness (should remain separate from
normal brightness)

Bug: 30984614
Change-Id: If3c3e81b592e0c6fd037e5783559683e5cb58379
2017-01-10 17:16:04 -08:00
Hridya Valsaraju
b5b6ffe042 JNI attach/detach threads executing GNSS HAL callback methods
Bug: 31974439
Test: Verified that threads that are not attached to JNI
gets attached and on exit, gets detached.

Change-Id: Ib089720998131ceb107fa5b318a0fcbdf91076ec
2017-01-10 15:05:38 -08:00
Santos Cordon
d6a5660a2c Add Brightness setting for VR Mode.
This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Bug: 30984614
Change-Id: If3c3e81b592e0c6fd037e5783559683e5cb58379
2017-01-09 17:33:14 -08:00
Mark Salyzyn
52eb4e01a4 Replace cutils/log.h and log/logger.h with log/log.h
Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I578b15b48f0fc2807a92abbc69a377c3d2191496
2017-01-09 14:31:34 -08:00
TreeHugger Robot
fabf8e8187 Merge "ContextHubService: Remove unused using declaration" 2017-01-09 20:20:29 +00:00
Martijn Coenen
3a3a4acae4 Update GNSS to use elided interface return values.
Test: mma
Bug: 31830743
Change-Id: I315723bc50f682d90c7afd75357a10ed5d4db03f
2017-01-05 11:12:30 +01:00
Brian Duddie
e4a5b65db1 ContextHubService: Remove unused using declaration
Test: compile test only
Change-Id: I4a83f5cc52ae35d741621a9cbaab7284d380d9c9
2017-01-04 17:48:34 -08:00
Steven Moreland
d002a8b07b Return<*> getStatus().isOk() -> isOk()
Bug: 31348667
Test: compiles
Change-Id: I7b99a655aefab8c5129b35799e3897a31166be91
2017-01-03 17:39:03 -08:00
Martijn Coenen
37455587e9 Remove obsolete calls to IPCThreadState/ProcessState.
Threadpools are started automatically, if necessary.

Bug: 31226656
Test: mma
Change-Id: Ib3542ee6f1530ee9c08eb7e9608db741d2c1560d
2016-12-29 14:54:18 +00:00
Selim Cinek
7e5cff0167 DO NOT MERGE Revert "Add Brightness setting for VR Mode."
am: 966045d070

Change-Id: Ib1be78a47f5947f4fcc6eabc2f6af76523690ed9
2016-12-27 19:22:04 +00:00