Home
last modified time | relevance | path

Searched refs:Path (Results 1 – 25 of 163) sorted by relevance

1234567

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DPath.java25 public class Path { class
27 private static Path sRoot = new Path(null, "ROOT");
29 private final Path mParent;
32 private IdentityCache<String, Path> mChildren;
34 private Path(Path parent, String segment) { in Path() method in Path
39 public Path getChild(String segment) { in getChild()
40 synchronized (Path.class) { in getChild()
42 mChildren = new IdentityCache<String, Path>(); in getChild()
44 Path p = mChildren.get(segment); in getChild()
48 Path p = new Path(this, segment); in getChild()
[all …]
DDataManager.java162 public MediaObject peekMediaObject(Path path) { in peekMediaObject()
166 public MediaObject getMediaObject(Path path) { in getMediaObject()
191 return getMediaObject(Path.fromString(s)); in getMediaObject()
194 public MediaSet getMediaSet(Path path) { in getMediaSet()
203 String[] seq = Path.splitSequence(segment); in getMediaSetsFromString()
217 public void mapMediaItems(ArrayList<Path> list, ItemConsumer consumer, in mapMediaItems()
225 Path path = list.get(i); in mapMediaItems()
244 public int getSupportedOperations(Path path) { in getSupportedOperations()
248 public void getPanoramaSupport(Path path, PanoramaSupportCallback callback) { in getPanoramaSupport()
252 public void delete(Path path) { in delete()
[all …]
DTagClustering.java31 private ArrayList<ArrayList<Path>> mClusters;
41 final TreeMap<String, ArrayList<Path>> map = in run()
42 new TreeMap<String, ArrayList<Path>>(); in run()
43 final ArrayList<Path> untagged = new ArrayList<Path>(); in run()
48 Path path = item.getPath(); in run()
57 ArrayList<Path> list = map.get(key); in run()
59 list = new ArrayList<Path>(); in run()
68 mClusters = new ArrayList<ArrayList<Path>>(); in run()
71 for (Map.Entry<String, ArrayList<Path>> entry : map.entrySet()) { in run()
87 public ArrayList<Path> getCluster(int index) { in getCluster()
DLocalAlbumSet.java43 public static final Path PATH_ALL = Path.fromString("/local/all");
44 public static final Path PATH_IMAGE = Path.fromString("/local/image");
45 public static final Path PATH_VIDEO = Path.fromString("/local/video");
61 public LocalAlbumSet(Path path, GalleryApp application) { in LocalAlbumSet()
71 private static int getTypeFromPath(Path path) { in getTypeFromPath()
137 DataManager manager, int type, Path parent, int id, String name) { in getLocalAlbum()
139 Path path = parent.getChild(id); in getLocalAlbum()
DSecureAlbum.java42 private ArrayList<Path> mAllItems = new ArrayList<Path>();
45 private ArrayList<Path> mExistingItems = new ArrayList<Path>();
56 public SecureAlbum(Path path, GalleryApp application, MediaItem unlock) { in SecureAlbum()
67 Path pathBase; in addMediaItem()
77 Path path = pathBase.getChild(id); in addMediaItem()
95 ArrayList<Path> subset = new ArrayList<Path>(mExistingItems.subList(start, end)); in getMediaItem()
177 Path path = mAllItems.get(i); in updateExistingItems()
DClusterAlbum.java24 private ArrayList<Path> mPaths = new ArrayList<Path>();
30 public ClusterAlbum(Path path, DataManager dataManager, in ClusterAlbum()
47 void setMediaItems(ArrayList<Path> paths) { in setMediaItems()
51 ArrayList<Path> getMediaItems() { in getMediaItems()
75 ArrayList<Path> paths, int start, int count, in getMediaItemFromPath()
81 ArrayList<Path> subset = new ArrayList<Path>(paths.subList(start, end)); in getMediaItemFromPath()
DFilterDeleteSet.java40 Path path;
42 public Request(int type, Path path, int indexHint) { in Request()
50 Path path;
52 public Deletion(Path path, int index) { in Deletion()
67 public FilterDeleteSet(Path path, MediaSet baseSet) { in FilterDeleteSet()
207 Path p = item.getPath(); in reload()
226 private void sendRequest(int type, Path path, int indexHint) { in sendRequest()
239 public void addDeletion(Path path, int indexHint) { in addDeletion()
243 public void removeDeletion(Path path) { in removeDeletion()
DClusterAlbumSet.java36 public ClusterAlbumSet(Path path, GalleryApp application, in ClusterAlbumSet()
105 Path childPath; in updateClusters()
131 final HashSet<Path> existing = new HashSet<Path>(); in updateClustersContents()
144 ArrayList<Path> oldPaths = mAlbums.get(i).getMediaItems(); in updateClustersContents()
145 ArrayList<Path> newPaths = new ArrayList<Path>(); in updateClustersContents()
148 Path p = oldPaths.get(j); in updateClustersContents()
DDataSourceType.java27 private static final Path PICASA_ROOT = Path.fromString("/picasa");
28 private static final Path LOCAL_ROOT = Path.fromString("/local");
35 Path path = set.getPath(); in identifySourceType()
38 Path prefix = path.getPrefixPath(); in identifySourceType()
DLocalSource.java83 public MediaObject createMediaObject(Path path) { in createMediaObject()
131 private Path getAlbumPath(Uri uri, int defaultType) { in getAlbumPath()
145 return Path.fromString("/local/image").getChild(id); in getAlbumPath()
147 return Path.fromString("/local/video").getChild(id); in getAlbumPath()
149 return Path.fromString("/local/all").getChild(id); in getAlbumPath()
154 public Path findPathByUri(Uri uri, String type) { in findPathByUri()
182 public Path getDefaultSetOf(Path item) { in getDefaultSetOf()
185 return Path.fromString("/local/all").getChild( in getDefaultSetOf()
200 Path parent = pid.path.getParent(); in mapMediaItems()
DMediaSource.java37 public Path findPathByUri(Uri uri, String type) { in findPathByUri()
41 public abstract MediaObject createMediaObject(Path path); in createMediaObject()
49 public Path getDefaultSetOf(Path item) { in getDefaultSetOf()
62 public PathId(Path path, int id) { in PathId()
66 public Path path;
DFilterTypeSet.java29 private final ArrayList<Path> mPaths = new ArrayList<Path>();
32 public FilterTypeSet(Path path, DataManager dataManager, MediaSet baseSet, in FilterTypeSet()
100 final Path[] buf = new Path[total]; in updateData()
107 Path path = item.getPath(); in updateData()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconShape.java32 import android.graphics.Path;
70 private static Path sShapePath;
79 public static Path getShapePath() { in getShapePath()
81 Path p = new Path(); in getShapePath()
101 public abstract void addToPath(Path path, float offsetX, float offsetY, float radius); in addToPath()
136 private final Path mTmpPath = new Path();
147 Rect startRect, Rect endRect, float endRadius, Path outPath);
152 Path path = new Path();
193 public void addToPath(Path path, float offsetX, float offsetY, float radius) {
194 path.addCircle(radius + offsetX, radius + offsetY, radius, Path.Direction.CW);
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSelectionManager.java23 import com.android.gallery3d.data.Path;
37 private Set<Path> mClickedSet;
49 public void onSelectionChange(Path path, boolean selected); in onSelectionChange()
54 mClickedSet = new HashSet<Path>(); in SelectionManager()
107 public boolean isItemSelected(Path itemId) { in isItemSelected()
130 public void toggle(Path path) { in toggle()
150 private static boolean expandMediaSet(ArrayList<Path> items, MediaSet set, int maxSelection) { in expandMediaSet()
178 public ArrayList<Path> getSelected(boolean expandSet) { in getSelected()
182 public ArrayList<Path> getSelected(boolean expandSet, int maxSelection) { in getSelected()
183 ArrayList<Path> selected = new ArrayList<Path>(); in getSelected()
[all …]
DMenuExecutor.java39 import com.android.gallery3d.data.Path;
214 private Path getSingleSelectedPath() { in getSingleSelectedPath()
215 ArrayList<Path> ids = mSelectionManager.getSelected(true); in getSingleSelectedPath()
222 Path path = getSingleSelectedPath(); in getIntentBySingleSelectedPath()
335 ArrayList<Path> ids = mSelectionManager.getSelected(false); in startAction()
350 public void startSingleItemAction(int action, Path targetPath) { in startSingleItemAction()
351 ArrayList<Path> ids = new ArrayList<Path>(1); in startSingleItemAction()
370 DataManager manager, JobContext jc, int cmd, Path path) { in execute()
414 private final ArrayList<Path> mItems;
418 public MediaOperation(int operation, ArrayList<Path> items, in MediaOperation()
[all …]
/packages/services/Car/tests/common_utils/src/com/android/car/test/utils/
DTemporaryDirectory.java25 import java.nio.file.Path;
40 private Path mDirectory;
42 private static final class DeletingVisitor extends SimpleFileVisitor<Path> {
43 FileVisitResult consume(Path path) throws IOException { in consume()
49 public FileVisitResult visitFile(Path path, BasicFileAttributes basicFileAttributes) in visitFile()
55 public FileVisitResult postVisitDirectory(Path path, IOException e) in postVisitDirectory()
61 private static final SimpleFileVisitor<Path> DELETE = new DeletingVisitor();
63 TemporaryDirectory(Path directory) throws IOException { in TemporaryDirectory()
85 public Path getPath() { return mDirectory; } in getPath()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDotsPageIndicator.java30 import android.graphics.Path;
95 private final Path combinedUnselectedPath;
96 private final Path unselectedDotPath;
97 private final Path unselectedDotLeftPath;
98 private final Path unselectedDotRightPath;
160 combinedUnselectedPath = new Path(); in DotsPageIndicator()
161 unselectedDotPath = new Path(); in DotsPageIndicator()
162 unselectedDotLeftPath = new Path(); in DotsPageIndicator()
163 unselectedDotRightPath = new Path(); in DotsPageIndicator()
357 Path unselectedPath = getUnselectedPath(page, in drawUnselected()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java30 import android.graphics.Path;
95 private final Path combinedUnselectedPath;
96 private final Path unselectedDotPath;
97 private final Path unselectedDotLeftPath;
98 private final Path unselectedDotRightPath;
160 combinedUnselectedPath = new Path(); in DotsPageIndicator()
161 unselectedDotPath = new Path(); in DotsPageIndicator()
162 unselectedDotLeftPath = new Path(); in DotsPageIndicator()
163 unselectedDotRightPath = new Path(); in DotsPageIndicator()
357 Path unselectedPath = getUnselectedPath(page, in drawUnselected()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DFilterUtils.java21 import com.android.gallery3d.data.Path;
80 public static void setupMenuItems(GalleryActionBar actionBar, Path path, boolean inAlbum) { in setupMenuItems()
118 private static void getAppliedFilters(Path path, int[] result) { in getAppliedFilters()
122 private static void getAppliedFilters(Path path, int[] result, boolean underCluster) { in getAppliedFilters()
127 String[] sets = Path.splitSequence(segments[i]); in getAppliedFilters()
129 Path sub = Path.fromString(sets[j]); in getAppliedFilters()
232 String[] segments = Path.split(base); in removeOneClusterFromPath()
235 return Path.splitSequence(segments[1])[0]; in removeOneClusterFromPath()
243 String[] sets = Path.splitSequence(segments[i]); in removeOneClusterFromPath()
DPhotoDataAdapter.java31 import com.android.gallery3d.data.Path;
123 private HashMap<Path, ImageEntry> mImageCache =
124 new HashMap<Path, ImageEntry>();
138 private final Path mPaths[] = new Path[IMAGE_CACHE_SIZE];
149 private Path mItemPath;
156 private Path mFocusHintPath = null;
159 public void onPhotoChanged(int index, Path item); in onPhotoChanged()
173 MediaSet mediaSet, Path itemPath, int indexHint, int cameraIndex, in PhotoDataAdapter()
235 private Path getPath(int index) { in getPath()
261 Path oldPaths[] = new Path[N]; in fireDataChange()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DArchiveFileTestRule.java31 import java.nio.file.Path;
48 private final List<Path> mTemporaries;
53 private Path mTemporaryPath;
82 for (Path path : mTemporaries) { in finished()
102 public Path generateFile(String suffix) throws IOException { in generateFile()
105 Path filePath = Files.createTempFile(mTemporaryPath, mMethodName, suffix, attr); in generateFile()
119 public Path dumpAssetFile(String assetPath, String suffix) throws IOException { in dumpAssetFile()
120 Path destinationPath = generateFile(suffix); in dumpAssetFile()
140 Path destinationPath = dumpAssetFile(assetPath, suffix); in openAssetFile()
/packages/apps/PhoneCommon/src/com/android/phone/common/compat/
DPathInterpolatorCompat.java19 import android.graphics.Path;
43 public PathInterpolatorBase(Path path) { in PathInterpolatorBase()
105 private static Path createQuad(float controlX, float controlY) { in createQuad()
106 final Path path = new Path(); in createQuad()
112 private static Path createCubic(float controlX1, float controlY1, in createCubic()
114 final Path path = new Path(); in createCubic()
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DInCallPaginator.java23 import android.graphics.Path;
43 private Path inactiveDotPath;
72 inactiveDotPath = new Path(); in init()
133 Path.Direction.CW); in onDraw()
135 centerX + indicatorOffset, centerY, indicatorRadius, Path.Direction.CW); in onDraw()
145 Path.Direction.CW); in onDraw()
147 centerX - indicatorOffset, centerY, indicatorRadius, Path.Direction.CW); in onDraw()
160 Path.Direction.CW); in onDraw()
168 Path.Direction.CW); in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DFolderAdaptiveIcon.java25 import android.graphics.Path;
51 private final Path mMask;
54 private FolderAdaptiveIcon(Drawable bg, Drawable fg, Drawable badge, Path mask) { in FolderAdaptiveIcon()
64 public Path getIconMask() { in getIconMask()
134 Path mask = new Path(); in createDrawableOnUiThread()
155 private final Path mMask;
157 MyConstantState(ConstantState bg, ConstantState fg, ConstantState badge, Path mask) { in MyConstantState()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DMediaSetUtils.java24 import com.android.gallery3d.data.Path;
47 private static final Path[] CAMERA_PATHS = {
48 Path.fromString("/local/all/" + CAMERA_BUCKET_ID),
49 Path.fromString("/local/image/" + CAMERA_BUCKET_ID),
50 Path.fromString("/local/video/" + CAMERA_BUCKET_ID)};
52 public static boolean isCameraSource(Path path) { in isCameraSource()

1234567