/aosp12/frameworks/compile/mclinker/lib/Support/ |
H A D | Path.cpp | 49 Path::Path() : m_PathName() { in Path() function in mcld::sys::fs::Path 52 Path::Path(const Path::ValueType* s) : m_PathName(s) { in Path() function in mcld::sys::fs::Path 55 Path::Path(const Path::StringType& s) : m_PathName(s) { in Path() function in mcld::sys::fs::Path 58 Path::Path(const Path& pCopy) : m_PathName(pCopy.m_PathName) { in Path() function in mcld::sys::fs::Path 61 Path::~Path() { in ~Path() 76 Path& Path::assign(const Path::StringType& s) { in assign() 89 Path& Path::append(const Path& pPath) { in append() 165 Path Path::filename() const { in filename() 174 Path Path::stem() const { in stem() 181 Path Path::extension() const { in extension() [all …]
|
H A D | RealPath.cpp | 18 RealPath::RealPath() : Path() { in RealPath() 21 RealPath::RealPath(const RealPath::ValueType* s) : Path(s) { in RealPath() 25 RealPath::RealPath(const RealPath::StringType& s) : Path(s) { in RealPath() 29 RealPath::RealPath(const Path& pPath) : Path(pPath) { in RealPath() 36 RealPath& RealPath::assign(const Path& pPath) { in assign() 37 Path::m_PathName.assign(pPath.native()); in assign() 45 Path path_name; in initialize()
|
/aosp12/frameworks/compile/mclinker/include/mcld/Support/ |
H A D | Path.h | 44 class Path { 50 Path(); 53 Path(const Path& pCopy); 54 virtual ~Path(); 65 Path& append(const Path& pPath); 97 bool operator==(const Path& pLHS, const Path& pRHS); 98 bool operator!=(const Path& pLHS, const Path& pRHS); 99 Path operator+(const Path& pLHS, const Path& pRHS); 118 Path& pPath) { 131 Path& Path::assign(InputIterator begin, InputIterator end) { in assign() [all …]
|
H A D | FileSystem.h | 69 class Path; variable 73 bool exists(const Path& pPath); 74 bool is_directory(const Path& pPath); 78 extern Path::StringType static_library_extension; 79 extern Path::StringType shared_library_extension; 80 extern Path::StringType executable_extension; 81 extern Path::StringType relocatable_extension; 82 extern Path::StringType assembly_extension; 83 extern Path::StringType bitcode_extension; 92 void get_pwd(Path& pPWD); [all …]
|
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
H A D | PathPerfTest.java | 19 import android.graphics.Path; 37 Path path = new Path(); in testReset() 46 Path path = new Path(); in testAddReset() 56 Path path = new Path(); in testRewind() 65 Path path = new Path(); in testAddRewind() 75 Path path = new Path(); in testIsEmpty() 76 path.addRect(0, 0, 100, 100, Path.Direction.CW); in testIsEmpty() 85 Path path = new Path(); in testIsConvex() 95 Path path = new Path(); in testGetSetFillType() 98 path.setFillType(Path.FillType.EVEN_ODD); in testGetSetFillType() [all …]
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | Path.java | 25 public class Path { class 27 private static Path sRoot = new Path(null, "ROOT"); 29 private final Path mParent; 34 private Path(Path parent, String segment) { in Path() method in Path 40 synchronized (Path.class) { in getChild() 48 Path p = new Path(this, segment); in getChild() 54 public Path getParent() { in getParent() 55 synchronized (Path.class) { in getParent() 69 synchronized (Path.class) { in setObject() 103 Path current = sRoot; in fromString() [all …]
|
H A 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()
|
/aosp12/build/pesto/experiments/prepare_bazel_test_env/ |
H A D | bazelenv.py | 49 soong_workspace: pathlib.Path 110 stage_path: pathlib.Path 141 def __init__(self, stage_path: pathlib.Path, workspace_path: pathlib.Path, argument 178 resource_path: pathlib.Path 193 def __init__(self, stage_path: pathlib.Path, workspace_path: pathlib.Path, argument 254 def __init__(self, stage_path: pathlib.Path, workspace_path: pathlib.Path, argument 355 static_path: pathlib.Path 515 host_out: pathlib.Path 517 product_out: pathlib.Path 519 staging_dir: pathlib.Path [all …]
|
/aosp12/frameworks/compile/mclinker/unittests/ |
H A D | PathTest.cpp | 21 m_pTestee = new Path(); in PathTest() 47 m_pTestee = new Path(root); in TEST_F() 57 m_pTestee = new Path(root); in TEST_F() 67 m_pTestee = new Path(root); in TEST_F() 78 m_pTestee = new Path(root); in TEST_F() 87 Path* p2 = new Path("ccc///////"); in TEST_F() 92 m_pTestee = new Path(root); in TEST_F() 99 Path* p2 = new Path("aaa//"); in TEST_F() 105 m_pTestee = new Path(root); in TEST_F() 121 m_pTestee = new Path("aa"); in TEST_F() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | PathOffsetTest.java | 22 import android.graphics.Path.Direction; 44 Path actualPath = new Path(); in testPathOffset() 50 Path expectedPath = new Path(); in testPathOffset() 60 Path initialPath = new Path(); in testPathOffsetWithDestination() 62 Path actualPath = new Path(); in testPathOffsetWithDestination() 68 Path expectedPath = new Path(); in testPathOffsetWithDestination() 75 private static void assertPaths(Path actual, Path expected) { in assertPaths() 81 private static Bitmap drawAndGetBitmap(Path path) { in drawAndGetBitmap()
|
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | PathOpsActivity.java | 24 import android.graphics.Path; 40 private Path[] mPaths; 57 Path.Op[] ops = Path.Op.values(); in onSizeChanged() 58 mPaths = new Path[ops.length]; in onSizeChanged() 62 Path p1 = new Path(); in onSizeChanged() 63 p1.addRect(0.0f, 0.0f, mSize, mSize, Path.Direction.CW); in onSizeChanged() 65 Path p2 = new Path(); in onSizeChanged() 66 p2.addCircle(mSize, mSize, mSize / 2.0f, Path.Direction.CW); in onSizeChanged() 69 mPaths[i] = new Path(); in onSizeChanged() 81 for (Path path : mPaths) { in onDraw()
|
H A D | PathsCacheActivity.java | 23 import android.graphics.Path; 33 private Path mPath; 37 private final ArrayList<Path> mPathList = new ArrayList<Path>(); 49 private static Path makePath() { in makePath() 50 Path path = new Path(); in makePath() 55 private static void buildPath(Path path) { in buildPath() 62 private static Path makeLargePath() { in makeLargePath() 63 Path path = new Path(); in makeLargePath() 68 private static void buildLargePath(Path path) { in buildLargePath() 115 Path path = makePath(); in onDraw()
|
/aosp12/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/ |
H A 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 …]
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
H A D | TaskbarScrimView.java | 21 import android.graphics.Path; 31 private final Path mInvertedLeftCornerPath, mInvertedRightCornerPath; 58 mInvertedLeftCornerPath = new Path(); in TaskbarScrimView() 59 mInvertedRightCornerPath = new Path(); in TaskbarScrimView() 114 Path square = new Path(); in setCornerSizes() 115 square.addRect(0, 0, mLeftCornerRadius, mLeftCornerRadius, Path.Direction.CW); in setCornerSizes() 116 Path circle = new Path(); in setCornerSizes() 117 circle.addCircle(mLeftCornerRadius, 0, mLeftCornerRadius, Path.Direction.CW); in setCornerSizes() 118 mInvertedLeftCornerPath.op(square, circle, Path.Op.DIFFERENCE); in setCornerSizes() 122 circle.addCircle(0, 0, mRightCornerRadius, Path.Direction.CW); in setCornerSizes() [all …]
|
H A D | TaskbarDragLayer.java | 21 import android.graphics.Path; 44 private final Path mInvertedLeftCornerPath, mInvertedRightCornerPath; 76 mInvertedLeftCornerPath = new Path(); in TaskbarDragLayer() 77 mInvertedRightCornerPath = new Path(); in TaskbarDragLayer() 87 Path square = new Path(); in init() 88 square.addRect(0, 0, mLeftCornerRadius, mLeftCornerRadius, Path.Direction.CW); in init() 89 Path circle = new Path(); in init() 90 circle.addCircle(mLeftCornerRadius, 0, mLeftCornerRadius, Path.Direction.CW); in init() 91 mInvertedLeftCornerPath.op(square, circle, Path.Op.DIFFERENCE); in init() 95 circle.addCircle(0, 0, mRightCornerRadius, Path.Direction.CW); in init() [all …]
|
/aosp12/system/extras/profcollectd/libprofcollectd/ |
H A D | config.rs | 26 use std::path::Path; 37 pub static ref TRACE_OUTPUT_DIR: &'static Path = Path::new("/data/misc/profcollectd/trace/"); 38 pub static ref PROFILE_OUTPUT_DIR: &'static Path = Path::new("/data/misc/profcollectd/output/"); 39 pub static ref REPORT_OUTPUT_DIR: &'static Path = Path::new("/data/misc/profcollectd/report/"); 40 pub static ref BETTERBUG_CACHE_DIR_PREFIX: &'static Path = Path::new("/data/user/"); 41 pub static ref BETTERBUG_CACHE_DIR_SUFFIX: &'static Path = 42 Path::new("com.google.android.apps.internal.betterbug/cache/"); 43 pub static ref CONFIG_FILE: &'static Path = 44 Path::new("/data/misc/profcollectd/output/config.json"); 152 fn remove_files(path: &Path) -> Result<()> { in clear_data()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
H A D | ArtStatsLogUtilsTest.java | 38 import java.nio.file.Path; 67 private static Path TEST_DIR; 68 private static Path DEX; 69 private static Path NON_DEX; 95 Path dexMetadataPath = null; in testProfileAndVdexDexMetadata() 96 Path apk = null; in testProfileAndVdexDexMetadata() 128 Path apk = null; in testProfileOnlyDexMetadata() 160 Path apk = null; in testVdexOnlyDexMetadata() 191 Path apk = null; in testNoneDexMetadata() 221 Path apk = null; in testUnKnownDexMetadata() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | LayoutBidiCursorPathTest.java | 22 import android.graphics.Path; 62 final Path actualPath = new Path(); in testGetCursorPathSegments() 71 final Path expectedPath = new Path(); in testGetCursorPathSegments() 89 final Path actualPath = new Path(); in testGetCursorPath_whenShiftIsPressed() 102 final Path expectedPath = new Path(); in testGetCursorPath_whenShiftIsPressed() 129 final Path actualPath = new Path(); in testGetCursorPath_whenAltIsPressed() 141 final Path expectedPath = new Path(); in testGetCursorPath_whenAltIsPressed() 159 private void setupLayoutAndGetCursorPath(Path path) { in setupLayoutAndGetCursorPath()
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | SelectionManager.java | 23 import com.android.gallery3d.data.Path; 37 private Set<Path> mClickedSet; 54 mClickedSet = new HashSet<Path>(); in SelectionManager() 107 public boolean isItemSelected(Path itemId) { in isItemSelected() 130 public void toggle(Path path) { in toggle() 178 public ArrayList<Path> getSelected(boolean expandSet) { in getSelected() 183 ArrayList<Path> selected = new ArrayList<Path>(); in getSelected() 189 Path id = set.getPath(); in getSelected() 204 for (Path id : mClickedSet) { in getSelected() 226 Path id = item.getPath(); in getSelected() [all …]
|
/aosp12/frameworks/base/core/java/android/transition/ |
H A D | PatternPathMotion.java | 21 import android.graphics.Path; 41 private Path mOriginalPatternPath; 43 private final Path mPatternPath = new Path(); 62 Path pattern = PathParser.createPathFromPathData(pathData); in PatternPathMotion() 78 public PatternPathMotion(Path patternPath) { in PatternPathMotion() 90 public Path getPatternPath() { in getPatternPath() 102 public void setPatternPath(Path patternPath) { in setPatternPath() 130 public Path getPath(float startX, float startY, float endX, float endY) { in getPath() 139 Path path = new Path(); in getPath()
|
/aosp12/system/core/libcutils/ |
H A D | canned_fs_config.cpp | 34 } Path; typedef 36 static Path* canned_data = NULL; 41 return strcmp(((Path*)a)->path, ((Path*)b)->path); in path_compare() 55 Path* p; in load_canned_fs_config() 62 canned_data = (Path*) realloc(canned_data, canned_alloc * sizeof(Path)); in load_canned_fs_config() 86 qsort(canned_data, canned_used, sizeof(Path), path_compare); in load_canned_fs_config() 96 Path key, *p; in canned_fs_config() 100 p = (Path*) bsearch(&key, canned_data, canned_used, sizeof(Path), path_compare); in canned_fs_config()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/provider/ |
H A D | DocumentsProviderTest.java | 22 import android.provider.DocumentsContract.Path; 56 final Path expected = new Path(ROOT_ID, Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID)); in testFindDocumentPath_docUri() 63 final Path actual = DocumentsContract.findDocumentPath( in testFindDocumentPath_docUri() 72 final Path expected = new Path(null, Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID)); in testFindDocumentPath_treeUri() 77 final Path actual = DocumentsContract.findDocumentPath(mResolver, docUri); in testFindDocumentPath_treeUri() 84 mProvider.nextPath = new Path(null, Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID)); in testFindDocumentPath_treeUri_throwsOnNonChildDocument() 97 mProvider.nextPath = new Path(ROOT_ID, Arrays.asList(PARENT_DOCUMENT_ID, DOCUMENT_ID)); in testFindDocumentPath_treeUri_erasesNonNullRootId() 101 Path path = DocumentsContract.findDocumentPath(mResolver, docUri); in testFindDocumentPath_treeUri_erasesNonNullRootId() 109 mProvider.nextPath = new Path( in testFindDocumentPath_treeUri_erasesDocsOutsideTree() 114 Path path = DocumentsContract.findDocumentPath(mResolver, docUri); in testFindDocumentPath_treeUri_erasesDocsOutsideTree()
|
/aosp12/packages/services/Car/tests/common_utils/src/com/android/car/test/utils/ |
H A 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()
|
/aosp12/system/timezone/input_tools/android/common/src/testing/java/com/android/libcore/timezone/testing/ |
H A D | TestUtils.java | 24 import java.nio.file.Path; 39 public static String createFile(Path dir, String... lines) throws IOException { in createFile() 40 Path tempFile = Files.createTempFile(dir, "tmp", null /* suffix */); in createFile() 45 public static void deleteDir(Path tempDir) throws IOException { in deleteDir() 46 FileVisitor<? super Path> deleter = new SimpleFileVisitor<Path>() { in deleteDir() 48 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) in deleteDir() 54 public FileVisitResult postVisitDirectory(Path dir, IOException exc) in deleteDir() 59 private FileVisitResult delete(Path file) throws IOException { in deleteDir()
|
/aosp12/frameworks/base/core/java/com/android/internal/os/ |
H A D | KernelCpuThreadReader.java | 31 import java.nio.file.Path; 92 private static final Path DEFAULT_INITIAL_TIME_IN_STATE_PATH = 105 private final Path mProcPath; 132 Path procPath, in KernelCpuThreadReader() 133 Path initialTimeInStatePath, in KernelCpuThreadReader() 182 try (DirectoryStream<Path> processPaths = in getProcessCpuUsage() 184 for (Path processPath : processPaths) { in getProcessCpuUsage() 276 for (Path threadDirectory : threadPaths) { in getProcessCpuUsage() 339 private String getProcessName(Path processPath) { in getProcessName() 350 private String getThreadName(Path threadPath) { in getThreadName() [all …]
|