/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | Path.java | 25 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 …]
|
D | TagClustering.java | 31 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()
|
D | DataManager.java | 162 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 …]
|
D | LocalAlbumSet.java | 43 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()
|
D | ClusterAlbum.java | 24 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()
|
D | SecureAlbum.java | 42 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()
|
D | DataSourceType.java | 27 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()
|
D | FilterDeleteSet.java | 40 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()
|
D | ClusterAlbumSet.java | 36 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()
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/ |
D | TestSupport.java | 27 import java.nio.file.Path; 41 public static Path copyTestResource(Class<?> baseClass, String testResource, Path targetDir) in copyTestResource() 49 public static Path copyTestResourceWithoutLicense( in copyTestResourceWithoutLicense() 50 Class<?> baseClass, String testResource, Path targetDir) in copyTestResourceWithoutLicense() 58 private static Path copyResourceAndLicense(Class<?> baseClass, in copyResourceAndLicense() 59 String relativeResourcePath, Path targetDir) throws IOException { in copyResourceAndLicense() 70 private static Path copyResource(Class<?> baseClass, String relativeResourcePath, in copyResource() 71 Path targetDir) throws IOException { in copyResource() 76 Path targetResourceFile = targetDir.resolve(fileName); in copyResource() 86 public static Path createTempDir(Class<?> testClass) throws IOException { in createTempDir() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SelectionManager.java | 23 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 …]
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | IconShape.java | 32 import android.graphics.Path; 80 public abstract void addToPath(Path path, float offsetX, float offsetY, float radius); in addToPath() 110 private final Path mTmpPath = new Path(); 121 Rect startRect, Rect endRect, float endRadius, Path outPath); 126 Path path = new Path(); 164 float endRadius, Path outPath) { 179 getRadiiArray(values[4], values[5]), Path.Direction.CW); 192 public void addToPath(Path path, float offsetX, float offsetY, float radius) { 193 path.addCircle(radius + offsetX, radius + offsetY, radius, Path.Direction.CW); 226 public void addToPath(Path path, float offsetX, float offsetY, float radius) { [all …]
|
/packages/services/Car/tests/common_utils/src/com/android/car/test/utils/ |
D | TemporaryDirectory.java | 25 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/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/ |
D | CanonicalizeTzS2PolygonsTest.java | 36 import java.nio.file.Path; 43 private Path mTempDirPath; 66 Path inputPolysDirPath = mTempDirPath.resolve("input_polygons"); in regressionTest() 73 Path tzIdsDir = mTempDirPath.resolve("tzids"); in regressionTest() 74 Path tzIdsFile = copyTestResourceWithoutLicense(getClass(), inputTzIdsResource, tzIdsDir); in regressionTest() 76 Path outputDirPath = mTempDirPath.resolve("output"); in regressionTest() 92 Path expectedDirPath = mTempDirPath.resolve("expected"); in regressionTest() 103 Path outputDirPath, Path expectedDirPath, String expectedTzS2PolygonResource) in checkOutputPolyFile() 106 Path expectedPolyFile = in checkOutputPolyFile()
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | RoundedArrowDrawable.java | 29 import android.graphics.Path; 41 private final Path mPath; 63 mPath = new Path(); in RoundedArrowDrawable() 107 float radius, Path path) { in addDownPointingRoundedTriangleToPath() 148 float popupHeight, float arrowOffsetX, float arrowOffsetY, Path path) { in clipPopupBodyFromPath() 150 Path clipPiece = new Path(); in clipPopupBodyFromPath() 153 popupRadius, popupRadius, Path.Direction.CW); in clipPopupBodyFromPath() 159 path.op(clipPiece, Path.Op.DIFFERENCE); in clipPopupBodyFromPath()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | FilterUtils.java | 21 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()
|
D | PhotoDataAdapter.java | 31 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/PhoneCommon/src/com/android/phone/common/compat/ |
D | PathInterpolatorCompat.java | 19 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/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/createtzs2protodatafile/ |
D | CreateTzS2ProtoDataFileTest.java | 35 import java.nio.file.Path; 40 private Path mTempDirPath; 59 Path inputDirPath = mTempDirPath.resolve("input"); in regressionTest() 60 Path inputFilePath = copyTestResource(getClass(), inputResource, inputDirPath); in regressionTest() 62 Path outputDirPath = mTempDirPath.resolve("output"); in regressionTest() 64 Path outputFilePath = outputDirPath.resolve("tzs2datafile.prototxt"); in regressionTest() 76 Path expectedDirPath = mTempDirPath.resolve("expected"); in regressionTest() 77 Path expectedFilePath = copyTestResource(CreateTzS2ProtoDataFileTest.class, in regressionTest()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/ |
D | ArchiveFileTestRule.java | 35 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/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/mergetzs2ranges/ |
D | MergeTzS2RangesTest.java | 35 import java.nio.file.Path; 40 private Path mTempDirPath; 67 Path inputDirPath = mTempDirPath.resolve("input"); in regressionTest() 75 Path workingDirPath = mTempDirPath.resolve("working"); in regressionTest() 78 Path actualDirPath = mTempDirPath.resolve("actual"); in regressionTest() 80 Path actualFilePath = actualDirPath.resolve(outputFileName); in regressionTest() 95 Path expectedOutputDirPath = mTempDirPath.resolve("expected"); in regressionTest() 96 Path expectedOutputFilePath = in regressionTest()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | Logging.java | 35 import java.nio.file.Path; 60 private static Path sPersistentDir; 62 private static Path sPersistentFile; 87 Path path = resolveCurrentPersistentFileLocked(); in logPersistent() 107 private static void closeWriterAndUpdatePathLocked(@Nullable Path newPath) { in closeWriterAndUpdatePathLocked() 138 Path persistentDir = null; in dumpPersistent() 144 try (Stream<Path> stream = Files.list(persistentDir)) { in dumpPersistent() 154 private static void dumpPersistentFile(@NonNull Path path, @NonNull PrintWriter pw) { in dumpPersistentFile() 173 private static @NonNull Path resolveCurrentPersistentFileLocked() throws IOException { in resolveCurrentPersistentFileLocked()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | DotsPageIndicator.java | 30 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/Dialer/java/com/android/incallui/incall/impl/ |
D | InCallPaginator.java | 23 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/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/geojsontz_to_tzs2polygons/ |
D | GeoJsonTzToTzS2PolygonsTest.java | 35 import java.nio.file.Path; 40 private Path mTempDirPath; 65 Path inputDirPath = mTempDirPath.resolve("input"); in regressionTest() 66 Path inputFilePath = copyTestResource(getClass(), inputResource, inputDirPath); in regressionTest() 69 Path outputDirPath = mTempDirPath.resolve("output"); in regressionTest() 78 Path expectedOutputDirPath = mTempDirPath.resolve("expected"); in regressionTest() 79 Path expectedOutputFilePath = copyTestResource(getClass(), in regressionTest()
|