summaryrefslogtreecommitdiff
path: root/packages/CompanionDeviceManager/src
AgeCommit message (Collapse)Author
2025-03-20Merge "Rename the new limited VDM role." into main Vladimir Komsiyski
2025-03-19[CDM] Handle BackgroundServiceStartNotAllowedException being thrown by ↵ Raphael Kim
discovery service. Bug: 401242686 Test: Unable to reproduce Flag: EXEMPT bug fix Change-Id: If5830adff4fe89b92fb4c158afae1c0ac6963ebd
2025-03-07Fix UI flicker issue when selecting the device Evan Chen
Test: cts Fix: 393509673 Flag: EXEMPT test fix Change-Id: Ic950806bcc48e85ee0bb4b33e27b4c648f3d11d9
2025-03-04Rename the new limited VDM role. Vladimir Komsiyski
A more generic name is much better as it could still be used for creating trusted displays and input injection in the future, not only for sensors. And make it non-self-managed. Bug: 368633836 Test: presubmit Flag: android.companion.virtualdevice.flags.enable_limited_vdm_role Change-Id: Iaa73b23231aa8a0faba6605edb9a87abb8799475
2025-02-27[CDM][A11y] Fix talkback behavior for CDM device discovery dialog. Raphael Kim
* As new devices were found, the entire list was updated, which caused Talkback to get repeatedly interrupted while announcing device names. Only updating the newly added devices fixes this issue. * Adding accessibility live region to timeout messages allows status message to be automatically announced upon status update. Bug: 396047983 Bug: 396314903 Test: Manually tested Flag: EXEMPT bug fix Change-Id: I32f6e6d75813db8593ed3f079e4a827746f9d9eb
2025-02-25[A11y] Add talkback for Don't allow button Evan Chen
Make sure to announce "Double tap to activate it". Fix: 396051311 Test: manually test Flag: EXEMPT test fix Change-Id: Ia42d052db12d3542db7317c47a722e04af85848b
2025-02-24[CDM] Prevent NPE when CompanionAssociationActivity is destroyed by user ↵ Raphael Kim
cancellation before `onStart()` is called. Bug: 396616085 Change-Id: I2eebef54ef7a5467f81a62b5076188ceba1d6c56 Test: m Flag: EXEMPT bug fix
2025-02-24Merge "Change allow button to a downward button to scroll the permission ↵ Evan Chen
list" into main
2025-02-21Change allow button to a downward button to scroll the permission list Evan Chen
1. If the user hasn't scrolled to the bottom of the permission list, display a button with a downward arrow. 2. Each tap of the downward button scrolls the permission list to reveal the next permission. 3. Once the user has scrolled to the very bottom of the permission list, the "Allow" button becomes visible. Fix: 391252796 Test: cts + manually Flag: EXEMPT bugfix Change-Id: Iac25d681edaf3604230c6d2f7ac8133a8a355ca2
2025-01-27[W][CDM] Add wearable_sensing device profile which grants the app access to ↵ Raphael Kim
a specific transport spec Bug: 377767141 Flag: EXEMPT bugfix Test: atest CtsCompanionDeviceManagerCoreTestCases:DeviceProfilesTest Change-Id: I425e042d52e7363cc145de7ed55b49f1686d83a3
2024-12-23[CDM] Refactor CDM association discovery timeout mechanism. Raphael Kim
* Spinner was changed to an indeterminate progress bar to indicate ongoing scan. * Discovery timeout no longer results in automatic cancellation. * Single-device association flow now shows a system dialog. Bug: 336830254 Flag: EXEMPT bugfix Test: Manually tested on a test app Change-Id: I247d30c8fc756a0477974e773b7933ff5cd7c8c6
2024-11-13CDM support for the new limited VDM role. Vladimir Komsiyski
Bug: 368633836 Test: presubmit Flag: android.companion.virtualdevice.flags.enable_limited_vdm_role Change-Id: I87439fcd81a9895788740d013ca3d67f2cef6bf4
2024-10-29Merge "[CDM] Fix an IAE in CDDS" into main Guojing Yuan
2024-10-28[CDM] Fix an IAE in CDDS Guojing Yuan
Fix: 375619113 Test: CTS Flag: EXEMPT bugfix Change-Id: I8293b652dc6bc7a131f7e6af9800e08a81936ac5
2024-10-09Merge "[CDM] Dismiss association dialog onDestroy rather than onStop." into main Guojing Yuan
2024-10-08[CDM] Dismiss association dialog onDestroy rather than onStop. Guojing Yuan
Fix: 371556876 Flag: EXEMPT bugfix Test: manual Change-Id: Idc8fa869f6140c6ddab2b0fd84067e38feadf832
2024-10-08[W]SelfManaged Association device icon Evan Chen
Introduce custom self managed associaiton device icon API that allow a system app to set the device icon that displayed in the self managed association dialog and this device icon will be stored in AssociationInfo Test: CTS Bug: 359341630 Flag: android.companion.association_device_icon Change-Id: Ifa8f3f4016ff748a827e500824c86b95af12b1df
2024-08-22Merge "[W] Return CharSquence and int for onFailure callback" into main Evan Chen
2024-08-06[W] Return CharSquence and int for onFailure callback Evan Chen
Test: CTS Bug: 349401090 Flag: android.companion.association_failure_code Change-Id: Id08c1ba316873d5f62bede47a7ca31e687ba250c
2024-08-02Fix several issues with the CDM association dialog: Vladimir Komsiyski
Affecting only self-managed associations. Dialog title and summary: - Fix the app name resource in self-managed profiles titles and summaries. The resources are defined correctly, they expect the app name to be passed, but the substitution is actually done with the device name, which is wrong. Also, add the device name to the title and summary string resources to make the message Helper dialog: - The helper title is hardcoded "Cross-Device Services". It needs to be the name of the app requesting the association. - Remove the now obsolete helper title string resources. - Make the message of APP_STREAMING profile consistent with the one for NEARBY_DEVICE_STREAMING - Add a map of profile to helper summary, similarly to the rest of the CDM resources. Clean up: - Clean up launched VDM flag interactiveScreenMirror. It's low-risk, has no API changes and has been in Nextfood for months. - Remove the now obsolete string resources after the mirroring flag is cleaned up. - Remove the unused permission constants, string and drawable resources for APP_STREAMING and NEARBY_DEVICE_STREAMING profiles. They are obsolete after the mirroring flag is cleaned up because there are no "permissions" associated with these profiles. Fix: 338973982 Flag: EXEMPT bugfix Test: presubmit, manual with VDM demo app Change-Id: I8c9e404a77b9e74fc813b3c3c9effc85050d15bc
2024-07-08Fix screen is flickering after selecting the deivce Evan Chen
Early terminate after user selects the device for same OEM request. Flag: EXEMPT bugfix Test: cts Bug: 303300448 Change-Id: I80d52f10f710692c4da4e3ea723ca08f9dab2b40
2024-06-20[W] Introduce new onFailure callback with resultCode Evan Chen
Test: CTS Bug: 341993358 Flag: android.companion.association_failure_code Change-Id: I5f549c5663b4887b4e2dd694c5ffb84136764be7
2024-06-18Merge "Fix CDM discovery timeout" into main Evan Chen
2024-06-17Fix CDM UI regressions Evan Chen
This change addresses two regressions: UI flashing after selecting a device of the same OEM for pairing, and occasional failure to display the spinner in the multiple devices dialog. Flag: EXEMPT bugfix Test: cts Bug: 327049496 Change-Id: Iccd74ad5d74be605cf2b88edefa5bc998dfb1461
2024-06-14Fix CDM discovery timeout Evan Chen
CDM has a regression preventing activity launches after timeout due to DiscoveryState potentially remaining in FINISHED_TIMEOUT. We must ensure activities are cancelled when timeout occurs while discovery is in progress. Flag: EXEMPT bugfix Bug: 342470917 Test: CTS Change-Id: I531676195e674e2ce52632e5bae6c93fc1d5e1d0
2024-05-21Avoid throwing a runtime exception for duplicate association requests Guojing Yuan
Fix: 340998672 Test: CTS Change-Id: I94a8d3e448dfc3bbb190c36750b35fa415d78348
2024-04-22Merge "Revert^2 "Do not need to startDiscovery if a bound device need to be ↵ Evan Chen
assoicated."" into main
2024-04-22Revert^2 "Do not need to startDiscovery if a bound device need to be ↵ Evan Chen
assoicated." This reverts commit dc07a3c90a08bc932541ee4335b5d1bf4718e5be. Reason for revert: The revert won't fix the b/335529158 and I believe this failure not caused by this cl. Change-Id: Id451aa5ed3a9a7d28debaa59393f2f9643452605
2024-04-19Merge "Revert "Do not need to startDiscovery if a bound device need to be ↵ Priyanka Advani
assoicated."" into main
2024-04-19Revert "Do not need to startDiscovery if a bound device need to be assoicated." Priyanka Advani
This reverts commit bfc69cd32ef3a539ff399562f7592bb10d1cfc0c. Reason for revert: Likely culprit for b/335529158. Will be verifying through ABTD for verification and before submitting the culprit. Change-Id: I90c2d37681fa6dc368fffb48edf137cf08483785
2024-04-18Merge "[CDM][Refactoring 7/N] Refactor the association activity" into main Guojing Yuan
2024-04-17Do not need to startDiscovery if a bound device need to be assoicated. Evan Chen
Do not need to startDiscovery if a bound device need to be assoicated for singleDevice dialog. Test: cts Bug: 331747809 Change-Id: I0cbb6415a057336c302f35e90918cfbb72b16536
2024-04-16[CDM][Refactoring 7/N] Refactor the association activity Guojing Yuan
Bug: 327049496 Test: CTS Change-Id: I4fc961a8362cafbd7dea82dc6d8ae55fb10aa503
2024-03-10Updates in CDM dialogs for VDM screen mirroring Biswarup Pal
With the introduction of VDM interactive screen mirroring, the message of the CDM dialog for app_streaming and device_streming roles is being updated to inform the user regarding the potential privacy implications. App streaming dialog screenshots Before - https://screenshot.googleplex.com/9ZoiLqj6GWEWkCN.png After - https://screenshot.googleplex.com/4ufMdY9cVfAAtxx.png Device streaming dialog screenshots Before - https://screenshot.googleplex.com/BoRnT5ZwUwckSBQ.png After - https://screenshot.googleplex.com/9syAMbBqBVKGqn2.png Test: VirtualDeviceManager demo app Bug: 292212199 Change-Id: I22bf148ed1aa24f79124c85a406ab381ae7aab46
2024-02-28[A11y] Scroll up/down for voice access mode Evan Chen
Ensure users can scroll up and down using voice commands. Test: cts Fix: 322855383 Change-Id: If581cc8a34b0067c4fdf2151345082060ba4136e
2023-12-14Merge "No need to show views if isSkipPrompt is true" into main Evan Chen
2023-12-13No need to show views if isSkipPrompt is true Evan Chen
Immediately return if isSkipPrompt is true when user selected the device. Test: cts Fix: 303300448 Change-Id: I0ef2376abbe5a16335636d5f01b8b84478a7f164
2023-12-06[CDM] Add POST_NOTIFICATION to the Watch role Guojing Yuan
Bug: 280360881 Test: manually checked the UI Change-Id: I52fe47faa234115cb2422bb817015d089fc506fd
2023-12-06Add 'Change media output' permission in the CDM dialog for watch role profile Anubhav Kakkar
Bug: 308186966, 314707052 Test: Open watch companion app (e.g. Bona companion) on a phone with package allowlisting removed (or pair the devices across OEMs) > Observe CDM dialog Change-Id: I4f916cbea0a158b323f83b648a2b6fb57827beff
2023-05-10Apply bullet permission UI to multiple device dialog Evan Chen
Sepreate to two dialogs for non-null profile. One for the device chooser and another one for bullet permission dialog. Test: Cts Fix: 271311544, 267646302 Change-Id: I8229ce00f17281736aa91a1a9cceea9aaeee35ee
2023-05-02Do not annouce Collapse/Expand if there are less or equal to 2 permissions ↵ Evan Chen
in the list Test: CTS Fix: 278638141 Change-Id: Ia22ccb8972ddd980fbd15bc4aaa4709d611a94b2
2023-04-27TalkBack announce Expand/Collapse permission Evan Chen
1. Make sure to announce expand/collapse permissions 2. Announce the stats of current view(Exapnded/collapsed + permission) Test: CTS Fix: 278638141 Change-Id: I9634f6b757d6d8e41a6c051b5060cc8c6c8316d7
2023-04-19Fix talkback when expand and collapse the permission list Evan Chen
1. Announce expand/collapse when double tap the permission item 2. Announce expanded/collapsed when single tap the permission item Test: cts Fix: 278486577, 278638141 Change-Id: Ia9b00a555a543aae6746bf12cf8b2d131f0c5aea
2023-04-18Fix summary disappear when scrolling in large text mode Evan Chen
Fix: 278632941 Test: CTS Change-Id: I36946ed51d4d8a35d267ca234ba831803d4ad307
2023-03-31Add device type at the end of summary for single device Evan Chen
Also add a question mark at the end of the headers No Profile singleDevice: https://screenshot.googleplex.com/3fuhm9jbuFMWkvd Watch Profile singleDevice: https://screenshot.googleplex.com/AywBG2HjX2GEPyZ Glass Profile singleDevice: https://screenshot.googleplex.com/4eMCX4b5rwd4NBS Bug: 267646302 Test: cts Change-Id: I1f16a88536526e4820f6ae1ba79c5501558a01ff
2023-03-30Update CDM string for non-multi-device dialog Evan Chen
No Profile singleDevice: https://screenshot.googleplex.com/9ZCBzb67ogkg4L7 Watch Profile singleDevice: https://screenshot.googleplex.com/BS6izPUdTvB88Hw Glass Profile singleDevice: https://screenshot.googleplex.com/84EZ5tJCyAUYT35 Test: CTS Bug: 267646302 Change-Id: Ic0089dd7275d085fb66d351538d7dc52187ce7b5
2023-03-21Merge "Fix color ration for dark mode for device icon" into udc-dev Evan Chen
2023-03-20Fix color ration for dark mode for device icon Evan Chen
Demo: https://screenshot.googleplex.com/7NHxQzcSYma6aiA Bug: 272417217 Test: CTS Change-Id: I87c8853c5bdcaa0d521fdb0956a324c02f49aee0
2023-03-15Fix touch target for Don't allow button Evan Chen
Demo: https://screenshot.googleplex.com/6fu5gZJWD7o93Pf Fix: 272431521 Test: cts Change-Id: I27db6d5fce07cfd3f2e22c5a92da8ebf6019b4ba
2023-03-07Update strings for glasses and nearby_device_streaming Claudiu Ghioc
* update prompt strings for the two new CDM profiles with versions approved by UX Bug: 261147998 Test: manually Change-Id: Ic705986864164fec99f444a3d02a22cd3641fc23 Signed-off-by: Claudiu Ghioc <claudiughioc@google.com>