Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 69) sorted by relevance

123

/sdk/hierarchyviewer/src/com/android/hierarchyviewer/device/
DDeviceBridge.java17 package com.android.hierarchyviewer.device;
64 public static boolean isViewServerRunning(IDevice device) { in isViewServerRunning() argument
68 if (device.isOnline()) { in isViewServerRunning()
69 device.executeShellCommand(buildIsServerRunningShellCommand(), in isViewServerRunning()
72 if (VersionLoader.loadProtocolVersion(device) > 2) { in isViewServerRunning()
89 public static boolean startViewServer(IDevice device) { in startViewServer() argument
90 return startViewServer(device, Configuration.DEFAULT_SERVER_PORT); in startViewServer()
93 public static boolean startViewServer(IDevice device, int port) { in startViewServer() argument
97 if (device.isOnline()) { in startViewServer()
98 device.executeShellCommand(buildStartServerShellCommand(port), in startViewServer()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
DDeviceMenuListener.java60 @Nullable Device device) { in DeviceMenuListener() argument
62 mDevice = device; in DeviceMenuListener()
84 for (Device device : deviceCollection) { in show()
85 if (device.getManufacturer().equals(avd.getDeviceManufacturer()) in show()
86 && device.getName().equals(avd.getDeviceName())) { in show()
90 item.setSelection(current == device); in show()
92 item.addSelectionListener(new DeviceMenuListener(chooser, device)); in show()
111 for (Device device : deviceCollection) { in show()
113 if (isNexus(device)) { in show()
115 } else if (!isGeneric(device)) { in show()
[all …]
DVaryingConfiguration.java228 Device device = mParent.getDevice(); in getDevice() local
229 if (isAlternatingDevice() && device != null) { in getDevice()
230 if (device == mPrevParentDevice) { in getDevice()
234 mPrevParentDevice = device; in getDevice()
268 double overriddenSize = getScreenSize(device); in getDevice()
288 device = d; in getDevice()
293 mPrevDevice = device; in getDevice()
296 return device; in getDevice()
306 private static Density getDensity(@NonNull Device device) { in getDensity() argument
307 Hardware hardware = device.getDefaultHardware(); in getDensity()
[all …]
DNestedConfiguration.java278 public void setDevice(Device device, boolean skipSync) { in setDevice() argument
280 super.setDevice(device, skipSync); in setDevice()
282 mParent.setDevice(device, skipSync); in setDevice()
315 Device device = super.getDevice(); in getDeviceState() local
316 if (device != null) { in getDeviceState()
317 return device.getState(state.getName()); in getDeviceState()
332 Device device = super.getDevice(); in setDeviceState() local
333 if (device != null) { in setDeviceState()
334 State equivalentState = device.getState(state.getName()); in setDeviceState()
DConfiguration.java439 public void setDevice(Device device, boolean skipSync) { in setDevice() argument
440 mDevice = device; in setDevice()
552 Device device = getDevice(); in syncFolderConfig() local
553 if (device == null) { in syncFolderConfig()
621 Device device = getDevice(); in toPersistentString() local
622 if (device != null) { in toPersistentString()
623 sb.append(device.getName()); in toPersistentString()
685 Device device = getDevice(); in computePreferredTheme() local
686 if (device != null) { in computePreferredTheme()
687 List<State> states = device.getAllStates(); in computePreferredTheme()
[all …]
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/
DHierarchyViewer.java20 import com.android.hierarchyviewer.device.Window;
23 import com.android.hierarchyviewer.device.DeviceBridge;
71 for (IDevice device : DeviceBridge.getDevices()) { in listDevices()
72 printDevice(device); in listDevices()
77 private static void printDevice(IDevice device) { in printDevice() argument
78 System.out.println(device.toString() + "\t\t" + in printDevice()
79 (device.isEmulator() ? "emulator" : "device")); in printDevice()
83 IDevice device = selectDevice(deviceName); in outputPsd() local
84 if (device != null) { in outputPsd()
85 if (DeviceBridge.isViewServerRunning(device)) { in outputPsd()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/
DApkInstallManager.java54 public ApkInstall(IProject project, String packageName, IDevice device) { in ApkInstall() argument
57 this.device = device; in ApkInstall()
65 return (device == apkObj.device && project.equals(apkObj.project) && in equals()
74 return (device.getSerialNumber() + project.getName() + packageName).hashCode(); in hashCode()
79 final IDevice device; field in ApkInstallManager.ApkInstall
122 public void registerInstallation(IProject project, String packageName, IDevice device) { in registerInstallation() argument
124 mInstallList.add(new ApkInstall(project, packageName, device)); in registerInstallation()
134 public boolean isApplicationInstalled(IProject project, String packageName, IDevice device) { in isApplicationInstalled() argument
139 device == install.device) { in isApplicationInstalled()
149 found.device.executeShellCommand("pm path " + packageName, receiver); in isApplicationInstalled()
[all …]
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
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) { in invalidate() argument
31 sendCommand("INVALIDATE", device, window, params); in invalidate()
34 public static void requestLayout(IDevice device, Window window, String params) { in requestLayout() argument
35 sendCommand("REQUEST_LAYOUT", device, window, params); in requestLayout()
38 public static void outputDisplayList(IDevice device, Window window, String params) { in outputDisplayList() argument
39 sendCommand("OUTPUT_DISPLAYLIST", device, window, params); in outputDisplayList()
42 private static void sendCommand(String command, IDevice device, Window window, String params) { in sendCommand() argument
49 DeviceBridge.getDeviceLocalPort(device))); in sendCommand()
DVersionLoader.java21 import com.android.hierarchyviewer.device.DeviceBridge;
32 public static int loadServerVersion(IDevice device) { in loadServerVersion() argument
33 return loadVersion(device, "SERVER"); in loadServerVersion()
36 public static int loadProtocolVersion(IDevice device) { in loadProtocolVersion() argument
37 return loadVersion(device, "PROTOCOL"); in loadProtocolVersion()
40 private static int loadVersion(IDevice device, String command) { in loadVersion() argument
48 DeviceBridge.getDeviceLocalPort(device))); in loadVersion()
DProfilesLoader.java21 import com.android.hierarchyviewer.device.Window;
22 import com.android.hierarchyviewer.device.DeviceBridge;
33 public static double[] loadProfiles(IDevice device, Window window, String params) { in loadProfiles() argument
45 DeviceBridge.getDeviceLocalPort(device))); in loadProfiles()
DCaptureLoader.java20 import com.android.hierarchyviewer.device.Window;
21 import com.android.hierarchyviewer.device.DeviceBridge;
41 public static boolean saveLayers(IDevice device, Window window, File file) { in saveLayers() argument
50 DeviceBridge.getDeviceLocalPort(device))); in saveLayers()
129 public static Image loadCapture(IDevice device, Window window, String params) { in loadCapture() argument
137 DeviceBridge.getDeviceLocalPort(device))); in loadCapture()
DWindowsLoader.java20 import com.android.hierarchyviewer.device.DeviceBridge;
21 import com.android.hierarchyviewer.device.Window;
33 public static Window[] loadWindows(IDevice device, int protocol, int server) { in loadWindows() argument
44 DeviceBridge.getDeviceLocalPort(device))); in loadWindows()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
DCollectTraceAction.java106 IDevice device = getDevice(traceOptions.device); in connectToDevice() local
107 String apiLevelString = device.getProperty(IDevice.PROP_BUILD_API_LEVEL); in connectToDevice()
118 MIN_API_LEVEL, traceOptions.device, apiLevelString)); in connectToDevice()
123 setupForwarding(device, LOCAL_FORWARDED_PORT); in connectToDevice()
132 startActivity(device, traceOptions.appToTrace, traceOptions.activityToTrace, in connectToDevice()
146 disablePortForwarding(device, LOCAL_FORWARDED_PORT); in connectToDevice()
286 private void startActivity(IDevice device, String appPackage, String activity, in startActivity() argument
290 killApp(device, appPackage); // kill app if it is already running in startActivity()
291 waitUntilAppKilled(device, appPackage, KILL_TIMEOUT); in startActivity()
308 device.executeShellCommand(startAppCmd, receiver); in startActivity()
[all …]
DTraceOptions.java21 public final String device; field in TraceOptions
43 public TraceOptions(String device, String appPackage, String activity, in TraceOptions() argument
46 this.device = device; in TraceOptions()
/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/
DLogCatMonitor.java77 public void deviceDisconnected(IDevice device) { in LogCatMonitor()
78 unmonitorDevice(device.getSerialNumber()); in LogCatMonitor()
79 mMonitoredDevices.remove(device.getSerialNumber()); in LogCatMonitor()
83 public void deviceConnected(IDevice device) { in LogCatMonitor()
87 public void deviceChanged(IDevice device, int changeMask) { in LogCatMonitor()
106 for (String device : mMonitoredDevices.keySet()) { in unmonitorAllDevices()
107 unmonitorDevice(device); in unmonitorAllDevices()
122 public void monitorDevice(final IDevice device) { in monitorDevice() argument
130 if (mMonitoredDevices.keySet().contains(device.getSerialNumber())) { in monitorDevice()
135 LogCatReceiver r = LogCatReceiverFactory.INSTANCE.newReceiver(device, mPrefStore); in monitorDevice()
[all …]
DDdmsPlugin.java619 public void deviceConnected(IDevice device) { in deviceConnected() argument
625 handleDefaultSelection(device); in deviceConnected()
639 public void deviceDisconnected(IDevice device) { in deviceDisconnected() argument
645 if (mCurrentDevice == device) { in deviceDisconnected()
675 public void deviceChanged(IDevice device, int changeMask) { in deviceChanged() argument
682 if (device == mCurrentDevice) { in deviceChanged()
684 handleDefaultSelection(device); in deviceChanged()
687 Client[] clients = device.getClients(); in deviceChanged()
699 handleDefaultSelection(device); in deviceChanged()
736 private void handleDefaultSelection(final IDevice device) { in handleDefaultSelection() argument
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/
DDeviceChooserDialog.java115 for (IDevice device : devices) { in findCompatibleDevices()
116 AndroidVersion deviceVersion = Sdk.getDeviceVersion(device); in findCompatibleDevices()
118 compatibleDevices.add(device); in findCompatibleDevices()
145 IDevice device = (IDevice)element; in getColumnImage() local
148 return device.isEmulator() ? mEmulatorImage : mDeviceImage; in getColumnImage()
152 if (device.isEmulator() == false) { // physical device in getColumnImage()
154 AndroidVersion deviceVersion = Sdk.getDeviceVersion(device); in getColumnImage()
169 AvdInfo info = mSdk.getAvdManager().getAvd(device.getAvdName(), in getColumnImage()
192 IDevice device = (IDevice)element; in getColumnText() local
195 return device.getName(); in getColumnText()
[all …]
DAndroidLaunchController.java806 private boolean checkBuildInfo(DelayedLaunchInfo launchInfo, IDevice device) { in checkBuildInfo() argument
807 if (device != null) { in checkBuildInfo()
810 String deviceVersion = device.getProperty(IDevice.PROP_BUILD_VERSION); in checkBuildInfo()
811 String deviceApiLevelString = device.getProperty(IDevice.PROP_BUILD_API_LEVEL); in checkBuildInfo()
812 String deviceCodeName = device.getProperty(IDevice.PROP_BUILD_CODENAME); in checkBuildInfo()
871 if (device.isEmulator() == false && launchInfo.isDebugMode()) { in checkBuildInfo()
872 String debuggableDevice = device.getProperty(IDevice.PROP_DEBUGGABLE); in checkBuildInfo()
905 private boolean simpleLaunch(DelayedLaunchInfo launchInfo, IDevice device) { in simpleLaunch() argument
906 if (!doPreLaunchActions(launchInfo, device)) { in simpleLaunch()
913 launchApp(launchInfo, device); in simpleLaunch()
[all …]
DActivityLaunchAction.java47 public boolean doLaunchAction(DelayedLaunchInfo info, IDevice device) { in doLaunchAction() argument
58 device); in doLaunchAction()
67 device.executeShellCommand(command, new AMReceiver(info, device, mLaunchController)); in doLaunchAction()
86 device); in doLaunchAction()
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/launch/
Dmessages.properties2 NdkGdbLaunchDelegate_Action_CheckAndroidDeviceVersion=Checking Android version on device
7 NdkGdbLaunchDelegate_Action_ObtainDevice=Obtaining device to use
8 NdkGdbLaunchDelegate_Action_ObtainDeviceABI=Obtaining ABI's supported by the device
11 NdkGdbLaunchDelegate_Action_SyncAppToDevice=Syncing application to device
26 …unchDelegate_LaunchError_ObtainingAppFolder=Error while obtaining application data folder on device
29 NdkGdbLaunchDelegate_LaunchError_PullFileError=Error while obtaining file from device
31 NdkGdbLaunchDelegate_LaunchError_UnknownAndroidDeviceVersion=Unknown Android version on device.
DNdkGdbLaunchDelegate.java152 IDevice device = null; in doLaunch() local
155 device = devices[0]; in doLaunch()
156 } else if ((device = getLastUsedDevice(config, devices)) == null) { in doLaunch()
180 device = response.getDeviceToUse(); in doLaunch()
185 AndroidVersion deviceVersion = Sdk.getDeviceVersion(device); in doLaunch()
198 String deviceAbi1 = device.getProperty("ro.product.cpu.abi"); //$NON-NLS-1$ in doLaunch()
199 String deviceAbi2 = device.getProperty("ro.product.cpu.abi2"); //$NON-NLS-1$ in doLaunch()
224 device.installPackage(apk.getLocation().toOSString(), true); in doLaunch()
238 device.executeShellCommand(command, receiver); in doLaunch()
252 for (Client c: device.getClients()) { in doLaunch()
[all …]
/sdk/dumpeventlog/src/com/android/dumpeventlog/
DDumpEventLog.java119 for (IDevice device : devices) { in main()
120 if (device.getSerialNumber().equals(args[0])) { in main()
122 grabLogFrom(device, args[1]); in main()
138 private static void grabLogFrom(IDevice device, String filePath) throws IOException, in grabLogFrom() argument
144 device.runEventLogService(receiver); in grabLogFrom()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DHoverOverlay.java77 public void create(Device device) { in create() argument
79 mHoverStrokeColor = new Color(device, SwtDrawingStyle.HOVER.getStrokeColor()); in create()
82 mHoverFillColor = new Color(device, SwtDrawingStyle.HOVER.getFillColor()); in create()
86 mHoverSelectStrokeColor = new Color(device, in create()
90 mHoverSelectFillColor = new Color(device, in create()
DOverlay.java48 public void create(Device device) { in create() argument
49 mDevice = device; in create()
/sdk/apps/DeviceConfig/
DREADME.txt1 This project can be run on a device to populate some default values
2 for a vendor device description (such as the ones found in

123