Home
last modified time | relevance | path

Searched refs:fileManager (Results 1 – 25 of 37) sorted by relevance

12

/external/executorch/backends/apple/coreml/runtime/test/
DETCoreMLAssetManagerTests.mm18 @property (strong, nonatomic, nullable) NSFileManager *fileManager; property
32 self.fileManager = [[NSFileManager alloc] init];
43 [self.fileManager removeItemAtURL:self.testDirectoryURL error:&localError];
44 self.fileManager = nil;
57 …InDirectoryAtURL:self.testDirectoryURL withContent:@"testing" fileManager:self.fileManager error:&…
69 …InDirectoryAtURL:self.testDirectoryURL withContent:@"testing" fileManager:self.fileManager error:&…
83 …InDirectoryAtURL:self.testDirectoryURL withContent:@"testing" fileManager:self.fileManager error:&…
106 …InDirectoryAtURL:self.testDirectoryURL withContent:@"testing" fileManager:self.fileManager error:&…
114 …InDirectoryAtURL:self.testDirectoryURL withContent:@"testing" fileManager:self.fileManager error:&…
131 …InDirectoryAtURL:self.testDirectoryURL withContent:@"testing" fileManager:self.fileManager error:&…
[all …]
DETCoreMLAssetTests.mm15 @property (strong, nonatomic, nullable) NSFileManager *fileManager; property
25 NSFileManager *fileManager = [[NSFileManager alloc] init];
27 …XCTAssertTrue([fileManager createDirectoryAtURL:assetURL withIntermediateDirectories:NO attributes…
31 …XCTAssertTrue([fileManager createDirectoryAtURL:dirURL withIntermediateDirectories:NO attributes:@…
40 …XCTAssertTrue([fileManager createDirectoryAtURL:dirURL withIntermediateDirectories:NO attributes:@…
48 self.fileManager = fileManager;
53 XCTAssertTrue([self.fileManager removeItemAtURL:self.assetURL error:&localError]);
55 self.fileManager = nil;
61 auto backingAsset = Asset::make(self.assetURL, identifier, self.fileManager, &localError);
81 auto backingAsset = Asset::make(self.assetURL, identifier, self.fileManager, &localError);
[all …]
DETCoreMLTestUtils.mm128 fileManager:(NSFileManager *)fileManager
131 …if (![fileManager createDirectoryAtURL:assetURL withIntermediateDirectories:NO attributes:@{} erro…
136 …if (![fileManager createDirectoryAtURL:dirURL withIntermediateDirectories:NO attributes:@{} error:…
246 fileManager:(NSFileManager *)fileManager
268 [fileManager removeItemAtURL:modelURL error:nil];
269 …if (![fileManager createDirectoryAtURL:modelURL withIntermediateDirectories:NO attributes:@{} erro…
291 fileManager,
325 NSFileManager *fileManager = [[NSFileManager alloc] init];
331 fileManager:fileManager
345 if (![fileManager moveItemAtURL:tmpCompiledModelURL toURL:compiledModelURL error:error]) {
[all …]
DETCoreMLModelManagerTests.mm22 @property (strong, nonatomic, nullable) NSFileManager *fileManager; property
38 self.fileManager = [[NSFileManager alloc] init];
40 [self.fileManager removeItemAtURL:self.testDirectoryURL error:&localError];
51 XCTAssertTrue([self.fileManager removeItemAtURL:self.testDirectoryURL error:&localError]);
52 self.fileManager = nil;
DETCoreMLTestUtils.h30 fileManager:(NSFileManager*)fileManager
/external/executorch/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/
DResourceManager.swift14 private let fileManager = FileManager.default variable
17 fileManager.fileExists(atPath: modelPath)
21 fileManager.fileExists(atPath: tokenizerPath)
33 …guard let documentsDirectory = fileManager.urls(for: .documentDirectory, in: .userDomainMask).firs… in createDirectoriesIfNeeded()
34 …try fileManager.createDirectory(at: documentsDirectory.appendingPathComponent("models"), withInter… in createDirectoriesIfNeeded()
35 …try fileManager.createDirectory(at: documentsDirectory.appendingPathComponent("tokenizers"), withI… in createDirectoriesIfNeeded()
/external/turbine/java/com/google/turbine/binder/
DFileManagerClassBinder.java51 public static ClassPath adapt(StandardJavaFileManager fileManager, StandardLocation location) { in adapt() argument
52 PackageLookup packageLookup = new PackageLookup(fileManager, location); in adapt()
88 private final StandardJavaFileManager fileManager;
91 private PackageLookup(StandardJavaFileManager fileManager, StandardLocation location) {
92 this.fileManager = fileManager;
100 fileManager.list(
105 String binaryName = fileManager.inferBinaryName(location, jfo);
153 fileObject = fileManager.getFileForInput(location, dir, name);
/external/auto/value/src/it/functional/src/test/java/com/google/auto/value/
DCompileWithEclipseTest.java112 StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null); in compileWithEclipse() local
123 .addAll(fileManager.getLocation(StandardLocation.PLATFORM_CLASS_PATH)) in compileWithEclipse()
125 fileManager.setLocation(StandardLocation.PLATFORM_CLASS_PATH, bootClassPath); in compileWithEclipse()
128 fileManager.getJavaFileObjectsFromFiles(sources); in compileWithEclipse()
142 compiler.getTask(null, fileManager, null, options, null, sourceFileObjects); in compileWithEclipse()
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
DCompilingClassLoader.java138 InMemoryFileManager fileManager = in compileSourceCodeToByteCode() local
154 fileManager, diagnosticListener, options, null, singleton(javaFile)); in compileSourceCodeToByteCode()
169 public InMemoryFileManager(JavaFileManager fileManager) { in InMemoryFileManager() argument
170 super(fileManager); in InMemoryFileManager()
/external/javapoet/src/test/java/com/squareup/javapoet/
DFileReadingTest.java101 StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnosticCollector, in compileJavaFile() local
103 fileManager.setLocation(StandardLocation.CLASS_OUTPUT, in compileJavaFile()
106 fileManager, in compileJavaFile()
115 ClassLoader loader = fileManager.getClassLoader(StandardLocation.CLASS_OUTPUT); in compileJavaFile()
DTypesEclipseTest.java134 …JavaFileManager fileManager = compiler.getStandardFileManager(diagnosticCollector, Locale.getDefau… in compile() local
137 fileManager, in compile()
/external/auto/common/src/test/java/com/google/auto/common/
DGeneratedAnnotationsTest.java147 private final StandardJavaFileManager fileManager; field in GeneratedAnnotationsTest.FileManagerInvocationHandler
151 StandardJavaFileManager fileManager, @Nullable String packageToMask) { in FileManagerInvocationHandler() argument
152 this.fileManager = fileManager; in FileManagerInvocationHandler()
165 return method.invoke(fileManager, args); in invoke()
DOverridesTest.java626 StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, UTF_8); in evaluate() local
634 .addAll(fileManager.getLocation(StandardLocation.PLATFORM_CLASS_PATH)) in evaluate()
636 fileManager.setLocation(StandardLocation.PLATFORM_CLASS_PATH, bootClassPath); in evaluate()
638 Iterable<? extends JavaFileObject> sources = fileManager.getJavaFileObjects(dummySourceFile); in evaluate()
640 compiler.getTask(null, fileManager, null, null, null, sources); in evaluate()
/external/grpc-grpc-java/testing-proto/src/test/java/io/grpc/testing/protobuf/
DSimpleServiceTest.java153 StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null); in testRpcMethodAnnotations() local
155 Iterable<? extends JavaFileObject> obs = fileManager.getJavaFileObjects(grpcJavaFile); in testRpcMethodAnnotations()
160 fileManager, in testRpcMethodAnnotations()
168 fileManager.close(); in testRpcMethodAnnotations()
/external/executorch/backends/apple/coreml/runtime/delegate/
DETCoreMLAssetManager.mm295 NSFileManager *fileManager = [[NSFileManager alloc] init];
296 …setsDirectoryURL = ::create_directory_if_needed(assetsDirectoryURL, @"models", fileManager, error);
301 …TrashDirectoryURL = ::create_directory_if_needed(trashDirectoryURL, @"models", fileManager, error);
307 if (::is_directory_empty(managedAssetsDirectoryURL, fileManager, nil)) {
320 _fileManager = fileManager;
351 if (![self.fileManager moveItemAtURL:url toURL:dstURL error:error]) {
381 auto asset = Asset::make(srcURL, identifier, self.fileManager, error);
413 if (![self.fileManager moveItemAtURL:srcURL toURL:dstURL error:error]) {
551 if ([self.fileManager fileExistsAtPath:assetURL.path] &&
677 NSFileManager *fileManager = [[NSFileManager alloc] init];
[all …]
Dbackend_delegate.mm47 NSFileManager *fileManager,
49 if (![fileManager fileExistsAtPath:url.path] &&
50 …![fileManager createDirectoryAtURL:url withIntermediateDirectories:YES attributes:@{} error:error]…
DETCoreMLAssetManager.h121 @property (strong, readonly, nonatomic) NSFileManager* fileManager;
/external/nullaway/jmh/src/main/java/com/uber/nullaway/jmh/
DNullawayJavac.java57 private StandardJavaFileManager fileManager; field in NullawayJavac
173 this.fileManager = compiler.getStandardFileManager(diagnosticListener, null, null); in NullawayJavac()
216 compiler.getTask(null, fileManager, diagnosticListener, options, null, compilationUnits); in compile()
/external/turbine/javatests/com/google/turbine/bytecode/
DClassWriterTest.java76 JavacFileManager fileManager = new JavacFileManager(new Context(), false, UTF_8); in roundTrip() local
77 fileManager.setLocationFromPaths(StandardLocation.CLASS_OUTPUT, ImmutableList.of(out)); in roundTrip()
84 fileManager, in roundTrip()
88 fileManager.getJavaFileObjects(path)); in roundTrip()
/external/webrtc/sdk/objc/api/peerconnection/
DRTCFileLogger.mm59 NSFileManager *fileManager = [NSFileManager defaultManager];
60 if ([fileManager fileExistsAtPath:dirPath isDirectory:&isDir]) {
66 if (![fileManager createDirectoryAtPath:dirPath
/external/kotlinpoet/kotlinpoet/src/commonTest/kotlin/com/squareup/kotlinpoet/
DTypesEclipseTest.kt116 val fileManager = compiler.getStandardFileManager( in getElements() constant
121 fileManager, in getElements()
/external/turbine/javatests/com/google/turbine/lower/
DIntegrationTestSupport.java637 JavacFileManager fileManager = new JavacFileManager(new Context(), true, UTF_8); in setupJavac() local
638 fileManager.setLocationFromPaths(StandardLocation.CLASS_OUTPUT, ImmutableList.of(out)); in setupJavac()
639 fileManager.setLocationFromPaths(StandardLocation.CLASS_PATH, classpath); in setupJavac()
640 fileManager.setLocationFromPaths(StandardLocation.locationFor("MODULE_PATH"), classpath); in setupJavac()
646 fileManager.setLocationFromPaths( in setupJavac()
653 fileManager, in setupJavac()
657 fileManager.getJavaFileObjectsFromPaths(inputs)); in setupJavac()
/external/turbine/javatests/com/google/turbine/binder/
DClassPathBinderTest.java244 StandardJavaFileManager fileManager = in resourcesFileManager() local
246 fileManager.setLocation(StandardLocation.CLASS_PATH, ImmutableList.of(path.toFile())); in resourcesFileManager()
247 ClassPath classPath = FileManagerClassBinder.adapt(fileManager, StandardLocation.CLASS_PATH); in resourcesFileManager()
/external/jazzer-api/bazel/tools/java/com/code_intelligence/jazzer/tools/
DFuzzTargetTestWrapper.java289 try (StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null)) { in compile() argument
290 Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjects(source); in compile()
296 compiler.getTask(null, fileManager, null, options, null, compilationUnits); in compile()
/external/walt/ios/WALT/
DMenuController.m85 NSFileManager *fileManager = [NSFileManager defaultManager];
86 NSArray *urls = [fileManager URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask];

12