OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Usb
(Results
1 - 5
of
5
) sorted by null
/frameworks/base/core/java/android/hardware/
Usb.java
21
* Class for accessing
USB
state information.
24
public class
Usb
{
26
* Broadcast Action: A broadcast for
USB
connected events.
30
* Possible
USB
function names include {@link #USB_FUNCTION_MASS_STORAGE},
37
* Broadcast Action: A broadcast for
USB
disconnected events.
43
* Broadcast Action: A sticky broadcast for
USB
state change events.
45
* This is a sticky broadcast for clients that are interested in both
USB
connect and
49
*
USB
is connected or disconnected.
52
* Possible
USB
function names include {@link #USB_FUNCTION_MASS_STORAGE},
59
* Boolean extra indicating whether
USB
is connected or disconnected
[
all
...]
/frameworks/base/services/java/com/android/server/
UsbObserver.java
22
import android.hardware.
Usb
;
37
* <p>UsbObserver monitors for changes to
USB
state.
53
// lists of enabled and disabled
USB
functions
74
Slog.v(TAG, "
USB
UEVENT: " + event.toString());
124
Slog.w(TAG, "This kernel does not have
USB
configuration switch support");
144
Slog.w(TAG, "This kernel does not have
USB
composite class support");
163
// include state of all
USB
functions in our extras
165
intent.putExtra(mEnabledFunctions.get(i),
Usb
.USB_FUNCTION_ENABLED);
168
intent.putExtra(mDisabledFunctions.get(i),
Usb
.USB_FUNCTION_DISABLED);
181
Slog.i(TAG, "Device not provisioned, skipping
USB
broadcast")
[
all
...]
NotificationManagerService.java
41
import android.hardware.
Usb
;
355
} else if (action.equals(
Usb
.ACTION_USB_STATE)) {
357
boolean usbConnected = extras.getBoolean(
Usb
.USB_CONNECTED);
358
boolean adbEnabled = (
Usb
.USB_FUNCTION_ENABLED.equals(
359
extras.getString(
Usb
.USB_FUNCTION_ADB)));
361
} else if (action.equals(
Usb
.ACTION_USB_DISCONNECTED)) {
467
filter.addAction(
Usb
.ACTION_USB_STATE);
[
all
...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
UsbStorageActivity.java
17
package com.android.systemui.
usb
;
33
import android.hardware.
Usb
;
56
* This activity is shown to the user for him/her to enable
USB
mass storage
57
* on-demand (that is, when the
USB
cable is connected). It uses the alert
81
/** Used to detect when the
USB
cable is unplugged, so we can call finish() */
85
if (intent.getAction().equals(
Usb
.ACTION_USB_STATE)) {
171
registerReceiver(mUsbStateReceiver, new IntentFilter(
Usb
.ACTION_USB_STATE));
195
boolean connected = intent.getExtras().getBoolean(
Usb
.USB_CONNECTED);
249
// will be hidden once
USB
mass storage kicks in (or fails)
/frameworks/base/services/java/com/android/server/connectivity/
Tethering.java
29
import android.hardware.
Usb
;
111
private boolean mUsbMassStorageOff; // track the status of
USB
Mass Storage
112
private boolean mUsbConnected; // track the status of
USB
connection
119
// Time to delay before processing
USB
disconnect events
146
filter.addAction(
Usb
.ACTION_USB_STATE);
187
boolean
usb
= false;
192
usb
= true;
200
sm = new TetherInterfaceSM(iface, mLooper,
usb
);
231
boolean
usb
= false;
237
usb
= true
[
all
...]
Completed in 86 milliseconds