0b8912fe53e937d1025c6b7b492f53d22556a5d3 |
23-Apr-2018 |
Eugene Susla <eugenesusla@google.com> |
[DO NOT MERGE] [Companion] Nullcheck if ListView is null It's possible for it to be null if single device option was requested Test: ensure attached bug is fixed Fixes: 77963546 Change-Id: I4b94f4027cd9ec55a4cd558cf1d5522bfd0e46d7 (cherry picked from commit a6d548250e3830c356776651c918d5bf46d4f998)
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
9a130ef9379a27ba380b390c707fa5688d898c0c |
16-Apr-2018 |
Eugene Susla <eugenesusla@google.com> |
[DO NOT MERGE] [Companion] Call notifyDataSetChanged on main thread Fixes: 78090775 Test: ensure attached bug not reproduces Change-Id: I386087742883e4847d811f7b8e6e7c8c8aea227a
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
893ef8db21f6db5810629b6babf4e3921e7c9882 |
28-Feb-2018 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "[Companion] Stop scanning after 20sec timeout"
|
ab6ec61251786bf6b4d0407db3bc28aeefcb55db |
23-Feb-2018 |
Anton Hansson <hansson@google.com> |
frameworks/base: Set LOCAL_SDK_VERSION where possible. This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: I4233b9091d9066c4fa69f3d24aaf367ea500f760
ndroid.mk
|
158d5e7f788d9b4d6d8876d38118250979c35e37 |
27-Feb-2018 |
Eugene Susla <eugenesusla@google.com> |
[Companion] Stop scanning after 20sec timeout Fixes: 73888630 Test: using toy app ensure the UI reflects scanning being stopped after 20s Change-Id: I6f2b6027c0c72e312b6b7de722646f7379dcbeb0
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
2447e9c28096f4fde14924756c9e7c331934634b |
29-Nov-2017 |
Lucas Dupin <dupin@google.com> |
Use system dialog corner radius Bug: 64122537 Test: am start -n com.android.companiondevicemanager/.DeviceChooserActivity Change-Id: I4a2c9b0659ba8e2f51b9a53b23ca75868e849a10
es/drawable/dialog_background.xml
|
12ea054e90a6eee1350ddcea1f4dc36f8789cc36 |
27-Jul-2017 |
Eugene Susla <eugenesusla@google.com> |
[Companion] Fix NPE due to looking up view btoo soon Fixes: b/64101223 Test: Ensure attached bug no longer reproduces Change-Id: I23bb05c5355972ce96d08f620ceb8463df3fe853
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
|
38dff3b78a63e2700477afe277d8b7c90776abbc |
13-Jul-2017 |
Eugene Susla <eugenesusla@google.com> |
[Companion] Close chooser dialog on device tap Fixes: 63597808 Test: Ensure list selection is now 1-tap Change-Id: If99fc5e5c9b24526ac48dfc1c87659b01e713989
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
|
7a090a11ed00aa492684800de890f4df633409d8 |
28-Jun-2017 |
Eugene Susla <eugenesusla@google.com> |
[Companion] Dont crash if started with bluetooth off Bug: 63068644 Test: Turn BT off, and ensure the attached bud doesn't reproduce Change-Id: I0de5ba6d28d7195dd3ebc7a3af36f057c762de60
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
0c4a9266264d37e724f7372ef7ef932cf60c505c |
10-Jun-2017 |
Eugene Susla <eugenesusla@google.com> |
Support associating with an already-paired device This is required for migration scenario, where device(s) are already paired(and thus no longer discoverable) but didn't go through companion flow. This also fixes a bug with filtering by mac address, which is also relevant to the use-case of associating a specific device Test: Pair with a device first, and call associate with a filter with its MAC address and single device requested. Ensure the device is found. Ensure only that device is ever returned when filtering by MAC address. Bug: 62487084 Change-Id: Ic7cc6affc0648ad85b15620e8c3aba4b9fc91aa1
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
cbead6cf9715adc9addbe7270da048fd35d3dd8b |
18-May-2017 |
Eugene Susla <eugenesusla@google.com> |
Fix Companion UI crash on configuration change Fixes: 38004370 Test: Ensure no more crash described in the bug. Change-Id: I9c8266d545eff337760bf875cedfe90fc15e4b7c
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
|
722463ff953168ae27bedf61a586f296813fc9fe |
20-Apr-2017 |
Eugene Susla <eugenesusla@google.com> |
Follow acronym convention for Companion BLE filter Test: Ensure no compilation error Fixes: 37514177 Change-Id: I4c255cf6b3c62d762755a9822928561371ecd88d
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
b7aec13d51ba5eb58173835af207fd30389ce44b |
18-Apr-2017 |
Eugene Susla <eugenesusla@google.com> |
Remove 'via Bluetooth' from the choosed dialog We no longer limit the items in a single chooser dialog to a devices from single medium type. Test: Ensure the dialog UI reflects the change. Change-Id: Ia2342861f51f89e870f1c6a7fbebf9c1a37cac6a
es/values/strings.xml
|
e4964118c6f906d1529e00f241b3df9947102c3b |
24-Apr-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Change companion languare from 'pair' to 'link'/'ok'" into oc-dev
|
611797073f8f6e6764b1edfc8a6b019dc5d2a897 |
20-Apr-2017 |
Eugene Susla <eugenesusla@google.com> |
Merge "StopScan before each new Companion device scan" into oc-dev
|
a7717e3072acad6cd6256ce3fdbb2bb94ecb06ca |
18-Apr-2017 |
Eugene Susla <eugenesusla@google.com> |
StopScan before each new Companion device scan Fixes: 37356792 Test: Call associate many times rapidly with alternaring request value Ensure no stale result is displayed Change-Id: Icaa230d9ad468119e20b3de89f19c36531c2c60f
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
254b3730df8daf7d7cc1017a473dedc3ca4cec5b |
18-Apr-2017 |
Eugene Susla <eugenesusla@google.com> |
Use wifi icon for wifi devices in companion chooser Test: Ensure wifi devices have wifi icon Change-Id: I08c9fba1acaefb097a010b1150cc052d5a397adc
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
3db65438ec5c4c8e867eb3afc4dfb36e5fa2efe9 |
18-Apr-2017 |
Eugene Susla <eugenesusla@google.com> |
Change companion languare from 'pair' to 'link'/'ok' Test: Ensure the chooset dialog still works and reflects the changes. Change-Id: If687affb47cbf3fee2c589e1a5f8ab98c72e27d2
es/layout/buttons.xml
es/values/strings.xml
|
200c37f4136e0d49fd853122900d2209e424701c |
29-Mar-2017 |
Eugene Susla <eugenesusla@google.com> |
[DO NOT MERGE] Stop scan on device chooser activity backgrounded This effectively treats chooser activity pause event as cancel. Bug: 30932767 Test: Install two toy apps and call associate API from both. Ensure foreground app always end up showing fresh data. Change-Id: I7f5742e9878245550f678efd244bf84c427baef3
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
5423b4e0a85c6dfd6ffeb04c72b5e050058a7150 |
28-Mar-2017 |
Eugene Susla <eugenesusla@google.com> |
[DO NOT MERGE] Improve the error msg when started not for result This makes sure that if the association request callback IntentResult s accidentally started not for result, the resulting exception is metioning it explicitly. Test: Ensure the error message when calling the IntentSender not for result explicitly mentions the requirement for the activity to be called for result. Bug: 30932767 Change-Id: I950f262af43c555fb20dd5e49e935e476f24bba8
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
|
728ce604653853af047c30b78f2385a375f46b4f |
15-Apr-2017 |
Svetoslav Ganov <svetoslavganov@google.com> |
Merge "[DO NOT MERGE] Fix a bug with filtering by raw bytes" into oc-dev
|
3c9aa1767ca0ddc881f53c2ce7eb3135670efef3 |
29-Mar-2017 |
Eugene Susla <eugenesusla@google.com> |
[DO NOT MERGE] Fix a bug with filtering by raw bytes (when such filter is not provided) See change in BluetoothDeviceFilterUtils Bug: 30932767 Test: Call API with a BLE filter with no raw bytes filter, matching some device. Ensure that the device eventually shows up. Change-Id: I4397fa33dd0c48771c8a754791a171f2d0bd64eb
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
51efddbd3bb304de2dd47fa8cd1114ac555958bb |
05-Apr-2017 |
Alan Viverette <alanv@google.com> |
Remove unnecessary casts on calls to findViewById Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
|
a38fbf63fd2a29884637a59387643c801ed4f663 |
14-Mar-2017 |
Eugene Susla <eugenesusla@google.com> |
Unbind from service on app killed and dedup association requests 1. Listen to calling package binder death stopping the scanning on that. 2. Don't restart scanning when a request with the same values was made. Bug: 30932767 Test: 1.: - Using a test app start scanning and kill the app. - In debug mode ensure that DeviceDiscoveryService#stopScan gets triggered 2.: - Start scanning and rotate the device while device chooser is visible - Ensure no visible loss of state is happening Change-Id: If126a2c963da90172a956fbd88e6b3dcd7ac8b01
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
6a7006a9683ba5a79ca338050c7c50b346b04de0 |
13-Mar-2017 |
Eugene Susla <eugenesusla@google.com> |
Register PackageMonitor for CompanionDeviceManagerService 1. On package removed -> remove all its associations 2. On package updated -> if had associations, update special access permission in accordance with (potentially changed) permission entries in manifest Bug: 30932767 Test: 1. Remove app, and ensure xml entries for it got removed. 2. adb install new version of app without special permissions in manifest, and ensure whitelist removal method got called Change-Id: I87261c05ddcf40a18332d160b44ee2f8284df5e4
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
36e866b8e0ec08e45b5e7fbc65aeeb3a9bb7b11e |
24-Feb-2017 |
Eugene Susla <eugenesusla@google.com> |
Support multiple filters per association request By supporting multiple filters per one request we should be able to cover multiple kinds of use cases such as: - Letting the user select from a list of devices of more then one medium type (e.g. Bluetooth and BLE) - Allowing to provide multiple criteria for any field (e.g. filtering by more than one service UUID) Bug: 30932767 Test: Provide multiple filters and ensure that devices matching either are shown in the list to choose from. Ensure wifi SSIDs are shown in the list if wifi filter is provided Change-Id: I0a978787551a1ee5750ec5544b241d3bbfed5a7c
ndroidManifest.xml
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
d66c95fa907dc9eb3d7238fbbf3dc6dbd4b243a0 |
09-Mar-2017 |
Hector Tellez <htellez@google.com> |
Revert "Support multiple filters per association request" This reverts commit e70e6aa62c6f3a9a79624a4f9d97df95edda0364. Change-Id: I12857cbbea0a0c74521191ab5e3713db230626ab
ndroidManifest.xml
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
e70e6aa62c6f3a9a79624a4f9d97df95edda0364 |
24-Feb-2017 |
Eugene Susla <eugenesusla@google.com> |
Support multiple filters per association request By supporting multiple filters per one request we should be able to cover multiple kinds of use cases such as: - Letting the user select from a list of devices of more then one medium type (e.g. Bluetooth and BLE) - Allowing to provide multiple criteria for any field (e.g. filtering by more than one service UUID) Bug: 30932767 Test: Provide multiple filters and ensure that devices matching either are shown in the list to choose from. Ensure wifi SSIDs are shown in the list if wifi filter is provided Change-Id: I6621da388e2bf4ed97c5af2692629a321d0b63c7
ndroidManifest.xml
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
47aafbe033202ccc2c0ea9af2b0f1596ebed4373 |
13-Feb-2017 |
Eugene Susla <eugenesusla@google.com> |
Record app<->device association to xml file Bug: 30932767 Test: Ensure file not exists -> query associations -> ensure result is empty list Associate device -> cat xml file -> ensure record appears as extected Disassociate device -> cat xml file -> ensure record is no longer present Change-Id: Ibe456a6d9292e05e2391f5138e43fdaa37f87e1b
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
da0acdf938f1d6e7a978e143d5d80d8dd5af52ad |
15-Feb-2017 |
Svet Ganov <svetoslavganov@google.com> |
Auto-grant background execution and data access Companion apps can declare they want background access and background execution exceptions via dedicated permissions in their manifest. If such a permission is requested we auto-grant the corresponding exception after the user has chosen a device from the companion UI. These permissions are appop ones allowing us to use the app ops for gauging whether the user has made a change after we auto-granted the permission since we would like to revoke these special privileges when the app disassociates itself from the companion device if the user did not make an excplicit choice otherwise. While at this auto-grant fixed location permission to the companion device discovery service. Test: manual Change-Id: I46ee4291e5e5a8f7613f0dd75eb61d6b9341f306
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
d44f9334ed8b4afc08f70099c46301525b1f8d71 |
06-Feb-2017 |
Eugene Susla <eugenesusla@google.com> |
Companion device chooser UI enchancements Test: Ensure the device chooser dialog looks nicer. Bug: 30932767 Change-Id: I62e6437e26f229aedb051998a8745a6e1918dbdc
ndroidManifest.xml
es/drawable/dialog_background.xml
es/layout/buttons.xml
es/layout/device_chooser.xml
es/layout/device_confirmation.xml
es/layout/title.xml
es/values/strings.xml
es/values/styles.xml
es/values/themes.xml
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|
6ed45d8cd33c297e608aba94fc1f61dace7a7cca |
22-Jan-2017 |
Eugene Susla <eugenesusla@google.com> |
CompanionDeviceManager This introduces an API for apps that support companion devices to provide a more streamlined flow for pairing and setting up the device Bug: 30932767 Test: Using a toy app, invoke the newly introduced API (CompanionDeviceManager), and go through the flow. Ensure filtering works, and device is returned to the calling app. Ensure the calling app can pair to the selected device. Change-Id: I0aeb653afd65e4adead13ea9c7248ec20971b04a
ndroid.mk
ndroidManifest.xml
ODULE_LICENSE_APACHE2
OTICE
es/layout/device_chooser.xml
es/values/dimens.xml
es/values/strings.xml
es/values/themes.xml
rc/com/android/companiondevicemanager/DeviceChooserActivity.java
rc/com/android/companiondevicemanager/DeviceDiscoveryService.java
|