Home
last modified time | relevance | path

Searched refs:connected (Results 1 – 25 of 104) sorted by relevance

12345

/frameworks/base/core/java/android/os/storage/
DIMountServiceListener.java70 boolean connected; in onTransact()
71 connected = (0 != data.readInt()); in onTransact()
72 this.onUsbMassStorageConnectionChanged(connected); in onTransact()
112 … public void onUsbMassStorageConnectionChanged(boolean connected) throws RemoteException { in onUsbMassStorageConnectionChanged() argument
117 _data.writeInt(((connected) ? (1) : (0))); in onUsbMassStorageConnectionChanged()
164 public void onUsbMassStorageConnectionChanged(boolean connected) throws RemoteException; in onUsbMassStorageConnectionChanged() argument
DStorageEventListener.java29 public void onUsbMassStorageConnectionChanged(boolean connected) { in onUsbMassStorageConnectionChanged() argument
DMountServiceListener.java30 void onUsbMassStorageConnectionChanged(boolean connected) { in onUsbMassStorageConnectionChanged() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java71 final boolean connected = mStorageManager.isUsbMassStorageConnected(); in StorageNotification()
79 onUsbMassStorageConnectionChanged(connected); in StorageNotification()
86 public void onUsbMassStorageConnectionChanged(final boolean connected) { in onUsbMassStorageConnectionChanged() argument
90 onUsbMassStorageConnectionChangedAsync(connected); in onUsbMassStorageConnectionChanged()
95 private void onUsbMassStorageConnectionChangedAsync(boolean connected) { in onUsbMassStorageConnectionChangedAsync() argument
96 mUmsAvailable = connected; in onUsbMassStorageConnectionChangedAsync()
103 Slog.i(TAG, String.format("UMS connection changed to %s (media state %s)", connected, st)); in onUsbMassStorageConnectionChangedAsync()
105 if (connected && (st.equals( in onUsbMassStorageConnectionChangedAsync()
110 connected = false; in onUsbMassStorageConnectionChangedAsync()
112 updateUsbMassStorageNotification(connected); in onUsbMassStorageConnectionChangedAsync()
/frameworks/base/libs/storage/
DIMountServiceListener.cpp33 bool connected = (data.readInt32() != 0); in onTransact() local
34 onUsbMassStorageConnectionChanged(connected); in onTransact()
/frameworks/base/docs/html/tools/adk/
Daoa.jd10 <li><a href="#wait">Wait for and detect connected devices</a></li>
29 in accessory mode, the connected accessory acts as the USB host (powers the bus and enumerates
53 <li>Wait for and detect connected devices</li>
64 <h3 id="wait">Wait for and detect connected devices</h3>
67 for connected Android-powered devices. When a device is connected, your accessory should
73 <p>When an Android-powered device is connected, it can be in one of three states:</p>
84 connected device's USB device descriptor. The vendor ID should match Google's ID (0x18D1) and the
164 <p>After sending the final control request, the connected USB device should re-introduce itself
165 on the bus in accessory mode and the accessory can re-enumerate the connected devices. The
173 accessory should wait for the next device to be connected.</p>
Dadk.jd30 <li><a href="#wait-adk">Wait for and detect connected devices</a></li>
32 <li><a href="#determine-adk">Determine the connected device's accessory mode
143 enumerate the bus, find a connected Android-powered device that supports accessory mode, and
334 connected to your computer for power (this also allows you to <a href="#monitoring">monitor the
335 ADK board</a>). When connected, accept the prompt that asks for whether or not to open the
341 the servos are connected) or by pressing the relay buttons in the application. On the ADK shield,
382 <h3 id="wait-adk">Wait for and detect connected devices</h3>
385 repeatedly and calls <code>AndroidAccessory::isConnected()</code> to check for any connected
386 devices. If there is a connected device, it continuously updates the input and output streams
387 going to and from the board and application. If nothing is connected, it continuously checks for
[all …]
/frameworks/base/core/java/android/server/
DBluetoothEventLoop.java925 boolean connected = false; in onInputDeviceConnectionResult()
930 connected = true; in onInputDeviceConnectionResult()
932 connected = false; in onInputDeviceConnectionResult()
936 connected = false; in onInputDeviceConnectionResult()
939 connected = true; in onInputDeviceConnectionResult()
944 mBluetoothService.handleInputDevicePropertyChange(address, connected); in onInputDeviceConnectionResult()
962 boolean connected = false; in onPanDeviceConnectionResult()
967 connected = true; in onPanDeviceConnectionResult()
969 connected = false; in onPanDeviceConnectionResult()
973 connected = false; in onPanDeviceConnectionResult()
[all …]
/frameworks/base/tests/CoreTests/android/core/
DSocketTest.java250 private boolean connected; field in SocketTest
269 connected = true; in disable_testSocketConnectClose()
276 Assert.assertFalse("Connect must not succeed. Maybe try different address.", connected); in disable_testSocketConnectClose()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothController.java81 final boolean connected = (connectionState == BluetoothAdapter.STATE_CONNECTED); in handleConnectionStateChange()
82 if (connected) { in handleConnectionStateChange()
/frameworks/base/core/java/android/app/
DIServiceConnection.aidl24 void connected(in ComponentName name, IBinder service); in connected() method
/frameworks/base/docs/html/guide/topics/connectivity/usb/
Dhost.jd40 and enumerates connected USB devices. USB host mode is supported in Android 3.1 and higher.</p>
59 <td>Allows you to enumerate and communicate with connected USB devices.</td>
65 <td>Represents a connected USB device and contains methods to access its identifying
197 whether your application is interested in the connected device. If so, you can set up
201 <li>Discover connected USB devices by using an intent filter to be notified when the user
202 connects a USB device or by enumerating USB devices that are already connected.</li>
213 the user connects a device or by enumerating USB devices that are already connected. Using an
215 desired device. Enumerating connected USB devices is useful if you want to get a list of all
216 connected devices or if your application did not filter for an intent.</p>
259 <p>If your application is interested in inspecting all of the USB devices currently connected
[all …]
Daccessory.jd59 accessory acts as the host, provides power to the USB bus, and enumerates connected devices.
119 <td>Allows you to enumerate and communicate with connected USB accessories.</td>
147 <p>When you filter for a connected accessory with an intent filter, the {@link
245 determine whether your application is interested in the connected accessory. If so, you can set
249 <li>Discover connected accessories by using an intent filter that filters for accessory
250 attached events or by enumerating connected accessories and finding the appropriate one.</li>
262 the user connects an accessory or by enumerating accessories that are already connected. Using an
264 desired accessory. Enumerating connected accessories is useful if you want to get a list of all
265 connected accessories or if your application did not filter for an intent.</p>
315 to get an array all the USB accessories that are connected:</p>
[all …]
Dindex.jd31 accessory mode, the connected USB hardware (an Android USB accessory in this case) acts as the
51 USB hardware connected to your Android-powered device. This will prevent you from having an
62 <li>Enter <code>adb connect &lt;device-ip-address&gt;:5555</code> You should now be connected
/frameworks/base/docs/html/about/versions/
Dandroid-3.1-highlights.jd87 <p>Android 3.1 adds broad platform support for a variety of USB-connected
133 driver is needed, in most cases. When multiple devices are connected, users can
139 trackballs. When these are connected, users can interact with the UI using
145 most PC joysticks and gamepads that are connected over USB or Bluetooth HID.</p>
243 only when the device is connected to a Wi-Fi access point. </p>
252 <p>Users can now configure an HTTP proxy for each connected Wi-Fi access point.
255 when the Wi-Fi access point is connected, and may optionally be used by other
280 and identifying connected hardware, as well as for notifying interested
290 is available for interacting with the connected hardware. </p>
294 connected hardware.</p>
[all …]
Dandroid-2.3.4.jd54 connected peripherals with applications running on the platform. The capability
64 types connected over USB. It also provides the implementation of the API against
89 &mdash; When you filter for a connected device or accessory with an intent
102 a peripheral only, with the connected accessory functioning as USB host
113 accessories support, for runtime testing against connected devices</li>
/frameworks/native/include/private/gui/
DSharedBufferStack.h46 uint8_t connected; member
/frameworks/base/include/storage/
DIMountServiceListener.h29 virtual void onUsbMassStorageConnectionChanged(const bool connected) = 0;
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp534 uint32_t connected = cblk->connected; in getNumberOfDisplays() local
536 while (connected) { in getNumberOfDisplays()
537 if (connected&1) n++; in getNumberOfDisplays()
538 connected >>= 1; in getNumberOfDisplays()
/frameworks/base/core/java/android/ddm/
DDdmHandleExit.java49 public void connected() {} in connected() method in DdmHandleExit
DDdmHandleNativeHeap.java49 public void connected() {} in connected() method in DdmHandleNativeHeap
DDdmHandleAppName.java50 public void connected() {} in connected() method in DdmHandleAppName
/frameworks/base/docs/html/training/monitoring-device-state/
Dconnectivity-monitoring.jd35 But if you aren't connected to the Internet, or the connection is too slow to complete your
39 connected to the Internet, and if so, what type of connection is in place.</p>
44 <p>There's no need to schedule an update based on an Internet resource if you aren't connected to
Dmanifest-receivers.jd58 your receivers except the connectivity-change receiver. Conversely, once you are connected you can
64 download only after you are connected to Wi-Fi.</p>
/frameworks/base/services/java/com/android/server/usb/
DUsbDeviceManager.java377 int connected, configured; in updateState() local
380 connected = 0; in updateState()
383 connected = 1; in updateState()
386 connected = 1; in updateState()
394 msg.arg1 = connected; in updateState()
397 sendMessageDelayed(msg, (connected == 0) ? UPDATE_DELAY : 0); in updateState()

12345