Tabnine Logo
FileListingService.getChildren
Code IndexAdd Tabnine to your IDE (free)

How to use
getChildren
method
in
com.android.ddmlib.FileListingService

Best Java code snippets using com.android.ddmlib.FileListingService.getChildren (Showing top 7 results out of 315)

origin: simpligility/android-maven-plugin

fileListingService.getChildren( fileEntry, true, null );
origin: simpligility/android-maven-plugin

fileEntries = fileListingService.getChildren( sourceFileEntry, true, null );
origin: com.android.tools.ddms/ddmlib

/**
 * compute the recursive file size of all the files in the list. Folder
 * have a weight of 1.
 * @param entries
 * @param fls
 * @return
 */
private int getTotalRemoteFileSize(FileEntry[] entries, FileListingService fls) {
  int count = 0;
  for (FileEntry e : entries) {
    int type = e.getType();
    if (type == FileListingService.TYPE_DIRECTORY) {
      // get the children
      FileEntry[] children = fls.getChildren(e, false, null);
      count += getTotalRemoteFileSize(children, fls) + 1;
    } else if (type == FileListingService.TYPE_FILE) {
      count += e.getSizeValue();
    }
  }
  return count;
}
origin: com.google.android.tools/ddmlib

/**
 * compute the recursive file size of all the files in the list. Folder
 * have a weight of 1.
 * @param entries
 * @param fls
 * @return
 */
private int getTotalRemoteFileSize(FileEntry[] entries, FileListingService fls) {
  int count = 0;
  for (FileEntry e : entries) {
    int type = e.getType();
    if (type == FileListingService.TYPE_DIRECTORY) {
      // get the children
      FileEntry[] children = fls.getChildren(e, false, null);
      count += getTotalRemoteFileSize(children, fls) + 1;
    } else if (type == FileListingService.TYPE_FILE) {
      count += e.getSizeValue();
    }
  }
  return count;
}
origin: gradle.plugin.org.openftc.ftcresourcesplugin/ftcExternalResources

listingService.getChildren(result, true, null);
result = result.findChild(segment);
if (result == null) {
origin: com.google.android.tools/ddmlib

FileEntry[] children = fileListingService.getChildren(e, true, null);
doPull(children, dest, fileListingService, monitor);
monitor.advance(1);
origin: com.android.tools.ddms/ddmlib

FileEntry[] children = fileListingService.getChildren(e, true, null);
doPull(children, dest, fileListingService, monitor);
monitor.advance(1);
com.android.ddmlibFileListingServicegetChildren

Javadoc

Returns the children of a FileEntry.

This method supports a cache mechanism and synchronous and asynchronous modes.

If receiver is null, the device side ls command is done synchronously, and the method will return upon completion of the command.
If receiver is non null, the command is launched is a separate thread and upon completion, the receiver will be notified of the result.

The result for each ls command is cached in the parent FileEntry. useCache allows usage of this cache, but only if the cache is valid. The cache is valid only for FileListingService#REFRESH_RATE ms. After that a new ls command is always executed.

If the cache is valid and useCache == true, the method will always simply return the value of the cache, whether a IListingReceiver has been provided or not.

Popular methods of FileListingService

  • getRoot
    Returns the root element.
  • <init>
    Creates a File Listing Service for a specified Device.
  • doLs
  • doLsAndThrow

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JButton (javax.swing)
  • JFileChooser (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now