summaryrefslogtreecommitdiffstats
path: root/services/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* BatteryStats: Record suspend abort reasonsAdam Lesinski2015-06-251-40/+33
| | | | | Bug:18179405 Change-Id: I28c77f035400c32375dbe6d3c7057c0a2c093e8f
* UsbMidiDevice: Only keep ALSA devices open when device is in useMike Lockwood2015-06-081-4/+26
| | | | | | | | This should fix contention problems for apps using USB APIs to implement MIDI support Bug: 20949468 Bug: 21630625 Change-Id: I32b44330ca0310a4693fd56a4b01ad399f82c1c9
* Wait for wakeup_reasons on first initAdam Lesinski2015-06-051-19/+12
| | | | | | | | | | | | | 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
* Allow INADDR_NONE as a valid configuration in AGpsStatus_v3.destradaa2015-05-291-3/+3
| | | | | | | | | b/21516868 This change makes AGpsStatus_v3 consistent and compatible with the behavior of AGpsStatus_v2. Change-Id: Ia4e729d8ed1d61b51ae22c7eaf9bbe33f31b7a45
* Move from native FingerprintService implementation to fingerprintdJim Miller2015-05-202-3/+0
| | | | | | | | 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
* Add control for double tap to wake settingJason Monk2015-05-121-0/+10
| | | | | Bug: 16875464 Change-Id: Ic1ad910dd38acbc68ef040b2acdf3696ec2c2e4e
* Fingerprint: Add Set Active GroupSasha Levitskiy2015-05-111-0/+16
| | | | | Change-Id: Ie9d63c5f948c9610bd6b19a76bffab5ae0070620 Signed-off-by: Sasha Levitskiy <sanek@google.com>
* Add body sensors app op - framework baseSvet Ganov2015-05-011-2/+2
| | | | Change-Id: Idd5cd573fab3405e5b2a6e51d2d9d115650826e9
* Merge "A bunch more cleanups" into mnc-devJohn Reck2015-05-011-1/+2
|\
| * A bunch more cleanupsJohn Reck2015-04-301-1/+2
| | | | | | | | | | | | | | | | Switch a few places to using android::canvas instead of SkCanvas as well which eliminated some JNI Change-Id: I8f98b56442a06362b82b984cd1bd3a92398d8dbc
* | Merge "Change how Java Bitmaps are accessed in a few places" into mnc-devJohn Reck2015-04-301-1/+1
|\ \ | |/
| * Change how Java Bitmaps are accessed in a few placesJohn Reck2015-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | UsbDevice: Add support for retrieving version string for a USB deviceMike Lockwood2015-04-291-2/+3
|/ | | | Change-Id: Ia8630f5ffd05f90347b971110a81f4927060cc4b
* Merge "GraphicsJNI Canvas cleanup"John Reck2015-04-222-46/+9
|\
| * GraphicsJNI Canvas cleanupJohn Reck2015-04-222-46/+9
| | | | | | | | Change-Id: I72e142986a8bc9f464c1951b6b5187919de3462e
* | Merge "Avoid performing work in the platform when GPS HAL does not support a ↵destradaa2015-04-221-20/+26
|\ \ | | | | | | | | | feature. b/19271554"
| * | Avoid performing work in the platform when GPS HAL does not support a feature.destradaa2015-04-171-20/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Expose getAuthenticatorId APIAndres Morales2015-04-221-0/+6
| |/ |/| | | | | Change-Id: I112c45d596c66e3f6ebd94fecffcb6bb7c3a335a
* | Revert "A bunch more cleanups"John Reck2015-04-172-10/+46
|/ | | | | | This reverts commit c294d128d03bc9a9982b273a82516c04583438cc. Change-Id: Id1ebb236950f7c36c6d86e1dd95566d3a200748d
* Merge "Rename affine transformation configuration change to be consistent."Michael Wright2015-04-171-1/+1
|\
| * Rename affine transformation configuration change to be consistent.Michael Wright2015-04-171-1/+1
| | | | | | | | Change-Id: I295d1d07f3727e6d0159e1ccf210ae147fd7ffa3
* | Merge "Check correct NO_ERROR response from Keystore"Andres Morales2015-04-151-2/+4
|\ \
| * | Check correct NO_ERROR response from KeystoreAndres Morales2015-04-151-2/+4
| | | | | | | | | | | | Change-Id: Ieaea593deadac596873583b2ac91a16020e90ea2
* | | Merge "Fix bug where preEnroll returned int instead of long"Jim Miller2015-04-151-3/+4
|\ \ \
| * | | Fix bug where preEnroll returned int instead of longJim Miller2015-04-151-3/+4
| |/ / | | | | | | | | | Change-Id: Ia0bf5e1b5b870b9dbeed21910dcf04435bcfde9d
* | | Merge "A bunch more cleanups"John Reck2015-04-152-46/+10
|\ \ \ | |/ / |/| |
| * | A bunch more cleanupsJohn Reck2015-04-142-46/+10
| | | | | | | | | | | | | | | | | | | | | | | | Switch a few places to using android::canvas instead of SkCanvas as well which eliminated some JNI Change-Id: I8f98b56442a06362b82b984cd1bd3a92398d8dbc
* | | Several fixes to Fingerprint code after large mergeJim Miller2015-04-141-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | - route fingerprint enrollment auth token - replace "processed" event with "authenticated" - fix type-o in strings.xml Change-Id: If06b4438c94fd7fca07a8b7b1b5fa16dd94b3831
* | | Fix buildAndres Morales2015-04-141-1/+1
| | | | | | | | | | | | | | | | | | cast param Change-Id: I150773ab0701c2551e3bd292aa228083259b5dd6
* | | Add notify keystore method to FPS JNIAndres Morales2015-04-142-2/+30
| | | | | | | | | | | | Change-Id: I0b29a9e4a15e9386586df98be419be9e0b0c8f7b
* | | Fingerprint: Add hw token to the enroll() function.Sasha Levitskiy2015-04-141-5/+9
| | | | | | | | | | | | | | | Change-Id: I3308a2567cac9290540bb7692d343ccad98b40ed Signed-off-by: Sasha Levitskiy <sanek@google.com>
* | | Add versioning to FLP HAL.David Christie2015-04-141-0/+13
|/ / | | | | | | | | | | | | Retain compatibility with implementations compiled against old headers or left unchanged from LMP. Change-Id: I3f7cfaaf0cba8697c312940a805b053c6040caa6
* | Add ability to flush FLP HAL batched locations buffer.David Christie2015-04-131-0/+11
| | | | | | | | | | | | | | | | | | 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
* | Merge "Add a status callback for location batching in FLP HAL"David Christie2015-04-141-1/+20
|\ \
| * | Add a status callback for location batching in FLP HALDavid Christie2015-04-131-1/+20
| | | | | | | | | | | | | | | | | | | | | -Allows GmsCore to know when location is unsuccessful so it can switch to a SW solution. Change-Id: I3d1df7b828f7fb189446881eea87d9a952310614
* | | Merge "Add capability callback for FLP HAL."David Christie2015-04-141-2/+40
|\ \ \ | |/ / | | / | |/ |/|
| * Add capability callback for FLP HAL.David Christie2015-04-121-2/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Clean up FingerprintManager API and make it public.Jim Miller2015-04-111-6/+20
|/ | | | Change-Id: I6a99dccd485c053cb47dbd0ec08b41a2dc5b17c8
* Add smallest displacement field to FLP HALDavid Christie2015-04-081-0/+8
| | | | Change-Id: I4d857256c035c65185be3be8401bec8d45091aaf
* Prepare to make Fingerprint API public.Jim Miller2015-04-012-0/+208
| | | | | | | - move fingerprint support files into hardware area - move jni into services/core Change-Id: I48a8e43d6d328fb66d79919c255e4c44e984b4d1
* MIDI Manager: remove USB peripheral MIDI device when USB is disconnectedMike Lockwood2015-03-251-0/+11
| | | | | | | | | 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
* MidiManager updates:Mike Lockwood2015-01-143-0/+124
| | | | | | | | | | | | | | | | | 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
* am 96f7ac84: Merge "Find wall clock RTC through sysfs" automerge: 41ef80eGreg Hackmann2015-01-131-5/+75
|\ | | | | | | | | * commit '96f7ac84b51c3ceb913e78275e99e2f4f79ebe86': Find wall clock RTC through sysfs
| * Find wall clock RTC through sysfsGreg Hackmann2015-01-131-5/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | am 8b2b71f5: am 71d8b8ce: Merge "DO NOT MERGE Implement cloneTvInputEvent" ↵Sungsoo Lim2015-01-071-1/+28
|\ \ | | | | | | | | | | | | | | | | | | into lmp-mr1-dev * commit '8b2b71f51187528ec80241f4cc5c6f7e2f67d048': DO NOT MERGE Implement cloneTvInputEvent
| * | DO NOT MERGE Implement cloneTvInputEventSungsoo Lim2015-01-051-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | am ee4da173: am cee5c8ed: Merge "DO NOT MERGE TIF: change TvInputHal events ↵Wonsik Kim2015-01-071-38/+65
|\ \ \ | |/ / | | | | | | | | | | | | | | | 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
| * | DO NOT MERGE TIF: change TvInputHal events to run on its own threadWonsik Kim2015-01-051-38/+65
| | | | | | | | | | | | | | | | | | Bug: 18688119 Change-Id: Id60f82295cdbc45065be416c9828eae144b6799f (cherry picked from commit 57b37f610d33989f1b23e1b8d9e61fb177456364)
* | | am 08ca1694: am fadfe708: Merge "CEC: Pass port ID for ↵Jinsuk Kim2014-12-171-6/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | set_audio_return_channel" into lmp-mr1-dev * commit '08ca1694eb3013bd1f6c050e021588b8614e8764': CEC: Pass port ID for set_audio_return_channel
| * | CEC: Pass port ID for set_audio_return_channelJinsuk Kim2014-12-171-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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