doLs(entry); receiver.setChildren(entry, entry.getCachedChildren()); final FileEntry[] children = entry.getCachedChildren(); if (children.length > 0 && children[0].isApplicationPackage()) { final HashMap<String, FileEntry> map = new HashMap<String, FileEntry>();
doLs(entry); receiver.setChildren(entry, entry.getCachedChildren()); final FileEntry[] children = entry.getCachedChildren(); if (children.length > 0 && children[0].isApplicationPackage()) { final HashMap<String, FileEntry> map = new HashMap<String, FileEntry>();
return entry.getCachedChildren(); return entry.getCachedChildren();
return entry.getCachedChildren(); return entry.getCachedChildren();
/** * Returns the children of a {@link FileEntry}. * <p> * This method is the explicit synchronous version of * {@link #getChildren(FileEntry, boolean, IListingReceiver)}. It is roughly equivalent to * calling * getChildren(FileEntry, false, null) * * @param entry The parent entry. * @return The list of children * @throws TimeoutException in case of timeout on the connection when sending the command. * @throws AdbCommandRejectedException if adb rejects the command. * @throws ShellCommandUnresponsiveException in case the shell command doesn't send any output * for a period longer than <var>maxTimeToOutputResponse</var>. * @throws IOException in case of I/O error on the connection. */ public FileEntry[] getChildrenSync(final FileEntry entry) throws TimeoutException, AdbCommandRejectedException, ShellCommandUnresponsiveException, IOException { doLsAndThrow(entry); return entry.getCachedChildren(); }
/** * Create an ls receiver/parser. * @param currentChildren The list of current children. To prevent * collapse during update, reusing the same FileEntry objects for * files that were already there is paramount. * @param entryList the list of new children to be filled by the * receiver. * @param linkList the list of link path to compute post ls, to figure * out if the link pointed to a file or to a directory. */ public LsReceiver(FileEntry parentEntry, ArrayList<FileEntry> entryList, ArrayList<String> linkList) { mParentEntry = parentEntry; mCurrentChildren = parentEntry.getCachedChildren(); mEntryList = entryList; mLinkList = linkList; }
/** * Create an ls receiver/parser. * @param currentChildren The list of current children. To prevent * collapse during update, reusing the same FileEntry objects for * files that were already there is paramount. * @param entryList the list of new children to be filled by the * receiver. * @param linkList the list of link path to compute post ls, to figure * out if the link pointed to a file or to a directory. */ public LsReceiver(FileEntry parentEntry, ArrayList<FileEntry> entryList, ArrayList<String> linkList) { mParentEntry = parentEntry; mCurrentChildren = parentEntry.getCachedChildren(); mEntryList = entryList; mLinkList = linkList; }