Home
last modified time | relevance | path

Searched refs:File (Results 1 – 25 of 149) sorted by relevance

123456

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DTemplateManager.java36 import java.io.File;
55 public static File getTemplateRootFolder() { in getTemplateRootFolder()
58 File folder = new File(location, FD_TOOLS + File.separator + FD_TEMPLATES); in getTemplateRootFolder()
69 public static List<File> getExtraTemplateRootFolders() { in getExtraTemplateRootFolders()
70 List<File> folders = new ArrayList<File>(); in getExtraTemplateRootFolders()
73 File extras = new File(location, FD_EXTRAS); in getExtraTemplateRootFolders()
75 for (File vendor : AdtUtils.listFiles(extras)) { in getExtraTemplateRootFolders()
79 for (File pkg : AdtUtils.listFiles(vendor)) { in getExtraTemplateRootFolders()
81 File folder = new File(pkg, FD_TEMPLATES); in getExtraTemplateRootFolders()
90 File folder = new File(extras, FD_TEMPLATES); in getExtraTemplateRootFolders()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/actions/
DAddSupportJarAction.java65 import java.io.File;
139 File jarPath = installSupport(-1); in install()
165 public static File installSupport(int minimumRevision) { in installSupport()
177 File path = getSupportJarFile(); in installSupport()
197 Pair<Boolean, File> result = window.installExtraPackage(VENDOR_ID, SUPPORT_ID); in installSupport()
211 File path = new File(result.getSecond(), FD_V4); in installSupport()
212 final File jarPath = new File(path, ANDROID_SUPPORT_V4_JAR); in installSupport()
267 File supportPath = getSupportPackageDir(); in installGridLayoutLibrary()
269 File path = installSupport(8); // GridLayout arrived in rev 7 and fixed in rev 8 in installGridLayoutLibrary()
275 File libraryPath = new File(supportPath, FD_V7 + File.separator + FD_GRIDLAYOUT); in installGridLayoutLibrary()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/
DSdkToolsLocator.java22 import java.io.File;
49 private final File mSdkFolder;
51 public SdkToolsLocator(File sdkFolder) { in SdkToolsLocator()
56 return new File(getSdkPlatformToolsFolder(), SdkConstants.FN_ADB).getAbsolutePath(); in getAdbLocation()
60 return new File(getSdkToolsFolder(), FN_TRACEVIEW).getAbsolutePath(); in getTraceViewLocation()
64 return new File(getSdkPlatformToolsFolder(), FN_HPROF_CONV).getAbsolutePath(); in getHprofConvLocation()
68 return new File(mSdkFolder, SdkConstants.FD_TOOLS).getAbsolutePath(); in getSdkToolsFolder()
72 return new File(mSdkFolder, SdkConstants.FD_PLATFORM_TOOLS).getAbsolutePath(); in getSdkPlatformToolsFolder()
81 File f = new File(exe); in isValidInstallation()
DMonitorStartup.java28 import java.io.File;
41 File sdkFolder = MonitorPlugin.getDefault().getSdkFolder(); in earlyStartup()
46 String toolsPath = new File(sdkFolder, SdkConstants.FD_TOOLS).getAbsolutePath(); in earlyStartup()
58 File sourceProp; in ping()
60 sourceProp = new File(toolsLocation, "source.properties"); //$NON-NLS-1$ in ping()
62 sourceProp = new File("source.properties"); //$NON-NLS-1$ in ping()
DMonitorPlugin.java25 import java.io.File;
31 private File mSdkFolder;
58 public void setSdkFolder(File sdkFolder) { in setSdkFolder()
62 public File getSdkFolder() { in getSdkFolder()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
DFileUtils.java21 import java.io.File;
25 private static final File sCacheDir;
32 public static File createTempFile(String prefix, String suffix) { in createTempFile()
33 File f; in createTempFile()
35 f = File.createTempFile(prefix, suffix, sCacheDir); in createTempFile()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/
DSdkSelectionPage.java47 import java.io.File;
202 File previouslyChosenSample = mValues.chosenSample; in loadSamplesForTarget()
211 File root = new File(samplesRootPath); in loadSamplesForTarget()
221 Map<File, String> extras = sdkman.getExtraSamples(); in loadSamplesForTarget()
222 for (Entry<File, String> entry : extras.entrySet()) { in loadSamplesForTarget()
223 File path = entry.getKey(); in loadSamplesForTarget()
242 Collections.sort(mValues.samples, new Comparator<Pair<String, File>>() { in loadSamplesForTarget()
244 public int compare(Pair<String, File> o1, Pair<String, File> o2) { in loadSamplesForTarget()
255 File file = mValues.samples.get(i).getSecond(); in loadSamplesForTarget()
280 File rootDir, in findSamplesManifests()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/
DLibraryClasspathContainerInitializer.java52 import java.io.File;
172 Set<File> jarFiles = new HashSet<File>(); in allocateLibraryContainer()
202 Set<File> jarFiles) { in convertJarsToClasspathEntries()
214 List<File> sanitizedList = sanitizer.sanitize(jarFiles); in convertJarsToClasspathEntries()
216 for (File jarFile : sanitizedList) { in convertJarsToClasspathEntries()
234 File jarProperties = new File(jarPath + DOT_PROPERTIES); in convertJarsToClasspathEntries()
243 File srcPath = getFile(jarFile, value); in convertJarsToClasspathEntries()
252 File docPath = getFile(jarFile, value); in convertJarsToClasspathEntries()
309 final Set<File> jarFiles = new HashSet<File>(); in allocateDependencyContainer()
329 File annotationsJar = new File(Sdk.getCurrent().getSdkOsLocation(), in allocateDependencyContainer()
[all …]
DExportHelper.java59 import java.io.File;
91 public static void exportReleaseApk(IProject project, File outputFile, PrivateKey key, in exportReleaseApk()
154 File resourceFile = File.createTempFile(TEMP_PREFIX, SdkConstants.DOT_RES); in exportReleaseApk()
178 File dexFile = File.createTempFile(TEMP_PREFIX, SdkConstants.DOT_DEX); in exportReleaseApk()
186 List<File> proguardConfigFiles = null; in exportReleaseApk()
191 if (File.separatorChar != '/' && proguardConfig.indexOf('/') != -1) { in exportReleaseApk()
192 proguardConfig = proguardConfig.replace('/', File.separatorChar); in exportReleaseApk()
204 File proguardConfigFile = new File(path); in exportReleaseApk()
206 proguardConfigFile = new File(project.getLocation().toFile(), path); in exportReleaseApk()
210 proguardConfigFiles = new ArrayList<File>(); in exportReleaseApk()
[all …]
/sdk/eclipse/
Dbuild.gradle13 ext.outFile = new File(outPath)
16 ext.outFile = new File(projectDir, outPath)
26 …adtPlugins = new File(projectDir, 'plugins').listFiles().findAll { it.name.startsWith("com.android…
29 …def eclipseBuildDeps = new File(projectDir, "../../prebuilts/eclipse-build-deps").getCanonicalFile…
31 "platform": new File(eclipseBuildDeps, "platform/org.eclipse.platform-4.2.2.zip"),
32 "cdt" : new File(eclipseBuildDeps, "cdt/cdt-master-8.0.2.zip"),
33 "emf" : new File(eclipseBuildDeps, "emf/emf-xsd-Update-2.9.1.zip"),
34 "jdt" : new File(eclipseBuildDeps, "jdt/org.eclipse.jdt.source-4.2.2.zip"),
35 "wtp" : new File(eclipseBuildDeps, "wtp/wtp-repo-R-3.3.2-20120210195245.zip"),
36 "gef" : new File(eclipseBuildDeps, "gef/GEF-Update-3.9.1.zip"),
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/systrace/
DSystraceOutputParser.java22 import java.io.File;
136 public static String getJs(File assetsFolder) { in getJs()
139 Files.toString(new File(assetsFolder, "script.js"), Charsets.UTF_8)); in getJs()
145 public static String getCss(File assetsFolder) { in getCss()
148 Files.toString(new File(assetsFolder, "style.css"), Charsets.UTF_8)); in getCss()
154 public static String getHtmlPrefix(File assetsFolder) { in getHtmlPrefix()
158 public static String getHtmlSuffix(File assetsFolder) { in getHtmlSuffix()
162 private static String getHtmlTemplate(File assetsFolder, String htmlFileName) { in getHtmlTemplate()
164 return Files.toString(new File(assetsFolder, htmlFileName), Charsets.UTF_8); in getHtmlTemplate()
/sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/actions/
DSdkManagerAction.java30 import java.io.File;
36 File sdk = MonitorPlugin.getDefault().getSdkFolder(); in run()
38 File tools = new File(sdk, SdkConstants.FD_TOOLS); in run()
39 File androidBat = new File(tools, SdkConstants.androidCmdName()); in run()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/exportgradle/
DBuildFileCreator.java58 import java.io.File;
115File gradleLocation = new File(Sdk.getCurrent().getSdkOsLocation(), GRADLE_WRAPPER_LOCATION); in createBuildFiles()
122 for (File wrapperFile : getGradleWrapperFiles(gradleLocation)) { in createBuildFiles()
156 File settingsFile = new File(commonRoot.toFile(), SETTINGS_FILE); in createBuildFiles()
176 for (File wrapperFile : getGradleWrapperFiles(commonRoot.toFile())) { in createBuildFiles()
264 File mainBuildFile = new File(commonRoot.toFile(), BUILD_FILE); in createBuildFiles()
306 private static List<File> getGradleWrapperFiles(File root) { in getGradleWrapperFiles()
307 List<File> files = new ArrayList<File>(GRADLE_WRAPPER_FILES.length); in getGradleWrapperFiles()
309 files.add(new File(root, file)); in getGradleWrapperFiles()
317 private static void copyGradleWrapper(File from, File to, ExportStatus status) { in copyGradleWrapper()
[all …]
DExportStatus.java24 import java.io.File;
31 private final Multimap<FileStatus, File> mFileStatus = ArrayListMultimap.create();
33 void addFileStatus(@NonNull FileStatus status, @NonNull File file) { in addFileStatus()
53 public Multimap<FileStatus, File> getFileStatus() { in getFileStatus()
DFinalPage.java29 import java.io.File;
79 Multimap<FileStatus, File> fileStatusMap = mStatus.getFileStatus(); in setVisible()
80 Collection<File> files = fileStatusMap.values(); in setVisible()
83 for (File file : files) { in setVisible()
102 File bGradle = new File( in setVisible()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DRuleLoader.java31 import java.io.File;
53 private List<Pair<File, Long>> mUserJarTimeStamps;
115 mUserJarTimeStamps = new ArrayList<Pair<File, Long>>(); in computeUserClassLoader()
119 String[] pathElements = path.split(File.pathSeparator); in computeUserClassLoader()
122 File pathFile = new File(pathElement); in computeUserClassLoader()
124 pathFile = new File(project.getLocation().toFile(), pathElement); in computeUserClassLoader()
176 for (Pair<File, Long> pair : mUserJarTimeStamps) { in getClassLoader()
177 File file = pair.getFirst(); in getClassLoader()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/
DAdtTestData.java25 import java.io.File;
91 if (File.separatorChar == '\\') { in AdtTestData()
96 if (!mOsRootDataPath.endsWith(File.separator) && !mOsRootDataPath.endsWith(DIR_SEP_STR)) { in AdtTestData()
119 File path = new File(mOsRootDataPath, osRelativePath); in getTestFilePath()
127 path = new File(mOsRootDataPath.replace(pkgAdt, pkgTests), osRelativePath); in getTestFilePath()
/sdk/attribute_stats/src/
DAnalyzer.java27 import java.io.File;
63 private List<File> mDirectories;
64 private File mCurrentFile;
79 private File mXmlMetadataFile;
81 private Analyzer(List<File> directories, File xmlMetadataFile, boolean listAdvanced) { in Analyzer()
96 File metadataFile = null; in main()
97 List<File> directories = new ArrayList<File>(); in main()
114 File file = new File(args[i]); in main()
126 File directory = new File(arg); in main()
144 for (File directory : mDirectories) { in analyze()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/lint/
DProjectLintConfigurationTest.java36 import java.io.File;
44 File dir = getTargetDir(); in testBasic()
76 File dir = getTargetDir(); in testInheritance()
80 File otherDir = new File(dir, "otherConfig"); in testInheritance()
134 File dir = getTargetDir(); in testBulkEditing()
151 File configFile = new File(dir, "lint.xml"); in testBulkEditing()
185 protected File getTargetDir() {
186 File targetDir = new File(getTempDir(), getClass().getSimpleName() + "_" + getName());
209 public @NonNull String readFile(@NonNull File file) {
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/welcome/
DAdtStartup.java48 import java.io.File;
75 File bundledSdk = getBundledSdk(); in earlyStartup()
110 private File getBundledSdk() { in getBundledSdk()
113 File toolsFolder = new File(install.getURL().getFile()).getParentFile(); in getBundledSdk()
115 File sdkFolder = new File(toolsFolder, "sdk"); in getBundledSdk()
141 boolean ok = new File(osSdkPath).isDirectory(); in isFirstTime()
145 ok = new File(osSdkPath).isDirectory(); in isFirstTime()
157 AdtPrefs.getPrefs().setSdkLocation(new File(osSdkPath)); in isFirstTime()
231 if (new File(str).isDirectory()) { in getSdkPathFromWindowsRegistry()
235 if (new File(str).isDirectory()) { in getSdkPathFromWindowsRegistry()
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/
DNdkManager.java27 import java.io.File;
49 File dir = new File(location); in isValidNdkLocation()
54 if (!new File(dir, "ndk-build").isFile()) //$NON-NLS-1$ in isValidNdkLocation()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/
DProjectClassLoader.java41 import java.io.File;
128 File outFolder = new File(outRes.getLocation().toOSString()); in loadFromProject()
134 File classFile = getFile(outFolder, segments, 0); in loadFromProject()
207 private File getFile(File parent, String[] segments, int index) in getFile()
215 File[] files = parent.listFiles(); in getFile()
222 for (File file : files) { in getFile()
236 for (File file : files) { in getFile()
353 oslibraryList.add(new File(resource.getLocation().toOSString()) in handleClassPathEntry()
365 File f = new File(osFullPath); in handleClassPathEntry()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/
DBuildHelper.java68 import java.io.File;
290 outputFolder + File.separator + outputFilename, resFilter, in packageResources()
309 File testFile = new File(folder.getLocation().toOSString()); in addFolderToList()
348 if (keystoreOsPath == null || new File(keystoreOsPath).isFile() == false) { in finalDebugPackage()
407 File file = new File(path); in finalPackage()
477 File rsLibFolderFile = rsLibFolder.getLocation().toFile(); in finalPackage()
482 File rsLibs = RenderScriptProcessor.getSupportNativeLibFolder( in finalPackage()
515 public void runProguard(List<File> proguardConfigs, File inputJar, Collection<String> jarFiles, in runProguard()
516 File obfuscatedJar, File logOutput) in runProguard()
524 for (File configFile : proguardConfigs) { in runProguard()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/resources/platform/
DAttributeInfoTest.java45 import java.io.File;
295 File sdk = new File(sdkPath); in testIsValid()
298 File git = sdk.getParentFile(); in testIsValid()
299 File attrsPath = new File(git, "frameworks" + File.separator + "base" in testIsValid()
300 + File.separator + "core" + File.separator + "res" + File.separator + "res" in testIsValid()
301 + File.separator + "values" + File.separator + "attrs.xml"); in testIsValid()
311 checkDir(new File(git, "packages" + File.separator + "apps"), false, attributeMap, seen); in testIsValid()
314 private void checkDir(File dir, boolean isResourceDir, in checkDir()
317 File[] list = dir.listFiles(); in checkDir()
319 for (File file : list) { in checkDir()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DPreviewIconFactory.java60 import java.io.File;
80 private File mImageDir;
103 File imageDir = getImageDir(false); in refresh()
105 File[] files = imageDir.listFiles(); in refresh()
106 for (File file : files) { in refresh()
123 File imageDir = getImageDir(false); in getImageDescriptor()
127 File file = new File(imageDir, getFileName(desc)); in getImageDescriptor()
208 File imageDir = getImageDir(true); in render()
324 File file = new File(imageDir, fileName); in render()
509 private File getImageDir(boolean create) { in getImageDir()
[all …]

123456