Commit Graph

9 Commits

Author SHA1 Message Date
Wu, Hao
b76be1f8d4 UsbSetting: The behavior is not right when enable/disable MTP/PTP with Accessory board connected.
Add accessory flag to track accessory status. Disable MTP/PTP button
when Usb is working in accessory mode.

Change-Id: I3edcd2a7eb281db3bb9d345429643b77a237812e
Author: Wu, Hao <hao.wu@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 27200
2012-08-16 14:45:55 +08:00
Amith Yamasani
df5ab21d21 am ae69755a: Disable USB connection type when monkeys are running.
* commit 'ae69755aa874dbac77e9874d9716ab891a144193':
  Disable USB connection type when monkeys are running.
2011-09-27 13:10:47 -07:00
Amith Yamasani
ae69755aa8 Disable USB connection type when monkeys are running.
Bug: 5375336

Also use the correct API for testing if monkeys are running.
(ActivityManager.isUserAMonkey())

Bug: 5375910
Change-Id: I2bf8e061ee5977d521de197d3a92095c1a98218d
2011-09-27 11:33:17 -07:00
Mike Lockwood
ed9d461818 Fix race condition in MTP/PTP checkbox updating
UsbManager.getDefaultFunction() might not return the updated state immediately
after changing the USB configuration, so do not rely on it for updating
after a checkbox has been clicked.

Change-Id: I5ae8d46854f24403cda2c62e006c742dcd257d1d
Bug: 5334777

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-09-18 17:52:54 -04:00
Mike Lockwood
688605ec02 USB: Fix problem updating status of MTP/PTP checkboxes
Change-Id: Idc12e8cce2cde6aca71e05943e2f2d9a0becce6c
Bug: 5108883

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-02 12:56:56 -04:00
Mike Lockwood
37481d731a USB Settings: Remove AFT installer CD; add help text to MTP and PTP widget summary
Bug: 4335199

Change-Id: I5f2a5d650a184b528028596e03e01ea98bf3815f

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-01 09:53:37 -04:00
Mike Lockwood
23a006236b USB: Add dialog with instructions for installing AFT
Bug: 5032807

Change-Id: Ic7737629c6081a3d6192e060da525fcc4c494919
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-07-20 11:55:34 -07:00
Mike Lockwood
6d11dc5c8c USB: Toggle installer CD menu title when installer CD is enabled/disabled
Bug: 5032789

Change-Id: I0710133b2318147c7556e9f970f4443511ee1729
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-07-18 15:58:46 -07:00
Mike Lockwood
02900a12b1 Super rough implementation of new USB settings
There does not seem to be a way to implement radio buttons in a settings screen,
so I am using check boxes as a temporary hack.

Change-Id: I2d2c7931f689ff04608662b64aafc4862cfef48e
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-07-06 10:56:13 -04:00