258 Commits

Author SHA1 Message Date
Ruben Brunk
574460f547 Merge "Connect VR HAL to VrManagerService." 2016-02-03 19:05:32 +00:00
Lifu Tang
d7a4da42bd Merge changes from topic 'API renaming'
* changes:
  Worked around the crash caused by API renaming
  Rename Gps to Gnss for measurement-related APIs
2016-02-03 02:08:28 +00:00
Ruben Brunk
baa4b55b89 Connect VR HAL to VrManagerService.
- Implement lifecycle calls into HAL from VrManagerService.

Bug: 22855417
Change-Id: I7b8144621ffcd44470d0ed3e6b137fffb081a21a
2016-02-02 17:55:47 -08:00
Lifu Tang
818aa2c2c4 Rename Gps to Gnss for measurement-related APIs
Bug: 26895757
Change-Id: I12d89dc251e356cf976a4bcd3589a8925a8ad745
2016-02-02 16:15:03 -08:00
Narayan Kamath
2a27769654 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
2016-02-02 09:41:12 +00:00
Mykola Kondratenko
e45abfa083 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
2016-02-02 09:30:50 +00:00
Narayan Kamath
b368bb20a3 Merge "close file in PersistentDataBlockService jni" am: c71c44a524
am: 8e5a0d7da7

* commit '8e5a0d7da7f6df2c10d752b526a50ed4f5ade3fe':
  close file in PersistentDataBlockService jni
2016-02-01 11:42:45 +00:00
Lianwei Wang
5c74bb313f close file in PersistentDataBlockService jni
The opened file should be closed.

Change-Id: I8a43b338c5c9eb0a5b1b5329eec767c6395bc7eb
Signed-off-by: Lianwei Wang <lianwei.wang@gmail.com>
2016-02-01 11:31:12 +00:00
Lifu Tang
45fbe46da6 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
2016-01-28 02:02:17 +00:00
Lifu Tang
e5a0e21b6f Framework support to read newly added fields
Change-Id: Ie43395addd102656a4dbf9c25111ac50ec9afe41
2016-01-27 18:01:33 -08:00
Lifu Tang
82f893d6df Added an API to query GPS hardware version info
Change-Id: Ic45357d30da350759f56c9d061e60196acb3255b
2016-01-27 17:38:24 -08:00
Lifu Tang
a8b7bb5a50 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
2016-01-27 16:07:09 -08:00
Lifu Tang
30f95a7d67 Supported GNSS multi-constellation in frameworks
Change-Id: I82574afd3697c47e806d2cfaedc33756d0353b73
2016-01-25 15:15:14 -08:00
Ruben Brunk
6e415b691f Merge "Update LightsService to use low-persistence mode." 2016-01-19 20:54:44 +00:00
Ruben Brunk
8ad3f208a9 Update LightsService to use low-persistence mode.
Bug: 26274041
Bug: 26217194

Change-Id: I4cbee11d0936b6df5b8aed9dfab8d9d1d928f9c3
2016-01-19 12:26:49 -08:00
Jun Mukai
347e5d498f Introduce pointer capture API.
This depends on I4189eb4d93f50c2865b7a325727be5ceebcc71f8 of
frameworks/native.

Bug: 5452473
Change-Id: Ie21e521f3e5c581f976dc0feb5d84bfa48b046cd
2015-12-18 10:22:43 -08:00
Wonsik Kim
c2d26a0835 Merge "TIF: add signal detection feature for HW inputs" 2015-12-17 07:05:51 +00:00
Wonsik Kim
102d0b7b69 TIF: add signal detection feature for HW inputs
Bug: 23820259
Change-Id: If7f03b49f7510ec405dfc4fb2b6f709b8c8b820d
2015-12-17 15:18:39 +09:00
Jun Mukai
d4eaef7f4c Make public pointer icon API with custom icons.
BUG: 25778347, 23804184
Change-Id: If138b97c750c912e9848412c27b65004899961eb
2015-12-14 19:45:10 -08:00
Phil Burk
1852019c39 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>
2015-12-03 17:00:42 -08:00
Jun Mukai
19a5601979 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
2015-11-30 14:42:53 -08:00
Jun Mukai
28d5615147 Merge "Introduce animated pointer icon for STYLE_WAIT." 2015-11-18 01:46:58 +00:00
Jun Mukai
808196f139 Introduce animated pointer icon for STYLE_WAIT.
Change-Id: I893f8276e09351db6187c553f349008794b95690
2015-11-17 17:36:08 -08:00
Colin Cross
b2b5c89d8c 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.
2015-11-17 23:30:18 +00:00
Colin Cross
5603eca33c Merge "Vibra: Add loading of the vibrator hardware module." 2015-11-17 19:31:19 +00:00
Phil Burk
3ac162ecc0 Merge "UsbMidiDeviceJNI: fix race condition" 2015-11-02 21:38:36 +00:00
Phil Burk
32bfb874e3 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>
2015-11-02 10:30:34 -08:00
Wonsik Kim
6b1e695c56 TV: check surface validity before use
Bug: 23118610
Change-Id: I4eede52de3c66e3f1e4fb442724581e01dbd99c3
2015-10-30 15:05:00 +09:00
Jun Mukai
5ec7420ecd Use invisible icon for POINTER_ICON_STYLE_NULL.
Change-Id: I10d35bdc4da4817d769eb164e6f15e4618670a05
2015-10-21 13:03:01 -07:00
Jun Mukai
1db5397d88 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
2015-10-15 01:47:29 -07:00
Elliott Hughes
434a481b21 am ea1831d2: am b57dd722: resolved conflicts for a884d81e to stage-aosp-master
* commit 'ea1831d211ea0e6b2d161c714bb0786369ef2df5':
  constify JNINativeMethod function pointer tables
2015-09-24 17:23:00 +00:00
Elliott Hughes
ea1831d211 am b57dd722: resolved conflicts for a884d81e to stage-aosp-master
* commit 'b57dd722f1dc0663417da37d3a82f8283ad3c982':
  constify JNINativeMethod function pointer tables
2015-09-24 17:14:10 +00:00
Elliott Hughes
b57dd722f1 resolved conflicts for a884d81e to stage-aosp-master
Change-Id: Ice485967fa96f13786024b6939b826638e906ff0
2015-09-24 10:01:32 -07:00
Chih-Hung Hsieh
93108b6164 Remove unused local variable.
Found by clang/llvm for bullhead device.

Change-Id: I9225bd47f2b246bcc2cadf88da5974624831d9b8
2015-09-22 16:32:39 -07:00
Daniel Micay
76f6a86de2 constify JNINativeMethod function pointer tables
Change-Id: I4036c924958221cbc644724f8eb01c5de3cd7954
2015-09-22 17:10:35 -04:00
Tim Murray
e3f920252e 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.
2015-09-03 04:35:12 +00:00
Tim Murray
65052ba4fa 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.
2015-09-03 04:22:36 +00:00
destradaa
b902698632 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
2015-08-28 14:03:26 -07:00
Tim Murray
a326a116f7 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
2015-08-28 10:43:40 -07:00
Adam Lesinski
6593daa39e 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
2015-07-25 16:36:22 +00:00
Adam Lesinski
9736d0ccaa am 2a493532: Merge "BatteryStats: Decode wakeup reasons in Java" into mnc-dev
* commit '2a493532e6ce44fd6dec07a22c3a016de80ccc46':
  BatteryStats: Decode wakeup reasons in Java
2015-07-25 01:29:26 +00:00
Adam Lesinski
2a493532e6 Merge "BatteryStats: Decode wakeup reasons in Java" into mnc-dev 2015-07-25 01:14:07 +00:00
Adam Lesinski
515702c29e 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
2015-07-24 12:56:37 -07:00
Tim Kilbourn
096b562ec3 am 79383d53: am 1c78d467: am 115189fd: am cc855ad7: Merge "Properly synchronize interactivity state." into mnc-dev
* commit '79383d53bc69adaebd4e195e78bf7dfe1867f03a':
  Properly synchronize interactivity state.
2015-07-24 04:05:50 +00:00
Tim Kilbourn
99bad6f0c7 am cc855ad7: Merge "Properly synchronize interactivity state." into mnc-dev
* commit 'cc855ad737e61fc02a057e811f2e6e34bbff0e37':
  Properly synchronize interactivity state.
2015-07-23 22:42:20 +00:00
Michael Wright
a405121b5a 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
2015-07-23 19:04:33 +01:00
Narayan Kamath
8ac25b5500 am bba9d27e: am 1d50879b: Merge "Remove memory leak in PersistentDataBlockService jni"
* commit 'bba9d27e0c2d59e77bf51872b8773b962ea4b4c1':
  Remove memory leak in PersistentDataBlockService jni
2015-07-01 13:57:32 +00:00
Henrik Baard
c90ca48a7c 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
2015-07-01 13:30:26 +00:00
Adam Lesinski
87fd322ecb BatteryStats: Record suspend abort reasons
Bug:18179405
Change-Id: I28c77f035400c32375dbe6d3c7057c0a2c093e8f
2015-06-25 13:14:27 -07:00
Mike Lockwood
6d5a0f9164 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
2015-06-08 16:48:19 -07:00