Package com.android.ddmlib

Examples of com.android.ddmlib.SyncService$NullSyncProgresMonitor


   * @throws TimeoutException
   * @throws SyncException
   */
  public static void pushFile(IDevice device, final String[] localFrom, final FileEntry remoteTo)
        throws TimeoutException, AdbCommandRejectedException, IOException{
    SyncService server = device.getSyncService();
    SyncResult result = server.push(localFrom, remoteTo, SyncService.getNullProgressMonitor());
    UIHelper.showMessageDialog(result.getMessage());
//        new SyncProgressMonitorAdapter(){
//      @Override
//      public void stop() {
//        UIHelper.showMessageDialog("upload  " + localFrom[0] + " to " + remoteTo.getFullPath() + " stop");
View Full Code Here


   * @throws IOException
   * @throws SyncException
   */
  public static void pushFile(IDevice device, final String localFrom, final String remoteTo)
      throws TimeoutException, AdbCommandRejectedException, IOException{
    SyncService server = device.getSyncService();
    server.pushFile(localFrom, remoteTo, new SyncProgressMonitorAdapter(){
      @Override
      public void stop() {
        UIHelper.showMessageDialog("upload  " + localFrom + " to " + remoteTo + " stop");

      }
View Full Code Here

   * @param remoteFrom
   * @param localTo
   */
  public static void pullFile(IDevice device, final FileEntry remoteFrom, final String localTo)
      throws TimeoutException, AdbCommandRejectedException, IOException{
    SyncService server = device.getSyncService();
    SyncResult result = server.pullFile(remoteFrom, localTo, SyncService.getNullProgressMonitor());
    UIHelper.showMessageDialog(result.getMessage());
//        new SyncProgressMonitorAdapter(){
//      @Override
//      public void stop() {
//        UIHelper.showMessageDialog("download " + remoteFrom.getName() + " to " + localTo + " stop");
View Full Code Here

   * @throws IOException
   * @throws SyncException
   */
  public static void pullFile(IDevice device, FileEntry[] remoteFrom, String localTo)
      throws TimeoutException, AdbCommandRejectedException, IOException{
    SyncService server = device.getSyncService();
    server.pull(remoteFrom, localTo, new SyncProgressMonitorAdapter(){
      @Override
      public void stop() {
//        UIHelper.showMessageDialog(parent, message, title, messageType);

      }
View Full Code Here

TOP

Related Classes of com.android.ddmlib.SyncService$NullSyncProgresMonitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.