/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 | 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 | 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 | 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 | 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 | 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/Bluetooth/android/pandora/ |
D | gen_cov.py | 6 from pathlib import Path 108 temp_trace = Path('temp_trace') 121 java_coverage_out = Path(f'{coverage_out}/java') 122 temp_path = Path(f'{coverage_out}/temp') 127 framework_jar_path = Path( 130 service_jar_path = Path( 133 app_jar_path = Path( 186 merged_ec_path = Path(f'{temp_path}/merged.ec') 193 framework_temp_path = Path(f'{temp_path}/{framework_jar_path.name}') 194 service_temp_path = Path(f'{temp_path}/{service_jar_path.name}') [all …]
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/ |
D | TestSupport.java | 28 import java.nio.file.Path; 42 public static Path copyTestResource(Class<?> baseClass, String testResource, Path targetDir) in copyTestResource() 50 public static Path copyTestResourceWithoutLicense( in copyTestResourceWithoutLicense() 51 Class<?> baseClass, String testResource, Path targetDir) in copyTestResourceWithoutLicense() 59 private static Path copyResourceAndLicense(Class<?> baseClass, in copyResourceAndLicense() 60 String relativeResourcePath, Path targetDir) throws IOException { in copyResourceAndLicense() 71 private static Path copyResource(Class<?> baseClass, String relativeResourcePath, in copyResource() 72 Path targetDir) throws IOException { in copyResource() 77 Path targetResourceFile = targetDir.resolve(fileName); in copyResource() 87 public static Path createTempDir(Class<?> testClass) throws IOException { in createTempDir() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | TaskbarBackgroundRenderer.kt | 22 import android.graphics.Path 58 private val square: Path = Path() 59 private val circle: Path = Path() 60 private val invertedLeftCornerPath: Path = Path() 61 private val invertedRightCornerPath: Path = Path() 104 square.addRect(0f, 0f, leftCornerRadius, leftCornerRadius, Path.Direction.CW) in setCornerRoundness() 106 circle.addCircle(leftCornerRadius, 0f, leftCornerRadius, Path.Direction.CW) in setCornerRoundness() 107 invertedLeftCornerPath.op(square, circle, Path.Op.DIFFERENCE) in setCornerRoundness() 110 square.addRect(0f, 0f, rightCornerRadius, rightCornerRadius, Path.Direction.CW) in setCornerRoundness() 112 circle.addCircle(0f, 0f, rightCornerRadius, Path.Direction.CW) in setCornerRoundness() [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 | 38 import java.nio.file.Path; 45 private Path mTempDirPath; 68 Path inputPolysDirPath = mTempDirPath.resolve("input_polygons"); in regressionTest() 75 Path tzIdsDir = mTempDirPath.resolve("tzids"); in regressionTest() 76 Path tzIdsFile = copyTestResourceWithoutLicense(getClass(), inputTzIdsResource, tzIdsDir); in regressionTest() 78 Path outputDirPath = mTempDirPath.resolve("output"); in regressionTest() 94 Path expectedDirPath = mTempDirPath.resolve("expected"); in regressionTest() 105 Path outputDirPath, Path expectedDirPath, String expectedTzS2PolygonResource) in checkOutputPolyFile() 108 Path expectedPolyFile = in checkOutputPolyFile()
|
/packages/modules/Virtualization/authfs/src/file/ |
D | dir.rs | 23 use std::path::{Path, PathBuf}; 79 basename: &Path, in create_file() argument 102 basename: &Path, in mkdir() argument 121 pub fn delete_file(&mut self, basename: &Path) -> io::Result<Inode> { in delete_file() 135 pub fn force_delete_directory(&mut self, basename: &Path) -> io::Result<Inode> { in force_delete_directory() 149 pub fn find_inode(&self, name: &Path) -> io::Result<Inode> { in find_inode() 157 pub fn has_entry(&self, name: &Path) -> bool { in has_entry() 170 fn force_delete_entry(&mut self, basename: &Path, expect_dir: bool) -> io::Result<Inode> { in force_delete_entry() argument 189 fn validate_arguments(&self, basename: &Path, mode: u32) -> io::Result<u32> { in validate_arguments() argument 222 pub fn add_dir(&mut self, basename: &Path, inode: Inode) -> io::Result<()> { in add_dir() argument [all …]
|
/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() 92 mPath = new Path(); in RoundedArrowDrawable() 133 float radius, Path path) { in addDownPointingRoundedTriangleToPath() 174 float popupHeight, float arrowOffsetX, float arrowOffsetY, Path path) { in clipPopupBodyFromPath() 176 Path clipPiece = new Path(); in clipPopupBodyFromPath() 179 popupRadius, popupRadius, Path.Direction.CW); in clipPopupBodyFromPath() 185 path.op(clipPiece, Path.Op.DIFFERENCE); in clipPopupBodyFromPath()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | PersistentIntTest.kt | 31 import java.nio.file.Path 42 val tempFilesCreated = mutableSetOf<Path>() 43 lateinit var tempDir: Path 100 fun addOrRemovePermission(p: Path, permission: PosixFilePermission, add: Boolean) { in addOrRemovePermission() 110 fun setReadable(p: Path, readable: Boolean) { in setReadable() 114 fun setWritable(p: Path, writable: Boolean) { in setWritable() 118 fun pathOf(pi: PersistentInt): Path { in pathOf() 122 fun createPersistentInt(path: Path = randomTempPath()): PersistentInt { in createPersistentInt() 128 fun randomTempPath(): Path { in randomTempPath()
|
/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 | 36 import java.nio.file.Path; 41 private Path mTempDirPath; 60 Path inputDirPath = mTempDirPath.resolve("input"); in regressionTest() 61 Path inputFilePath = copyTestResource(getClass(), inputResource, inputDirPath); in regressionTest() 63 Path outputDirPath = mTempDirPath.resolve("output"); in regressionTest() 65 Path outputFilePath = outputDirPath.resolve("tzs2datafile.prototxt"); in regressionTest() 77 Path expectedDirPath = mTempDirPath.resolve("expected"); in regressionTest() 78 Path expectedFilePath = copyTestResource(CreateTzS2ProtoDataFileTest.class, in regressionTest()
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/mergetzs2ranges/ |
D | MergeTzS2RangesTest.java | 36 import java.nio.file.Path; 41 private Path mTempDirPath; 68 Path inputDirPath = mTempDirPath.resolve("input"); in regressionTest() 76 Path workingDirPath = mTempDirPath.resolve("working"); in regressionTest() 79 Path actualDirPath = mTempDirPath.resolve("actual"); in regressionTest() 81 Path actualFilePath = actualDirPath.resolve(outputFileName); in regressionTest() 96 Path expectedOutputDirPath = mTempDirPath.resolve("expected"); in regressionTest() 97 Path expectedOutputFilePath = 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/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()
|
/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/modules/Virtualization/vm/src/ |
D | run.rs | 37 use std::path::{Path, PathBuf}; 45 apk: &Path, in command_run_app() argument 46 idsig: &Path, in command_run_app() argument 47 instance: &Path, in command_run_app() argument 50 console_path: Option<&Path>, in command_run_app() argument 51 log_path: Option<&Path>, in command_run_app() argument 125 config_path: &Path, in command_run() argument 127 console_path: Option<&Path>, in command_run() argument 128 log_path: Option<&Path>, in command_run() argument 172 console_path: Option<&Path>, in run() argument [all …]
|