Searched refs:device (Results 1 - 25 of 130) sorted by relevance

123456

/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/device/
H A DWindowUpdater.java17 package com.android.hierarchyviewerlib.device;
26 * This class handles automatic updating of the list of windows in the device
27 * selector for device with protocol version 3 or above of the view server. It
38 public void windowsChanged(IDevice device); argument
40 public void focusChanged(IDevice device); argument
45 for (IDevice device : sListeningThreads.keySet()) {
46 sListeningThreads.get(device).interrupt();
52 public static void startListenForWindowChanges(IWindowChangeListener listener, IDevice device) { argument
56 if (sWindowChangeListeners.containsKey(device)) {
57 sWindowChangeListeners.get(device)
72 stopListenForWindowChanges(IWindowChangeListener listener, IDevice device) argument
91 getWindowChangeListenersAsArray(IDevice device) argument
106 notifyWindowsChanged(IDevice device) argument
115 notifyFocusChanged(IDevice device) argument
125 private IDevice device; field in class:WindowUpdater.WindowChangeMonitor
127 WindowChangeMonitor(IDevice device) argument
[all...]
H A DWindow.java17 package com.android.hierarchyviewerlib.device;
22 * Used for storing a window from the window manager service on the device.
23 * These are the windows that the device selector shows.
33 public Window(IDevice device, String title, int hashCode) { argument
34 this.mDevice = device;
60 public static Window getFocusedWindow(IDevice device) { argument
61 return new Window(device, "<Focused Window>", -1);
65 * After each refresh of the windows in the device selector, the windows are
67 * work in the device selector unless the equals method is defined here.
H A DDeviceBridge.java17 package com.android.hierarchyviewerlib.device;
47 * A bridge to the device.
132 * Sets up a just-connected device to work with the view server.
135 * device.
137 * @param device
139 public static void setupDeviceForward(IDevice device) { argument
141 if (device.getState() == IDevice.DeviceState.ONLINE) {
144 device.createForward(localPort, DEFAULT_SERVER_PORT);
145 sDevicePortMap.put(device, localPort);
147 Log.e(TAG, "Timeout setting up port forwarding for " + device);
159 removeDeviceForward(IDevice device) argument
178 getDeviceLocalPort(IDevice device) argument
191 isViewServerRunning(IDevice device) argument
217 startViewServer(IDevice device) argument
221 startViewServer(IDevice device, int port) argument
240 stopViewServer(IDevice device) argument
297 loadViewServerInfo(IDevice device) argument
340 getViewServerInfo(IDevice device) argument
346 removeViewServerInfo(IDevice device) argument
356 loadWindows(IDevice device) argument
413 getFocusedWindow(IDevice device) argument
[all...]
/sdk/monkeyrunner/scripts/
H A Dmonkey_recorder.py19 device = mr.waitForConnection() variable
20 recorder.start(device)
H A Dmonkey_playback.py38 # Process a single file for the specified device.
39 def process_file(fp, device):
53 CMD_MAP[cmd](device, rest)
60 device = MonkeyRunner.waitForConnection()
62 process_file(fp, device)
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/device/
H A DConfiguration.java17 package com.android.hierarchyviewer.device;
H A DDeviceBridge.java17 package com.android.hierarchyviewer.device;
64 public static boolean isViewServerRunning(IDevice device) { argument
68 if (device.isOnline()) {
69 device.executeShellCommand(buildIsServerRunningShellCommand(),
72 if (VersionLoader.loadProtocolVersion(device) > 2) {
89 public static boolean startViewServer(IDevice device) { argument
90 return startViewServer(device, Configuration.DEFAULT_SERVER_PORT);
93 public static boolean startViewServer(IDevice device, int port) { argument
97 if (device.isOnline()) {
98 device
113 stopViewServer(IDevice device) argument
142 setupDeviceForward(IDevice device) argument
164 removeDeviceForward(IDevice device) argument
186 getDeviceLocalPort(IDevice device) argument
[all...]
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/
H A DLogCatReceiverFactory.java29 * constructed {@link LogCatReceiver}'s per device and hand them back when requested.
41 public void deviceDisconnected(final IDevice device) {
52 removeReceiverFor(device); }
53 }, "Remove logcat receiver for " + device.getSerialNumber());
58 public void deviceConnected(IDevice device) {
62 public void deviceChanged(IDevice device, int changeMask) {
77 private synchronized void removeReceiverFor(IDevice device) { argument
78 LogCatReceiver r = mReceiverCache.get(device.getSerialNumber());
81 mReceiverCache.remove(device.getSerialNumber());
85 public synchronized LogCatReceiver newReceiver(IDevice device, IPreferenceStor argument
[all...]
H A DLogCatPidToNameMapper.java30 * running apps on a device. It does this by implementing callbacks to two events:
43 public LogCatPidToNameMapper(IDevice device) { argument
44 mDevice = device;
53 updateClientList(device);
81 public void deviceDisconnected(IDevice device) {
85 public void deviceConnected(IDevice device) {
89 public void deviceChanged(IDevice device, int changeMask) {
91 updateClientList(device);
97 private void updateClientList(IDevice device) { argument
102 if (!mDevice.equals(device)) {
[all...]
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/models/
H A DDeviceSelectionModel.java20 import com.android.hierarchyviewerlib.device.DeviceBridge.ViewServerInfo;
21 import com.android.hierarchyviewerlib.device.Window;
27 * This class stores the list of windows for each connected device. It notifies
29 * in the device selector.
64 public boolean containsDevice(IDevice device) { argument
66 return mDeviceMap.containsKey(device);
70 public void addDevice(IDevice device, Window[] windows, ViewServerInfo info) { argument
72 mDeviceMap.put(device, new DeviceInfo(windows, info));
73 mDeviceList.add(device);
75 notifyDeviceConnected(device);
78 removeDevice(IDevice device) argument
98 updateDevice(IDevice device, Window[] windows) argument
131 updateFocusedWindow(IDevice device, int focusedWindow) argument
144 deviceConnected(IDevice device) argument
146 deviceChanged(IDevice device) argument
148 deviceDisconnected(IDevice device) argument
150 focusChanged(IDevice device) argument
152 selectionChanged(IDevice device, Window window) argument
168 notifyDeviceConnected(IDevice device) argument
177 notifyDeviceChanged(IDevice device) argument
186 notifyDeviceDisconnected(IDevice device) argument
195 notifyFocusChanged(IDevice device) argument
204 notifySelectionChanged(IDevice device, Window window) argument
231 getWindows(IDevice device) argument
245 getFocusedWindow(IDevice device) argument
255 setSelection(IDevice device, Window window) argument
[all...]
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
H A DViewManager.java20 import com.android.hierarchyviewer.device.Window;
21 import com.android.hierarchyviewer.device.DeviceBridge;
30 public static void invalidate(IDevice device, Window window, String params) { argument
31 sendCommand("INVALIDATE", device, window, params);
34 public static void requestLayout(IDevice device, Window window, String params) { argument
35 sendCommand("REQUEST_LAYOUT", device, window, params);
38 public static void outputDisplayList(IDevice device, Window window, String params) { argument
39 sendCommand("OUTPUT_DISPLAYLIST", device, window, params);
42 private static void sendCommand(String command, IDevice device, Window window, String params) { argument
49 DeviceBridge.getDeviceLocalPort(device)));
[all...]
H A DVersionLoader.java21 import com.android.hierarchyviewer.device.DeviceBridge;
32 public static int loadServerVersion(IDevice device) { argument
33 return loadVersion(device, "SERVER");
36 public static int loadProtocolVersion(IDevice device) { argument
37 return loadVersion(device, "PROTOCOL");
40 private static int loadVersion(IDevice device, String command) { argument
48 DeviceBridge.getDeviceLocalPort(device)));
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
H A DTraceOptions.java21 public final String device; field in class:TraceOptions
43 public TraceOptions(String device, String appPackage, String activity, argument
46 this.device = device;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/
H A DDeviceChoiceCache.java28 * {@link DeviceChoiceCache} maps a launch configuration name to the device selected for use
41 // verify that the device is still online
42 for (IDevice device : getOnlineDevices()) {
43 if (deviceName.equals(device.getAvdName()) ||
44 deviceName.equals(device.getSerialNumber())) {
45 return device;
49 // remove from cache if device is not online anymore
61 String device = null;
63 device = avd.getName();
65 device
[all...]
H A DILaunchController.java27 * Launches an application on a device or emulator
30 * @param device the device or emulator to launch the application on
32 public void launchApp(DelayedLaunchInfo launchInfo, IDevice device); argument
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
H A DDeviceMenuListener.java46 * The {@linkplain DeviceMenuListener} class is responsible for generating the device
60 @Nullable Device device) {
62 mDevice = device;
84 for (Device device : deviceList) {
85 if (device.getManufacturer().equals(avd.getDeviceManufacturer())
86 && device.getName().equals(avd.getDeviceName())) {
90 item.setSelection(current == device);
92 item.addSelectionListener(new DeviceMenuListener(chooser, device));
111 for (Device device : deviceList) {
113 if (isNexus(device)) {
58 DeviceMenuListener( @onNull ConfigurationChooser configChooser, @Nullable Device device) argument
233 getResolutionString(Device device) argument
242 isGeneric(Device device) argument
246 isNexus(Device device) argument
[all...]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/
H A DApkInstallManager.java34 * Registers which apk was installed on which device.
37 * information about whether a new APK should be installed on a device prior to running the
40 * The manager uses {@link IProject} and {@link IDevice} to identify the target device and the
51 * Internal struct to associate a project and a device.
54 public ApkInstall(IProject project, String packageName, IDevice device) { argument
57 this.device = device;
65 return (device == apkObj.device && project.equals(apkObj.project) &&
74 return (device
79 final IDevice device; field in class:ApkInstallManager.ApkInstall
122 registerInstallation(IProject project, String packageName, IDevice device) argument
134 isApplicationInstalled(IProject project, String packageName, IDevice device) argument
[all...]
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/
H A DHierarchyViewerDirector.java26 import com.android.hierarchyviewerlib.device.DeviceBridge;
27 import com.android.hierarchyviewerlib.device.DeviceBridge.ViewServerInfo;
28 import com.android.hierarchyviewerlib.device.ViewNode;
29 import com.android.hierarchyviewerlib.device.Window;
30 import com.android.hierarchyviewerlib.device.WindowUpdater;
31 import com.android.hierarchyviewerlib.device.WindowUpdater.IWindowChangeListener;
117 for (IDevice device : devices) {
118 deviceConnected(device);
133 public void deviceConnected(final IDevice device) { argument
134 executeInBackground("Connecting device", ne
164 loadViewServerInfoAndWindows(final IDevice device) argument
180 deviceDisconnected(final IDevice device) argument
204 deviceChanged(IDevice device, int changeMask) argument
211 windowsChanged(final IDevice device) argument
228 focusChanged(final IDevice device) argument
287 loadPixelPerfectData(final IDevice device) argument
303 getScreenshotImage(IDevice device) argument
[all...]
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/
H A DDeviceMonitor.java41 * A Device monitor. This connects to the Android Debug Bridge and get device and
178 Log.d("DeviceMonitor", "Connected to adb for device monitoring");
232 Device device = mDevices.get(0);
233 removeDevice(device);
234 mServer.deviceDisconnected(device);
297 * Processes an incoming device message from the socket
315 Device device = new Device(this, param[0] /*serialnumber*/,
318 //add the device to the list
319 list.add(device);
329 * Updates the device lis
429 removeDevice(Device device) argument
447 queryNewDeviceForInfo(Device device) argument
487 queryNewDeviceForMountingPoint(final Device device, final String name) argument
513 startMonitoringDevice(Device device) argument
680 sendDeviceMonitoringRequest(SocketChannel socket, Device device) argument
707 processIncomingJdwpData(Device device, SocketChannel monitorSocket, int length) argument
778 openClient(Device device, int pid, int port, MonitorThread monitorThread) argument
816 createClient(Device device, int pid, SocketChannel socket, int debuggerPort, MonitorThread monitorThread) argument
[all...]
/sdk/monkeyrunner/src/com/android/monkeyrunner/recorder/actions/
H A DAction.java42 * @param device the device to execute the action on.
44 void execute(IChimpDevice device) throws Exception; argument
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/actions/
H A DInspectScreenshotAction.java22 import com.android.hierarchyviewerlib.device.Window;
68 public void deviceChanged(IDevice device) { argument
73 public void deviceConnected(IDevice device) { argument
78 public void deviceDisconnected(IDevice device) { argument
83 public void focusChanged(IDevice device) { argument
88 public void selectionChanged(final IDevice device, final Window window) { argument
92 InspectScreenshotAction.getAction().setEnabled(device != null);
/sdk/chimpchat/src/com/android/chimpchat/adb/
H A DAdbBackend.java33 * Backend implementation that works over ADB to talk to the device.
37 // How long to wait each time we check for the device to be connected.
80 * Checks the attached devices looking for one whose device id matches the specified regex.
87 for (IDevice device : bridge.getDevices()) {
88 String serialNumber = device.getSerialNumber();
90 return device;
104 IDevice device = findAttachedDevice(deviceIdRegex);
105 // Only return the device when it is online
106 if (device != null && device
[all...]
/sdk/monkeyrunner/src/com/android/monkeyrunner/recorder/
H A DMonkeyRecorder.java46 * @param device
48 public static void start(final MonkeyDevice device) { argument
49 start(device.getImpl());
52 /* package */static void start(final IChimpDevice device) { argument
53 MonkeyRecorderFrame frame = new MonkeyRecorderFrame(device);
59 device.dispose();
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/devices/
H A DDeviceParserTest.java49 Device device = devices.get(0);
50 assertEquals("Galaxy Nexus", device.getName());
51 assertEquals("Samsung", device.getManufacturer());
54 Meta meta = device.getMeta();
60 Hardware hw = device.getDefaultHardware();
115 assertEquals(1, device.getAllSoftware().size());
116 Software sw = device.getSoftware(15);
127 assertEquals(2, device.getAllStates().size());
128 State s = device.getDefaultState();
135 s = device
[all...]
/sdk/emulator/qtools/tests/gtrace/
H A DMakefile4 QEMU=$(P4ROOT)/device/tools/qemu/arm-softmmu/qemu-system-arm
5 QTOOLS=$(P4ROOT)/device/tools/qtools
15 $(QTOOLS)/q2g -r $(P4ROOT)/device/out/linux-arm-release/symbols foo test.elf foo.gtrace

Completed in 5239 milliseconds

123456