summaryrefslogtreecommitdiff
path: root/core/java/android/companion/CompanionDeviceService.java
Commit message (Collapse)AuthorAgeFilesLines
* Use property instead of meta-data for primary CDM serviceEvan Chen2022-02-091-3/+4
| | | | | | | | | | Meta-data will increase the system server ram consumption. So we decide to use property instead of meta-data to indicate the primary cdm service. Test: atest CtsCompanionDeviceManagerCoreTestCases:SelfPresenceReportingTest Fix: 217953124 Change-Id: I91ebe374bba392d14d693d3c6a36433b5af7cf2a
* [CDM perm sync] Hide data transfer APIsGuojing Yuan2022-01-261-7/+6
| | | | | | | | | | | Due to permission sync feature has been punted to U, the data transfer APIs need to be hidden. Bug: 199427116 Fix: 203822629 Test: m and flash Change-Id: Ibb642827cd9f1708a557af7a8a996826ceec3eb9
* Prefix CDM's "primary" tag with "android.companion"Sergey Nikolaienkov2022-01-181-17/+59
| | | | | | | | | | | | | | | | Prefix CDM's "primary" tag with "android.companion" to bring it in line with other similar tags used in Android Applications Framework: - android.service.notification.default_filter_types - android.view.merge - android.media.tv.input etc. Expand Javadoc for android.companion.CompanionDeviceService Bug: 198539218 Test: atest CtsCompanionDeviceManagerCoreTestCases Test: atest CtsCompanionDeviceManagerUiAutomationTestCases Change-Id: I10fd70c24b6a653dd03e1b74dc682194d867df93
* postAtFrontOfQueue() in ICompanionDeviceService.StubSergey Nikolaienkov2022-01-101-18/+8
| | | | | | | | | | | | | | | | | | | | postAtFrontOfQueue() instead of post()-ing at the back of the queue in ICompanionDeviceService.Stub to prevent "posted" methods are invoked *before* onUnbind()/onDestroy(). Add missing @Override annotation to onDispatchMessage method. Clean up dispatchMessage() which is not a part of ICompanionDeviceService interface. Make the Stub implementation class private. Bug: 198485833 Bug: 200940347 Test: atest CtsCompanionDeviceManagerCoreTestCases Test: atest CtsCompanionDeviceManagerUiAutomationTestCases Test: atest CtsOsTestCases:CompanionDeviceManagerTest Change-Id: Ic44e7968b1cef42355631151aa6958fe1ec7dd6e
* Merge "Add @TestApi onBindCompanionDeviceService()"Evan Chen2021-12-101-0/+10
|\
| * Add @TestApi onBindCompanionDeviceService()Sergey Nikolaienkov2021-12-091-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Add onBindCompanionDeviceService() method to CompanionDeviceService, which is invoked from onBind(). This allows to track the state of incoming Binder connection in CTS tests, which was not possible before, since onBind() method in CompanionDeviceService is final. Bug: 199435613 Test: atest CtsCompanionDevicesTestCases:SelfPresenceReportingTest Test: atest CtsCompanionDevicesTestCases Change-Id: I37cd3be15ed41b466ef9c6cead781299fd82356e
* | Companion App Manages Connectivity State InterfacesEvan Chen2021-12-101-16/+60
|/ | | | | | | | | | | | | | Created two new APIs in CompanionDeviceManager: notifyDeviceAppeared and notifyDeviceDisappeared for companion apps report connectivity. Create a new callback method for user to override when device is connected and disconnected Bug: 199435613 Test: atest CtsCompanionDevicesTestCases Change-Id: I6884d085cf810fdd42466d620e888b07367c9b94
* Rename CDM receiveMessage to dispatchMessageGuojing Yuan2021-09-271-10/+11
| | | | | | | Fix: 200940347 Test: N/A Change-Id: Iea73ff7a2820f8b7711e105fc604a2e0b8901fc7
* Add CDM data transfer interfacesGuojing Yuan2021-09-221-0/+44
| | | | | | | | | Design: go/cdm-data-transfer-dd Fix: 198485833 Test: N/A Change-Id: I37fd8b84ceea671e76332042761d3f99f7090b98
* Add API for CDM keep-awake serviceEugene Susla2020-11-051-0/+116
Test: presubmit Bug: 168052577 Change-Id: I9adcd9b6a33f23564ce1b8cddad36a3df047ba3a