• Home
  • History
  • Annotate
  • only in /frameworks/base/services/core/jni/
History log of /frameworks/base/services/core/jni/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bef3988921ece2076e441c2c1253755627760ea4 14-Jun-2017 Yifan Hong <elsk@google.com> SensorManager: attach background thread to JavaVM

Test: pass
Bug: 62404135
Change-Id: Ic3c0849cd366f550cbdccbb9bb8d082c5c570c35
om_android_server_SystemServer.cpp
424e328bba28632f43e69ab10377c56603a898c1 11-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add uniqueId to Virtual Display and pass through to inputflinger (1/2)" into oc-dev
b0608636a29bcec8ecb4391cd50f29f68b3e7e81 05-Apr-2017 Santos Cordon <santoscordon@google.com> Add uniqueId to Virtual Display and pass through to inputflinger (1/2)

This CL adds:
1) Adds uniqueId (protected via system/sig permission) to virtual
displays.
2) Add support for N virtual display viewports into inputflinger.
3) Set the virtual display's viewports in inputflinger if it has the
uniqueId value set to non-null. (a) Moving the new viewport from java to
native inputflinger and (b) adding "uniqueId" value to viewports makes
up the great majority of this change.
4) From the inputflinger side, we also read in a new value from the
input device configuration files called 'touch.displayId'.
5) When touch.displayId and the virtual display's uniqueId match,
inputflinger links the two.

Test: Start VR and ensure that the virtual viewport shows up when running
'adb shell dump input". Run a VR app, and ensure that the virtual input
device is associated with the new virtual viewport.
Test: com.android.server.display.DisplayManagerServiceTest

Bug: 36051620
Change-Id: Ic2117eb8e19f7f3c59687160591f8bc6692c1f12
Merged-In: Ic2117eb8e19f7f3c59687160591f8bc6692c1f12
om_android_server_input_InputManagerService.cpp
nload.cpp
a9703163c0edbd70d4acac6ea89d4bc15edbc946 08-May-2017 Connor O'Brien <connoro@google.com> PowerManagerService: open power HAL less aggressively

Once the power HAL has failed to open once, don't try to open it again
on subsequent calls to the service.

Test: remove power HAL on marlin & confirm log spam stops.
Bug: 38028137
Change-Id: If7bc4f7080e8822b68da0d1bd81df8de1ce388aa
Signed-off-by: Connor O'Brien <connoro@google.com>
om_android_server_power_PowerManagerService.cpp
032d7c8b881e196330bcc0b899cbf71db8764997 05-May-2017 Steven Moreland <smoreland@google.com> LightsService: open hal less aggressively

Only try to reopen the hal if it has been successfully opened before.

Test: remove lights hal from marlin, no more spam
Test: use with ToT marlin, lights hal still works

Fixes: 38006310
Change-Id: Ib21e26184f8a94987d005c8d320ec4d988df66ee
om_android_server_lights_LightsService.cpp
e14513c7872524ebeaa61048db3f9987cb1f7737 01-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Increase max system_server hwbinder threadpool to 5." into oc-dev
eb4b2d056cd905b4b6ca0c985131c102f2254a45 29-Apr-2017 Martijn Coenen <maco@google.com> Increase max system_server hwbinder threadpool to 5.

system_server hosts HIDL services, but also many different
callback interfaces. Subtle deadlocks can occur if there's
only one HwBinder thread to handle incoming transactions.
Increasing this to 5 threads seems reasonable - we haven't
really seen any performance issues due to this.

The main danger with this change is that not all callback
interfaces may be written in a thread-safe way, but some
quick testing revealed no issues.

Bug: 37531523
Bug: 37509431
Test: builds, Maps/YouTube/Camera/Music/Netflix
Change-Id: I52bff2f2263625c1a33f60b8b27c307c1d31000c
om_android_server_SystemServer.cpp
2171781a7ca12f6a8c9093a682210d0eb489b628 28-Apr-2017 Yipeng Cao <tccyp@google.com> Fixed the hasCarrierFrequency flag in GnssStatus (part1)

Bug: 37757180
Fixes: 37757180
Test: 1. built img locally and flash the device
make -j 40
vendor/google/tools/flashall
2. run cts
cts-tradefed run cts -m CtsLocationTestCases --test
android.location.cts.GnssStatusTest

Change-Id: I5046dbe28518812192de20daca91a8511a1558c0
om_android_server_location_GnssLocationProvider.cpp
87180be1b3db4129a6bd99665ae0601534aa87e0 18-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "If gnss service dies, then, upon receiving the death notification on system-server side: Proactively take down the whole system_server." into oc-dev
2520888be38a40f82620ef391d4939a208de46cf 15-Apr-2017 gomo <gomo@google.com> If gnss service dies, then, upon receiving the death notification on system-server side:
Proactively take down the whole system_server.

Bug: 36291658
Test: System server crashing when killing the Gnss process.
Change-Id: I0d2bf6bf66baff0fd048a64e8940e8ba5fdfe4dd
om_android_server_location_GnssLocationProvider.cpp
0e5a2ab7c3ae3d798072fec0dd8407c50c862515 12-Apr-2017 Brian Duddie <bduddie@google.com> ContextHubService: Pass on query requests

Forward requests for the list of loaded apps to the HAL rather than
dropping them.

Bug: 37254981
Test: run CHQTS
Change-Id: I728fbb5aa1a49efe76bd2b49623bb1e60e21121c
om_android_server_location_ContextHubService.cpp
3d8166f88534c32b5ba7614e6cebe6f2439b6abe 07-Apr-2017 Steven Moreland <smoreland@google.com> Start service from libscheduleservicehidl.

Test: internal camera successfully sets priority.
Bug: 29251823
Change-Id: I3c3caeb3e2e169dee483da25cc8217e1aad14adf
ndroid.mk
om_android_server_SystemServer.cpp
93945f2c6909289313ac7477b3eda0e71b0efac7 03-Apr-2017 Scott Randolph <randolphs@google.com> Use explicit .c_str() for hidl_string

hidl_string no longer will provide an implicit cast to const char* as it
interfers with other expected behaviors of the class. It now emulated
std::string in requiring a call to .c_str() to get the same behavior.

Bug: 36532780
Test: Build the tree
Change-Id: I86f4b7ef9e20674299519bd421d833b5d858ac6a
om_android_server_location_ContextHubService.cpp
87206c4ed8b11810c0ba3d20f16e34f71adbe477 31-Mar-2017 Wyatt Riley <wyattriley@google.com> Merge "IGnssDebug.hal change field outputs for dump()" into oc-dev
268c6e04859cde5e2eacd7a4431bbd533342b5d4 29-Mar-2017 Wyatt Riley <wyattriley@google.com> IGnssDebug.hal change field outputs for dump()

Aligning the dump() string build to match the new
API fields in IGnssDebug.hal

Bug: 30955615
Test: Builds and non-implementation message reported on Pixel '16

Change-Id: I9e60c87e9c5a5ee2bc20e3f54eb878bd472515c1
om_android_server_location_GnssLocationProvider.cpp
0ecd08bdd005591ef409ec65236e29db91cd0917 28-Feb-2017 Connor O'Brien <connoro@google.com> Recover cleanly from power HAL service crashes

Currently if the binderized power HAL service crashes, services that
call the HAL will crash as well. To fix this:
- Before calling power HAL functions, check that the handle to the
power HAL service is still valid, and reload using getService() if
necessary.
- When a call to a power HAL function fails, log the failure and mark
the handle as invalid.

Bug: 35728909
Test: adb shell kill -9 $(adb shell pidof android.hardware.power@1.0-service)
Change-Id: Id2dd1a6507b9f5044d928483cdb6b736c701f8ba
Signed-off-by: Connor O'Brien <connoro@google.com>
(cherry picked from commit 578eb7fee3a28ff9ca309e741b5a647637896ba1)
om_android_server_am_BatteryStatsService.cpp
om_android_server_power_PowerManagerService.cpp
39f285d5a75f653d2d2309b47cfaa143da42a0ca 21-Mar-2017 Shubang <shubang@google.com> Sync the constants in HAL and framework

Test: Build and flash device

Bug: 36233336
Change-Id: Ie81862825b601bdafd7653564d7393686d54f531
om_android_server_tv_TvInputHal.cpp
e56740dc081cd3024fa2a0c72689febd49ee1c9f 02-Feb-2017 Daichi Hirono <hirono@google.com> Use a single thread to handle multiple AppFuse mounts.

Previously StorageManagerService launched a thread per AppFuse mount
point. The CL changes the behavior so that it just launches a single
thread to handle multiple AppFuse mounts.

Bug: 34903085
Test: CTS and manually testing
Change-Id: I2d9e7232834b0c8eff633b85110a3b38534171f7
om_android_server_storage_AppFuseBridge.cpp
2bcca1d6242381725614a86cea3e2487347d3a2d 21-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "BZZZZZZT! BZZZZZT! New Vibrator APIs"
7121697a5e2d4458f6f63e9eb3b5deec62ee6202 31-Jan-2017 Michael Wright <michaelwr@google.com> BZZZZZZT! BZZZZZT! New Vibrator APIs

Replace the existing Vibrator APIs with a new class to encapsulate the
haptic effect information, and add the ability to control the vibration
strength.

Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.cts.VibratorTest
cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.cts.VibrationEffectTest
runtest systemui-notification
Manual testing with $T/google_experimental/users/michaelwr/Vibrator

Bug: 30961353

Change-Id: Idbb9864a7b084c85e7b7de3257a0e6b40d9d91d6
om_android_server_VibratorService.cpp
8b44df35f1e159f27445e009c02e4084af70772f 20-Mar-2017 Steven Moreland <smoreland@google.com> Remove unused using statement.

Test: pass
Bug: 36099713
Change-Id: I07b90f9592fdd6b9c58ee52dc4f49f5e8b9f3459
om_android_server_HardwarePropertiesManagerService.cpp
26b421f8e0411f044e13bbdad4b3ab1dab3c17c8 10-Mar-2017 Yifan Hong <elsk@google.com> Start android.frameworks.sensorservice@1.0 in system_server

Bug: 35219747
Test: marlin boots
Test: lshal -ipm | grep android.frameworks.sensorservice@1.0

Change-Id: I67dfb217d1b568e140cefce0bdba3f8f4dbe679c
ndroid.mk
om_android_server_SystemServer.cpp
3ff3dde601f9cec0e4ee72265e4e6ac22fd6d1dc 15-Mar-2017 Shubang Lu <shubang@google.com> Merge "TIF: add cable detection for TV inputs"
71d5c76f19e8714102073bf774c025d5ccdebc11 24-Feb-2017 Shubang <shubang@google.com> TIF: add cable detection for TV inputs

Test: plug-in and unplug cable to TV and/or run VTS, or add fake
pass-through inputs (OTT devices).

Bug: 28715954
Change-Id: I4229a1a16a61218714e2cd620d1284f7ef8e5d7a
om_android_server_tv_TvInputHal.cpp
25e72b35e8fd1b29a07219755e46c7edb5cbff5a 09-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix bug in error checking in GnssLocationProvider"
388e968a08b080d696de7ea6e477fb674583ed0a 08-Mar-2017 Hridya Valsaraju <hridya@google.com> Fix bug in error checking in GnssLocationProvider

Needed to check if gnssNiIface was a nullptr
before calling setCallback on it.

Bug: 36052760
Test: make
Change-Id: I4d725bd30310353fb7d248f9bf247ac55f94c765
om_android_server_location_GnssLocationProvider.cpp
41cbfd830ad302434bbe9eb6036666b7da336887 04-Mar-2017 Ashutosh Joshi <ashutoshj@google.com> Merge "Pass on the Apps Query Response to clients."
b2df16ae1a1b555df5e3360277918424fba370c8 02-Mar-2017 Steven Moreland <smoreland@google.com> Merge "LightService: recover if light hal fails."
5c78ae3d1d511a8cccf2165b237b479db4fead9f 02-Mar-2017 Ashutosh Joshi <ashutoshj@google.com> Pass on the Apps Query Response to clients.

Keep the message interface for backwards compatibility.

Bug: 35170375
Test: Verify that clients receive the query apps response.
Change-Id: I689ce0086e2122068471b7df79107d38e53e8dcf
om_android_server_location_ContextHubService.cpp
8dd89024ec814dae822f21c869df32504833e51d 25-Feb-2017 Steven Moreland <smoreland@google.com> LightService: recover if light hal fails.

- Also cleaned up implementation.

Fixes: 35728264
Test: killing android.hardware.light@2.0-service, lights still work
Change-Id: I608b85491f3b10864b8591e15537777068ded079
om_android_server_lights_LightsService.cpp
f6423ba1eff741f92dc7ebbd4cbd039b52c26dab 28-Feb-2017 Hridya Valsaraju <hridya@google.com> Check hwbinder status before checking the returned result

Test: Able to get a location lock on Google Maps on Pixel.

Change-Id: I1e3689ba139bec7d21c12be91bd46fe008ff8278
om_android_server_location_GnssLocationProvider.cpp
04dbcae4c40dea248f9549270d517f3cd60ab5fe 27-Feb-2017 Yifan Hong <elsk@google.com> Merge "Vr HAL uses "default" service name"
a608207fc389d6bba7d40d1c11a52030308ee124 24-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "gnss HAL uses "default" service name"
4e66d1e40cddb623bfc80ac26d9d97fc174f1a3a 23-Feb-2017 Yifan Hong <elsk@google.com> Merge "context_hub HAL uses "default" service name"
2f837e7b2d0fdf790deef1e85be621a7f0000c8a 22-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "tv_cec HAL uses "default" service name"
9fcfcdc1f37f2f9654453969df0e58fdfc0b0163 19-Jan-2017 Chris Phoenix <cphoenix@google.com> Vr 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: I32806ac4ab6cf1b7c67eb61cfbc7e203c5b5b5a3
om_android_server_vr_VrManagerService.cpp
df1742ed47da1e9b61afeae16fa448d5302a8aa0 20-Jan-2017 John Reck <jreck@google.com> Overhaul GraphicsStatsService

* LRU cache of recently-used is dead, replaced
disk storage
* ASHMEM size is read from native by the system service,
no longer requires keeping a sizeof() in sync with a
constant in Java
* Supports dumping in proto format by passing --proto
* Rotates logs on a daily basis
* Keeps a history of the most recent 3 days

Bug: 33705836
Test: Manual. Verified log rotating works by setting it up to
rotate every minute instead of day. Confirmed /data/system/graphicsstats
only has the most recent 3 entries after several minutes

Change-Id: Ib84bafb26c58701cc86f123236de4fff01aaa4aa
ndroid.mk
om_android_server_GraphicsStatsService.cpp
nload.cpp
cd52950a9ee68ff45e02921de306d07926110a78 17-Feb-2017 Wyatt Riley <wyattriley@google.com> Merge "Common code for 4 jni Location conversions"
7e6627eade85a1861ad5ca55200301cd7799e4e1 21-Jan-2017 Chris Phoenix <cphoenix@google.com> tv_cec 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: I64e028573f3cf5959cbe251bf351ce4d238d50c5
om_android_server_hdmi_HdmiCecController.cpp
3bf722a8d54ca7192dfe07ee7b73eac7d25ccac5 15-Dec-2016 Rubin Xu <rubinxu@google.com> Add synthetic password to authentication flow

The user password is used to unlock a per-user synthetic password which
serves the purpose of what the user password previsouly achieves (protect
keystore, vold disk encryption, auth token generation).

Test: runtest frameworks-services -c com.android.server.SyntheticPasswordTests
Test: manual
1. Start with fresh device, enable synthetic password with "adb shell cmd lock_settings sp 1"
1.1 add device lock, reboot and verify (positive & negative); change device lock, reboot and verify.
1.2 Inflate a work profile, reboot and verify device lock. check SID with "adb shell dumpsys lock_settings"
1.3 Un-unify and add work challenge, reboot and verify work challenge and SID.
1.4 Re-unify work challenge, reboot and verify.
1.5 Clear device lock, reboot and verify lock and SID.

2. Start with a fresh device, add a device lock and inflate a work profile.
2.1 Enable synthetic password, note current SID
2.2 Reboot and unlock device. Verify synthetic password is generated and SID remains.
2.3 Clear device lock, reboot and verify (SID should be cleared)

3. Start with a fresh device, inflate a work profile, add separate work challenge
3.1 Enable synthetic password, not current SID
3.2 Reboot and unlock device and profile. Verify synthetic password is generated.
3.3 Clear device lock only, reboot and verify (work profile SID should remain)

All steps tested on marlin (FBE) and bullhead (FDE)

Bug: 33126414
Change-Id: Idb9ebfc7bba2fe40670c5fee2189e873d9704540
ndroid.mk
om_android_server_SyntheticPasswordManager.cpp
nload.cpp
5d22983acfa5c3c429e21198b7848597e7606d9b 11-Feb-2017 Wyatt Riley <wyattriley@google.com> Common code for 4 jni Location conversions

Cleans up a TODO after GNSS location batching work

Bug: 35273058
Change-Id: Ibb9220269940377a7065b5df3e5672c2a49a50cf
Fixes: 35273058
Test: GnssLogger.apk, Maps & 3rd party app work as expected
om_android_server_location_GnssLocationProvider.cpp
de69003f072c0007679a6ad0c0e5f84fde6150d0 24-Jan-2017 Chris Phoenix <cphoenix@google.com> context_hub 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: Ic35ae203244b77d26833f058b76fb4d46ade716d
om_android_server_location_ContextHubService.cpp
e5d975cdffc29aa8f9390f001e15d2eb0f19ce82 08-Feb-2017 Wyatt Riley <wyattriley@google.com> Merge "GNSS Batching - Default Implementation"
cf879db3666523404ff7e15e77b11434732b4a06 12-Jan-2017 Wyatt Riley <wyattriley@google.com> 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
om_android_server_location_GnssLocationProvider.cpp
d9b6cf1fe9419a022945cf6afc93463826c74f38 07-Feb-2017 Ashutosh Joshi <ashutoshj@google.com> Merge "Make requested service for context hub service compliant."
7058e338561079eba457a326e56b176961313057 06-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "thermal HAL uses "default" service name"
51c3b50c566b3b681d3d7a93716bd5fdb0751b25 20-Jan-2017 Chris Phoenix <cphoenix@google.com> 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
om_android_server_HardwarePropertiesManagerService.cpp
9b73a5473a36534731cc19501408a6123c8e69a8 01-Feb-2017 Keun-young Park <keunyoung@google.com> 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
om_android_server_SystemServer.cpp
4c43591588f69f80f21e5341cdf089cb5363d617 27-Jan-2017 Ashutosh Joshi <ashutoshj@google.com> 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
om_android_server_location_ContextHubService.cpp
3787de16d24001eeb452e1c711d4290a396e67c9 21-Dec-2016 Vladislav Kaznacheev <kaznacheev@google.com> 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
om_android_server_input_InputManagerService.cpp
3ca3107a827ebc1915833ae30abbe85a5894817b 25-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "power HAL uses "default" service name"
e9d42decca90dd31b8768ab85b0c48c1721e2ae7 23-Jan-2017 Chris Phoenix <cphoenix@google.com> 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
om_android_server_lights_LightsService.cpp
f9133783ae78f7181807820ab1e8d467e7250669 24-Jan-2017 Chris Phoenix <cphoenix@google.com> gnss 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: Ie6d52854ef3cf0695e3c57292683183bab008f2d
om_android_server_location_GnssLocationProvider.cpp
717d36e051fdddc36a180737a1e53df70ae930ac 23-Jan-2017 Chris Phoenix <cphoenix@google.com> 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
om_android_server_power_PowerManagerService.cpp
bc21539a76f4193f3d7d86587a7177ff994b558f 21-Jan-2017 Chris Phoenix <cphoenix@google.com> Merge "vibrator HAL uses "default" service name"
c310a9049516aada4dda24d1ec035a54bcc20cbe 20-Jan-2017 Chris Phoenix <cphoenix@google.com> 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
om_android_server_VibratorService.cpp
8df9f81c490c3528a72e8bdcf5fbf56e05635a8f 21-Jan-2017 Chris Phoenix <cphoenix@google.com> Merge "TvInput HAL uses "default" service name"
8d5bb111268b28b7836e8b9a4249932d91c6244f 16-Jan-2017 Polina Bondarenko <pbond@google.com> Added NAN temperature value handling to HardwarePropertiesManager.

Consider NAN temperature value as undefined temperature.

Bug: 34107726
Test: cts

Change-Id: I933fe3a1c1eb88960cee2eb32cbc56a88d9da9e4
om_android_server_HardwarePropertiesManagerService.cpp
a85963aba937200175074b81325ffa7917b9a1ec 19-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Unhide public methods for API Council review. Test: Existing unit tests still pass. Change-Id: I49b81f99e4e8d8300fbc6b3d74f336d4f291d171"
127ba323d9ae2107ed58039f24ffade2c27ff7c9 16-Jan-2017 gomo <gomo@google.com> Unhide public methods for API Council review.
Test: Existing unit tests still pass.
Change-Id: I49b81f99e4e8d8300fbc6b3d74f336d4f291d171
om_android_server_location_GnssLocationProvider.cpp
3526a10c43789beba45c348ad8bbde06006224dc 19-Jan-2017 Chris Phoenix <cphoenix@google.com> 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
om_android_server_tv_TvInputHal.cpp
dab0b0be93887c43e3abdd3d1450566e9312fe25 19-Jan-2017 Chris Phoenix <cphoenix@google.com> 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
om_android_server_ConsumerIrService.cpp
10868fd79a37f4505642c4874a06ead3017a4eac 18-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Validate custom pointer icons aren't null."
b004b5137e12bffae9a3d3ae97440c8c24bdc07a 18-Jan-2017 Michael Wright <michaelwr@google.com> Validate custom pointer icons aren't null.

Bug: 33853287
Test: cts
Change-Id: I844a9aec6e37e306a77eee0644a774f6470cf5df
om_android_server_input_InputManagerService.cpp
0dc14171a2369a0207249533c9a503c5e0887892 18-Jan-2017 Brian Duddie <bduddie@google.com> Merge "ContextHubService: Pass nanoapp header data explicitly"
3d730c0f2e55e9ade9dcbde162c65b9209ccbab5 18-Jan-2017 Brian Duddie <bduddie@google.com> Merge "ContextHubService: Simplify hubId logic, ensure type correctness"
4402af6be9de4782d218170203033618f079551d 11-Jan-2017 gomo <gomo@google.com> 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
om_android_server_location_GnssLocationProvider.cpp
acb1d3922437b1fc0f8ed3bc53cb2c315f6e669e 14-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Treble GNSS - Removing FlpHardwareProvider"
6644c4547ce849327197786f02da7a045a860ace 13-Jan-2017 Brian Duddie <bduddie@google.com> 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
om_android_server_location_ContextHubService.cpp
8c51b00e4c017dcd7bb24a51aa50f87ac3540208 13-Jan-2017 Brian Duddie <bduddie@google.com> 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
om_android_server_location_ContextHubService.cpp
8fa60ce20e7c7209256eb9dcbb83e5aceff33eb3 13-Jan-2017 Ashutosh Joshi <ashutoshj@google.com> Merge "Add a callback handler for nanoApp aborts."
2e4e1a17e4fe05a79361fe887d5bf9fadd759231 21-Dec-2016 Wyatt Riley <wyattriley@google.com> 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
ndroid.mk
om_android_server_location_FlpHardwareProvider.cpp
nload.cpp
173215d1b20b70908a9d1807f1372bd95b7ad5f1 12-Jan-2017 Mark Salyzyn <salyzyn@google.com> resolve merge conflicts of ec7e2a164c37 to master

Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I49c6e41b79061e2b3c0352e3ac8fa5ebb152b6f5
ec7e2a164c3792fbaab74f6a9eab7c3cb06296e2 12-Jan-2017 Mark Salyzyn <salyzyn@google.com> 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
ccb8e675257b729d0322461b09ad20effd3f5dc5 12-Jan-2017 Ashutosh Joshi <ashutoshj@google.com> 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
om_android_server_location_ContextHubService.cpp
96bf5985d5a360568832fd26b6d5b44236c9343e 29-Sep-2016 Mark Salyzyn <salyzyn@google.com> 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
om_android_server_am_BatteryStatsService.cpp
f88f0f1b1eee1c76e3f38bee7163ec59bee36038 11-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Use bitfields in GNSS HAL"
db15537e6e0d35c7ed3b1bef45e421760be70683 11-Jan-2017 Mark Salyzyn <salyzyn@google.com> resolve merge conflicts of 082a1721b516 to master

Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I17f178f425975c1c0dbd48091d25b101956d505e
b39eb40587e3164141211436b9bdfdd2b5981a07 11-Jan-2017 Hridya Valsaraju <hridya@google.com> Use bitfields in GNSS HAL

Test: mm
Bug: 31974439
Change-Id: Ic14715d7bc55a3460756b07190bf02d6cebe3c52
om_android_server_location_GnssLocationProvider.cpp
082a1721b5165420e11319b98eefaa35d0feb844 11-Jan-2017 Mark Salyzyn <salyzyn@google.com> Merge "Replace cutils/log.h and log/logger.h with log/log.h" am: e7fcbcb991 am: 6143cbf1e5
am: ef8ccc8510

Change-Id: If6673f44c7d08960f3a0a86703cebf577bd21f1b
e4c95d275a99dc950c64839fbe6df75fa2565a09 11-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "JNI attach/detach threads executing GNSS HAL callback methods"
f85ab8306f21f1cf62a1083a7f4caedc1bcff7cf 11-Jan-2017 Santos Cordon <santoscordon@google.com> Add Brightness setting for VR Mode.
am: d6a5660a2c

Change-Id: If371f485471eb1ab0a3e07964c197cb9b8ef1c9f
e89ba5222c0fb84da85adabcb0d98e3a60180a04 11-Jan-2017 Santos Cordon <santoscordon@google.com> Merge "Add Brightness setting for VR Mode."
3107d29c8f6f40b98533978a7e19e5c328f73d24 21-Sep-2016 Santos Cordon <santoscordon@google.com> 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
om_android_server_lights_LightsService.cpp
b5b6ffe042d298ff44d3f8e49d1c71e623ec0447 06-Jan-2017 Hridya Valsaraju <hridya@google.com> 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
om_android_server_location_GnssLocationProvider.cpp
d6a5660a2c9f70c9a363d388a091542a378d57d1 21-Sep-2016 Santos Cordon <santoscordon@google.com> 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
om_android_server_lights_LightsService.cpp
52eb4e01a49fe2e94555c000de38bbcbbb13401b 29-Sep-2016 Mark Salyzyn <salyzyn@google.com> Replace cutils/log.h and log/logger.h with log/log.h

Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I578b15b48f0fc2807a92abbc69a377c3d2191496
om_android_server_connectivity_Vpn.cpp
fabf8e8187367a1ff9f2cbcc0a986b1e4b5242dc 09-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "ContextHubService: Remove unused using declaration"
3a3a4acae49e5305455add537a093b1ccd12daa6 04-Jan-2017 Martijn Coenen <maco@google.com> Update GNSS to use elided interface return values.

Test: mma
Bug: 31830743
Change-Id: I315723bc50f682d90c7afd75357a10ed5d4db03f
om_android_server_location_GnssLocationProvider.cpp
e4a5b65db14a4269e65875fc5b84b23eb36befef 05-Jan-2017 Brian Duddie <bduddie@google.com> ContextHubService: Remove unused using declaration

Test: compile test only
Change-Id: I4a83f5cc52ae35d741621a9cbaab7284d380d9c9
om_android_server_location_ContextHubService.cpp
d002a8b07becc7ce1b0978b837bd61f29f8c4d18 04-Jan-2017 Steven Moreland <smoreland@google.com> Return<*> getStatus().isOk() -> isOk()

Bug: 31348667
Test: compiles
Change-Id: I7b99a655aefab8c5129b35799e3897a31166be91
om_android_server_HardwarePropertiesManagerService.cpp
om_android_server_hdmi_HdmiCecController.cpp
om_android_server_lights_LightsService.cpp
om_android_server_location_GnssLocationProvider.cpp
37455587e9fcc7521a0cd027291e92dbebdb4455 29-Dec-2016 Martijn Coenen <maco@google.com> Remove obsolete calls to IPCThreadState/ProcessState.

Threadpools are started automatically, if necessary.

Bug: 31226656
Test: mma
Change-Id: Ib3542ee6f1530ee9c08eb7e9608db741d2c1560d
om_android_server_location_GnssLocationProvider.cpp
7e5cff01679ad79e037e0694a6290db4a1d3fcce 27-Dec-2016 Selim Cinek <cinek@google.com> DO NOT MERGE Revert "Add Brightness setting for VR Mode."
am: 966045d070

Change-Id: Ib1be78a47f5947f4fcc6eabc2f6af76523690ed9
e097432e3065e6ff20c3b2302ea1a6a9b7cf146e 27-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revert "Add Brightness setting for VR Mode.""
966045d0702ca36df6e8c1e4597aaeb37436ca2f 27-Dec-2016 Selim Cinek <cinek@google.com> DO NOT MERGE Revert "Add Brightness setting for VR Mode."

This reverts commit 84980c7a93e93e7134c0198212e222e11eb5ccbd.

Bug: 33895226
Bug: 30984614
Change-Id: I2652e77512bc870190e2172a629abac9341b2c4f
om_android_server_lights_LightsService.cpp
7e96654f1b2e7c97f52cdc68d343139a5186d54d 27-Dec-2016 Ian Pedowitz <ijpedowitz@google.com> Revert "Add Brightness setting for VR Mode."

This reverts commit c7e853f51110b9b6893d526f1f7340b2966f928a.

Bug: 33895226
Bug: 30984614
Change-Id: Icca320e02651b7dd7b8db84ab414f41edee32760
om_android_server_lights_LightsService.cpp
84334e25cd96916b5497a584748d0dc8e8968280 23-Dec-2016 Santos Cordon <santoscordon@google.com> Add Brightness setting for VR Mode.
am: 84980c7a93

Change-Id: I4a9c3db7bdf73e673cf8b2409404339df94086c2
84980c7a93e93e7134c0198212e222e11eb5ccbd 21-Sep-2016 Santos Cordon <santoscordon@google.com> 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
Merged-In: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
Change-Id: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
om_android_server_lights_LightsService.cpp
6982a108b26432a5f9850a18bd27c4414607932a 23-Dec-2016 Santos Cordon <santoscordon@google.com> Merge "Add Brightness setting for VR Mode."
19753cca3f49db2ca66106393d8302c0555fae79 23-Nov-2016 Ashutosh Joshi <ashutoshj@google.com> Switch to HIDL service based HAL

Switch to using HIDL service based HAL.
Some cleanup.

Test: GTS tests pass

Change-Id: Icf133fe4ead56336973dc50c4ec2aab18382a8ca
ndroid.mk
om_android_server_location_ContextHubService.cpp
c7e853f51110b9b6893d526f1f7340b2966f928a 21-Sep-2016 Santos Cordon <santoscordon@google.com> 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: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
om_android_server_lights_LightsService.cpp
771986ef29b7a9588c2d9d3ddac36f8a2e099010 22-Dec-2016 Ashutosh Joshi <ashutoshj@google.com> Merge "Move ContextHubService to a better location."
94d598d301a0e75fd8bb3f49c1b3092229aa2ac9 21-Dec-2016 Todd Poynor <toddpoynor@google.com> HardwarePropertiesManagerService: Fixup log message typo

Trivial typo fixup for IThermal HAL interface load failure.

Test: visual
Change-Id: I10eb01b656a95c5e007d57ff40c16b472e9f53a9
om_android_server_HardwarePropertiesManagerService.cpp
420e45e9cb004ea6c6e11f69adcdbf3dac5fc800 21-Dec-2016 Ashutosh Joshi <ashutoshj@google.com> Move ContextHubService to a better location.

Move ContextHub service from system core to a more appropriate place
for a service.

Test: GTS tests pass.

Change-Id: Ie0f25414fc472a0214c0dd94e7ad4564cd38f842
ndroid.mk
om_android_server_location_ContextHubService.cpp
nload.cpp
0d911aefeec413a45a2561dc49fd8993e219acd6 20-Dec-2016 Connor O'Brien <connoro@google.com> Update ConsumerIrService to match revised IR HAL

Length parameter is being removed from the transmit() function, so
remove it from the call to transmit() here.

Test: Built and confirmed service runs on boot.
Change-Id: Ie8011f4cb22020ae9ed30e90b8568ed35d38d0d2
Signed-off-by: Connor O'Brien <connoro@google.com>
om_android_server_ConsumerIrService.cpp
18d13986900b610fc391f92d7d4e7cfa8a0052c8 19-Dec-2016 Wei Wang <wvw@google.com> Start sensor service in a seperate thread
am: 6ba0ef31e8

Change-Id: I325b0d5c02326355c7b04962537e695e7839be09
6ba0ef31e85e0295d1854467383e2145d037882e 29-Nov-2016 Wei Wang <wvw@google.com> Start sensor service in a seperate thread

StartSensorService is taking ~141.8ms on marlin to start
With this CL, StartSensor will be done in a seperate
thread so the SystemServer can continue booting

Bug: 33199244
Bug: 33623300
Test: on marlin
Change-Id: I9e486d61e85072d5cbe69b1671c8fbfeca9c2200
(cherry picked from commit f94016d91b1001b7575a7063934ec47edefb79a9)
om_android_server_SystemServer.cpp
6a24ab1595aa53c97a7f51cc743aae521c89c87a 10-Dec-2016 Connor O'Brien <connoro@google.com> Move ConsumerIrService to HIDL HAL

Test: Service builds successfully and runs on boot.
Change-Id: I0fd90a1ff1d9bde9c1a0872b248f88c5990a1b57
Signed-off-by: Connor O'Brien <connoro@google.com>
ndroid.mk
om_android_server_ConsumerIrService.cpp
e8650320c55869b8ab7430be5aabca3f0c77fe38 06-Dec-2016 Hridya Valsaraju <hridya@google.com> Fix bug in GnssLocationProvider.

Perform nullptr checking correctly before calling setCallback()
on gnssXtraIface.

Bug: 33334137
Test: Checked no crash happens when GNSS HAL returns a null
GnssXtraInfc.

Change-Id: I763d96443a0a6c0f036ecfc86ac442b297560efa
om_android_server_location_GnssLocationProvider.cpp
5705ad69db0e4301bb3ae0b722049879536c857d 02-Dec-2016 Jaekyun Seok <jaekyun@google.com> Merge "Remove static link in Android framework under /frameworks/base."
am: c60963e451

Change-Id: I0bbb3cf9a66752f6ee8218a4ac5545091130bbed
02c33342c5fe91483d6b7efdf458f74cce7c72af 02-Dec-2016 Hridya Valsaraju <hridya@google.com> Merge "Modify GnssLocationProvider to use Treble Gnss HAL"
9a4c8a207205f04eb431cc2c412a50a64567efe8 01-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revert "LightService: don't use implicit cast of Return<*>""
e1cc01087a63210182f0d94f1cb3e8da833a1107 01-Dec-2016 Steven Moreland <smoreland@google.com> Revert "LightService: don't use implicit cast of Return<*>"

This reverts commit 9893740dbcadd2fb86dc4c2e200b3c17b62995c8.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Ib522886cb5007a2cab5bcf43643e29207fa8ea1b
om_android_server_lights_LightsService.cpp
86e50186b2e26ddd3ba56f880e22104b24176b1a 01-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Start sensor service in a seperate thread"
377878b4d4529c0007694821ec96b20f0a489239 23-Nov-2016 Jaekyun Seok <jaekyun@google.com> Remove static link in Android framework under /frameworks/base.

The dependencies to static libraries in frameworks should be removed
as many as possible to reduce a size of the system partition.
And that will improve coverage of the VNDK libraries because this
effort might find new necessary shared libs which were linked
statically before.

Size diffs of libs in /system/lib on angler-userdebug build are as
following.

libandroidfw.so : 243748 -> 205196 (-38552)
libhwui.so : 562028 -> 562580 (+552)
libmedia_jni.so : 293652 -> 293656 (+4)
(All the others have the same size.)

total: (-37996)

Test: building succeeded, and the image was tested on angler.
Bug: 33056637
Change-Id: I3021fb438778eaea2be935b990ec85c4aec6c008
(cherry picked from commit 2b14c5eaf61635d1c3a69a2e59faa23cb6b7f7cb)
ndroid.mk
f94016d91b1001b7575a7063934ec47edefb79a9 29-Nov-2016 Wei Wang <wvw@google.com> Start sensor service in a seperate thread

StartSensorService is taking ~141.8ms on marlin to start
With this CL, StartSensor will be done in a seperate
thread so the SystemServer can continue booting

Bug: 33199244
Test: on marlin
Change-Id: I9e486d61e85072d5cbe69b1671c8fbfeca9c2200
om_android_server_SystemServer.cpp
9893740dbcadd2fb86dc4c2e200b3c17b62995c8 30-Nov-2016 Steven Moreland <smoreland@google.com> LightService: don't use implicit cast of Return<*>

Test: pass
Bug: 31348667
Change-Id: I9881bf1235bb775d92c119f1889d924aa4b0d292
om_android_server_lights_LightsService.cpp
2b14c5eaf61635d1c3a69a2e59faa23cb6b7f7cb 23-Nov-2016 Jaekyun Seok <jaekyun@google.com> Remove static link in Android framework under /frameworks/base.

The dependencies to static libraries in frameworks should be removed
as many as possible to reduce a size of the system partition.
And that will improve coverage of the VNDK libraries because this
effort might find new necessary shared libs which were linked
statically before.

Size diffs of libs in /system/lib on angler-userdebug build are as
following.

libandroidfw.so : 243748 -> 205196 (-38552)
libhwui.so : 562028 -> 562580 (+552)
libmedia_jni.so : 293652 -> 293656 (+4)
(All the others have the same size.)

total: (-37996)

Test: building succeeded, and the image was tested on angler.
Bug: 33056637
Change-Id: I3021fb438778eaea2be935b990ec85c4aec6c008
ndroid.mk
2ea296029f115376aaa7f4336d0082bdf47eee29 13-Sep-2016 Hridya Valsaraju <hridya@google.com> Modify GnssLocationProvider to use Treble Gnss HAL

Test: GPS functionality tested in binderized and pass-through modes on
Angler. All interfaces except AGnssRil, GnssNavigationMessage and
GnssNi. AGnssRil and AGnssNavigationMessage are not implemented by conventional
GPS HALs in Google devices that would be upgrading to O.

Change-Id: Ie4decb4c47892725c8c89bad3f48581550facff7
ndroid.mk
om_android_server_location_GnssLocationProvider.cpp
da183ac9c35160efda1be8850437e7026bfd29c6 02-Nov-2016 Steven Moreland <smoreland@google.com> LightService: log errors.

Test: lights work
Bug: 32022100
Change-Id: I7ac7de63e378ca37665859e4d45b09bf99313d10
om_android_server_lights_LightsService.cpp
d6658ac131148106c62fcc0d0567c7c53e64ef8c 17-Nov-2016 Yifan Hong <elsk@google.com> Split libhidl into base and transport.

Bug: 32756130

Test: mma
Change-Id: I0df309a1096b663cc51ce8badacf05e2a47836a8
ndroid.mk
976e63bdd3c2d68622d79753a97c876f284b2acc 15-Nov-2016 Daichi Hirono <hirono@google.com> Use StartFuseBridgeLoop function instead of FuseBridgeLoop class.

The method is being renamed from FuseBridgeLoop::Start to StartFuseBridgeLoop
in libappfuse. The CL handles the change in the framework side.

Bug: 29970149
Test: None
Change-Id: I70b91e426fa817d84c7f1f5f24c9e3ba401e523b
om_android_server_storage_AppFuseBridge.cpp
c62ca218bae92a81434d13ac07dc3188be4a2458 09-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add AppFuseBridge class to the system service."
bc6e372b25d7d62efecefba09304c5a66218c91a 03-Nov-2016 Donghyun Cho <donghyun@google.com> tv.cec: Update framework code to call Treble HAL

Bug: 32073236
Test: Checked CEC features works on fugu after applying Treble HAL
Change-Id: I26df037594e2505bd8f2d2bb6222cba5ddca2906
ndroid.mk
om_android_server_hdmi_HdmiCecController.cpp
3ff1c01cae0b654acd53088634e07e26557edd99 27-Oct-2016 Daichi Hirono <hirono@google.com> Add AppFuseBridge class to the system service.

Bug: 29970149
Test: None
Change-Id: I1d40d8e3aec1c57a31d5ae66b33305990dc86b67
ndroid.mk
om_android_server_storage_AppFuseBridge.cpp
nload.cpp
71cb0c5b6acc7477d9bb9d969ea0f0f648aec116 11-Oct-2016 Polina Bondarenko <pbond@google.com> thermal: add usage of IThermal.

HardwarePropertiesManagerService native impl uses IThermal instead of
thermal_module.

Bug:32022261
Test: CTS
Change-Id: I85e5c5bedb1cb6762207ccfa3e3a7dd4c00ee30a
ndroid.mk
om_android_server_HardwarePropertiesManagerService.cpp
d1256ee9094eb0cc516c240c052545797087f32a 28-Oct-2016 Steven Moreland <smoreland@google.com> vibrator: Remove unused using statement.

Bug: 32313592
Test: compiles
Change-Id: Ia2b99bd0a28653daa61150da022024e21a02a842
om_android_server_VibratorService.cpp
94cdb8fa0aa62f7405d07e618237f1e49025ef36 26-Oct-2016 Vitalii Tomkiv <vitalit@google.com> Merge "Add timeout to usb_device_get_string to prevent usb stuck state for bad behaving devices."
d9804ef16072f3d1ea10fc14b1459f7306c2a1b0 21-Oct-2016 Vitalii Tomkiv <vitalit@google.com> Add timeout to usb_device_get_string to prevent usb stuck state for bad
behaving devices.

Bug: 31923641
Test: manual run and test with bad devices.
Change-Id: Ie93b5d33e23de461e1b158215adcf5ccc122f48a
om_android_server_UsbHostManager.cpp
13e0691078668f10e07909a126f7354a169566c8 20-Oct-2016 Dongwon Kang <dwkang@google.com> tv.input: Updating tv input hal client with hidl.

Test: end-to-end test with sw hal implementation.
Bug: 32096101
Change-Id: I673b6c8b2cb1f20ae6fce7d201d2a01fca446042
ndroid.mk
om_android_server_tv_TvInputHal.cpp
9f91152c56ffbe740e695967db436bc830f99154 15-Oct-2016 Craig Donner <cdonner@google.com> Use VR hal in VrManagerService.

Bug: 31442830
Test: make all and tested VR mode on a device.
Change-Id: I8d79769a54e5523834569485571676bf6a140313
ndroid.mk
om_android_server_vr_VrManagerService.cpp
8b9ec4fa0b27e1cc0aba1d27b85761b88ca4c9d0 05-Oct-2016 Steven Moreland <smoreland@google.com> Updating light service for hidl.

Bug: 32022100
Test: end to end
Change-Id: I3c35551ffbbd272df4291f74455ba9562373f517
ndroid.mk
om_android_server_lights_LightsService.cpp
0ce1865438bdd27174747cadcf407c9da1d71503 12-Oct-2016 Prashant Malani <pmalani@google.com> Merge "services: Use HIDL Vibrator"
21986f2ae73e9ae3395a37dd3976af55e75d4f9d 12-Oct-2016 Romain Guy <romainguy@google.com> Merge "Linear blending, step 1"
e92c3f639893acbd9994ed50e592bc3109301099 12-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "power: PowerHAL support for HIDL interfaces."
253f2c213f6ecda63b6872aee77bd30d5ec07c82 29-Sep-2016 Romain Guy <romainguy@google.com> Linear blending, step 1

NOTE: Linear blending is currently disabled in this CL as the
feature is still a work in progress

Android currently performs all blending (any kind of linear math
on colors really) on gamma-encoded colors. Since Android assumes
that the default color space is sRGB, all bitmaps and colors
are encoded with the sRGB Opto-Electronic Conversion Function
(OECF, which can be approximated with a power function). Since
the power curve is not linear, our linear math is incorrect.
The result is that we generate colors that tend to be too dark;
this affects blending but also anti-aliasing, gradients, blurs,
etc.

The solution is to convert gamma-encoded colors back to linear
space before doing any math on them, using the sRGB Electo-Optical
Conversion Function (EOCF). This is achieved in different
ways in different parts of the pipeline:

- Using hardware conversions when sampling from OpenGL textures
or writing into OpenGL frame buffers
- Using software conversion functions, to translate app-supplied
colors to and from sRGB
- Using Skia's color spaces

Any type of processing on colors must roughly ollow these steps:

[sRGB input]->EOCF->[linear data]->[processing]->OECF->[sRGB output]

For the sRGB color space, the conversion functions are defined as
follows:

OECF(linear) :=
linear <= 0.0031308 ? linear * 12.92 : (pow(linear, 1/2.4) * 1.055) - 0.055

EOCF(srgb) :=
srgb <= 0.04045 ? srgb / 12.92 : pow((srgb + 0.055) / 1.055, 2.4)

The EOCF is simply the reciprocal of the OECF.
While it is highly recommended to use the exact sRGB conversion
functions everywhere possible, it is sometimes useful or beneficial
to rely on approximations:

- pow(x,2.2) and pow(x,1/2.2)
- x^2 and sqrt(x)

The latter is particularly useful in fragment shaders (for instance
to apply dithering in sRGB space), especially if the sqrt() can be
replaced with an inversesqrt().

Here is a fairly exhaustive list of modifications implemented
in this CL:

- Set TARGET_ENABLE_LINEAR_BLENDING := false in BoardConfig.mk
to disable linear blending. This is only for GLES 2.0 GPUs
with no hardware sRGB support. This flag is currently assumed
to be false (see note above)
- sRGB writes are disabled when entering a functor (WebView).
This will need to be fixed at some point
- Skia bitmaps are created with the sRGB color space
- Bitmaps using a 565 config are expanded to 888
- Linear blending is disabled when entering a functor
- External textures are not properly sampled (see below)
- Gradients are interpolated in linear space
- Texture-based dithering was replaced with analytical dithering
- Dithering is done in the quantization color space, which is
why we must do EOCF(OECF(color)+dither)
- Text is now gamma corrected differently depending on the luminance
of the source pixel. The asumption is that a bright pixel will be
blended on a dark background and the other way around. The source
alpha is gamma corrected to thicken dark on bright and thin
bright on dark to match the intended design of fonts. This also
matches the behavior of popular design/drawing applications
- Removed the asset atlas. It did not contain anything useful and
could not be sampled in sRGB without a yet-to-be-defined GL
extension
- The last column of color matrices is converted to linear space
because its value are added to linear colors

Missing features:
- Resource qualifier?
- Regeneration of goldeng images for automated tests
- Handle alpha8/grey8 properly
- Disable sRGB write for layers with external textures

Test: Manual testing while work in progress
Bug: 29940137

Change-Id: I6a07b15ab49b554377cd33a36b6d9971a15e9a0b
ndroid.mk
om_android_server_AssetAtlasService.cpp
nload.cpp
0d43404a07c1372fef71181ab9daa8fa960fdd4c 03-Oct-2016 Ruchi Kandoi <kandoiruchi@google.com> power: PowerHAL support for HIDL interfaces.

Bug: 31177288
Change-Id: I3ce5a71958f47d26855513cf7523922e80dd25d2
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
ndroid.mk
om_android_server_am_BatteryStatsService.cpp
om_android_server_power_PowerManagerService.cpp
a9cdaace679e6aa0d889ce2c40009d4c46e0d1f6 16-Sep-2016 Prashant Malani <pmalani@google.com> services: Use HIDL Vibrator

Bug: 32021191
Test: Builds, boots, vibrator works on bullhead

Change-Id: Ib46a8e902bca1bc28638f3b4477a2fd91e7186b3
ndroid.mk
om_android_server_VibratorService.cpp
ad2d59d39229071ca9e5ca9f93c53fc287104698 10-Oct-2016 Lifu Tang <lifu@google.com> Fixed the memory leak when receiving Nav messages am: fe427f24e5 am: 8786a6b904
am: 7c0bd74ddc

Change-Id: I9f670df30ee956b1ac7542a6015bc3c248705cb5
7c0bd74ddc5a7d3d1f390483c6861f2f774d30db 10-Oct-2016 Lifu Tang <lifu@google.com> Fixed the memory leak when receiving Nav messages am: fe427f24e5
am: 8786a6b904

Change-Id: Icf0f81dc2c9c9fa0801edb1e2f13a20460e470f0
fe427f24e5788612bc271bfff1b07b36ecebf3af 08-Oct-2016 Lifu Tang <lifu@google.com> Fixed the memory leak when receiving Nav messages

Bug: 32038182

Change-Id: Ie659dc945d6efc7feaf9285d3e7375c90cba7234
om_android_server_location_GnssLocationProvider.cpp
1cccaa71e1d66bf4bc0a1c2c20746a9be22c3ca1 22-Sep-2016 Greg Hackmann <ghackmann@google.com> AlarmManagerService: explain some timerfd_create() failures am: a0126e0857 am: dd4f59a76f am: b79eb2540a
am: 1eedfc6d8c

Change-Id: I306e331f6dd5605bfcda80ed703f593f8ee09b57
cae02196ef2674709e9d4ae23d4881d012cba022 22-Sep-2016 Greg Hackmann <ghackmann@google.com> AlarmManagerService: remove legacy /dev/alarm support am: d7151c06f1 am: ccafcac745 am: d869532332
am: 396592efcd

Change-Id: I6c38ba34c08c078b4112d28f5e633fadce7fb73b
a0126e0857481866dab5060384d611c83ca53d0e 02-May-2016 Greg Hackmann <ghackmann@google.com> AlarmManagerService: explain some timerfd_create() failures

When AlarmManagerService is broken, starting the framework fails in
weird and inconsistent ways. So if we detect your kernel is missing the
required timerfd support, give up immediately and explain why.

Bug: 28357356

Test: manually break timerfd_create syscall, check adb logcat during boot
Change-Id: Iaa153fca38e9cd8e801f3e71c3e1ae2351907828
Signed-off-by: Greg Hackmann <ghackmann@google.com>
om_android_server_AlarmManagerService.cpp
d7151c06f11c05ad3dcab175a6e4b4ea694dab96 25-Apr-2016 Greg Hackmann <ghackmann@google.com> AlarmManagerService: remove legacy /dev/alarm support

We've removed the Android alarm driver from our supported kernels. It's
time to remove the userspace callers too: they make the native side of
AlarmManagerService more complex, and send the wrong signal about
/dev/alarm still being supported.

Bug: 28357356

Test: cts-tradefed run singleCommand cts -d -c android.app.cts.AlarmManagerTest
Change-Id: I619e2d8a98e4c4728131a2d826b1295f858abedd
Signed-off-by: Greg Hackmann <ghackmann@google.com>
om_android_server_AlarmManagerService.cpp
defa4c2c197e52343594da444578a90426027ce5 16-Sep-2016 Elliott Hughes <enh@google.com> Merge "Stop including libcore/include/ in most of frameworks/base." am: 05884ac869 am: 21ba3d9527 am: 924288c24d
am: c65df378c1

Change-Id: If8153fc81bc2117c664f23f0b63f7d6e6f91fd0f
f0c606eb3e481050fd1dacd52694bacb794a4736 15-Sep-2016 Elliott Hughes <enh@google.com> Stop including libcore/include/ in most of frameworks/base.

frameworks/base/core/jni/android_text_StaticLayout.cpp does actually use
ScopedIcuLocale, so I've left that for now.

Change-Id: I6458cd133871281a747a9da2e304da10b445051a
ndroid.mk
a712d4058f6f85268838710857e6070a739cf6f9 07-Sep-2016 Todd Kjos <tkjos@google.com> Revert "Enable migration to big cores for app launches."

This reverts commit a326a116f7f9fb939fac3d28c80d32542016decc.

Change-Id: I9f9497990fbf0697d05445f563ad46a28d6d6eeb
ndroid.mk
om_android_server_am_ActivityManagerService.cpp
nload.cpp
6d09d547b06b86b337e8e16c2585b3882a5bb1dc 29-Aug-2016 Chih-Hung Hsieh <chh@google.com> Fix google-explicit-constructor warnings.

* Add explicit keyword to conversion constructors.
Bug: 28341362
Test: build with WITH_TIDY=1

Change-Id: Ic550902559b0800bdcfc0b1d301313a909434eed
om_android_server_input_InputApplicationHandle.h
8f7223e420785962487995baad89f654fa1cc8ce 20-Jul-2016 Christopher Ferris <cferris@google.com> Merge \"Remove dependency on android_alarm.h.\"
am: c95e7a3014

Change-Id: I19908fa29772c89b8112e371702da6197b20465d
338893e47ed8e2a913e5def987469647809cdbc6 19-Jul-2016 Christopher Ferris <cferris@google.com> Remove dependency on android_alarm.h.

android_alarm.h no longer exists in upstream android kernels. Since it's
only used by the AlarmManagerService, copy in the parts of the file that
are needed into that one file.

Bug: 30072483
Change-Id: I5c994dfa2ad261da48a67e5c35dc4b6618b82aa1
om_android_server_AlarmManagerService.cpp
f11d0fe8c5a0906a7b6295adea9da1d544a3a22d 28-May-2016 Greg Hackmann <ghackmann@google.com> Merge "Revert "AlarmManagerService: remove legacy /dev/alarm support"" am: 6fb921a61b
am: 359a4d9569

* commit '359a4d9569fd88a896650065256e8a377546b8e2':
Revert "AlarmManagerService: remove legacy /dev/alarm support"

Change-Id: I0f1ed806b1261796da0dad770c50e8e1b9f5b3e1
dea57bac3d08a34ceb531e88e7e59b77d0fdc27c 28-May-2016 Greg Hackmann <ghackmann@google.com> Revert "AlarmManagerService: remove legacy /dev/alarm support"

This reverts commit f68cdb9cb4841765d9d55d4a95259e9c3bb3ecc1.

Change-Id: I13e954656771f32c6156b4c4adb52922bcd0717a
om_android_server_AlarmManagerService.cpp
cac03c5cdfee5cb02b93654b6629c4d18018b5f6 27-May-2016 Greg Hackmann <ghackmann@google.com> Merge "AlarmManagerService: remove legacy /dev/alarm support" am: 1f336bb051
am: 2c4b276df4

* commit '2c4b276df4ea5655d41b8e239ca44ef6559e485d':
AlarmManagerService: remove legacy /dev/alarm support

Change-Id: I4cb2036c9a06adaaf9b93bc35821106dc2144c67
f68cdb9cb4841765d9d55d4a95259e9c3bb3ecc1 25-Apr-2016 Greg Hackmann <ghackmann@google.com> AlarmManagerService: remove legacy /dev/alarm support

We've removed the Android alarm driver from our supported kernels. It's
time to remove the userspace callers too: they make the native side of
AlarmManagerService more complex, and send the wrong signal about
/dev/alarm still being supported.

Bug: 28357356

Change-Id: I225d76c3f4e695a831d4419e050e8e178e1224b5
Signed-off-by: Greg Hackmann <ghackmann@google.com>
om_android_server_AlarmManagerService.cpp
a86872346728c3d6a3d8ea948204cf374dcaea73 27-May-2016 Wyatt Riley <wyattriley@google.com> Merge "Prevent use of a null sCallbackObj by Hardware FLP" into nyc-dev
am: 793ac34219

* commit '793ac342196c57f6b89ad9d1425fc420fbb44bb5':
Prevent use of a null sCallbackObj by Hardware FLP

Change-Id: I9f7984826be418e8703bce449a9753d40e477fd0
793ac342196c57f6b89ad9d1425fc420fbb44bb5 27-May-2016 Wyatt Riley <wyattriley@google.com> Merge "Prevent use of a null sCallbackObj by Hardware FLP" into nyc-dev
4f6ae7bbaa4654e14d70e9fa503ceb713c90c342 26-May-2016 Michael Wright <michaelwr@google.com> Merge "DO NOT MERGE Remove Pointer Capture API" into nyc-dev
am: c396f0f70e

* commit 'c396f0f70ef40ea0fb42a0872a13f4c4e9a6a5f0':
DO NOT MERGE Remove Pointer Capture API

Change-Id: Iede50a709849ed27cb9723a565b946e00fb23be7
c396f0f70ef40ea0fb42a0872a13f4c4e9a6a5f0 26-May-2016 Michael Wright <michaelwr@google.com> Merge "DO NOT MERGE Remove Pointer Capture API" into nyc-dev
c8f13d504f84ac96efc1283d42f19c1366cf790a 26-May-2016 Wyatt Riley <wyattriley@google.com> Prevent use of a null sCallbackObj by Hardware FLP

Bug: 28730136
Change-Id: I5898583e8108c4cfa8574a0adc5b50d6983b247e
om_android_server_location_FlpHardwareProvider.cpp
0174dbfc24bce5b440b7f6c95f6605ca16d8634c 24-May-2016 Wyatt Riley <wyattriley@google.com> Merge "Adding SBAS offset to Gps/Gnss SvStatus converter" into nyc-dev
am: 0f6363e8b3

* commit '0f6363e8b3b091508181ea6cef5f5f87a4f75016':
Adding SBAS offset to Gps/Gnss SvStatus converter

Change-Id: If32179b0ea76b730b4944d0e487abf9427a69bc5
f6527aebbce5e2b6b771fa42ae499c2e7584bd26 24-May-2016 Wyatt Riley <wyattriley@google.com> Adding SBAS offset to Gps/Gnss SvStatus converter

Opposite sign of Glonass & BDS offsets. Noticed after screenshot search & further testing.

Bug: 28623392
Change-Id: I6a7c98f455ee7df278eed985ba57ec1c12d888e0
om_android_server_location_GnssLocationProvider.cpp
03df42268995e3742aeb42ee6a77048dcc8fd889 20-May-2016 Chih-Hung Hsieh <chh@google.com> Merge "Fix misc-macro-parentheses warnings in services jni." am: fe91d2a83d
am: d05b6478d5

* commit 'd05b6478d5341f7d70e78fad031d2d426155f68a':
Fix misc-macro-parentheses warnings in services jni.

Change-Id: Ibee251ace2e3f15b98a8f91da0d8450069500177
6c89616c388d2e5cac5f7d0c1682e48fa6ea7d31 20-May-2016 Chih-Hung Hsieh <chh@google.com> Fix misc-macro-parentheses warnings in services jni.

Bug: 28705665
Change-Id: Iaf965875b667e45e1557e447de7988f729adfd52
om_android_server_AssetAtlasService.cpp
om_android_server_connectivity_Vpn.cpp
om_android_server_hdmi_HdmiCecController.cpp
om_android_server_input_InputApplicationHandle.cpp
om_android_server_input_InputManagerService.cpp
om_android_server_input_InputWindowHandle.cpp
om_android_server_power_PowerManagerService.cpp
om_android_server_tv_TvInputHal.cpp
8a6eee895640eb55d9906e56921c42a7d5d5940f 19-May-2016 Wyatt Riley <wyattriley@google.com> Merge "Mapping up/down of legacy Gps vs. Gnss Status" into nyc-dev
am: b5b03bc450

* commit 'b5b03bc450235ffa85ac636da460b61f1e99bff1':
Mapping up/down of legacy Gps vs. Gnss Status

Change-Id: I19c8d74c51d92b9aaf3d60163dc686fe7d7b04b8
b5b03bc450235ffa85ac636da460b61f1e99bff1 19-May-2016 Wyatt Riley <wyattriley@google.com> Merge "Mapping up/down of legacy Gps vs. Gnss Status" into nyc-dev
49d9891c573f8c4994841b24f8d90690c342e8ae 18-May-2016 Wyatt Riley <wyattriley@google.com> Mapping up/down of legacy Gps vs. Gnss Status

- Maps incoming (from HAL) GpsSvStatus for Glonass, Beidou, SBAS, and QZSS
from defacto (NMEA-like) numbers to internal platform with detected constellation.
- Maps outgoing (to Java API) GpsStatus getSatellite info back into the de-facto
overloaded (beyond 32) "GPS" ID numbers.
- Simplifies Glonass ID definition for N (comments only.)
- This enables GPS/GNSS Test apps a non-degrading upgrade path.

Bug: 28623392
Change-Id: I9a19db1f11267032c6927daed767df5afa51c770
om_android_server_location_GnssLocationProvider.cpp
1831ca8f04e117a49227e1b3dc0c8ba1dde06cd5 19-May-2016 Michael Wright <michaelwr@google.com> Merge "DO NOT MERGE Rename PointerIcon and Pointer Capture APIs" into nyc-dev
am: a1e0cebf3a

* commit 'a1e0cebf3a18ac097d370e21d698e079f974bfff':
DO NOT MERGE Rename PointerIcon and Pointer Capture APIs

Change-Id: I20532a3148a99d4ea91ba7dc050f8669d5f19400
778e3b91acad6da04341d439f0c66a4fd09def4f 16-May-2016 Michael Wright <michaelwr@google.com> DO NOT MERGE Remove Pointer Capture API

The underlying implementation needs to be completely rethought. If a
process crashed while you were in pointer capture mode, you were
pretty much stuck in it. If the mouse happened to move outside of
your bounds right before you called the API, you'd never actually get
an event (whatever it was hovering over would). There's no easy way
for the system to tell you when you enter or exit this mode because
it doesn't actually track who the current request is from.

These are all solvable, but not in the N time frame. Maybe next time.

Bug: 26830970
Change-Id: I03efd63c499b86dc278491ca3284566c1965581f
om_android_server_input_InputManagerService.cpp
f9d9ce7705475874c82af04eb9b208a7fb556792 13-May-2016 Michael Wright <michaelwr@google.com> DO NOT MERGE Rename PointerIcon and Pointer Capture APIs

This is a response to API council feedback.

Bug: 26830970
Change-Id: Ia2d284b5c1ab8365bedfdc37d129be4b8146036b
om_android_server_input_InputManagerService.cpp
e530644bb619afb7918bfcb8d47a52c182925c88 04-May-2016 Dongwon Kang <dwkang@google.com> Merge "Revert "TIF: add signal detection feature for HW inputs"" into nyc-dev
am: b69b5b4a6d

* commit 'b69b5b4a6ddf14ad41de93a46095466858fbdec2':
Revert "TIF: add signal detection feature for HW inputs"

Change-Id: I88dbff74104a5d905c2b68188ba5d7739ae41fcb
b69b5b4a6ddf14ad41de93a46095466858fbdec2 04-May-2016 Dongwon Kang <dwkang@google.com> Merge "Revert "TIF: add signal detection feature for HW inputs"" into nyc-dev
4a3a601082b88ee057aa71421e45cb00041ecfff 04-May-2016 Dongwon Kang <dwkang@google.com> Revert "TIF: add signal detection feature for HW inputs"

This reverts commit 102d0b7b6970523ca7040e30d4e4fd1a349a01cc.

Change-Id: I50a66d7bd1baaea134ddd6638c3cfe65860e681d
om_android_server_tv_TvInputHal.cpp
f4810694ff4fa1621444e187926b3b76a12a9387 03-May-2016 Badhri Jagan Sridharan <Badhri@google.com> Merge "Change low power stats format to make it easier for parsing" into nyc-dev
am: 49bdf11cd5

* commit '49bdf11cd5e388c0c91cfa095f3b6314902f9994':
Change low power stats format to make it easier for parsing

Change-Id: I9bb5d7867a2895ea7ff7ac8123187f81c7c89a16
15c4e31b0f7226987267656926c98d2c5d53585a 03-May-2016 Badhri Jagan Sridharan <Badhri@google.com> Change low power stats format to make it easier for parsing

New format: PlatformIdleStat state_1 name=XO_shutdown time=0 count=0
voter_1 name=APSS time=48264099 count=484 voter_2 name=MPSS
time=48573849 count=39857 voter_3 name=LPASS time=49584723 count=2082
state_2 name=VMIN time=47171000 count=38222

Old format: PlatformIdleStat XO_shutdown_time=0 XO_shutdown_count=0
APSS_time=9467486 APSS_count=583 MPSS_time=10835070 MPSS_count=9131
LPASS_time=10624719 LPASS_count=595 VMIN_time=9231000 VMIN_count=7878

In the old format it was hard to differentiate between the various
low power states and the voters for each state.

Bug:26564574

Change-Id: I3930aaf1c8c6e17066ef043552096ba61373f9f4
om_android_server_am_BatteryStatsService.cpp
85e0c89ba55188ecc484538efbfdb570606fc1a2 28-Apr-2016 Chih-Hung Hsieh <chh@google.com> resolve merge conflicts of 1599b981 to nyc-dev-plus-aosp

Change-Id: I90807581e10b6a0024515ff634ac8b29eaa5fc9f
b0ec5e2114ad19475bbdfa60c1a3af23a1f91db5 28-Apr-2016 Badhri Jagan Sridharan <Badhri@google.com> Merge "Add low power stats to batteryhistory" into nyc-dev
am: 5149abe

* commit '5149abe73eb52e5b0df16572397a58c295e23da3':
Add low power stats to batteryhistory

Change-Id: I9778ada1ccc73041f4682c29d9c8d4ad1bf9e5c1
68cdf1997f7b007e4c81089bc402a0356292f4c2 04-Apr-2016 Badhri Jagan Sridharan <Badhri@google.com> Add low power stats to batteryhistory

Exports SOC specific low power state info to batterystats service.
BatteryStats service queries the powerHAL module whenever and
updates the HistoryStepDetails whenever setBatteryState is called by the
BatteryService. The stats get appended to the battery history whenever
there is a change in the battery level.

Bug: 26564574
Change-Id: I02b4db00aec0c69d1558492224f3a4dc1c386fa6
om_android_server_am_BatteryStatsService.cpp
om_android_server_power_PowerManagerService.cpp
c6baf563ba6aa207a48317c177b29f1d2b70cf3d 27-Apr-2016 Chih-Hung Hsieh <chh@google.com> Fix google-explicit-constructor warnings.

Bug: 28341362
Change-Id: Ibdd6a210bb7ff228e3624cc319169f77aca3b51e
om_android_server_AlarmManagerService.cpp
om_android_server_hdmi_HdmiCecController.cpp
de3f4aead5a92e28d81287ea5f63d2e510187927 22-Apr-2016 Sujith Ramakrishnan <sujithrk@google.com> Merge "Unbundle RemoteService on TV - part 3" into nyc-dev
am: 7981e8f

* commit '7981e8ff6509769a590f15b440f989437d732be5':
Unbundle RemoteService on TV - part 3

Change-Id: Ib5eb6363e904a1f66000d12263f66a8e5bd1f663
b5b86c11008422ac4bf5af5fed736f04ebbaa858 29-Jan-2016 Sujith Ramakrishnan <sujithrk@google.com> Unbundle RemoteService on TV - part 3

- New service TVRemoteService triggered by SystemServer
- Provider service proxy and watcher for maintaining connections to unbundled
services which have the BIND_TV_REMOTE_SERVICE permission.
- Shared library to facilitate connections between unbundled service and
TVRemoteService.
- Unbundled service needs TV_VIRTUAL_REMOTE_CONTROLLER
permission to be fully functional.

b/23792608

Change-Id: Ief5c6995883d1f7268a73bdd0c920c4c3f42cddb
ndroid.mk
om_android_server_tv_TvKeys.h
om_android_server_tv_TvUinputBridge.cpp
nload.cpp
ffc60f50be8dcbbb15d4f663f0340fd7890cb1d2 21-Apr-2016 Lifu Tang <lifu@google.com> Merge "Added defensive code to prevent system crash" into nyc-dev
am: a381455

* commit 'a381455472a814c8dbd98fcb4312f46ed1373c88':
Added defensive code to prevent system crash

Change-Id: I97dd4a994c86bf9bc845de08a8ff9c303bb86240
428b882710903d73326cf63dc9ba66e9bb0261e1 21-Apr-2016 Lifu Tang <lifu@google.com> Merge "Fixed bug in upgrading GpsMeasurement" into nyc-dev
am: e1b5171

* commit 'e1b51715bdd1d59913ef4cb83071ef8eaac968de':
Fixed bug in upgrading GpsMeasurement

Change-Id: Ic20b5232d5114486dbefb5c4adf1409ecf1b3870
a381455472a814c8dbd98fcb4312f46ed1373c88 21-Apr-2016 Lifu Tang <lifu@google.com> Merge "Added defensive code to prevent system crash" into nyc-dev
8b7ad976bfa88d54c00c02a4b2b582d56bcaa699 20-Apr-2016 Lifu Tang <lifu@google.com> Added defensive code to prevent system crash

Bug: 26940611
Change-Id: I8226d1acb42ccc7d2cd910e30b47c7c63c9f490b
om_android_server_location_FlpHardwareProvider.cpp
8ad4430c57539d8b4cb5856bd9cfc3ba06ca6343 20-Apr-2016 Lifu Tang <lifu@google.com> Fixed bug in upgrading GpsMeasurement

Bug: 28278410
Change-Id: I936e257d68c348654d6031eb3e8f6d63b28d5e0a
om_android_server_location_GnssLocationProvider.cpp
53ca6bfe5880fddb75cb382ec991376459b6e739 14-Apr-2016 Mike Cailean <mcailean@codeaurora.org> Merge "Fixed bugs when deliver GnssMeasurement from N-HAL" into nyc-dev
am: ceeb44d

* commit 'ceeb44daf9fcd2b78a4f64d3b0d4f709b093e3c2':
Fixed bugs when deliver GnssMeasurement from N-HAL

Change-Id: I970b1bafe67cfcc0caec5ad4fbe3073bb1e679d8
96635bd0561172e7fd711bcb191a21205c6ce43e 25-Mar-2016 Mike Cailean <mcailean@codeaurora.org> Fixed bugs when deliver GnssMeasurement from N-HAL

There're two major problems that prevents GnssMeasurement from N-HAL from
delivering to Java-side correct:

1. The size check of HAL-provided GnssData is wrong. So native code rejects all
valid GnssData.

2. The svid's data type is different between HAL-side and Java-side. Therefore
an explicit type casting is required.

This CL fixes those problems, together with a few typo fixes.

Bug: 28169973
Change-Id: Id0c2cc120387970564b840cfcbdcb6f329c7e543
om_android_server_location_GnssLocationProvider.cpp
c357cdf2640084e9ef3482c8b8372883e4379773 13-Apr-2016 Lifu Tang <lifu@google.com> Merge "Removed all the references to deprecated class" into nyc-dev
am: d7e1d42

* commit 'd7e1d429c49c2925d921878d26250afc3e862888':
Removed all the references to deprecated class

Change-Id: I3b5b7793919a52c906ff804c7b2d14a64b0b139e
5b49d8a00640ef2e6de953eb83a0cf81f27fa58c 12-Apr-2016 Lifu Tang <lifu@google.com> Removed all the references to deprecated class

Bug: 28144767
Change-Id: If14752a81f6662fb33aacc04d54bfee249221d74
om_android_server_location_GnssLocationProvider.cpp
9f99eb9c08ec0c1eaad1bcde69d2792f6d5ee163 09-Apr-2016 Lifu Tang <lifu@google.com> Merge "Fixed the sign error in GnssClock" into nyc-dev
am: da9f52a

* commit 'da9f52a795fc8af2250b22a167b88343af9fe917':
Fixed the sign error in GnssClock

Change-Id: I4a60184b0e5e706831ce2c0c742751ab43b03040
e50607efab69c62d1a7b5ba9bb3dff47449483c9 08-Apr-2016 Lifu Tang <lifu@google.com> Fixed the sign error in GnssClock

Bug: 28068514
Change-Id: I71b68acb70d4139f94f3829bd4a280d926e251de
om_android_server_location_GnssLocationProvider.cpp
943adfd073812d0b71f6cc5706e64d345cee99ac 07-Apr-2016 Andrii Kulian <akulian@google.com> Merge "Caps Lock toggle with Meta + Alt (2/2)" into nyc-dev
am: 48143f7

* commit '48143f7ec58f2793e236566e0d25d3b731858996':
Caps Lock toggle with Meta + Alt (2/2)

Change-Id: I0015cf2138c3830e2d8e043759efd4ed15cd7701
112d05678b7de53da8948f62dd2e968274f62244 08-Mar-2016 Andrii Kulian <akulian@google.com> Caps Lock toggle with Meta + Alt (2/2)

Caps Lock implementation in frameworks/base

Bug: 27482276
Change-Id: Ie0d8145c049197d4591e012832a710e4f751d2ac
om_android_server_input_InputManagerService.cpp
f5d1bc31fe66881bbf81c54e0a8d24699bfc54ea 31-Mar-2016 Ruben Brunk <rubenbrunk@google.com> Merge "Include VR throttling limit in hardware properties." into nyc-dev
am: ee1062e

* commit 'ee1062e4c011578906edf08d340eff5a55ebe085':
Include VR throttling limit in hardware properties.

Change-Id: I5d404f5fe7ad36dfe5269f7acb148146b7c2eabf
946ef6417b0b9ba18d509843146e5a1a28ed1049 25-Mar-2016 Ruben Brunk <rubenbrunk@google.com> Include VR throttling limit in hardware properties.

Bug: 27549685
Change-Id: I0e7f06c772c6547bb3357218c1ebf295cbd1dbd2
om_android_server_HardwarePropertiesManagerService.cpp
8b176864ea4dab6afc4ef17ace8478c07d7be480 23-Mar-2016 Lifu Tang <lifu@google.com> Merge "A few changes to the measurement implementation" into nyc-dev
am: 145ff55

* commit '145ff558adb3fa946c792f7d5d49e8f9e746e331':
A few changes to the measurement implementation
145ff558adb3fa946c792f7d5d49e8f9e746e331 23-Mar-2016 Lifu Tang <lifu@google.com> Merge "A few changes to the measurement implementation" into nyc-dev
17350f925f5ee4d4df92c768c92e442179b1a420 22-Mar-2016 Lifu Tang <lifu@google.com> A few changes to the measurement implementation

- Fixed the device crashing bug in JNI code
- Fixed a typo ('lock' => 'clock')
- Added hardware clock discontinuity count in toString()

(cherry picked from commit 3a21b02ee2dc8f2c6c879109757d89a2be5d720a)

Change-Id: I6dbda85abda20da0240ac08b22b81729eae7b6f0
om_android_server_location_GnssLocationProvider.cpp
1924d238e3d55ffd04349a3d130933f5f1d667fc 19-Mar-2016 Polina Bondarenko <pbond@google.com> Merge "Added skin temperature, thresholds to HardwarePropertiesManager" into nyc-dev
am: c1d317f

* commit 'c1d317f7141801e031abae7bd3aba1183a616230':
Added skin temperature, thresholds to HardwarePropertiesManager
eb84552ef0135c1069f67a12f2e9985d4191880f 01-Mar-2016 Polina Bondarenko <pbond@google.com> Added skin temperature, thresholds to HardwarePropertiesManager

Bug: 27425887
Change-Id: I13f69ae37906b71d93edbf6bea6daf809d97cfd5
om_android_server_HardwarePropertiesManagerService.cpp
eb6a1a8bc0f57a7e8cbc0311dcbf750b994b542b 19-Mar-2016 Polina Bondarenko <pbond@google.com> Merge "Renamed hardware_properties to thermal HAL." into nyc-dev
am: 141d4e3

* commit '141d4e323c0f94b3c4200a11dfab5e4bc484052e':
Renamed hardware_properties to thermal HAL.
141d4e323c0f94b3c4200a11dfab5e4bc484052e 19-Mar-2016 Polina Bondarenko <pbond@google.com> Merge "Renamed hardware_properties to thermal HAL." into nyc-dev
cb8ca18a46373cd91d83ae41b7369ba4cb2da441 01-Mar-2016 Polina Bondarenko <pbond@google.com> Renamed hardware_properties to thermal HAL.

Fixed HardwarePropertiesManagerService native function according
to changes on thermal HAL.

Bug: 27424857
Change-Id: I4f508833071f631d68031c1c9a6aa8df6cbf5d2a
om_android_server_HardwarePropertiesManagerService.cpp
2b0d636bfdfc159d8ae179aba545f739b624354d 14-Mar-2016 Brian Carlstrom <bdc@google.com> Merge "frameworks/base: Make Thread::run threadName argument required" into nyc-dev
am: b4cab0bd5d

* commit 'b4cab0bd5d5929731e0f408cbacba36a4fc7f4af':
frameworks/base: Make Thread::run threadName argument required
66f4831aa105f981ba1d5c21e3dcf8f1e0d76de8 13-Mar-2016 Brian Carlstrom <bdc@google.com> frameworks/base: Make Thread::run threadName argument required

Bug: 27557176
Change-Id: Icff15e51fb7c99387ac8317181d12749f343439a
om_android_server_tv_TvInputHal.cpp
c7d193d90f7f4d6b29e02597ff9b5a07617136ac 10-Mar-2016 Lifu Tang <lifu@google.com> Merge "Checked the flag not set in the correct way" into nyc-dev
am: 4bffe89bef

* commit '4bffe89bef8470b100ce687af48d1f4556fc6078':
Checked the flag not set in the correct way
ccb448802b99c5de03ad66e252e187fe8a826fc1 10-Mar-2016 Lifu Tang <lifu@google.com> Checked the flag not set in the correct way

The previous macro always returns false after expansion. Fixed the problem, and
also added a mechanism to catch such kind of mistakes during compile time.

Change-Id: I6870dfa80a8cbbaa0e145ae00f09dd0d78cff157
om_android_server_location_GnssLocationProvider.cpp
d70097b7c14a9b227b8a9b4c976e3d35de6059eb 09-Mar-2016 Lifu Tang <lifu@google.com> Merge "Modified the API to make coverage test possible" into nyc-dev
am: e1b5358bae

* commit 'e1b5358bae5a311f427767fcf4800c3f03ac6bc1':
Modified the API to make coverage test possible
0f1ab04516d3e9a72eda22c998910f49f2bd40bb 08-Mar-2016 Lifu Tang <lifu@google.com> Modified the API to make coverage test possible

Bug: 27462840
Change-Id: Idfd2c3c108b25f8be9046fd4bb72dbc57edc24bd
om_android_server_location_GnssLocationProvider.cpp
5c9214ac0b131f87150aadec9a75bc2f5ad11d05 08-Mar-2016 George Burgess IV <gbiv@google.com> Merge "Cleanup uses of sprintf so we can deprecate it." am: 5a3ac10568
am: aca700435a

* commit 'aca700435a1ca1d32208c48af72b64e11d730b07':
Cleanup uses of sprintf so we can deprecate it.
235bbb1bb50b221da048063181f0f76a13e8014b 05-Mar-2016 Lifu Tang <lifu@google.com> Fixed the crash caused by type mismatch

Bug: 27503442
Change-Id: I019afc1f3dd872c8f9d79e9b6e589a77acd0cddc
om_android_server_location_GnssLocationProvider.cpp
76a620f0482ba54a4921c7c7e7eeb8ea87c12d3e 27-Feb-2016 Lifu Tang <lifu@google.com> Addressed the review comments from API Council

Following are the review comments from API Council:

(Places below that reference "s/foo/bar/" below are suggesting that "foo" be
replaced with "bar".)

GnssClock
-- Class docs should not refer to "GPS" at the top level
-- s/InNs/Nanos/
-- s/Sec/Second/

GnssMeasurement
-- s/In// for "InUnitname"
-- s/Sec/Second/
-- s/Ms/Millis/
-- s/Deg/Degrees/
-- STATUS_GPS_LOCATION_DISABLED -> STATUS_GNSS_LOCATION_DISABLED

GnssMeasurementsEvent.Callback
-- "returns" -> "reports" in the method docs as the methods return void

LocationManager
-- register/unregisterGnssMeasurementEventCallback ->
register/unregisterGnssMeasurementsEventCallback (plural)

GnssNavigationMessage
-- MESSAGE_TYPE_ constants -> change to just TYPE_; the "MESSAGE" is redundant
with the class name
-- is a signed byte/short ok based on the standard here? If not consider using
int in the public api

GnssStatus
-- Make sure @IntDef exists for the constellation type
-- Please append unit types for values returned to match GnssMeasurement methods

GnssStatusCallback
-- Please document time base/units for the time parameter of onFirstFix

Bug: 27385557
Change-Id: Ifed6a2eca3fd7ba89b3ded6964a70376235af8f4
om_android_server_location_GnssLocationProvider.cpp
a346f5458a4d9e9ea8159a38ae5f696f19cf125b 02-Mar-2016 George Burgess IV <gbiv@google.com> Cleanup uses of sprintf so we can deprecate it.

Change-Id: Ic66abfb547cd5551c47e03d604e65f83c84c597f
om_android_server_connectivity_Vpn.cpp
d6492a1c7637f9ce3c2c2be3ce6c14c605335e06 26-Feb-2016 Lifu Tang <lifu@google.com> Merge "Removed clock type from GnssClock" into nyc-dev
38bce7925c58fe585144f25ea6c954bab4f5da42 25-Feb-2016 Lifu Tang <lifu@google.com> Removed clock type from GnssClock

Bug: 27341583
Change-Id: I5ffd891737c3ddf83d9c6a78aa36c94858591199
om_android_server_location_GnssLocationProvider.cpp
280c5b2155feae857ad514dff81adbfe73e398e9 22-Feb-2016 Polina Bondarenko <pbond@google.com> Merge "Added hardwareproperties SystemService" into nyc-dev
9363b949a104786c87cd2cd18f206ff3c1957e5e 17-Feb-2016 Lifu Tang <lifu@google.com> Finalized GPS=>GNSS changes with documents

Bug: 27098594
Change-Id: I24529e60d8eb9b48b644cf01e5efc684e6f04839
om_android_server_location_GnssLocationProvider.cpp
f8754ac2127f8adf40bd4731f39b16340acdb2f7 12-Feb-2016 Polina Bondarenko <pbond@google.com> Added hardwareproperties SystemService

Add HardwarePropertiesManagerService which call native methods to
get CPU, GPU, battery temperatures, CPU usage info, fan speeds.
Restrict hardware properties retrieval only for device and profile
owners.

Bug: 26945055
Change-Id: I4d6b30b78e575532d5e9cfa59ef6cd81355439d4
ndroid.mk
om_android_server_HardwarePropertiesManagerService.cpp
nload.cpp
b6748a2aec3c4d7e41dccb69eaf29c76780ef4e8 12-Feb-2016 Jae Seo <jaeseo@google.com> Merge "TIF: Check the CEC message length before copying the data" into nyc-dev
d0efcbbbb5145da42beafd36f86a6d90047ce9af 12-Feb-2016 Jae Seo <jaeseo@google.com> TIF: Check the CEC message length before copying the data

Bug: 25768736
Change-Id: Ife46891e785fe816c0ee6ba65bd57512366ce84d
om_android_server_hdmi_HdmiCecController.cpp
94093b94ccec18adbf4b0b552a3526b52d2ca0e5 11-Feb-2016 Lifu Tang <lifu@google.com> Merge "Fixed the build break" into nyc-dev
a2b74fd268ebce83eb1e3572695bb86b89f057ec 11-Feb-2016 Lifu Tang <lifu@google.com> Fixed the build break

Change-Id: I02ee9b3f44d79510f174a1041f28b9c60450aa9c
om_android_server_location_GnssLocationProvider.cpp
ade2f66fd8ff8780f580d3e135b2b9b892adc3e6 11-Feb-2016 Lifu Tang <lifu@google.com> Merge "Optimized the memory consumption and renamed PRN" into nyc-dev
120480f17ae18bbe8c6fa7ec4854281fdf349b59 08-Feb-2016 Lifu Tang <lifu@google.com> Optimized the memory consumption and renamed PRN

Bug: 27058251
Change-Id: I2309943b1a4e7565868ed0f247b84edc631fbd59
om_android_server_location_GnssLocationProvider.cpp
574460f54781529814434f05b68fbc13f936913d 03-Feb-2016 Ruben Brunk <rubenbrunk@google.com> Merge "Connect VR HAL to VrManagerService."
d7a4da42bd2524fe04da23f7f27886e90a699324 03-Feb-2016 Lifu Tang <lifu@google.com> Merge changes from topic 'API renaming'

* changes:
Worked around the crash caused by API renaming
Rename Gps to Gnss for measurement-related APIs
baa4b55b892041fc33f3acdf29de0676ab63c2f9 03-Feb-2016 Ruben Brunk <rubenbrunk@google.com> Connect VR HAL to VrManagerService.

- Implement lifecycle calls into HAL from VrManagerService.

Bug: 22855417
Change-Id: I7b8144621ffcd44470d0ed3e6b137fffb081a21a
ndroid.mk
om_android_server_vr_VrManagerService.cpp
nload.cpp
818aa2c2c46addae934fb6cd42f889affc9ef747 01-Feb-2016 Lifu Tang <lifu@google.com> Rename Gps to Gnss for measurement-related APIs

Bug: 26895757
Change-Id: I12d89dc251e356cf976a4bcd3589a8925a8ad745
om_android_server_location_GnssLocationProvider.cpp
2a277696541e49458c132cc91ca23cb383646df2 02-Feb-2016 Narayan Kamath <narayan@google.com> Merge "Alarm: add missing closedir after opendir when searching for RTC" am: 21b2b7306e
am: 7b33488e12

* commit '7b33488e124bbe2a9fcfa6cd7a78726bc932ac8b':
Alarm: add missing closedir after opendir when searching for RTC
e45abfa083cacdd858feb7c6bcf0b03647a37989 18-Jan-2016 Mykola Kondratenko <mykola.kondratenko@sonymobile.com> Alarm: add missing closedir after opendir when searching for RTC

It is mandatory that closedir() is called to deallocate DIR structure
allocated by opendir().

Fix degrade introduced by Google commit 0eb58268.

Change-Id: Ia12154f7f822153b4fc8e6bfb8b2bae17bc45c1a
om_android_server_AlarmManagerService.cpp
b368bb20a38d30e9d54863b2041fd5ed162da19a 01-Feb-2016 Narayan Kamath <narayan@google.com> Merge "close file in PersistentDataBlockService jni" am: c71c44a524
am: 8e5a0d7da7

* commit '8e5a0d7da7f6df2c10d752b526a50ed4f5ade3fe':
close file in PersistentDataBlockService jni
5c74bb313fbe3fb479f9dc4296e46e9586faf946 14-Jan-2016 Lianwei Wang <lianwei.wang@gmail.com> close file in PersistentDataBlockService jni

The opened file should be closed.

Change-Id: I8a43b338c5c9eb0a5b1b5329eec767c6395bc7eb
Signed-off-by: Lianwei Wang <lianwei.wang@gmail.com>
om_android_server_PersistentDataBlockService.cpp
45fbe46da642ebc0685ecdee73b09a963d5fe54d 28-Jan-2016 Lifu Tang <lifu@google.com> Merge changes from topic '2016 GPS Changes'

* changes:
Framework support to read newly added fields
Added an API to query GPS hardware version info
GPS Measurement and Navigation APIs go public
Supported GNSS multi-constellation in frameworks
e5a0e21b6fcba32e6d7486c5e7736d7d0348d55c 26-Jan-2016 Lifu Tang <lifu@google.com> Framework support to read newly added fields

Change-Id: Ie43395addd102656a4dbf9c25111ac50ec9afe41
om_android_server_location_GnssLocationProvider.cpp
82f893d6df236d257ab2142dd63e72865a5e4f00 22-Jan-2016 Lifu Tang <lifu@google.com> Added an API to query GPS hardware version info

Change-Id: Ic45357d30da350759f56c9d061e60196acb3255b
om_android_server_location_GnssLocationProvider.cpp
a8b7bb5a50d8ad197c6f32eb308919c11b52ce74 26-Jan-2016 Lifu Tang <lifu@google.com> GPS Measurement and Navigation APIs go public

Those APIs are already used by first-party Apps for a while. We now make them
available to third-party Apps as well.

Change-Id: I87d9f0dbb04831fc849228d7df03a2686e2eb383
om_android_server_location_GnssLocationProvider.cpp
30f95a7d67870c28d2aaa88ee989c099f5670225 08-Jan-2016 Lifu Tang <lifu@google.com> Supported GNSS multi-constellation in frameworks

Change-Id: I82574afd3697c47e806d2cfaedc33756d0353b73
ndroid.mk
om_android_server_location_GnssLocationProvider.cpp
om_android_server_location_GpsLocationProvider.cpp
nload.cpp
6e415b691f066420dacc961dfb2fd176593f0135 19-Jan-2016 Ruben Brunk <rubenbrunk@google.com> Merge "Update LightsService to use low-persistence mode."
8ad3f208a93b2a842f20d5c78b2c010ae7583e86 28-Dec-2015 Ruben Brunk <rubenbrunk@google.com> Update LightsService to use low-persistence mode.

Bug: 26274041
Bug: 26217194

Change-Id: I4cbee11d0936b6df5b8aed9dfab8d9d1d928f9c3
om_android_server_lights_LightsService.cpp
347e5d498f4c216d588e98776a386d8bdf93d05c 03-Dec-2015 Jun Mukai <mukai@google.com> Introduce pointer capture API.

This depends on I4189eb4d93f50c2865b7a325727be5ceebcc71f8 of
frameworks/native.

Bug: 5452473
Change-Id: Ie21e521f3e5c581f976dc0feb5d84bfa48b046cd
om_android_server_input_InputManagerService.cpp
c2d26a0835e2b9d87ac123840e7200594ec49537 17-Dec-2015 Wonsik Kim <wonsik@google.com> Merge "TIF: add signal detection feature for HW inputs"
102d0b7b6970523ca7040e30d4e4fd1a349a01cc 26-Nov-2015 Wonsik Kim <wonsik@google.com> TIF: add signal detection feature for HW inputs

Bug: 23820259
Change-Id: If7f03b49f7510ec405dfc4fb2b6f709b8c8b820d
om_android_server_tv_TvInputHal.cpp
d4eaef7f4c5a5d281de4fff272cd33e892e26264 30-Oct-2015 Jun Mukai <mukai@google.com> Make public pointer icon API with custom icons.

BUG: 25778347, 23804184
Change-Id: If138b97c750c912e9848412c27b65004899961eb
om_android_server_input_InputManagerService.cpp
1852019c39b4ecfd9cf46149c86c5a07446f1e9f 04-Dec-2015 Phil Burk <philburk@google.com> USB MIDI: Fix race condition that causes intermittent connections.

Plugging in a USB MIDI device normally works.
But occasionally the device is not seen due to a race condition.
This code retries until the device is ready.

Change-Id: Ifba9c9678e6be0c3d139f3467f895307096a2ad8
Signed-off-by: Phil Burk <philburk@google.com>
om_android_server_UsbMidiDevice.cpp
19a560197950425f7e1856d5bd1216fbc680bf70 24-Nov-2015 Jun Mukai <mukai@google.com> Introduce accessibility large pointer icons.

This patch does the following things:
- add new graphic assets of large icons for accessibility needs
(imported from ChromeOS data)
- add the logic to choose the set of normal icons or accessibility icons
- make InputManagerService to observe the settings change, so that
it can reload the new resources

This patch misses non-1x graphic though, because ChromeOS doesn't
have such data.

Bug: 25778857
Change-Id: Ia5f95d47f50b3f6eea555c3af8069bc6bae0b400
om_android_server_input_InputManagerService.cpp
28d56151474bb97093a4bae482f7d8752030d8fa 18-Nov-2015 Jun Mukai <mukai@google.com> Merge "Introduce animated pointer icon for STYLE_WAIT."
808196f139e93395f1f331f6c7e92ddd66c05979 29-Oct-2015 Jun Mukai <mukai@google.com> Introduce animated pointer icon for STYLE_WAIT.

Change-Id: I893f8276e09351db6187c553f349008794b95690
om_android_server_input_InputManagerService.cpp
b2b5c89d8c3a04ce9dbc5b20deacef0ebbcada08 18-Nov-2015 Colin Cross <ccross@android.com> Merge "Vibra: Add loading of the vibrator hardware module." am: 5603eca33c am: 358ad4980f
am: 68cea4e7d1

* commit '68cea4e7d17cf00ce3001cf23fe36a7f1e77fe86':
Vibra: Add loading of the vibrator hardware module.
5603eca33c8e322997029d3101fd2442df3c274e 17-Nov-2015 Colin Cross <ccross@android.com> Merge "Vibra: Add loading of the vibrator hardware module."
3ac162ecc0799b4f30f8a1e37d94dfcf9101d34e 02-Nov-2015 Phil Burk <philburk@google.com> Merge "UsbMidiDeviceJNI: fix race condition"
32bfb874e32991685150ad7b9e8785b2b0ec9a7e 30-Oct-2015 Phil Burk <philburk@google.com> UsbMidiDeviceJNI: fix race condition

Try multiple times to open the MIDI control device.
This fixes a race condition that caused Android to
sometimes not see a USB MIDI keyboard when it was plugged in.

Bug: 25328161
Change-Id: Ic72c5859364fc56bf7a40c1b1c9791c42827ea63
Signed-off-by: Phil Burk <philburk@google.com>
om_android_server_UsbMidiDevice.cpp
6b1e695c56d19e8931c3bfecda77a9bbf30a6f02 30-Oct-2015 Wonsik Kim <wonsik@google.com> TV: check surface validity before use

Bug: 23118610
Change-Id: I4eede52de3c66e3f1e4fb442724581e01dbd99c3
om_android_server_tv_TvInputHal.cpp
5ec7420ecd0e94be0a07fc77b0bc950deb0178fd 07-Oct-2015 Jun Mukai <mukai@google.com> Use invisible icon for POINTER_ICON_STYLE_NULL.

Change-Id: I10d35bdc4da4817d769eb164e6f15e4618670a05
om_android_server_input_InputManagerService.cpp
1db5397d88e722b1ab82ccb2b429ceec1179ccd8 12-Sep-2015 Jun Mukai <mukai@google.com> Allow changing mouse pointer icon for the current context.

Right now, it only supports I-beam on EditText, but further
rules will come in the future.

The png files for the icons are from chromium.

Bug: 24180385
Change-Id: I8de4ec8a5412b4830c08aa232c5083841c5c751c
om_android_server_input_InputManagerService.cpp
434a481b2191562582c79be29f24c2e0b5ca60d0 24-Sep-2015 Elliott Hughes <enh@google.com> am ea1831d2: am b57dd722: resolved conflicts for a884d81e to stage-aosp-master

* commit 'ea1831d211ea0e6b2d161c714bb0786369ef2df5':
constify JNINativeMethod function pointer tables
ea1831d211ea0e6b2d161c714bb0786369ef2df5 24-Sep-2015 Elliott Hughes <enh@google.com> am b57dd722: resolved conflicts for a884d81e to stage-aosp-master

* commit 'b57dd722f1dc0663417da37d3a82f8283ad3c982':
constify JNINativeMethod function pointer tables
b57dd722f1dc0663417da37d3a82f8283ad3c982 24-Sep-2015 Elliott Hughes <enh@google.com> resolved conflicts for a884d81e to stage-aosp-master

Change-Id: Ice485967fa96f13786024b6939b826638e906ff0
93108b6164411be4b7d29e192310a90595bc834c 23-Sep-2015 Chih-Hung Hsieh <chh@google.com> Remove unused local variable.

Found by clang/llvm for bullhead device.

Change-Id: I9225bd47f2b246bcc2cadf88da5974624831d9b8
om_android_server_am_ActivityManagerService.cpp
76f6a86de25e1bf74717e047e55fd44b089673f3 19-Sep-2015 Daniel Micay <danielmicay@gmail.com> constify JNINativeMethod function pointer tables

Change-Id: I4036c924958221cbc644724f8eb01c5de3cd7954
om_android_server_AlarmManagerService.cpp
om_android_server_AssetAtlasService.cpp
om_android_server_ConsumerIrService.cpp
om_android_server_PersistentDataBlockService.cpp
om_android_server_SerialService.cpp
om_android_server_SystemServer.cpp
om_android_server_UsbDeviceManager.cpp
om_android_server_UsbHostManager.cpp
om_android_server_VibratorService.cpp
om_android_server_am_BatteryStatsService.cpp
om_android_server_connectivity_Vpn.cpp
om_android_server_hdmi_HdmiCecController.cpp
om_android_server_input_InputApplicationHandle.cpp
om_android_server_input_InputManagerService.cpp
om_android_server_input_InputWindowHandle.cpp
om_android_server_lights_LightsService.cpp
om_android_server_location_FlpHardwareProvider.cpp
om_android_server_location_GpsLocationProvider.cpp
om_android_server_power_PowerManagerService.cpp
om_android_server_tv_TvInputHal.cpp
e3f920252e30d7601be5b03c4417b0acbfdf6420 03-Sep-2015 Tim Murray <timmurray@google.com> am 65052ba4: am e2565aec: am e20eff91: am 3491da4e: Merge "Enable migration to big cores for app launches." into mnc-dr-dev

* commit '65052ba4fa266dcf3a31c51317418301fe6d1a0a':
Enable migration to big cores for app launches.
65052ba4fa266dcf3a31c51317418301fe6d1a0a 03-Sep-2015 Tim Murray <timmurray@google.com> am e2565aec: am e20eff91: am 3491da4e: Merge "Enable migration to big cores for app launches." into mnc-dr-dev

* commit 'e2565aecca1c56dcf80bb0e88dfddeca25388ad6':
Enable migration to big cores for app launches.
b902698632be50231d1597a38200a44026c1c94f 28-Aug-2015 destradaa <destradaa@google.com> Clean up Gps/Flp Hardware on shut-down.

Ensures that the GPS and FLP HAL interfaces are deinitialized upon
system shut-down. This gives a chance for the underlying HAL to
close cleanly any resources it could be holding.
Note this approach only works for a device's power-off, scenarios
such as adb shell stop / start cannot be handled, because in such
cases the process is terminated sending SIGKILL to it.

Bug: 23279835
Bug: 23279593
Change-Id: I29b3306c0ae2b384d0542031080a15fdbe49dd71
om_android_server_location_FlpHardwareProvider.cpp
a326a116f7f9fb939fac3d28c80d32542016decc 25-Aug-2015 Tim Murray <timmurray@google.com> Enable migration to big cores for app launches.

Uses cpusets to move all foreground tasks to the big cores in order
to improve overall app launch latency. Big cores will be used for
three seconds, and then the cpuset assignment is reset, allowing
foreground tasks to fall back to the little cores as appropriate.

Associated system/core and device/* changes in order to enable
the boost cpuset and configure it per-device.

bug 21915482

Change-Id: Id8a0efcb31950c1988f20273ac01c89c8c948eaf
ndroid.mk
om_android_server_am_ActivityManagerService.cpp
nload.cpp
6593daa39eaf71785cdf68f3899b69f8f6010046 25-Jul-2015 Adam Lesinski <adamlesinski@google.com> am a758499e: am d92a3957: am eee604ff: am 2a493532: Merge "BatteryStats: Decode wakeup reasons in Java" into mnc-dev

* commit 'a758499ee2c981eb2000661678860da68f2f9de2':
BatteryStats: Decode wakeup reasons in Java
9736d0ccaa741b2523163ac7906d873c25330ec0 25-Jul-2015 Adam Lesinski <adamlesinski@google.com> am 2a493532: Merge "BatteryStats: Decode wakeup reasons in Java" into mnc-dev

* commit '2a493532e6ce44fd6dec07a22c3a016de80ccc46':
BatteryStats: Decode wakeup reasons in Java
2a493532e6ce44fd6dec07a22c3a016de80ccc46 25-Jul-2015 Adam Lesinski <adamlesinski@google.com> Merge "BatteryStats: Decode wakeup reasons in Java" into mnc-dev
515702c29e5eae0e3f02b5d65ed86218813e8945 24-Jul-2015 Adam Lesinski <adamlesinski@google.com> BatteryStats: Decode wakeup reasons in Java

Wakeup reasons come from drivers and sometimes are malformed UTF-8.
Decode them in Java so we can easily replace malformed characters
and still have user visible strings.

Bug:22368519
Change-Id: Ifade1a7fcdf6545e7e344d74390200c329430e14
om_android_server_am_BatteryStatsService.cpp
096b562ec3700fec2fa09219b2182fc34e5ba6ff 24-Jul-2015 Tim Kilbourn <tkilbourn@google.com> am 79383d53: am 1c78d467: am 115189fd: am cc855ad7: Merge "Properly synchronize interactivity state." into mnc-dev

* commit '79383d53bc69adaebd4e195e78bf7dfe1867f03a':
Properly synchronize interactivity state.
99bad6f0c7070127888bb2f37966ebe732d4c2d1 24-Jul-2015 Tim Kilbourn <tkilbourn@google.com> am cc855ad7: Merge "Properly synchronize interactivity state." into mnc-dev

* commit 'cc855ad737e61fc02a057e811f2e6e34bbff0e37':
Properly synchronize interactivity state.
a405121b5a76d37f29dfa6d95177abbac9cfb101 23-Jul-2015 Michael Wright <michaelwr@google.com> Properly synchronize interactivity state.

Volatile doesn't provide any guarantees with respect to write
visibility, so it's possible that PowerManager will tell InputManager
about a change in interactivity state, but the actual dispatching
thread will never observe it.

Also, add logging about NativeInputManager state.

Bug: 22422588
Change-Id: Ifc3add992b9009d920d80a0315ff89c9574be20d
om_android_server_input_InputManagerService.cpp
8ac25b5500277aadd1b29d36cd00617a4a82f76b 01-Jul-2015 Narayan Kamath <narayan@google.com> am bba9d27e: am 1d50879b: Merge "Remove memory leak in PersistentDataBlockService jni"

* commit 'bba9d27e0c2d59e77bf51872b8773b962ea4b4c1':
Remove memory leak in PersistentDataBlockService jni
c90ca48a7c5981f1ebcb40ccab6e2ebbafe4c669 23-Jun-2015 Henrik Baard <henrik.baard@sonymobile.com> Remove memory leak in PersistentDataBlockService jni

When calling the methods
com_android_server_PersistentDataBlockService_getBlockDeviceSize()
com_android_server_PersistentDataBlockService_wipe()
memory is leaked because string created by
GetStringUTFChars() is not released.

Use ScopedUtfChars instead to ensure that memory is released.

Change-Id: I880a6d66a4824778b411b858774b8ffa009c1e17
om_android_server_PersistentDataBlockService.cpp
87fd322ecb5cd7582f449e5b4721a1e4dea062e6 25-Jun-2015 Adam Lesinski <adamlesinski@google.com> BatteryStats: Record suspend abort reasons

Bug:18179405
Change-Id: I28c77f035400c32375dbe6d3c7057c0a2c093e8f
om_android_server_am_BatteryStatsService.cpp
6d5a0f916499a69f28b860fd66d09b5025c30450 08-Jun-2015 Mike Lockwood <lockwood@google.com> UsbMidiDevice: Only keep ALSA devices open when device is in use

This should fix contention problems for apps using USB APIs to implement MIDI support

Bug: 20949468
Bug: 21630625
Change-Id: I32b44330ca0310a4693fd56a4b01ad399f82c1c9
om_android_server_UsbMidiDevice.cpp
6b0331a03025f2ea8c966bf9406dd5788ffa176e 06-Jun-2015 Adam Lesinski <adamlesinski@google.com> Wait for wakeup_reasons on first init

Previously if we were initializing the wakeup callback for the first time,
we would read the wakeup_reason file and ignore the contents, sending a
wakeup_reason of "unknown" up to BatteryStats.

Now we initialize the callback and wait on it immediately. Wakeup reasons are reset
when we go into sleep, so when we wakeup, we will always have fresh wakeup reasons.

Bug:21665793

Change-Id: I20832d8a143fc2715915fcecf4bb71980f279440
om_android_server_am_BatteryStatsService.cpp
ce48c1c1d8033e0bb62e0b24645b5c600c4adfc6 29-May-2015 destradaa <destradaa@google.com> Allow INADDR_NONE as a valid configuration in AGpsStatus_v3.
b/21516868

This change makes AGpsStatus_v3 consistent and compatible with the behavior
of AGpsStatus_v2.

Change-Id: Ia4e729d8ed1d61b51ae22c7eaf9bbe33f31b7a45
om_android_server_location_GpsLocationProvider.cpp
be67542182e41a6e31cf002db72ec42ee717bd1c 12-May-2015 Jim Miller <jaggies@google.com> Move from native FingerprintService implementation to fingerprintd

This adds a new service, fingerprintd, that manages fingerprint
hardware from a separate process. It provides a binder interface that
FingerprintManager uses to talk to the fingerprint HAL.

Change-Id: I84d8e407c1f1a7d1a396e246c382459ad38810ae
ndroid.mk
nload.cpp
27bbb2d0a1c8a3bb38768511ac840c3388b0fb03 31-Mar-2015 Jason Monk <jmonk@google.com> Add control for double tap to wake setting

Bug: 16875464
Change-Id: Ic1ad910dd38acbc68ef040b2acdf3696ec2c2e4e
om_android_server_power_PowerManagerService.cpp
80db9baf9766dc40f9d1b6bf60797ee5cc64a48c 08-May-2015 Sasha Levitskiy <sanek@google.com> Fingerprint: Add Set Active Group

Change-Id: Ie9d63c5f948c9610bd6b19a76bffab5ae0070620
Signed-off-by: Sasha Levitskiy <sanek@google.com>
om_android_server_fingerprint_FingerprintService.cpp
b9d71a6f89b1183f6389b1774652445a420c6cbf 30-Apr-2015 Svet Ganov <svetoslavganov@google.com> Add body sensors app op - framework base

Change-Id: Idd5cd573fab3405e5b2a6e51d2d9d115650826e9
om_android_server_SystemServer.cpp
78760b4ae47f5d59a541cbcbf1fca623bae4508a 01-May-2015 John Reck <jreck@google.com> Merge "A bunch more cleanups" into mnc-dev
3731dc220ed457e0f1e99d7ec2589e0a43872b59 14-Apr-2015 John Reck <jreck@google.com> A bunch more cleanups

Switch a few places to using android::canvas
instead of SkCanvas as well which eliminated
some JNI

Change-Id: I8f98b56442a06362b82b984cd1bd3a92398d8dbc
om_android_server_AssetAtlasService.cpp
db672b03a2de26127b40dbe50c794b5697b01c37 30-Apr-2015 John Reck <jreck@google.com> Merge "Change how Java Bitmaps are accessed in a few places" into mnc-dev
ed207b92747234eac88dd3664ecfb535e45d8ed1 10-Apr-2015 John Reck <jreck@google.com> Change how Java Bitmaps are accessed in a few places

Stop assuming that a Java Bitmap has a SkBitmap* that
has some externally managed lifecycle, and instead switch
a bunch of users to accessing the bitmap by providing
their own SkBitmap* on which to set the (ref counted!)
SkPixelRef* instead

Attempt #2 to land this, original issue was in getSkBitmap
and should be fixed

Change-Id: I0fd9e193968b41e5597784140d56b4885906864a
om_android_server_AssetAtlasService.cpp
c9bb40ea95101f8a46fab29beac02cc7204be320 29-Apr-2015 Mike Lockwood <lockwood@google.com> UsbDevice: Add support for retrieving version string for a USB device

Change-Id: Ia8630f5ffd05f90347b971110a81f4927060cc4b
om_android_server_UsbHostManager.cpp
f7de58130a6a38d62857f6b885986f6a5cc74fcb 22-Apr-2015 John Reck <jreck@google.com> Merge "GraphicsJNI Canvas cleanup"
4fbc845b6877ce5d4a4cd82c9bf784ca1be763b2 22-Apr-2015 destradaa <destradaa@google.com> Merge "Avoid performing work in the platform when GPS HAL does not support a feature. b/19271554"
4d41a203a08c55b3f3190519535ccee6557ea4fe 16-Apr-2015 Andres Morales <anmorales@google.com> Expose getAuthenticatorId API

Change-Id: I112c45d596c66e3f6ebd94fecffcb6bb7c3a335a
om_android_server_fingerprint_FingerprintService.cpp
c1b33d665c8caf5760f68c45c6ca0baa649b832a 22-Apr-2015 John Reck <jreck@google.com> GraphicsJNI Canvas cleanup

Change-Id: I72e142986a8bc9f464c1951b6b5187919de3462e
ndroid.mk
om_android_server_AssetAtlasService.cpp
9d4efdf2802f06ccf7031610891f75af70ea5538 17-Apr-2015 John Reck <jreck@google.com> Revert "A bunch more cleanups"

This reverts commit c294d128d03bc9a9982b273a82516c04583438cc.

Change-Id: Id1ebb236950f7c36c6d86e1dd95566d3a200748d
ndroid.mk
om_android_server_AssetAtlasService.cpp
ef752b69444b1d63e2b177e0589d2bf4e5383845 17-Apr-2015 destradaa <destradaa@google.com> Avoid performing work in the platform when GPS HAL does not support a feature.
b/19271554

Prevents accessing and computing data in cases when we know that the result
cannot be used by the GPS HAL, because the required interface is not supported.

Change-Id: I74bf1719f2c8ab7fbfe1244ebe0bebe3ed55ba24
om_android_server_location_GpsLocationProvider.cpp
fd25459a523f84c293989ceeb7853dc0a9e1daed 17-Apr-2015 Michael Wright <michaelwr@google.com> Merge "Rename affine transformation configuration change to be consistent."
357285c50a687c4ab0b5db5eb2df8e607f3e5b61 17-Apr-2015 Michael Wright <michaelwr@google.com> Rename affine transformation configuration change to be consistent.

Change-Id: I295d1d07f3727e6d0159e1ccf210ae147fd7ffa3
om_android_server_input_InputManagerService.cpp
afbcabd8d893d086872dcd8c40980ddb5eb5014e 15-Apr-2015 Andres Morales <anmorales@google.com> Merge "Check correct NO_ERROR response from Keystore"
fe66955503c74515c7e2f07aa152276010d7f5a6 15-Apr-2015 Andres Morales <anmorales@google.com> Check correct NO_ERROR response from Keystore

Change-Id: Ieaea593deadac596873583b2ac91a16020e90ea2
om_android_server_fingerprint_FingerprintService.cpp
472574f5a0f5aa4caf5a6e41509c00187113bb61 15-Apr-2015 Jim Miller <jaggies@google.com> Merge "Fix bug where preEnroll returned int instead of long"
5e7ae3190000b53d5e45d3bcb98dde89e8d8cd88 15-Apr-2015 Jim Miller <jaggies@google.com> Fix bug where preEnroll returned int instead of long

Change-Id: Ia0bf5e1b5b870b9dbeed21910dcf04435bcfde9d
om_android_server_fingerprint_FingerprintService.cpp
f7a61483bc2a763145b0f1b6e6809c44cdc97187 15-Apr-2015 John Reck <jreck@google.com> Merge "A bunch more cleanups"
fe6439f02db3a541d77a7afb27e3bca1ae7493ed 12-Apr-2015 Jim Miller <jaggies@google.com> Several fixes to Fingerprint code after large merge
- route fingerprint enrollment auth token
- replace "processed" event with "authenticated"
- fix type-o in strings.xml

Change-Id: If06b4438c94fd7fca07a8b7b1b5fa16dd94b3831
om_android_server_fingerprint_FingerprintService.cpp
205bbc40b4a3046ca3dba256535f0322f5b336e9 15-Apr-2015 Andres Morales <anmorales@google.com> Fix build

cast param

Change-Id: I150773ab0701c2551e3bd292aa228083259b5dd6
om_android_server_fingerprint_FingerprintService.cpp
af0479d16d381c7569b81c450f9ba947207d82fc 13-Apr-2015 Andres Morales <anmorales@google.com> Add notify keystore method to FPS JNI

Change-Id: I0b29a9e4a15e9386586df98be419be9e0b0c8f7b
ndroid.mk
om_android_server_fingerprint_FingerprintService.cpp
7ba38ef0df0eb0065c3d060e5fb1133beeb271b5 13-Apr-2015 Sasha Levitskiy <sanek@google.com> Fingerprint: Add hw token to the enroll() function.

Change-Id: I3308a2567cac9290540bb7692d343ccad98b40ed
Signed-off-by: Sasha Levitskiy <sanek@google.com>
om_android_server_fingerprint_FingerprintService.cpp
c294d128d03bc9a9982b273a82516c04583438cc 14-Apr-2015 John Reck <jreck@google.com> A bunch more cleanups

Switch a few places to using android::canvas
instead of SkCanvas as well which eliminated
some JNI

Change-Id: I8f98b56442a06362b82b984cd1bd3a92398d8dbc
ndroid.mk
om_android_server_AssetAtlasService.cpp
cfc9b6d6ab3c622ea4f9d06c28d6e0d2055d98e1 14-Apr-2015 David Christie <dnchrist@google.com> Add versioning to FLP HAL.

Retain compatibility with implementations compiled
against old headers or left unchanged from LMP.

Change-Id: I3f7cfaaf0cba8697c312940a805b053c6040caa6
om_android_server_location_FlpHardwareProvider.cpp
fff30439cafb737eb54de807caab4fb61432f2cc 13-Apr-2015 David Christie <dnchrist@google.com> Add ability to flush FLP HAL batched locations buffer.

Currently GmsCore has to guess how many locations to retrieve
based on requested frequency and then demux the output looking
for timestamps (that aren't monotonically increasing). This
capability gives GmsCore a more graceful solution.

Change-Id: Ie1d71615f699bc0d3c63f8b80aa7b40b9971cf96
om_android_server_location_FlpHardwareProvider.cpp
832017963d1d74ba41348deed5eb747b45b441fb 14-Apr-2015 David Christie <dnchrist@google.com> Merge "Add a status callback for location batching in FLP HAL"
15003f19e5e5a443222569401f167a3ac0e1de3a 13-Apr-2015 David Christie <dnchrist@google.com> Add a status callback for location batching in FLP HAL

-Allows GmsCore to know when location is unsuccessful so
it can switch to a SW solution.

Change-Id: I3d1df7b828f7fb189446881eea87d9a952310614
om_android_server_location_FlpHardwareProvider.cpp
172753e6f851aa1905953b00d11a48873ff4bbb5 14-Apr-2015 David Christie <dnchrist@google.com> Merge "Add capability callback for FLP HAL."
ffca45a2cdd778e6edd5c3959bf53c6192b7e035 12-Apr-2015 David Christie <dnchrist@google.com> Add capability callback for FLP HAL.

Let HAL implementation tell if geofencing/batching is
supported and which technologies (GNNS, wifi, etc)
can be used.

Still todo: Add ability for GmsCore geofencing to
tell which technologies are supported (instead of
just using it to update monitoring). This requires
SystemApi change + approval so will do in separate CL.

Note that the classes in the lib are not copied
directly into GmsCore. The instance will always
be whatever is in the platform. This is why
the callback is backwards compatible as long as
their is a default implementation (but not if
it's abstract).

Change-Id: I7d6adeb049b89935bc4443785df5d7ef4c730e5d
om_android_server_location_FlpHardwareProvider.cpp
ce7eb6daf06a88129da365eb2112537ce0bb1b75 04-Apr-2015 Jim Miller <jaggies@google.com> Clean up FingerprintManager API and make it public.

Change-Id: I6a99dccd485c053cb47dbd0ec08b41a2dc5b17c8
om_android_server_fingerprint_FingerprintService.cpp
295a93b99f1773638553a0d00898824dc7ba79e5 09-Apr-2015 David Christie <dnchrist@google.com> Add smallest displacement field to FLP HAL

Change-Id: I4d857256c035c65185be3be8401bec8d45091aaf
om_android_server_location_FlpHardwareProvider.cpp
ebbf205bc6e8292f74d8fc4652c70274a445f907 01-Apr-2015 Jim Miller <jaggies@google.com> Prepare to make Fingerprint API public.

- move fingerprint support files into hardware area
- move jni into services/core

Change-Id: I48a8e43d6d328fb66d79919c255e4c44e984b4d1
ndroid.mk
om_android_server_fingerprint_FingerprintService.cpp
b7ce094c9e546c4a802bd8ce3a43592979a5e3df 25-Mar-2015 Mike Lockwood <lockwood@google.com> MIDI Manager: remove USB peripheral MIDI device when USB is disconnected

Otherwise, the MIDI device would appear available always, rather than
only when USB is connected.

Also fixed file descriptor leak in UsbMidiDevice

Change-Id: I0d38e81c488de4748eef36ca359635fa59e0e636
om_android_server_UsbMidiDevice.cpp
10024b3dc12a8552c1547b67810c77b865045cc8 11-Dec-2014 Mike Lockwood <lockwood@google.com> MidiManager updates:

MIDI ports are now implemented as file descriptors directly between the sender
and receiver, so the MidiService is no longer in the message path.

To facilitate the above, each port has its own file descriptor, rather than multiplexing
all ports on a device through a single socket.

Added a new class MidiDeviceServer, which is used by implementors of MIDI devices.
This replaces the MidiVirtualDevice class (which only was included in changes that were reviewed but never submitted).

The USB MIDI implementation has moved from the MIDI service to the USB service.
The USB MIDI implementation uses MidiDeviceServer as its interface, so we now have a common
interface for all MIDI device implementations.

Change-Id: I8effd1583f344beb6c940c3a24dbf20b477a6436
ndroid.mk
om_android_server_UsbMidiDevice.cpp
nload.cpp
b5af40f040f7c227604f129bcf79784c349c2ad5 13-Jan-2015 Greg Hackmann <ghackmann@google.com> am 96f7ac84: Merge "Find wall clock RTC through sysfs" automerge: 41ef80e

* commit '96f7ac84b51c3ceb913e78275e99e2f4f79ebe86':
Find wall clock RTC through sysfs
0eb5826830592695f4a5b4d1dba18e0ca991163e 26-Feb-2014 Greg Hackmann <ghackmann@google.com> Find wall clock RTC through sysfs

Devices may have multiple RTCs. By default the kernel uses rtc0 to
store the system time, but devices may override this (or even specify
that none of them should be used for system time).

Userspace can indirectly find the designated RTC through sysfs. During
AlarmManagerService initialization, enumerate through all rtc class
devices to locate the device with attribute hctosys=1.

This is only done on devices without /dev/alarm, which has its own
in-kernel mechanism to pick the RTC.

Change-Id: Ife2b342c3590133ed316ddaf1799cbc1bfa6e6d9
Signed-off-by: Greg Hackmann <ghackmann@google.com>
om_android_server_AlarmManagerService.cpp
b68c58483affc8a6a9d6e011dc48f2494a5999b0 07-Jan-2015 Sungsoo Lim <sungsoo@google.com> am 8b2b71f5: am 71d8b8ce: Merge "DO NOT MERGE Implement cloneTvInputEvent" into lmp-mr1-dev

* commit '8b2b71f51187528ec80241f4cc5c6f7e2f67d048':
DO NOT MERGE Implement cloneTvInputEvent
3853d1a779629f73cd0ad4f259f741db91ff2721 07-Jan-2015 Wonsik Kim <wonsik@google.com> am ee4da173: am cee5c8ed: Merge "DO NOT MERGE TIF: change TvInputHal events to run on its own thread" into lmp-mr1-dev

* commit 'ee4da173440a55d63971a410053123efe3b567aa':
DO NOT MERGE TIF: change TvInputHal events to run on its own thread
62f38d14c531e5983dafb2e0b93bae9f7769953c 23-Dec-2014 Sungsoo Lim <sungsoo@google.com> DO NOT MERGE Implement cloneTvInputEvent

memcpy() only copies the memory address value of device_info.audio_address,
and it could be invalid when onDeviceAvailable() is called.

Bug: 18819334
Change-Id: I827da8032a982abf3029874b8454ca79290bb0e0
(cherry picked from commit 898de6fd8c78d84ae1425e052b27a97ec6f230ad)
om_android_server_tv_TvInputHal.cpp
a617074c531dfa317e5051fa70ec6b6c21d14386 17-Dec-2014 Wonsik Kim <wonsik@google.com> DO NOT MERGE TIF: change TvInputHal events to run on its own thread

Bug: 18688119
Change-Id: Id60f82295cdbc45065be416c9828eae144b6799f
(cherry picked from commit 57b37f610d33989f1b23e1b8d9e61fb177456364)
om_android_server_tv_TvInputHal.cpp
23ac13c6b95c15d029426ff8424f7f6f23bf0220 17-Dec-2014 Jinsuk Kim <jinsukkim@google.com> am 08ca1694: am fadfe708: Merge "CEC: Pass port ID for set_audio_return_channel" into lmp-mr1-dev

* commit '08ca1694eb3013bd1f6c050e021588b8614e8764':
CEC: Pass port ID for set_audio_return_channel
1481a4282818939436f590d8c88aea2d19166b8e 17-Dec-2014 Jinsuk Kim <jinsukkim@google.com> CEC: Pass port ID for set_audio_return_channel

This CL passes a port ID when enabling/disabling ARC in case
there are multiple HDMI ports that support the feature.

Bug: 18781204

Change-Id: I632518132bf07c8ae6f0ff5135429ca719b596b2
om_android_server_hdmi_HdmiCecController.cpp
d1aa67b8e19ae96bd2ae4e6719d13902a8b6d845 11-Dec-2014 Chih-hung Hsieh <chh@google.com> am b0dd6d3a: am 4c23a0ec: Merge "Adjust format strings to work on both 32-bit and 64-bit builds"

* commit 'b0dd6d3a8a7f11454239facf0ee9b2dd2390945e':
Adjust format strings to work on both 32-bit and 64-bit builds
46c82b4cd241a447834ed2f5a6be16777b7a990b 30-Nov-2014 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Adjust format strings to work on both 32-bit and 64-bit builds

Adjust format strings to not produce Clang warnings in both 32-bit and
64-bit builds

Change-Id: I76c29d8d5d0fb4b5e9d9518077652370ffe9e871
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
om_android_server_AlarmManagerService.cpp
om_android_server_location_GpsLocationProvider.cpp
d7572b84efdb694618fca550a3fb5ccc4a7ccd5f 25-Nov-2014 chh <chh@google.com> am 3ec380d3: am fc545733: Merge "Remove unused variables and functions, don\'t warn about unused parameters"

* commit '3ec380d365cbe5fac23ff19897512cf492a7a8a4':
Remove unused variables and functions, don't warn about unused parameters
b30866681475aff8fd23841dbadf1d39e0001e20 25-Nov-2014 Chih-hung Hsieh <chh@google.com> am 6cc39a47: am 613d2066: Merge "Fix unused variables."

* commit '6cc39a475dd8eaac04438b393559612ff7cd840f':
Fix unused variables.
0551ae80ebc0ce078826d4ab48bcb076b3523651 25-Nov-2014 Chih-hung Hsieh <chh@google.com> am 73780ac3: am 38cc84de: Merge "Remove unused variable"

* commit '73780ac3921c26853eb132296144b85461c80e31':
Remove unused variable
f14203295bb39c8d12a20a0e62289b4623dd1e97 25-Nov-2014 Chih-Hung Hsieh <chh@google.com> am a3b1ea33: am e57b3991: Merge "Remove unused function"

* commit 'a3b1ea33368b72209f72ad21b512b1c755ce05aa':
Remove unused function
fc54573373ff965aa40cccdc1ab11c1c880c8930 25-Nov-2014 chh <chh@google.com> Merge "Remove unused variables and functions, don't warn about unused parameters"
9c1c90e92e13a56401b16ce77a23959dc4a5ab63 12-Nov-2014 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Fix unused variables.

The return value of jniRegisterNativeMethods is checked only in
LOG_FATAL_IF, which defines to nothing in the LOG_NDEBUG
case.

Fake a use of the 'res' variable to shut off warnings when LOG_NDEBUG.

Change-Id: I8263610f327c56897f76796fe1fbc2b325b0559f
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
om_android_server_input_InputApplicationHandle.cpp
om_android_server_input_InputManagerService.cpp
om_android_server_input_InputWindowHandle.cpp
om_android_server_power_PowerManagerService.cpp
38cc84deceaf7bc9fab898cbcb37523cfba2bb66 24-Nov-2014 Chih-hung Hsieh <chh@google.com> Merge "Remove unused variable"
70363cc576b2d82c55fdee5205f52f84b15520d5 24-Nov-2014 Chih-Hung Hsieh <chh@google.com> Remove unused function

Remove an unused static function clang complains about

Change-Id: Id5875960e9f93348c7a3a912f42b5f457af2cdc0
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
om_android_server_UsbDeviceManager.cpp
4048a4bcb1ea709ddb83a4fde3ff5c53e642f7d0 23-Nov-2014 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Remove unused variables and functions, don't warn about unused parameters

Remove unused variables and static functions clang complains about,
disable warnings about unused parameters (needed for clang and for gcc
with -Wextra enabled)

Change-Id: I76a22cd0158b3c7375c54e3d4d15bc1ac448591e
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
ndroid.mk
om_android_server_hdmi_HdmiCecController.cpp
om_android_server_tv_TvInputHal.cpp
e6904fbdf7976abbadf3e7e658e9416ca49402f9 10-Aug-2012 Vincent Becker <vincentx.becker@intel.com> Vibra: Add loading of the vibrator hardware module.

Vibrator HAL is now formed of two hardware modules: one is the default
AOSP and the other is the vendor implementation.

The vendor implementation will be loaded prior to the default one.
For that, the vibrator service has to load the module before
registering itself to the JNI.

This change is related to other changes in:
- hardware/libhardware
- hardware/libhardware_legacy

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
om_android_server_VibratorService.cpp
b28ff487fb6db4a44e4d18aa17d8253f00a63bb6 12-Nov-2014 Dan Albert <danalbert@google.com> resolved conflicts for merge of 5e6cf242 to lmp-mr1-dev-plus-aosp

Change-Id: If21bd328a5c8ea3474abfe624e910d4830c72dc9
ff1d8a6635fb6441615778a47e2881129574a5b1 12-Nov-2014 Dan Albert <danalbert@google.com> Move frameworks/base over to libc++.

Bug: 15193147
Change-Id: I96109d2d383f0c8a4aaa611f29fcf887afb3c69e
ndroid.mk
a8fe1b383a9d7580e73f6190130a076113fd2aaa 12-Nov-2014 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Remove unused variable

Remove unused variable clang complains about

Change-Id: I05ef90f45dbed0f51dace9c65a941f948fe579e7
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
om_android_server_UsbDeviceManager.cpp
b39f5510f4285f10e9071987eb2d484e0ff4a58b 12-Nov-2014 Craig Mautner <cmautner@google.com> Show error dialogs over apps that dismiss keyguard automerge: c08eab8
automerge: 2b9e9f4

* commit '2b9e9f417f88ff385b37f01257748b050e505eb6':
Show error dialogs over apps that dismiss keyguard
c08eab81f30a3120ec0929d3508b4a78d498e1ff 11-Nov-2014 Craig Mautner <cmautner@google.com> Show error dialogs over apps that dismiss keyguard

Error dialogs absorb all input to ensure that they are not missed.
This can cause the screen to lock up if they are not displayed but
are still absorbing touches. This was what was happening when there
was an error dialog up at the same time as a phone call came in as
in b/17648830.

This fix recognizes when an app is dismissing the keyguard and
forces any error dialogs to be shown over such an app.

This also removes the private flags from the input system as they
are no longer needed.

Fixes bug 17648830.

Change-Id: I5c98b8265a1448b445fdb2f745fc78892f8656a4
om_android_server_input_InputWindowHandle.cpp
91c962ad9c90e79b8dbbf7aaaaf2d827adf7cc16 07-Nov-2014 destradaa <destradaa@google.com> am a084d357: Merge "Fix reference leak in GPS measurement JNI layer. b/16727892 b/17075171" into lmp-mr1-dev automerge: c3e5599

* commit 'a084d357d3fd0a5696998e786aeb10ff394f24d5':
Fix reference leak in GPS measurement JNI layer. b/16727892 b/17075171
df1198401101805a335535dd08231cbb0e2af500 15-Oct-2014 destradaa <destradaa@google.com> Fix reference leak in GPS measurement JNI layer.
b/16727892
b/17075171

Change-Id: I5f41c6db114078b927e56a7614fa7c09a288e2b2
om_android_server_location_GpsLocationProvider.cpp
fe86d9247a4f0e52c2fb868479d78bc332ff3094 24-Oct-2014 Wonsik Kim <wonsik@google.com> Merge "TIF: fix wrong config comparison & confusing method name" into lmp-mr1-dev automerge: cfc7323
automerge: d651007

* commit 'd6510073e7c969c49713f57c0625bb445f8ea210':
TIF: fix wrong config comparison & confusing method name
8f24a8b60f9afc1aedb89e7ee80ce65515439600 22-Oct-2014 Wonsik Kim <wonsik@google.com> TIF: fix wrong config comparison & confusing method name

TvStreamConfig should do deep comparison in TvInputHardwareManager
where the object gets created from binder calls. In addition to this
fix, modify [aA]ddStream to [aA]ddOrUpdateStream so that the method
name better reflects what it does.

Bug: 18027719
Change-Id: I43fa668f91cb9433beee97ee31b4b1f58f21bfcf
om_android_server_tv_TvInputHal.cpp
8dcf593f90792272bd21e498da1aeb60fced1989 01-Oct-2014 Andreas Gampe <agampe@google.com> resolved conflicts for merge of 6290c048 to lmp-dev-plus-aosp

Change-Id: I9fd4b4402f301c3521f57b207793ab4dfdd67a12
184e3ed0f094ecb6cb8130a135ba8a8e9e51803a 30-Sep-2014 Andreas Gampe <agampe@google.com> resolved conflicts for merge of 6290c048 to lmp-mr1-dev-plus-aosp

Change-Id: I2551a233079c2be562ba37dc7413d59ce4e7bf83
51938c205f41da95486b17ea645fd0ce2a73be82 19-Sep-2014 Mike Lockwood <lockwood@google.com> Merge "USB string descriptors are not UTF8, so it is not safe to treat them as such." into lmp-dev
109526fe4f01a2b7ac90106cf41966b2d872d03a 10-Sep-2014 Jinsuk Kim <jinsukkim@google.com> Merge "CEC: Stub MHL Controller" into lmp-dev
9ee5e7e17f7d65620f21d1a42865981e7bc56593 09-Sep-2014 Mike Lockwood <lockwood@google.com> USB string descriptors are not UTF8, so it is not safe to treat them as such.

Add AndroidRuntime::NewStringLatin1() to convert non-UTF8 strings to Java strings.

Bug: 17427781
Change-Id: I7df1d4e94a7beebc8b1a74c0c0a163b794025ae8
om_android_server_UsbHostManager.cpp
f5e56d41a25b44e28db160350709aef7295e3119 09-Sep-2014 Michael Wright <michaelwr@google.com> Remove unused variables from UsbHostManager.

Change-Id: I68067b69de077667482633cc6ecd97ee94ecb699
om_android_server_UsbHostManager.cpp
781041239f2931ca16c902fb371cd041b057c918 26-Aug-2014 Jinsuk Kim <jinsukkim@google.com> CEC: Stub MHL Controller

Replace MHL Controller with a stub impl

Bug: 17259897

Change-Id: Id57bac363441f72b3da3f30d31c68c6d3b502237
ndroid.mk
nload.cpp
a6863ad62296a5280504165a1fbc70523940a9c8 05-Sep-2014 Michael Wright <michaelwr@google.com> Merge "Allow for event dispatching when in non-interactive states." into lmp-dev
70af00abf73160235d4efe114fcf4753007a8ff3 04-Sep-2014 Michael Wright <michaelwr@google.com> Allow for event dispatching when in non-interactive states.

We need to allow for event dispatching in non-interactive states so
that we can enable a richer set of interactions when a device is
dozing (i.e. is in a low power state with an Always-on-Display).

Bug: 17167296
Change-Id: I8ae0f544a8106cb91ff38c2309b8b57cbe2f2c72
om_android_server_input_InputManagerService.cpp
52617bbff8607cdc208ba107ec111bd1471433cb 25-Aug-2014 Tsuwei Chen <tsuwei@google.com> Reload GPS configuration after carrier info is available.
Bug: 17110478
Change-Id: I1ecb71c4ca661df3dfeaea1622d73caeacb1350e
om_android_server_location_GpsLocationProvider.cpp
29564cd24589867f653cd22cabbaac6493cfc530 07-Aug-2014 Narayan Kamath <narayan@google.com> Remove system_server classes from the boot image.

We set the system_server classpath in the environment
(like we do with BOOTCLASSPATH). After the zygote forks
the system_server, we dexopt the classpath (if needed)
and then launch the system server with the correct
PathClassLoader. This needed several small / medium
refactorings :

- The logic for connecting to installd is now in a separate
class and belongs in the system_server.
- SystemService / SystemServiceManager have now moved to
classes.jar. They are only used from there, and since they
use Class.forName, we want them to be loaded by the
system_server classloader, and not the bootclassloader.
- BootReceiver now moves to frameworks.jar, because it is
used by ActivityThread and friends.

bug: 16555230

Change-Id: Ic84f0b2baf611eeedff6d123cb7191bb0259e600
nload.cpp
2d8964cca7663b32ca339e1bb57eb4830488fb97 13-Aug-2014 destradaa <destradaa@google.com> Merge "Update FlpHardwareProvider native layer, to stop raising FatalErrors." into lmp-dev
ff8e6093fa5c9114d3565e0fb0d87bd4df3d777c 13-Aug-2014 destradaa <destradaa@google.com> Update FlpHardwareProvider native layer, to stop raising FatalErrors.

b/16800814

Change-Id: Ic619f37c02c7e4dddc4ef06369f8730cbd66e6bd
om_android_server_location_FlpHardwareProvider.cpp
931a37f992c738ebc5d3c82e424d94591798a4d7 13-Aug-2014 destradaa <destradaa@google.com> Add additional logging around AGPS IP Address handling.

The additional logging is expected to help troubleshoot and prevent the issue tracked by the
following bugs:
b/16875580
b/16961654

Change-Id: Ibee7fe0774efa3db77ab53af96c128ced186b40e
om_android_server_location_GpsLocationProvider.cpp
b82de3600f15edbff693d1362bf33140c2aabd33 05-Aug-2014 Wonsik Kim <wonsik@google.com> TIF: fix JTvInputHal::removeStream issue

Bug: 16803334
Change-Id: I3f92a12479cdded7a3bf572cc59e68367a0797ad
om_android_server_tv_TvInputHal.cpp
21aa3467cd14260418cc47334b656adf841a567c 29-Jul-2014 Wonsik Kim <wonsik@google.com> TIF: fix TvInputHal bug for multiple devices

In addition, add toString() method to TvStreamConfig for easier
debugging.

Bug: 16561829, Bug: 16666251
Change-Id: Ic192aef30f4d193b73bac7bc93a1563aa9af4377
om_android_server_tv_TvInputHal.cpp
f9a274c9b8578dda6afeda422bff18b1577028b9 26-Jul-2014 destradaa <destradaa@google.com> Add support for sources in Geofencing APIs.

Support setting the source when adding geofences.
b/14117199

Surface the source when FLP geofence changes state.
b/14119200

Change-Id: I50dc40a9caee400594e1778c98e284e0db0d5e66
om_android_server_location_FlpHardwareProvider.cpp
f4e0c0cb8ef22fdb20ae74b444c9f4b7d15ded8b 27-Jul-2014 Sreeram Ramachandran <sreeram@google.com> Allow VPNs to add/remove link addresses dynamically.

Bug: 15409819
Change-Id: If91fc6891d7ce04060362c6cde8c57462394c4e8
ndroid.mk
om_android_server_connectivity_Vpn.cpp
0f208eb707926f0afc1ce073be866bedd4955aa2 27-Jul-2014 Jeff Brown <jeffbrown@google.com> Remove DozeHardware since it will not be used.

Bug: 16516536
Change-Id: I14597d3c9470c94e3bc5b8cff500d2fe6b2fd977
ndroid.mk
om_android_server_dreams_McuHal.cpp
nload.cpp
8c688ada2dc256a746429b10b2e7a47a52e9b02f 24-Jul-2014 Jinsuk Kim <jinsukkim@google.com> MHL controller for subcommand reception

Implement HdmiMhlController command reception part.

Bug: 16215362

Change-Id: Iabf46dfaa762fae8c537e4d4ebd3469388a6b7c3
om_android_server_hdmi_HdmiCecController.cpp
c086a3df3b28996cd10ebe42c5f59035d054aa0d 18-Jun-2014 Terry Heo <terryheo@google.com> Add a frame capture API of TV input

- Added new permission CAPTURE_TV_INPUT

Bug: 15736756
Change-Id: I2ae8b2e3f5b1ad1d525854ed89ab2043cf66acbe
om_android_server_tv_TvInputHal.cpp
4b3e3931270f8e406fc806bc7fa1c2788256687d 22-Jul-2014 destradaa <destradaa@google.com> Expose Gps Navigation Messages in the platform.
b/16405976

Change-Id: Ic982ea2467d116585780c20c2fa7e974e50f8345
om_android_server_location_GpsLocationProvider.cpp
81cabb8a7fb5b61f16bf49c2757ccb51bc88e708 22-Jul-2014 destradaa <destradaa@google.com> Add uncertainty for GPS received TOW field.
b/16463499

Change-Id: I5dde8a2737d9345eb7f77edc64ab7286254a65e4
om_android_server_location_GpsLocationProvider.cpp
2102dd725540bcf51bf324a2775fbcffe45dd32f 19-Jul-2014 destradaa <destradaa@google.com> Update GPS HAL raw measurements support.

Align the GPS framework with the GPS HAL
b/16374800

Remove localTime field from API
b/16241708

Update Property containers for measurements to use bit masks
b/16238371

Change-Id: Id4db16c3153d0020bf2edb5a67f59353662762d0
om_android_server_location_GpsLocationProvider.cpp
963295ea105314e28e4ca9563aa09cb7440de4c3 11-Jul-2014 Andres Morales <anmorales@google.com> Permit settings to "wipe" the persistent partition

One of the requirements is that when the user does a
factory reset through settings, all data on the
persistent partition should be cleared.

This adds one last API method that allows settings
to wipe the partition.

Bug: 14288780
Change-Id: Ib87ee741d1e5195814516ae1d66eb7c4cf754dcf
om_android_server_PersistentDataBlockService.cpp
ea8a8a6076f04360de2d25b3e5853cde8026cd5f 24-Jun-2014 destradaa <destradaa@google.com> Update location framework to accept raw data from GPS HAL.

Change-Id: Ib4feca004b53fa89dcece4299974ab08913455a0
om_android_server_location_GpsLocationProvider.cpp
284c31b92e4e0d0b8095ae50c61db9c83c9d577c 11-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Update HdmiControlService JNI to the change in HAL definition

Change-Id: Iab235785c4d0242ab5845d1f8ad62d78770ff9c4
om_android_server_hdmi_HdmiCecController.cpp
6bc2c2c34f2b23eae79ad733c97a691734055c4f 07-May-2014 Paul Jensen <pauljensen@google.com> Convert Vpn from NetworkStateTracker to NetworkAgent.

This eliminates the need for the ConnectivityService.VpnCallback class.
This requires shifting VPNs to the new "network" netd API.
VpnService.protect() is modified to no longer go through ConnectivityService.
NetworkCapabilities is extended to add a transport type for VPNs and a
capability requiring a non-VPN (so the default NetworkRequest isn't satisfied
by a VPN).

bug:15409918
Change-Id: Ic4498f1961582208add6f375ad16ce376ee9eb95
om_android_server_connectivity_Vpn.cpp
68d4acd205e8c2da524e62734ca42847306cc029 02-Jul-2014 Andres Morales <anmorales@google.com> Service for reading and writing blocks to PST partition

Permits apps with permission
android.permission.ACCESS_PERSISTENT_PARTITION to obtain
a read and write data blocks to the PST partition.

Only one block ever exists at one time in PST. When
a client writes another block, the previous one is
overwritten.

This permits storing a block of data that will live
across factory resets.

Change-Id: I8f23df3531f3c0512118eb4b7530eff8a8e81c83
ndroid.mk
om_android_server_PersistentDataBlockService.cpp
nload.cpp
1e47ff9f8faa2927084b3da1e2d7d16ef0477637 08-Jul-2014 Wonsik Kim <wonsik@google.com> Merge "Implement support for buffer producer profile"
0b2691b6873f9d328884c5a9e5ab1fe308f3ee36 23-May-2014 Wonsik Kim <wonsik@google.com> Implement support for buffer producer profile

Bug: 15177117
Change-Id: I7776a8b2959281f10cba742ab75f15f80f6feecf
om_android_server_tv_TvInputHal.cpp
42230728b8212738c2351939c5577730f05a58de 07-Jul-2014 Jungshik Jang <jayjang@google.com> Add port number to hot plug event handler.

This is to remove a TODO about adding port number to
jni interface.

Bug: 15844074
Change-Id: I4dba0879527035a4cabad6cc80e359e6c1fd39b0
om_android_server_hdmi_HdmiCecController.cpp
4a9c3891d4f890109e02bc83fecf9bcdf56a9395 07-Jul-2014 Mike Reed <reed@google.com> kNative_8888_SkColorType is now kN32_SkColorType

Change-Id: I13421a21de611203c62c1c1c36570a8cc803907b
om_android_server_input_InputManagerService.cpp
839ae5f460caadf8580b7e0ab77e255d7a1ddae5 03-Jul-2014 Wonsik Kim <wonsik@google.com> TIF: Let TvInputHal handle multiple streams

Bug: 15579918
Change-Id: Iad972c36d675fb99b5950bcecf5925e660272cb4
om_android_server_tv_TvInputHal.cpp
ba147582b1ae504e9c00a0c94d715c061506b2ba 02-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Remove the usage of TX_STATUS in HdmiControlService

Reflects the change to come in CEC HAL

Change-Id: I3a64e19bbdd8067855911ef11653fe64049b8880
om_android_server_hdmi_HdmiCecController.cpp
9e922ca97097cb1aa67ff53219d874ea2503a80d 20-Jun-2014 Wonsik Kim <wonsik@google.com> Fix native calls to null pointer

Since DEVICE_AVAILABLE event fires right after initialization, it
could happen before TvInputHal.mPtr is set, which causes calls to
null pointer. Fix the bug by allowing TvInputHal to wait for mPtr to
be set before calling native methods.

Change-Id: Id07f15130beb69f77c16bf3c735285c31ae4a3a4
om_android_server_tv_TvInputHal.cpp
b933055cf3f7f8ea89bfd3bc9c37a3891ff7310a 16-Jun-2014 Mike Reed <reed@google.com> stop using (deprecated) SkBitmap::Config

Change-Id: Ic75b5fc6996578e9d95bd3a220439ec1541d7c3b
om_android_server_AssetAtlasService.cpp
a358b53e1d0bb7a7fc08b0a4d2a2e256f3045859 12-Jun-2014 Wonsik Kim <wonsik@google.com> TvInputHardware: Add HDMI port ID

Bug: 15570939
Change-Id: I957804124fa5e417de8c98c6d41332609097d995
om_android_server_tv_TvInputHal.cpp
d7c29189aa639bfac1e6efcd222e65c2c8ecf3f1 27-May-2014 Wonsik Kim <wonsik@google.com> TvInputHardware: Integration with audio framework changes

TvInputHardwareManager detects AudioPort specified by tv_input and
connect source to sink via AudioManager.createAudioPatch().

Bug: 15177175
Change-Id: I2252eb0df2d8287889ed28cc7d76dc1a659fd08b
om_android_server_tv_TvInputHal.cpp
63dd3bb3602bc00557680432b08b49a5a15bcdb7 13-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Fixed a wrong path to HdmiPortInfo class

This fixes a JNI error for HdmiCecController

Change-Id: I8ce987dfa3126ecffd455a964c01d27fb9aa01eb
om_android_server_hdmi_HdmiCecController.cpp
0340bbc89f8162f9c2a298c98b03bfcdd1bc6e87 05-Jun-2014 Jinsuk Kim <jinsukkim@google.com> RoutingControlAction for HdmiControlService

Routing control action is initiated in various cases, such as manual
TV input port switching, routing change of a different CEC switch,
and so on. The action determines the device to be a new active source.

Change-Id: I1efcd6ff1919dd94d6fa0e0ffa6e430c48d4e9c6
om_android_server_hdmi_HdmiCecController.cpp
a6ce7708d6124224399241503fadcafe0c4684d4 10-May-2014 Jinsuk Kim <jinsukkim@google.com> DeviceSelectAction for HdmiControlService

DeviceSelectAction is the main handler for the API deviceSelect() which is
used to choose a new active source among logical devices on the bus.

Change-Id: I77582a1f873423fc316d89f67a89a867461a76b2
om_android_server_hdmi_HdmiCecController.cpp
092b445ef898e3c1e5b2918b554480940f0f5a28 11-Jun-2014 Jungshik Jang <jayjang@google.com> Move message handling logic to local device instead of service.

Local device is in charge of handling incoming messages
and for some messages such as <set menum language> or
<report physical address> each device has slightly different
behavior. Instread of checking destination address and
local device status from service, this change leaves it
to each local device.
Note that some messages are still left on service
and will be refactored in the following changes.

Along with this, following changes are included.
1. add missing jin interfaces
set_option
set_audio_return_channel
is_connected
Note that get_port_info is under review of jinsuk's change
2. if tv device receives <Report Physical Address>,
starts NewDeviceAction.
3. add constants variables related to new interfaces.
4. add two helper methods for physical address and vendor
id handling

Change-Id: I9c9d04744bc09fbf38431ecfa6e77097b0618a37
om_android_server_hdmi_HdmiCecController.cpp
96a14701c0858ffa38b9488fae3b9a37a115cbf9 05-Jun-2014 destradaa <destradaa@google.com> IPv6 support for GPS HAL.

Change-Id: Iacaf3ab86009975ba07e1a13dbe539cf47c5a6f7
om_android_server_location_GpsLocationProvider.cpp
5adb67d4ce228a3afa6512e87d61c4d581dfd1e3 09-Jun-2014 Ed Heyl <edheyl@google.com> merge 4ce22057, regen api/current.txt

Change-Id: I39186b5c4d41753c729c5d1ee7ee96b03a45c514
3f48068d782b81dc1c8a0190b91fbb2862007244 06-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Remove HdmiCecService

The service is replaced with HdmiControlService. Removing all the related
classes and the initialization of the service.

Change-Id: Ic7baaddffb9873613ddd1096e874f226da983939
ndroid.mk
om_android_server_hdmi_HdmiCecService.cpp
nload.cpp
5ce66d8dcc786b3d6a0fdfb42074e6c9741590ef 29-May-2014 destradaa <destradaa@google.com> Re-work the initialization of FLP HAL to make isSupported() static.
b/14839888

Change-Id: Ib5973586fd8a2d4a1e5fd09cf82dd4f4493398d0
om_android_server_location_FlpHardwareProvider.cpp
4c9e57f156d3cbd86b38e9897dfdab81964efe90 03-Jun-2014 Jae Seo <jaeseo@google.com> resolved conflicts for merge of ebe661c4 to master

Change-Id: Ic25dc762ee43654b439de3ec237ead007bee3df4
d5cc4a281e7ce29d1e8687ff3394b57a3a549260 31-May-2014 Jae Seo <jaeseo@google.com> Put TV Input Framework under android.media.tv, including TvContract

Bug: 15345342
Change-Id: I665ca23f0f074ce29cb2e047109b209178532107
om_android_server_tv_TvInputHal.cpp
9ec2eabe5ae9b17064412833ae11b113da453b75 02-Jun-2014 Florin Malita <fmalita@google.com> Merge "Add a native Canvas wrapper."
e74282b70b4a8ad1186fdc32204e1ecee16cd901 29-May-2014 Jinsuk Kim <jinsukkim@google.com> DO NOT MERGE: Stop publishing HdmiCecService, start publishing HdmiControlService

HdmiCecService will soon be deprecated and replaced with HdmiControlService.
Stopped publishing the service, and turned the corresponding manager to
stub so that it will do nothing but print out a warning msg instead.

Will help the app transition to the new service in the meantime. Once
the migration is finished, will gut out all the HdmiCecService/
HdmiCecManager stuff.

Change-Id: Ic34a69c4fb99f4e5a2c8323538195204ab16a545
om_android_server_hdmi_HdmiCecController.cpp
c47e26ca2ff6f032c4b3a094810b1d1062bcb1ff 27-May-2014 Jungshik Jang <jayjang@google.com> DO NOT MERGE: Add cec message handler to hdmi cec jni implementation

Notification for incoming cec message can be issued
from any thread but jni can call java method
in the thread that jni knows like service thread.
So this change delegates incoming message to
jni-friendly thread, service thread by exploit
looper of service thread.

Change-Id: If3b141d917df3e209912af1778eb509777199969
om_android_server_hdmi_HdmiCecController.cpp
5c3d927e17e98e8fd4a9f3c86f7f4def0bcfa816 08-May-2014 Florin Malita <fmalita@google.com> Add a native Canvas wrapper.

Instead of storing a direct SkCanvas reference, Canvas now tracks
an opaque native wrapper class. The native wrapper can be used to
store additional info for emulating deprecated Skia features
(at this point it only stores a canvas).

Some notes:

* all native handle -> SkCanvas conversions are routed through a
handful of native utility methods.
* safeCanvasSwap() refactored as a lower level setNativeBitmp() - which
is what clients need.
* removed unused get_thread_msec() (Canvas.cpp)

Change-Id: I715a5a6f1e1621c1cfc1e510ae4f2ea15cf11114
om_android_server_AssetAtlasService.cpp
8692fc68a413c7aca75f094bb02bcbabcc277c73 29-May-2014 Jinsuk Kim <jinsukkim@google.com> Stop publishing HdmiCecService, start publishing HdmiControlService

HdmiCecService will soon be deprecated and replaced with HdmiControlService.
Stopped publishing the service, and turned the corresponding manager to
stub so that it will do nothing but print out a warning msg instead.

Will help the app transition to the new service in the meantime. Once
the migration is finished, will gut out all the HdmiCecService/
HdmiCecManager stuff.

Change-Id: Ic34a69c4fb99f4e5a2c8323538195204ab16a545
om_android_server_hdmi_HdmiCecController.cpp
4085d0ef62554c7e139b82bca0f97161bb159f8c 27-May-2014 Jungshik Jang <jayjang@google.com> Add cec message handler to hdmi cec jni implementation

Notification for incoming cec message can be issued
from any thread but jni can call java method
in the thread that jni knows like service thread.
So this change delegates incoming message to
jni-friendly thread, service thread by exploit
looper of service thread.

Change-Id: If3b141d917df3e209912af1778eb509777199969
om_android_server_hdmi_HdmiCecController.cpp
c22dbb69194c8e8fe2a32326d1f37a738cad0904 26-May-2014 Wonsik Kim <wonsik@google.com> Revert "Revert "Add physical TV input handling to TvInputManagerService""

This reverts commit 1940e197a8de186df5edf0b78e0907ae539bd215.

Bug: 14118245, Bug: 15197740
Change-Id: Ia308f16d2ed8ec55112a4d21c180ccb97e8d7c6a
ndroid.mk
om_android_server_tv_TvInputHal.cpp
nload.cpp
be9cd8eb3fe64a572f9c7dfc41f04defd46a752d 15-May-2014 Jungshik Jang <jayjang@google.com> Add ARC commands

ARC, Audio Return Channel is newly introduced in HDMI CEC 1.4.
Here is a list of new command
<Initiate ARC>
<Report ARC Initiated>
<Report ARC Terminated>
<Request ARC Initiation>
<Request ARC Termination>
<Terminate ARC>

Along with it replaced <Get OSD Name> with <Give OSD Name>
which is renamed in CEC 1.4.

Change-Id: If4a7aedef839c8413a8e3b5f66f3df0c7234104b
om_android_server_hdmi_HdmiCecService.cpp
531fecca1c55d2f60977a57f5eb546d4d202fb97 08-May-2014 Florin Malita <fmalita@google.com> Merge "Encapsulate Canvas.mNativeCanvas"
c677675e9c465dc1de21ecf2e0421835c7eb55b4 07-May-2014 Florin Malita <fmalita@google.com> Encapsulate Canvas.mNativeCanvas

Currently, the native canvas is accessed/manipulated from several
unrelated classes.

In order to facilitate SaveFlags emulation, this CL encapsulates
the field and refactors its external users.

Two main changes:

* new getNativeCanvas() getter for use in Java-level clients.
* JNI canvas swappers (GraphicsBuffers, Surface, TextureView &
AssetAtlasService) are refactored based on the exising/equivalent
safeCanvasSwap() Canvas method.

Change-Id: I966bd4898f0838fb3699e226d3d3d51e0224ea97
om_android_server_AssetAtlasService.cpp
a9095ba488ea18aeafaf9c3a8258bf9f459bda71 02-May-2014 Jungshik Jang <jayjang@google.com> Implement more native api for Hdmi cec.

HAL interface for CEC has more apis that haven't
connected with HdmiCecController.
Here is a list of apis.

1. addLogicalAddress
2. clearLogicalAddress
3. getPhysicalAddress
4. getVersion
5. getVendorId

Verified that it does not affect to other components in nakasi

Change-Id: I535bde47c43dd25bbede002c0a2aefbe86779076
om_android_server_hdmi_HdmiCecController.cpp
97babdc92be8c81325f3a9f4f520a8c20bed177d 02-May-2014 Jungshik Jang <jayjang@google.com> Fix unmatched jni method name.

It breaks systemserver

Change-Id: Iecc5600d64a273c4bbf51bd8fd779a79a3dab107
om_android_server_hdmi_HdmiCecController.cpp
e9c77c88ea34a66f83a94f960547275c0ff6bd07 24-Apr-2014 Jungshik Jang <jayjang@google.com> Implement native send and receive logic for HdmiCecController.

This change includes native jni implementation for
incoming and outgoing message of CEC.
For incoming message, native layer converts it into three
pieces, source address (initiator), destination address (follower)
and data body which includes opcode. In Java layer, it is delegated to
main io thread. For now all messages are rejected by sending <Feature Abort>
to initiator.
For outoging message, all messages are sent to io thread and it delegates
it into native layer. Native logic converts it into cec_message and
pass it to HAL so that HAL performs sending message.
In order to handle <Feature Abort> message, added [Abort reason] which is
defined in hdmi_cec.h.

Change-Id: If9fd74745f476105e5cfae964e39c78bae69d3e2
om_android_server_hdmi_HdmiCecController.cpp
15c32f2699f03ba2065e663b3beb2c8d328f42ef 30-Apr-2014 Michael Wright <michaelwr@google.com> Merge "Move key attribute information into KeyEvent."
c79224e4b70c27293a6744f29d73653a3c5ee018 29-Apr-2014 Jinsuk Kim <jinsukkim@google.com> am 60037302: am 8fe27e88: Merge "Move logical address allocation logic into native service from HAL" into klp-modular-dev

* commit '60037302208be033442cc3f3c50a25c7064ebbd1':
Move logical address allocation logic into native service from HAL
60037302208be033442cc3f3c50a25c7064ebbd1 29-Apr-2014 Jinsuk Kim <jinsukkim@google.com> am 8fe27e88: Merge "Move logical address allocation logic into native service from HAL" into klp-modular-dev

* commit '8fe27e881851921a90882f7d4da142bf936c5549':
Move logical address allocation logic into native service from HAL
337d9d2edc262141f9b8f684e53aae5e47f0ae13 23-Apr-2014 Michael Wright <michaelwr@google.com> Move key attribute information into KeyEvent.

This consolidates all of the information that was in the native
KeyEvent and the KeyLayout files into the managed KeyEvent class.

It also moves the definition for all of the key names to the native
side, rather than having them in both places.

Change-Id: I172e3b554e7eb52c79ae2ec406ef4332e8b25ffa
om_android_server_input_InputManagerService.cpp
0792d37385e60aa8d73f8df174d0a32f4f618bc4 23-Apr-2014 Jungshik Jang <jayjang@google.com> Implement skeleton of new HDMI Control Service.

HdmiCecService is a system service handling HDMI-CEC features
and command. Recently we found out that industry has more
requirements to support HDMI-CEC. Also, MHL is another
standard should be in our pocket. Basically, MHL is
a standard to support communication between mobile device
and TV or Av device. As CEC is a control standard over HDMI
cable, MHL has control channel for peer device.
There behavior is very similiar. Both have commands that
can change Tv's current input and can send/receive key
to other device to control other deivce or TV.

In order to cover both CEC and MHL, current HdmiCecService
implementation has limitation. We had several
session of discussion and decided to refactor
HdmiCecService into HdmiControlService.
For each standard it will have separate controller instance
like HdmiCecController and HdmiMhlController.

In this change I didn't touch original HdmiCecService
because some component, like cast receiver, uses HdmiCecService.
For a while we will keep HdmiCecService until HdmiControlService
accomodates all features of HdmiCecService.

Change-Id: I5485280ab803dbf071d898bfbe34be0b11ce7958
ndroid.mk
om_android_server_hdmi_HdmiCecController.cpp
nload.cpp
cbafd1b3ead132f4b17d367ed8cdae7c16edc2e7 20-Apr-2014 Jinsuk Kim <jinsukkim@google.com> Move logical address allocation logic into native service from HAL

Logical address logic is independent from hardware, and the algorithm is
standardized in the spec. Moved the logic to service so that all HAL
implementations doesn't have to duplicated logic inside.

Related change in HAL definition is in:
https://googleplex-android-review.git.corp.google.com/#/c/447951/

Change-Id: I9699309719f3214fc2dbdf219faad484c0c1c5bf
om_android_server_hdmi_HdmiCecService.cpp
4bdcd299da48f9abe5f9c67abed0dbe79080445d 11-Apr-2014 Jinsuk Kim <jinsukkim@google.com> am 55dab4dd: am b11f250e: Merge "Delegate HdmiCecService method impl to HdmiCecDevice subclass" into klp-modular-dev

* commit '55dab4dd3b5b56ade91c012d688b581b6cbdebdf':
Delegate HdmiCecService method impl to HdmiCecDevice subclass
55dab4dd3b5b56ade91c012d688b581b6cbdebdf 11-Apr-2014 Jinsuk Kim <jinsukkim@google.com> am b11f250e: Merge "Delegate HdmiCecService method impl to HdmiCecDevice subclass" into klp-modular-dev

* commit 'b11f250e09195d1ab250c93bfed0b31ed3a40f3d':
Delegate HdmiCecService method impl to HdmiCecDevice subclass
b11f250e09195d1ab250c93bfed0b31ed3a40f3d 11-Apr-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Delegate HdmiCecService method impl to HdmiCecDevice subclass" into klp-modular-dev
61791075f4422cfef00fda325d6ae07293dd262f 07-Apr-2014 Jinsuk Kim <jinsukkim@google.com> Delegate HdmiCecService method impl to HdmiCecDevice subclass

Most of the methods in the interface IHdmiCecService should be implemented
based on the device type. This CL makes a change such that the HdmiCecDevice
just has stub methods that should be overriden by subclasses.

Other changes:
- Fixed a bug of <Inactive Source> not sending its physical address
in its message body. Also the command should have been sent to TV
only rather than broadcast.

- Put back sendGiveDevicePowerStatus interface method. It allows the client
to keep track of the other device(like TV) power status more closely.
Devices goes through the status from standby -> transient to on -> on
but the CEC spec doesn't require that they broacast it actively.

The restored method can be used to let the playback device to get
up-to-date power status of TV/display when it is booting up.

This method should work the same across all the device types. So it was
implemented in the service, not delegated to HdmiCecDevice.

- Send <Report Physical Address> when a new logical device is registered,
which is required by CEC spec: "it should report the association between
its logical and physical address by broadcasting <Report Physical
Address>

Change-Id: Iac1d2cf5783d947f2dcd6965a54670fbdb8e6a63
om_android_server_hdmi_HdmiCecService.cpp
4e5c089ef3e62e7f658e71c0be262d09bd3e399b 11-Apr-2014 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 337e764d to master

Change-Id: I8168dbf42b68c2f7b5ccb300e0080dddc627af26
337e764debde56b1462fb5f2794b3e917d8a42e2 11-Apr-2014 Jeff Brown <jeffbrown@google.com> am f24687e2: Merge "Plumb display power state through display manager." into klp-modular-dev

* commit 'f24687e2731811fd0e3803b691fd47a659f89329':
Plumb display power state through display manager.
037c33eae74bee2774897d969d48947f9abe254f 09-Apr-2014 Jeff Brown <jeffbrown@google.com> Plumb display power state through display manager.

Declare a new method, Display.getState() to retrieve the actual
power state of a display.

Improved documentation for Intent.ACTION_SCREEN_ON and
Intent.ACTION_SCREEN_OFF to clarify what they really mean in
terms of the interactive state of the device.

Deprecated PowerManager.isScreenOn() and replaced it with
PowerManager.isInteractive() with a more suggestive name and
better documentation.

Redirect display power state changes to go through the display
manager first and only then head over to the power manager for
legacy compatibility.

Eliminated the bright here and woke here policy flags since they
were unused. Simplified the input dispatch policy somewhat.

Ensure that screen wake locks are respected up until the point
when dozing really begins.

Fixed a regression in DreamService where onDreamingStarted
might be called before onWindowAttached.

Bug: 13133142
Bug: 13472578
Bug: 13929355
Bug: 13760290
Change-Id: Iabef96921dd554ce3768fb18619cefc3230b5fb0
om_android_server_input_InputManagerService.cpp
om_android_server_power_PowerManagerService.cpp
om_android_server_power_PowerManagerService.h
118d113478a2c58e7997f926a8dd1bc5ca5f5dc8 05-Apr-2014 Michael Wright <michaelwr@google.com> Merge "Fix size_t format specifier"
654d75fec9e04306a3e08e4ef0c3aa0ec9ef96ea 05-Apr-2014 Ruchi Kandoi <kandoiruchi@google.com> PowerManager: Fix build

fix build breaks by commit 667372e39bfe01bd15f0803d51ef0e9816f18808

Change-Id: I9e6e0f9146f860d27337cef0551c686ba2d60e23
om_android_server_power_PowerManagerService.cpp
9ecba5269b1e114439f4515a433d73d450f04769 05-Apr-2014 Michael Wright <michaelwr@google.com> Fix size_t format specifier

Change-Id: I7d4ce5e0c7bb4d9e0cc19edf68f30f6b2b054bc7
om_android_server_input_InputManagerService.cpp
7716b7d8ef9addb913bbc4bdd3153fa36bd1aa87 04-Apr-2014 Leon Scroggins <scroggo@google.com> Merge "Update to call new Skia APIs."
f20a5eb279035d462e1f5d9895f4eb66cc152215 02-Apr-2014 Ruchi Kandoi <kandoiruchi@google.com> PowerManager: add powerHint method

Add powerHint method to IPowerManager for passing power hints from other
processes.

Change-Id: Ic596ace2ed1796a6da4cddb2163dcc4536115e55
om_android_server_power_PowerManagerService.cpp
cc11f15f76a62ded3e403cb2bc818c6aa5bf261c 31-Mar-2014 Leon Scroggins <scroggo@google.com> Update to call new Skia APIs.

I816129d49c0118453222916f3c818eccac33663d merges a new version of
Skia that updates various APIs. Call the new ones.

SkBitmap::copyTo now takes an SkColorType instead of an
SkBitmap::Config, so do the conversion with
SkBitmapConfigToColorType or use the enum when it makes sense.

Call SkImageDecoder::decodeSubset instead of (deprecated)
SkImageDecoder::decodeRegion.

Override SkCanvas::ClipVisitor::clipRRect in ClipCopier.

In Canvas::clip calls, call SkCanvas::isClipEmpty(), which was
previously called inside the clip call, to determine the return value.

For various SkPaint effects, call the new factories (as the constructors
have been made protected).

Implement SkJavaOutputStream::bytesWritten(), overriding a new pure
virtual function on SkWStream.

Update Matrix calls to always return true (since SkMatrix calls no
longer return a value).

Depends on I816129d49c0118453222916f3c818eccac33663d (skia).

Change-Id: I5cdcea827ebff587df0bbddc0965e3e0fbf48002
om_android_server_input_InputManagerService.cpp
f60283598751cbbdb65b2a59d2294e23bb4dfb99 03-Apr-2014 Jinsuk Kim <jinsukkim@google.com> am f2fe3505: am 31518f74: Merge "Use build property for CEC device OSD name" into klp-modular-dev

* commit 'f2fe3505dac16dfa990fbab56713abab6ba0bc54':
Use build property for CEC device OSD name
f2fe3505dac16dfa990fbab56713abab6ba0bc54 03-Apr-2014 Jinsuk Kim <jinsukkim@google.com> am 31518f74: Merge "Use build property for CEC device OSD name" into klp-modular-dev

* commit '31518f745ffa5e832274c332ac957a065948fdaf':
Use build property for CEC device OSD name
60b17cc0944a855d6a867d7674c9c33b1251a3f7 28-Mar-2014 Jinsuk Kim <jinsukkim@google.com> Use build property for CEC device OSD name

Previously OSD name was based on device type. This CL makes it
independent of device type. CEC spec says "A device that implements
more than one type of CEC functionality should respond with the same
OSD name for each logical address. It is recommended that the name
refers to the complete physical product rather than the individual
CEC functionality".

Now the default name comes from system build property. I removed
setOsdName() from aidl for now since it won't be in use.

Change-Id: I3c9fb877fad4bc5efef56268d155a3f37a865fc2
om_android_server_hdmi_HdmiCecService.cpp
00bc2834537dec9e407da5cf4573048189f45289 31-Mar-2014 Jinsuk Kim <jinsukkim@google.com> am 2e59bd78: am 41eaa32c: Merge "Replace individual methods with a consolidated CEC nativeSendmessage" into klp-modular-dev

* commit '2e59bd788546e29e48b85bda72da6af61704113d':
Replace individual methods with a consolidated CEC nativeSendmessage
2e59bd788546e29e48b85bda72da6af61704113d 31-Mar-2014 Jinsuk Kim <jinsukkim@google.com> am 41eaa32c: Merge "Replace individual methods with a consolidated CEC nativeSendmessage" into klp-modular-dev

* commit '41eaa32c100d8a903daa7b7d09d34887a3e45ffd':
Replace individual methods with a consolidated CEC nativeSendmessage
ecd072161ec57ba8dfb26659511c0f6605601560 27-Mar-2014 Narayan Kamath <narayan@google.com> resolved conflicts for merge of 22d07464 to master

Change-Id: Ic037261eedd6e224938c960d2b4597590c81ed9d
22d074643ed0d010ebfdb0fca685d65eb2632e58 27-Mar-2014 Narayan Kamath <narayan@google.com> resolved conflicts for merge of eaab4df0 to klp-modular-dev-plus-aosp

Change-Id: I871431e5a3ce45a33563ced845e044d37471689b
40a00a341b72490c6291b3aac65bc7a10b3e10ad 24-Mar-2014 Jinsuk Kim <jinsukkim@google.com> Replace individual methods with a consolidated CEC nativeSendmessage

It saves us from having to add numerous native methods to HdmiCecService.
A new native method that reports physical address was added in consequence
to be able to build the message in Java side.

Other changes:
- Substituted more concrete type (cec_device_type_t) to int.
- Fixed the issue about byte endianness in handling physical
address/vendor id. The bytes of variable mPhysicalAddress in native
service were being reversed previously but still worked because they
were reversed again when copied out to outgoing messages. Vendor id
had a bug of bytes being reversed. In order to fix the issue, the way
they are copied to byte array was changed so that it becomes
independent to byte endianness.
- CL's for header/HAL implementation changes are:
https://googleplex-android-review.git.corp.google.com/#/c/437667
https://googleplex-android-review.git.corp.google.com/#/c/437668

Change-Id: Id1ac683fe54597a2c707f30492c7f86e5392504d
om_android_server_hdmi_HdmiCecService.cpp
a1bd79268be693f04f4adee90673d6ed400cc9fd 21-Mar-2014 Dianne Hackborn <hackbod@google.com> Battery stats: track actually running time

Use the uptime while creating the battery stats history to
generate a new event indicating when the CPU is actually running.
We can do this in combination with the new event reporting when
the CPU comes awake, looking at the difference between the
uptime and elapsed time at that point to determine when it last
when to sleep.

Also use this information to generate a new set of aggregated
states, the uptime caused by each wake reason.

Finally use new radio down timestamp to adjust the times we
compute for radio use. Note that this information is not (yet)
being used to adjust how these are recorded in the history.

Change-Id: I723b3b526c8e7d64de0cac9d1193e04132d5a3e4
om_android_server_am_BatteryStatsService.cpp
a42cb8b0e2b8fdfbac1a6590d6b60814caa01088 21-Mar-2014 Colin Cross <ccross@android.com> resolved conflicts for merge of a67e34c8 to master

Change-Id: I597525886260884c9b2dfc7945e01eb8138a58c2
f2fecf48f740a079cf9015ea8c2695039ca11d81 21-Mar-2014 Jinsuk Kim <jinsukkim@google.com> am c61f4dd7: Merge "Add HDMI-CEC service" into klp-modular-dev

* commit 'c61f4dd744b1b0396703aa58eb22fc31d2b7050e':
Add HDMI-CEC service
c61f4dd744b1b0396703aa58eb22fc31d2b7050e 21-Mar-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Add HDMI-CEC service" into klp-modular-dev
4f512fb451c8ddcea852645c5c24314c20c0974b 28-Feb-2014 Jinsuk Kim <jinsukkim@google.com> Add HDMI-CEC service

This CL adds a system service handling HDMI-CEC protocol. The service
is equipped with the capability sending/receiving HDMI-CEC messages

Not all the messages are in place. Currently it has messages to support
a few features only, as follows:

- One touch play
- System information
- Routing control (partially - active source status maintenance only)
- Device OSD transfer
- Power status

It will be extended to cover the wider usages in the follow up CLs.

The CEC standard version referenced in the implementation is 1.3a.

Change-Id: Ifed0b02f52ebf098eddb3bd0987efbf353b7e8fe
ndroid.mk
om_android_server_hdmi_HdmiCecService.cpp
nload.cpp
4b59883afd498dd993263c95aa6db84cbe7c49b4 14-Mar-2014 Chad Brubaker <cbrubaker@google.com> am 7c2b1625: am 78f204ae: am 8e240af5: Merge "Remove SO_BINDTODEVICE from VPN protect" into klp-dev

* commit '7c2b1625d66d3c80c313160f78c8bccd9499539e':
Remove SO_BINDTODEVICE from VPN protect
7c2b1625d66d3c80c313160f78c8bccd9499539e 14-Mar-2014 Chad Brubaker <cbrubaker@google.com> am 78f204ae: am 8e240af5: Merge "Remove SO_BINDTODEVICE from VPN protect" into klp-dev

* commit '78f204aed8c0f3c8174616801d66f96a9a00a5fd':
Remove SO_BINDTODEVICE from VPN protect
306c46884eb3121a981a0d1ed0c5461908c227fc 12-Mar-2014 RoboErik <epastern@google.com> am ca9eef62: b/12068020 Make kb layouts only unique to vendor/product. Do not merge

* commit 'ca9eef6203b7cfb0084f8305d4dcc5d70a7a25cd':
b/12068020 Make kb layouts only unique to vendor/product. Do not merge
ca9eef6203b7cfb0084f8305d4dcc5d70a7a25cd 16-Dec-2013 RoboErik <epastern@google.com> b/12068020 Make kb layouts only unique to vendor/product. Do not merge

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

Instead of storing a kb layout per device descriptor (which is expected
to be unique), store it for each vendor/product. This way we can keep
a consistent layout between identical but physically different keyboards.

There are some corner cases this is expected to fail on, namely devices
that incorrectly have the same vendor/product id. Devices that don't
define a vendor/product id will continue to use the descriptor to store
layout files.

Change-Id: I1f2508561992080459310d5a644dad65a9c24f1a
om_android_server_input_InputManagerService.cpp
d52207423225bcd99e94276e9d0fc2cb5f905602 10-Mar-2014 Jason Gerecke <killertofu@gmail.com> Support unique calibration per orientation

Updates the format of the calibration XML to store the Surface rotation
that a specific calibration applies to. Also updates the API to require
a rotation value for get/set, and has the native framework supply this
according to the current rotation whenever it changes.

Change-Id: I72b6703f646dd18db537365c5c9843f720a5f41e
om_android_server_input_InputManagerService.cpp
857aa7be880c53d78f72a9f227cbdf72ee68d587 28-Jan-2014 Jason Gerecke <killertofu@gmail.com> Initialize mAffineTransform and update on modification

This patch causes the InputReader to update its mAffineTransform to reflect
the currently-set calibration on startup and whenever its value is changed
through the InputManagerService.

Change-Id: I81c76e8cf168728ee140abaf148e1cd31687d5af
om_android_server_input_InputManagerService.cpp
c51cf03cf2458c8c137f60c7379f2cccf681d16f 03-Mar-2014 Dianne Hackborn <hackbod@google.com> Start recording wakeup reasons in battery history.

Depends on a modification to libsuspend so that we can get
a callback each time the device wakes up, to read the current
wakeup reasons from the kernel. These are then stuffed in
to a new field in the battery history.

Also add new dump options --history-start and --charged
to better control what is dumped.

Finally the alarm manager uses a "*walarm*" tag for history
item wake locks that are coming from a wakeup alarm.

Change-Id: I457571973d5b2b5fdc4e4b63ab16275db20d7edd
ndroid.mk
om_android_server_am_BatteryStatsService.cpp
nload.cpp
f87b2248497223a18ee0e5403967a5de55d8cbb5 28-Feb-2014 Chad Brubaker <cbrubaker@google.com> Merge "Remove SO_BINDTODEVICE from VPN protect"
4915fb22c71a56a629116751b2d7783a9c6fde4c 27-Feb-2014 Derek Sollenberger <djsollen@google.com> Merge "Cleanup unnecessary includes for libskia."
7531aa22355cf03f51def61ba67f1636bf85f408 13-Jan-2014 Mike Lockwood <lockwood@google.com> Add support for USB devices with multiple configurations and alternate interfaces

Added UsbConfiguration class, as well as accessors to UsbDevice to get configuration list
Added methods to UsbDeviceConnection to select configurations and alternate interfaces.

Also added accessors for USB descriptor name strings and fixed some memory leaks in the JNI code.

Bug: 12425052
Change-Id: Idb990f4d5c054a8cb997eb3f440f6da9f83bce05
om_android_server_UsbHostManager.cpp
950fe8f8d4d654e645fa7205ca275b5a03feb214 27-Feb-2014 Derek Sollenberger <djsollen@google.com> Cleanup unnecessary includes for libskia.

The libskia target exports all of its public includes directories so
redefining them here is redundant. Also this cleans up and makes it
obvious where the framework is making using of private Skia headers.

Change-Id: Ie7ecc9ddd3df780bed6b9af54ba58ca58274e043
ndroid.mk
4418372b21e91f6d4b9e11931dd87a90a023d79e 22-Feb-2014 Greg Hackmann <ghackmann@google.com> am 5f652b9f: am 0cab896a: resolved conflicts for merge of 9e413bf4 to klp-modular-dev-plus-aosp

* commit '5f652b9fdfbcc279353955f7ef86b72d2ef9f5fb':
open("/dev/rtc0") failure in AlarmManagerService.setTime() should be non-fatal
Move time setting code from SystemClock to AlarmManagerService
0cab896a987f6687affd5c50c3bdbe10745c8dff 22-Feb-2014 Greg Hackmann <ghackmann@google.com> resolved conflicts for merge of 9e413bf4 to klp-modular-dev-plus-aosp

Change-Id: Ibc41f0248235afca9546829e00b31003d09f4f7e
17ab38f8a87bc90eab11373f878f220ce3031de6 27-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Make AssetAtlasService 64-bit compatible

Changes in this patch include

[x] Long(64-bit) is used to store native pointers in
AssetAtlasService and related classes as they can be 64-bit.

[x] Some minor changes have been done to conform with
standard JNI practice (e.g. use of jint instead of int
in JNI function prototypes)

Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>

(cherry-picked from 4de3f481bc59ab4b766dc027e41aff7cda9d62f7)

Change-Id: If22daf40eef46f8df9f94d65ddcc52c45b3acf2a
om_android_server_AssetAtlasService.cpp
10102e4c0e501333a12b38a5cfe709d1558d84dd 21-Feb-2014 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of baaa080b to master

Change-Id: I3ee12321e298f7a2ea577a99f30c49f3bb497fae
90506a41c6b85cf7e65b663480e4fe003a99c8c2 20-Feb-2014 Jeff Brown <jeffbrown@google.com> am 07e6d1b9: Merge "Add a new "doze mode" based on Dream components." into klp-modular-dev

* commit '07e6d1b9a5f81ff5a5bf91f2b260ee487d5f2b65':
Add a new "doze mode" based on Dream components.
2687550272ba061448f5d5b914700dc335299ee7 31-Jan-2014 Jeff Brown <jeffbrown@google.com> Add a new "doze mode" based on Dream components.

When a doze component has been specified in a config.xml resource
overlay, the power manager will try to start a preconfigured dream
whenever it would have otherwise gone to sleep and turned the
screen off. The dream should render whatever it intends to show
then call startDozing() to tell the power manager to put the display
into a low power "doze" state and allow the application processor
to be suspended. The dream may wake up periodically using the
alarm manager or other features to update the contents of the display.

Added several new config.xml resources related to dreams and dozing.
In particular for dozing there are two new resources that pertain to
decoupling auto-suspend mode and interactive mode from the display
state. This is a requirement to enable the application processor
and other components to be suspended while dozing. Most devices
do not support these features today.

Consolidated the power manager's NAPPING and DREAMING states into one
to simplify the logic. The NAPPING state was mostly superfluous
and simply indicated that the power manager should attempt to start
a new dream. This state is now tracked in the mSandmanSummoned field.

Added a new DOZING state which is analoguous to DREAMING. The normal
state transition is now: AWAKE -> DREAMING -> DOZING -> ASLEEP.
The PowerManager.goToSleep() method now enters the DOZING state instead
of immediately going to sleep.

While in the doze state, the screen remains on. However, we actually
tell the rest of the system that the screen is off. This is somewhat
unfortunate but much of the system makes inappropriate assumptions
about what it means for the screen to be on or off. In particular,
screen on is usually taken to indicate an interactive state where
the user is present but that's not at all true for dozing (and is
only sometimes true while dreaming). We will probably need to add
some more precise externally visible states at some point.

The DozeHardware interface encapsulates a generic microcontroller
interface to allow a doze dream for off-loading rendering or other
functions while dozing. If the device possesses an MCU HAL for dozing
then it is exposed to the DreamService here.

Removed a number of catch blocks in DreamService that caught Throwable
and attempted to cause the dream to finish itself. We actually just
want to let the process crash. Cleanup will happen automatically if
needed. Catching these exceptions results in mysterious undefined
behavior and broken dreams.

Bug: 12494706
Change-Id: Ie78336b37dde7250d1ce65b3d367879e3bfb2b8b
ndroid.mk
om_android_server_dreams_McuHal.cpp
om_android_server_input_InputManagerService.cpp
nload.cpp
520a5673fbe8bff90954045b24a361982861ef8d 20-Feb-2014 Narayan Kamath <narayan@google.com> am b152473f: am 9fce8535: Merge "AArch64: Make AssetAtlasService 64-bit compatible"

* commit 'b152473f46d8176e7eb2c55b54342a7a29c525cf':
AArch64: Make AssetAtlasService 64-bit compatible
e62c4a10cbcf6946d505470d8cc44c6855c679b3 18-Feb-2014 Jeff Sharkey <jsharkey@android.com> am ab528077: am 37d894a4: am 660a514e: am 60097a9c: Merge "Structure device not freed in error case"

* commit 'ab5280776f40c473228d3e920771a41289ed7fee':
Structure device not freed in error case
37d894a42b5744e3e5def5fbfcc641fe3afa2063 18-Feb-2014 Jeff Sharkey <jsharkey@android.com> am 660a514e: am 60097a9c: Merge "Structure device not freed in error case"

* commit '660a514e80e0019d8c6632e84bd03491722fc2ab':
Structure device not freed in error case
bcf12b302cd2715de54493808b2503de05c53757 11-Feb-2014 Chad Brubaker <cbrubaker@google.com> Remove SO_BINDTODEVICE from VPN protect

SO_BINDTODEVICE is not needed with policy routing.
SO_BINDTODEVICE was also used on the default iface which causes problems
when the default iface is IPv6 only and the socket tries to connect to a
IPv4 address.

Bug: 12940882
Change-Id: I5b2bde0ac5459433fc5749f509072a548532f730
om_android_server_connectivity_Vpn.cpp
d430354c6b6b3b39c35e8af90007414c325ccb2d 13-Feb-2014 Andreas Huber <andih@google.com> Merge "Revert "Split AndroidRuntime into AndroidRuntimeBase base-class and the rest.""
9ae000ca8c05ad6f700ad7bf119bbc92fb964b57 13-Feb-2014 Andreas Huber <andih@google.com> Revert "Split AndroidRuntime into AndroidRuntimeBase base-class and the rest."

This reverts commit 7825334929b098b36e1144872200e75ba6d24b13.

Change-Id: I1702eb3ff9d7192d64039c8bf4bc3fc5d8e458c4
ndroid.mk
04f0cab79d1499a5fe27330bb30dd94151b82880 13-Feb-2014 Andreas Huber <andih@google.com> Merge "Split AndroidRuntime into AndroidRuntimeBase base-class and the rest."
7825334929b098b36e1144872200e75ba6d24b13 07-Feb-2014 Andreas Huber <andih@google.com> Split AndroidRuntime into AndroidRuntimeBase base-class and the rest.

AndroidRuntimeBase (exported by libandroid_runtime_base.so) is all you need
to link against to gain the ability to do AndroidRuntimeBase::getJNIEnv()
thus minimizing build dependencies.

Change-Id: Ia7f0c94c8c02b974c068e0db34774827f96aa95b
ndroid.mk
be83e4a08e909b773ffc06a6e59446deadb8af8b 12-Feb-2014 Jeff Brown <jeffbrown@google.com> am 38f96e50: Add support for injecting events into ActivityContainers. (DO NOT MERGE)

* commit '38f96e5020b3e82b98fe97b0be363a5ad185860f':
Add support for injecting events into ActivityContainers. (DO NOT MERGE)
ca9bc702df5c14a89c9b8b0109a05894bf74962e 11-Feb-2014 Jeff Brown <jeffbrown@google.com> Add support for injecting events into ActivityContainers.

Modified ActivityView to inject touch events it receives back into
its activity container. The container then injects the event into
the input system along with the display id of the underlying virtual
display.

Change-Id: I23d018a2f7dd30f1f833f522eb7f143b43d8e637
om_android_server_input_InputManagerService.cpp
38f96e5020b3e82b98fe97b0be363a5ad185860f 11-Feb-2014 Jeff Brown <jeffbrown@google.com> Add support for injecting events into ActivityContainers. (DO NOT MERGE)

Modified ActivityView to inject touch events it receives back into
its activity container. The container then injects the event into
the input system along with the display id of the underlying virtual
display.

Enhanced the input system to support concurrent dispatch of touch
events on multiple displays which is required for this to work.

Change-Id: I9cf1870db3be6f99a52ed9a1e3ceafe42c940093
om_android_server_input_InputManagerService.cpp
0d148c8b4ed94891d00acf20aa724493629970e9 11-Feb-2014 Michael Wright <michaelwr@google.com> Merge "Move inputservice over to frameworks/native"
d6b473713f43dec0828971854fe1018642cfaf27 11-Feb-2014 Michael Wright <michaelwr@google.com> Move inputservice over to frameworks/native

Remove all of the pieces except the PointerController and SpriteController over
to frameworks/native in preparation for inputflinger. Those two need to stay in
frameworks/base for now because they depend on Skia currently. In the long run
they should be merged into either the InputManager or the WindowManager rather
than as a part of the inputservice / inputflinger.

Try 2.

Change-Id: I84259356d3eb8efc5aefb9d6b311b5fc590ea3ed
ndroid.mk
om_android_server_input_InputApplicationHandle.h
om_android_server_input_InputManagerService.cpp
om_android_server_input_InputWindowHandle.h
om_android_server_power_PowerManagerService.h
7f258f970e2123131638665c9d6674a7e1c7e4ea 11-Feb-2014 Narayan Kamath <narayan@google.com> am a9d171bd: am 5c770dfb: am b823bd45: Merge "Use long to store pointers in ConsumerIrService"

* commit 'a9d171bd5bab29feaef409489ed23d3c490285ce':
Use long to store pointers in ConsumerIrService
a9d171bd5bab29feaef409489ed23d3c490285ce 11-Feb-2014 Narayan Kamath <narayan@google.com> am 5c770dfb: am b823bd45: Merge "Use long to store pointers in ConsumerIrService"

* commit '5c770dfba2846ee173d147fd974f8e9f073c1534':
Use long to store pointers in ConsumerIrService
453fa30ab2dbff5934e551323763200fac96d723 11-Feb-2014 Michael Wright <michaelwr@google.com> Revert "Move inputservice over to frameworks/native"

This reverts commit 89e5c7ebb37fabc4368e87e17a502db62598bd61.
ndroid.mk
om_android_server_input_InputApplicationHandle.h
om_android_server_input_InputManagerService.cpp
om_android_server_input_InputWindowHandle.h
89e5c7ebb37fabc4368e87e17a502db62598bd61 10-Feb-2014 Michael Wright <michaelwr@google.com> Move inputservice over to frameworks/native

Remove all of the pieces except the PointerController and SpriteController over
to frameworks/native in preparation for inputflinger. Those two need to stay in
frameworks/base for now because they depend on Skia currently. In the long run
they should be merged into either the InputManager or the WindowManager rather
than as a part of the inputservice / inputflinger.

Change-Id: Iebef71f3030fb3d26a5f338eb66d75bb37c17734
ndroid.mk
om_android_server_input_InputApplicationHandle.h
om_android_server_input_InputManagerService.cpp
om_android_server_input_InputWindowHandle.h
a407d6a003d746fa0aff50f7ba5da61f19a85b75 06-Feb-2014 Michael Wright <michaelwr@google.com> Remove SkRegion dependency from libinput

This gets us one step closer to removing our dependency on Skia, which is at
least one of the things blocking us from moving the input system out of
f/b.

Change-Id: I755e6267996c93fe700f1056327386923287575a
om_android_server_input_InputWindowHandle.cpp
583b7b16718b2787e64f1f26e476d349b96a909a 28-Jan-2014 Narayan Kamath <narayan@google.com> am 39a789bf: am 7ae1726d: am aa9ba887: am 6e09eb4c: Merge "AArch64: Make graphics classes 64-bit compatible"

* commit '39a789bf6efd5c3478a442e60e896cae371fd04c':
AArch64: Make graphics classes 64-bit compatible
36bef0bf30d6bae48cf3837df351075ca4fce654 20-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Make graphics classes 64-bit compatible

This a merger of two commits submitted to AOSP by
the following authors:

ashok.bhat@arm.com, david.butcher@arm.coma
craig.barber@arm.com, kevin.petit@arm.com and
marcus.oakland@arm.com

Due to the very large number of internal conflicts, I
have chosen to cherry-pick this change instead
of letting it merge through AOSP because the merge
conflict resolution would be very hard to review.

Commit messages below:

================================================
AArch64: Make graphics classes 64-bit compatible

Changes in this patch include

[x] Long is used to store native pointers as they can
be 64-bit.

[x] Some minor changes have been done to conform with
standard JNI practice (e.g. use of jint instead of int
in JNI function prototypes)

[x] AssetAtlasManager is not completely 64-bit compatible
yet. Specifically mAtlasMap member has to be converted
to hold native pointer using long. Added a TODO to
AssetAtlasManager.java to indicate the change required.

Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Craig Barber <craig.barber@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>

==================================================================

AArch64: Use long for pointers in graphics/Camera

For storing pointers, long is used in
android/graphics/Camera class, as native
pointers can be 64-bit.

In addition, some minor changes have been done
to conform with standard JNI practice (e.g. use of
jint instead of int in JNI function prototypes)

Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>

===================================================================

Change-Id: Id5793fa0ebc17ee8b1eecf4b3f327977fdccff71
om_android_server_AssetAtlasService.cpp
7023df08f14ec5dee76ac54c03e870f84e297636 27-Jan-2014 Narayan Kamath <narayan@google.com> Revert "AArch64: Make graphics classes 64-bit compatible"

This reverts commit 18b4cbeedef21c1fa666a110a157bab66edff976.

Change-Id: I0c52983a3ab1ace3ff743de546a43eca28e5cb0e
om_android_server_AssetAtlasService.cpp
18b4cbeedef21c1fa666a110a157bab66edff976 20-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Make graphics classes 64-bit compatible

This a merger of two commits submitted to AOSP by
the following authors:

ashok.bhat@arm.com, david.butcher@arm.coma
craig.barber@arm.com, kevin.petit@arm.com and
marcus.oakland@arm.com

Due to the very large number of internal conflicts, I
have chosen to cherry-pick this change instead
of letting it merge through AOSP because the merge
conflict resolution would be very hard to review.

Commit messages below:

================================================
AArch64: Make graphics classes 64-bit compatible

Changes in this patch include

[x] Long is used to store native pointers as they can
be 64-bit.

[x] Some minor changes have been done to conform with
standard JNI practice (e.g. use of jint instead of int
in JNI function prototypes)

[x] AssetAtlasManager is not completely 64-bit compatible
yet. Specifically mAtlasMap member has to be converted
to hold native pointer using long. Added a TODO to
AssetAtlasManager.java to indicate the change required.

Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Craig Barber <craig.barber@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>

==================================================================

AArch64: Use long for pointers in graphics/Camera

For storing pointers, long is used in
android/graphics/Camera class, as native
pointers can be 64-bit.

In addition, some minor changes have been done
to conform with standard JNI practice (e.g. use of
jint instead of int in JNI function prototypes)

Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>

===================================================================

Change-Id: Ib3eab85ed97ea3e3c227617c20f8d213f17d4ba0
om_android_server_AssetAtlasService.cpp
2dfae9bea104c0594fd5641f9704f34b204abd87 08-Jan-2014 RoboErik <epastern@google.com> Merge "b/12068020 Make kb layouts only unique to vendor/product"
43bc1c07d25b7f278a860bbb9118f46ac732593a 08-Jan-2014 Mike Lockwood <lockwood@google.com> am d9e708e3: am 12ec2e6d: am 99206593: am 9607d78f: Merge "Added missing USB device descriptor fields needed for intent filters"

* commit 'd9e708e365d94e83ec135f1486129febd3f8eaea':
Added missing USB device descriptor fields needed for intent filters
e853de1f10820da1bc7b6bf13faadaf835239c29 08-Jan-2014 Narayan Kamath <narayan@google.com> am 2d87407e: am 136c0219: am c156021d: am 8a927cfa: Merge "Fix a bug introduced in change 73712"

* commit '2d87407e5765228a3469b9681ebff6c0c7eee140':
Fix a bug introduced in change 73712
3f7b8d0c6c2b1b6a8d183769621f5fd9c36cfc85 08-Jan-2014 Narayan Kamath <narayan@google.com> resolved conflicts for merge of 92ae0347 to klp-modular-dev

Change-Id: I703aea4f20985a4bbda0f685254721d6480bb20f
fb290df3c9a6f37ec050163029e25844de2f8590 16-Dec-2013 RoboErik <epastern@google.com> b/12068020 Make kb layouts only unique to vendor/product

Instead of storing a kb layout per device descriptor (which is expected
to be unique), store it for each vendor/product. This way we can keep
a consistent layout between identical but physically different keyboards.

There are some corner cases this is expected to fail on, namely devices
that incorrectly have the same vendor/product id. Devices that don't
define a vendor/product id will continue to use the descriptor to store
layout files.

Change-Id: Id0890d13e1c859eaf993d4831b7b1acbaf5df80f
om_android_server_input_InputManagerService.cpp
9158825f9c41869689d6b1786d7c7aa8bdd524ce 22-Nov-2013 Amith Yamasani <yamasani@google.com> Move some system services to separate directories

Refactored the directory structure so that services can be optionally
excluded. This is step 1. Will be followed by another change that makes
it possible to remove services from the build.

Change-Id: Ideacedfd34b5e213217ad3ff4ebb21c4a8e73f85
ndroid.mk
om_android_server_AlarmManagerService.cpp
om_android_server_AssetAtlasService.cpp
om_android_server_ConsumerIrService.cpp
om_android_server_SerialService.cpp
om_android_server_SystemServer.cpp
om_android_server_UsbDeviceManager.cpp
om_android_server_UsbHostManager.cpp
om_android_server_VibratorService.cpp
om_android_server_connectivity_Vpn.cpp
om_android_server_input_InputApplicationHandle.cpp
om_android_server_input_InputApplicationHandle.h
om_android_server_input_InputManagerService.cpp
om_android_server_input_InputWindowHandle.cpp
om_android_server_input_InputWindowHandle.h
om_android_server_lights_LightsService.cpp
om_android_server_location_FlpHardwareProvider.cpp
om_android_server_location_GpsLocationProvider.cpp
om_android_server_power_PowerManagerService.cpp
om_android_server_power_PowerManagerService.h
nload.cpp