14b3375e43d29d353ce6966a9200f09f26592cf3 |
14-Apr-2017 |
Alan Viverette <alanv@google.com> |
Merge "Remove unnecessary casts on calls to findViewById" into oc-dev am: 7c8ab2651b am: efc602c307 Change-Id: Id991d413933d8435a05b129bf13e917941371c01
|
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/hardware/usb/externalmanagementtest/UsbHostManagementActivity.java
|
492e9e851cadca62df84eaff1a3c1ba788492fba |
22-Mar-2017 |
Narayan Kamath <narayan@google.com> |
Properly guard access to CloseGuard in finalizers. CloseGuard instances are allocated in constructors and usually assigned to final fields. This implies they're non-null in finalizers except in the case where the constructor throws. We add a null check to make sure we can continue cleaning up other state in the finalizer (if applicable). Also, this change decouples closeguard warnings in constructors from other state based logic. This because the logic there is usually duplicated with the call to close(). NOTE: This change is not a "complete" fix. Many of these finalizers are broken in the case where <init> throws. The only objective of this change is to make such errors more obvious. Note that some of these classes don't have CTS tests. Test: make, CtsMediaTestCases. Bug: 35609098 Change-Id: I24d9e0215f80e44914dba8ab99b6312fd6ed1fc0
rc/com/android/hardware/usb/externalmanagementtest/UsbDeviceStateController.java
|
badbbae6fa2846415778b2a152a0758acbf0eb74 |
05-Jan-2016 |
Keun-young Park <keunyoung@google.com> |
allow external USB host management - Setting config_UsbDeviceConnectionHandling_component leads into launching specified Activity whenever USB device is connected. - This allows external Activity to manage USB device based on its own setup and settings. - Device access can be passed to other app with permission update by UsbManager.grantPermission. - added UsbDeviceConnection.resetDevice() to reset USB device connected. This is necessary to get device out from AOAP. - Test requires installing UsbHostExternalManagmentTestApp and AoapTestHost to USB host, and AoapTestDevice to USB Device. bug: 26404209 Change-Id: I8e77ddc646c15454d9b2ecf1356924cf6351fc28
ndroid.mk
ndroidManifest.xml
es/layout/host_management.xml
es/values/strings.xml
rc/com/android/hardware/usb/externalmanagementtest/AoapInterface.java
rc/com/android/hardware/usb/externalmanagementtest/UsbDeviceStateController.java
rc/com/android/hardware/usb/externalmanagementtest/UsbHostManagementActivity.java
rc/com/android/hardware/usb/externalmanagementtest/UsbUtil.java
|