OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:accessory
(Results
1 - 23
of
23
) sorted by null
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
UsbDisconnectedReceiver.java
29
// if their device/
accessory
is disconnected while the dialog is still open
43
public UsbDisconnectedReceiver(Activity activity, UsbAccessory
accessory
) {
45
mAccessory =
accessory
;
60
UsbAccessory
accessory
=
local
62
if (
accessory
!= null &&
accessory
.equals(mAccessory)) {
/frameworks/base/libs/usb/src/com/android/future/usb/
UsbAccessory.java
20
* A class representing a USB
accessory
.
31
/* package */ UsbAccessory(android.hardware.usb.UsbAccessory
accessory
) {
32
mManufacturer =
accessory
.getManufacturer();
33
mModel =
accessory
.getModel();
34
mDescription =
accessory
.getDescription();
35
mVersion =
accessory
.getVersion();
36
mUri =
accessory
.getUri();
37
mSerial =
accessory
.getSerial();
41
* Returns the manufacturer of the
accessory
.
43
* @return the
accessory
manufacture
106
UsbAccessory
accessory
= (UsbAccessory)obj;
local
[
all
...]
UsbManager.java
40
* Broadcast Action: A broadcast for USB
accessory
attached event.
42
* This intent is sent when a USB
accessory
is attached.
44
* {@link com.google.android.usb.UsbAccessory} for the attached
accessory
.
50
* Broadcast Action: A broadcast for USB
accessory
detached event.
52
* This intent is sent when a USB
accessory
is detached.
54
* {@link com.google.android.usb.UsbAccessory} for the attached
accessory
that was detached.
88
* broadcast Intent. This can also be used to retrieve the
accessory
from the result
94
android.hardware.usb.UsbAccessory
accessory
=
local
96
if (
accessory
== null) {
99
return new UsbAccessory(
accessory
);
111
android.hardware.usb.UsbAccessory
accessory
= mService.getCurrentAccessory();
local
[
all
...]
/frameworks/base/core/java/android/hardware/usb/
UsbAccessory.java
23
* A class representing a USB
accessory
, which is an external hardware component
25
* The
accessory
is the USB host and android the device side of the USB connection.
27
* <p>When the
accessory
connects, it reports its manufacturer and model names,
28
* the version of the
accessory
, and a user visible description of the
accessory
to the device.
30
* an appropriate application for the
accessory
.
31
* The
accessory
may optionally provide a unique serial number
32
* and a URL to for the
accessory
's website to the device as well.
37
* for reading and writing data to and from the
accessory
.
97
* Returns the manufacturer name of the
accessory
162
UsbAccessory
accessory
= (UsbAccessory)obj;
local
[
all
...]
UsbManager.java
67
*
accessory
function is enabled
120
* Broadcast Action: A broadcast for USB
accessory
attached event.
122
* This intent is sent when a USB
accessory
is attached.
125
* for the attached
accessory
132
* Broadcast Action: A broadcast for USB
accessory
detached event.
134
* This intent is sent when a USB
accessory
is detached.
137
* for the attached
accessory
that was detached
227
* Name of the
Accessory
USB function.
232
public static final String USB_FUNCTION_ACCESSORY = "
accessory
";
261
* containing the {@link UsbAccessory} object for the
accessory
340
UsbAccessory
accessory
= mService.getCurrentAccessory();
local
[
all
...]
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/
AccessoryChat.java
67
UsbAccessory
accessory
= (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
69
if (
accessory
!= null) {
70
openAccessory(
accessory
);
73
Log.d(TAG, "permission denied for
accessory
" +
accessory
);
103
UsbAccessory
accessory
= (accessories == null ? null : accessories[0]);
local
104
if (
accessory
!= null) {
105
if (mUsbManager.hasPermission(
accessory
)) {
106
openAccessory(
accessory
);
110
mUsbManager.requestPermission(
accessory
, mPermissionIntent)
[
all
...]
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
SourceActivity.java
44
private static final String MODEL = "
Accessory
Display";
71
mLogger.log("Waiting for
accessory
display sink to be attached to USB...");
82
UsbAccessory
accessory
=
local
84
if (
accessory
!= null) {
85
onAccessoryAttached(
accessory
);
90
for (UsbAccessory
accessory
: accessories) {
91
onAccessoryAttached(
accessory
);
116
private void onAccessoryAttached(UsbAccessory
accessory
) {
117
mLogger.log("USB
accessory
attached: " +
accessory
);
216
UsbAccessory
accessory
= intent.<UsbAccessory>getParcelableExtra(
local
[
all
...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/
UsbAccessoryTestActivity.java
52
* Test for USB accessories. The test activity interacts with a cts-usb-
accessory
program that
53
* acts as an
accessory
by exchanging a series of messages.
82
// Don't allow a test pass until the
accessory
and the Android device exchange messages...
142
UsbAccessory
accessory
= intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
local
144
openAccessory(
accessory
);
153
private void openAccessory(UsbAccessory
accessory
) {
154
mFileDescriptor = mUsbManager.openAccessory(
accessory
);
298
UsbAccessory
accessory
= accessories != null && accessories.length > 0
local
301
if (
accessory
!= null) {
302
if (mUsbManager.hasPermission(
accessory
)) {
[
all
...]
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/
DemoKitActivity.java
128
UsbAccessory
accessory
= UsbManager.getAccessory(intent);
131
openAccessory(
accessory
);
133
Log.d(TAG, "permission denied for
accessory
"
134
+
accessory
);
139
UsbAccessory
accessory
= UsbManager.getAccessory(intent);
140
if (
accessory
!= null &&
accessory
.equals(mAccessory)) {
188
UsbAccessory
accessory
= (accessories == null ? null : accessories[0]);
local
189
if (
accessory
!= null) {
190
if (mUsbManager.hasPermission(
accessory
)) {
[
all
...]
/frameworks/base/services/usb/java/com/android/server/usb/
UsbSettingsManager.java
87
// Temporary mapping UsbAccessory to list of UIDs with permissions for the
accessory
369
// This class is used to describe a USB
accessory
.
374
// USB
accessory
manufacturer (or null for unspecified)
376
// USB
accessory
model (or null for unspecified)
378
// USB
accessory
version (or null for unspecified)
387
public AccessoryFilter(UsbAccessory
accessory
) {
388
mManufacturer =
accessory
.getManufacturer();
389
mModel =
accessory
.getModel();
390
mVersion =
accessory
.getVersion();
416
serializer.startTag(null, "usb-
accessory
");
456
UsbAccessory
accessory
= (UsbAccessory)obj;
local
[
all
...]
/external/robolectric/lib/main/
android.jar
/prebuilts/sdk/12/
android.jar
/prebuilts/sdk/13/
android.jar
/prebuilts/sdk/14/
android.jar
/prebuilts/sdk/15/
android.jar
/prebuilts/sdk/17/
android.jar
/prebuilts/sdk/18/
android.jar
/prebuilts/sdk/19/
android.jar
/prebuilts/sdk/21/
android.jar
/external/owasp/sanitizer/tools/findbugs/lib/
findbugs.jar
/prebuilts/tools/common/m2/repository/com/google/code/findbugs/findbugs/2.0.1/
findbugs-2.0.1.jar
/prebuilts/tools/common/m2/repository/com/google/code/findbugs/findbugs/2.0.3/
findbugs-2.0.3.jar
/prebuilts/tools/common/m2/repository/com/google/code/findbugs/findbugs/3.0.0/
findbugs-3.0.0.jar
Completed in 652 milliseconds