137561 Commits

Author SHA1 Message Date
John Reck
ce444ca400 Cleanup
Change-Id: Ie366390272724a2c1dfda99b0e85806b7a612744
2014-06-02 15:12:36 -07:00
Jorim Jaggi
c7ad12f458 am 56a043ba: Merge "Implement unlock hint." into lmp-preview-dev
* commit '56a043ba215b35096769bac402b93e857333b1e4':
  Implement unlock hint.
2014-06-02 13:40:34 +00:00
Florin Malita
9ec2eabe5a Merge "Add a native Canvas wrapper." 2014-06-02 13:37:11 +00:00
Jorim Jaggi
58136d0211 Merge "Implement unlock hint." into lmp-preview-dev 2014-06-02 13:36:42 +00:00
Jorim Jaggi
9012958742 Implement unlock hint.
Before, users didn't have any clue how to unlock their phone. Now
they have. Also, a tap now dismisses the notification shade in the
unlocked state.

Bug: 14080971
Bug: 15189435
Bug: 15282191
Bug: 15126962

Change-Id: I779344b043b4415809dd98217b7cb9ff6d57fa3e
2014-06-02 15:35:54 +02:00
Jungshik Jang
052591143b am 3a981600: (-s ours) Merge "DO NOT MERGE: Start Device Discovery after logical address allocation." into lmp-preview-dev
* commit '3a9816007c30c48568a28ad8c4cc622e7879cec7':
  DO NOT MERGE: Start Device Discovery after logical address allocation.
2014-06-02 11:44:18 +00:00
Jungshik Jang
50af6ffa6d am 072ea747: (-s ours) Merge "DO NOT MERGE: Register HdmiControlService" into lmp-preview-dev
* commit '072ea747d3dc71ed9c9ff3fc1ba9f25cbaa1d447':
  DO NOT MERGE: Register HdmiControlService
2014-06-02 11:44:13 +00:00
Jungshik Jang
2991c8935c am 32b52923: (-s ours) Merge "DO NOT MERGE: Stop publishing HdmiCecService, start publishing HdmiControlService" into lmp-preview-dev
* commit '32b529231a45bef4d3b4b5ffcfc1c4de30f9e10e':
  DO NOT MERGE: Stop publishing HdmiCecService, start publishing HdmiControlService
2014-06-02 11:44:09 +00:00
Jungshik Jang
3aa7a9c732 am 3b140c63: (-s ours) Merge "DO NOT MERGE: Do not reply with <Feature Abort> to CEC Broadcast message" into lmp-preview-dev
* commit '3b140c63aa991d700cf7a11cfd9653b8d7a9ee65':
  DO NOT MERGE: Do not reply with <Feature Abort> to CEC Broadcast message
2014-06-02 11:44:04 +00:00
Jungshik Jang
65d2fed974 am 367aea2b: (-s ours) Merge "DO NOT MERGE: Dispatch incoming CEC messages to feature actions" into lmp-preview-dev
* commit '367aea2becf1bb742e09cf1c870f4b357b1b1cae':
  DO NOT MERGE: Dispatch incoming CEC messages to feature actions
2014-06-02 11:43:59 +00:00
Jungshik Jang
297c0d4f96 am df9af422: (-s ours) Merge "DO NOT MERGE: Implement device discovery sequence." into lmp-preview-dev
* commit 'df9af422055d97d4743e00f789ae1964318a307b':
  DO NOT MERGE: Implement device discovery sequence.
2014-06-02 11:43:55 +00:00
Jungshik Jang
fe773e37eb am 20626284: (-s ours) Merge "DO NOT MERGE: Fix a couple of bugs in CEC services" into lmp-preview-dev
* commit '20626284d9d71abdbef9e8457325b32de9e5644a':
  DO NOT MERGE: Fix a couple of bugs in CEC services
2014-06-02 11:43:49 +00:00
Jungshik Jang
e1b34048fb am d378fa85: (-s ours) Merge "DO NOT MERGE: Fix a bug calling a wrong HDMI-CEC Binder API" into lmp-preview-dev
* commit 'd378fa8522e128513bed3cb0cf8e9b8f38da1e79':
  DO NOT MERGE: Fix a bug calling a wrong HDMI-CEC Binder API
2014-06-02 11:43:45 +00:00
Jungshik Jang
d6519f859a am aa40beb6: (-s ours) Merge "DO NOT MERGE: Add cec message handler to hdmi cec jni implementation" into lmp-preview-dev
* commit 'aa40beb64d1f5a415910992bf41eee5f121add47':
  DO NOT MERGE: Add cec message handler to hdmi cec jni implementation
2014-06-02 11:43:40 +00:00
Jungshik Jang
0b19196509 am 367cd5b6: (-s ours) Merge "DO NOT MERGE: Fix a bug using wrong addresses for CEC logical address allocation" into lmp-preview-dev
* commit '367cd5b67b403c253833267e8e139595ed410f91':
  DO NOT MERGE: Fix a bug using wrong addresses for CEC logical address allocation
2014-06-02 11:43:34 +00:00
Jungshik Jang
d18fef5976 am 18021f98: (-s ours) Merge "DO NOT MERGE: Hook up the CEC playback API to service internal logic." into lmp-preview-dev
* commit '18021f98b16b609ee6941c0935e5569198bc629d':
  DO NOT MERGE: Hook up the CEC playback API to service internal logic.
2014-06-02 11:43:29 +00:00
Jungshik Jang
ad65c15ab4 am b282ed12: (-s ours) Merge "DO NOT MERGE: Add HdmiCecDeviceInfo to HdmiCecLocalDevice" into lmp-preview-dev
* commit 'b282ed1272bb1089a2e8c22a0cf06b0551ca7220':
  DO NOT MERGE: Add HdmiCecDeviceInfo to HdmiCecLocalDevice
2014-06-02 11:43:24 +00:00
Jungshik Jang
6b5e9d5b76 am c578c567: (-s ours) Merge "DO NOT MERGE: Implement <Polling Message>." into lmp-preview-dev
* commit 'c578c567abe0bea8d48420a0c27c0f271b859eec':
  DO NOT MERGE: Implement <Polling Message>.
2014-06-02 11:43:19 +00:00
Jungshik Jang
1ff3c2b941 am dd1adf17: (-s ours) Merge "DO NOT MERGE: Add the constants for the callback result of SendCecCommand()." into lmp-preview-dev
* commit 'dd1adf172245c8910b5e4877d10234a4b56df782':
  DO NOT MERGE: Add the constants for the callback result of SendCecCommand().
2014-06-02 11:43:14 +00:00
Jungshik Jang
7b4f00e847 am 13f62fa5: (-s ours) Merge "DO NOT MERGE: CEC Initialization per device type" into lmp-preview-dev
* commit '13f62fa592146f7319727cd7f4306bf7080f0035':
  DO NOT MERGE: CEC Initialization per device type
2014-06-02 11:43:09 +00:00
Jungshik Jang
353a9b4a77 am eaa1c574: (-s ours) Merge "DO NOT MERGE: Add SendMessageCallback to Hdmi control service." into lmp-preview-dev
* commit 'eaa1c574512758b30c1ee164a5f597e41be4b3d7':
  DO NOT MERGE: Add SendMessageCallback to Hdmi control service.
2014-06-02 11:43:04 +00:00
Jungshik Jang
becab9a7db Merge "DO NOT MERGE: Start Device Discovery after logical address allocation." into lmp-preview-dev 2014-06-02 04:38:05 +00:00
Jungshik Jang
11969e8266 Merge "DO NOT MERGE: Register HdmiControlService" into lmp-preview-dev 2014-06-02 04:37:46 +00:00
Jungshik Jang
9b4d25a8c5 Merge "DO NOT MERGE: Stop publishing HdmiCecService, start publishing HdmiControlService" into lmp-preview-dev 2014-06-02 04:37:31 +00:00
Jungshik Jang
9a4e0f1205 Merge "DO NOT MERGE: Do not reply with <Feature Abort> to CEC Broadcast message" into lmp-preview-dev 2014-06-02 04:36:41 +00:00
Jungshik Jang
efc52b08c5 Merge "DO NOT MERGE: Dispatch incoming CEC messages to feature actions" into lmp-preview-dev 2014-06-02 04:36:32 +00:00
Jungshik Jang
ae8ef37c90 Merge "DO NOT MERGE: Implement device discovery sequence." into lmp-preview-dev 2014-06-02 04:36:16 +00:00
Jungshik Jang
9bb6fbb743 Merge "DO NOT MERGE: Fix a couple of bugs in CEC services" into lmp-preview-dev 2014-06-02 04:35:58 +00:00
Jungshik Jang
1dcef4f9cd Merge "DO NOT MERGE: Fix a bug calling a wrong HDMI-CEC Binder API" into lmp-preview-dev 2014-06-02 04:35:45 +00:00
Jungshik Jang
37554062ed Merge "DO NOT MERGE: Add cec message handler to hdmi cec jni implementation" into lmp-preview-dev 2014-06-02 04:35:35 +00:00
Jungshik Jang
dc6adf5c62 Merge "DO NOT MERGE: Fix a bug using wrong addresses for CEC logical address allocation" into lmp-preview-dev 2014-06-02 04:35:21 +00:00
Jungshik Jang
15bbf99a52 Merge "DO NOT MERGE: Hook up the CEC playback API to service internal logic." into lmp-preview-dev 2014-06-02 04:34:56 +00:00
Jungshik Jang
f7ecc88b81 Merge "DO NOT MERGE: Add HdmiCecDeviceInfo to HdmiCecLocalDevice" into lmp-preview-dev 2014-06-02 04:34:36 +00:00
Jungshik Jang
a8b57081f8 Merge "DO NOT MERGE: Implement <Polling Message>." into lmp-preview-dev 2014-06-02 04:34:19 +00:00
Jungshik Jang
5a0d97b1c2 Merge "DO NOT MERGE: Add the constants for the callback result of SendCecCommand()." into lmp-preview-dev 2014-06-02 04:34:02 +00:00
Jungshik Jang
3a551cb536 Merge "DO NOT MERGE: CEC Initialization per device type" into lmp-preview-dev 2014-06-02 04:33:50 +00:00
Jungshik Jang
b79ddaf16e Merge "DO NOT MERGE: Add SendMessageCallback to Hdmi control service." into lmp-preview-dev 2014-06-02 04:33:29 +00:00
Amith Yamasani
dc31af2d4f Merge "Handle saving and restoring ints in application restrictions" 2014-06-02 03:18:46 +00:00
Amith Yamasani
5b5aa4072f Handle saving and restoring ints in application restrictions
Unit tests for restrictions types and proper escaping.

Change-Id: Iac35521faf5798398a89fecbad82fcdd256a4146
2014-06-01 20:17:37 -07:00
Jungshik Jang
3ef57d99b3 DO NOT MERGE: Start Device Discovery after logical address allocation.
Usually TV initiates Device Discovery sequence after logical address
allocation of local devices. For that added new callback interface
to AddressAllocationCallback to HdmiCecDevice.
Along with this, add onAddressAllocated to HdmiLocalDevice so that
start sending local device information once logical allocation is done.

Change-Id: I4cdc5dd7770674a17a0f23c383a6c1ca221e3104
2014-06-02 11:07:25 +09:00
Jinsuk Kim
af9d45e88b DO NOT MERGE: Register HdmiControlService
Register the new service that will replace HdmiCecService.
The old one will be removed once the client of the old service
finishes migration to the new service.

Change-Id: I3906292fcf0a7c8286bc89af21a03bd11d3a0e72
2014-06-02 11:03:45 +09:00
Jinsuk Kim
e74282b70b 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
2014-06-02 11:02:51 +09:00
Jinsuk Kim
48a0729d62 DO NOT MERGE: Do not reply with <Feature Abort> to CEC Broadcast message
Broadcast message is not targeted to a specific device but for
announcement. Individual reponse with <Feature Abort> is neither
necessary nor useful. Changed to send the message back only for
direct messages.

Change-Id: I927aa8e58a9868e158ed945c753492207e7c97f6
2014-06-02 11:01:45 +09:00
Jinsuk Kim
e1e63c7c54 DO NOT MERGE: Dispatch incoming CEC messages to feature actions
This CL dispatches incoming CEC messages to feature actions that
the service manages.

Change-Id: I9221d6a25648846327d00fe5404aaf1e8ec786ce
2014-06-02 11:00:55 +09:00
Jungshik Jang
d42a7a322b DO NOT MERGE: Implement device discovery sequence.
When device discover is launched it goes through the following step

1. clear all existing devices
2. send <Polling Message> of all logical addresses
  excecpt one of local device
3. Once got all allocated logical addresses, gather physical address of
  them
4. Once got physical address of them, gather display name of them
5. Once got display names, gather vendor id of them
5. Once got vendor id of them, register all gathered info to
  internal device info list.

Change-Id: Ic9aca3b15d88ac7650f10b6d0bfa9c97923975e8
2014-06-02 10:59:03 +09:00
Jinsuk Kim
a8fd44b74b DO NOT MERGE: Fix a couple of bugs in CEC services
- Correct conversion for byte to int for cec opcode
- Use the right Handler.obtainMessage() to pass an integer variable

Change-Id: Ie3e86225f1702decce454aeb197911a371f51c17
2014-06-02 10:58:02 +09:00
Jinsuk Kim
304b4a7281 DO NOT MERGE: Fix a bug calling a wrong HDMI-CEC Binder API
Change-Id: I75e5de3ab820288f0fe6bebdc63d6dd680e18f8a
2014-06-02 10:56:57 +09:00
Jungshik Jang
c47e26ca2f 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
2014-06-02 10:55:50 +09:00
Jinsuk Kim
2c2a301762 DO NOT MERGE: Fix a bug using wrong addresses for CEC logical address allocation
Change-Id: I41da586c16dca4f325d147bb3abe5d4e09f7b91c
2014-06-02 10:54:53 +09:00
Jinsuk Kim
16e24a2d14 DO NOT MERGE: Hook up the CEC playback API to service internal logic.
This change enables CEC playback API (oneTouchPlay, queryDisplayStatus).
Also updated local device list type to SparseArray to make it easy
to get one based on device type.

Change-Id: I6f88b2dac2d873c493a90411549a4e5719a5e460
2014-06-02 10:53:58 +09:00