/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
D | TemplateManager.java | 35 import java.io.File; 50 public static File getTemplateRootFolder() { in getTemplateRootFolder() 53 File folder = new File(location, FD_TOOLS + File.separator + FD_TEMPLATES); in getTemplateRootFolder() 64 public static List<File> getExtraTemplateRootFolders() { in getExtraTemplateRootFolders() 65 List<File> folders = new ArrayList<File>(); in getExtraTemplateRootFolders() 68 File extras = new File(location, FD_EXTRAS); in getExtraTemplateRootFolders() 70 for (File vendor : AdtUtils.listFiles(extras)) { in getExtraTemplateRootFolders() 74 for (File pkg : AdtUtils.listFiles(vendor)) { in getExtraTemplateRootFolders() 76 File folder = new File(pkg, FD_TEMPLATES); in getExtraTemplateRootFolders() 85 File folder = new File(extras, FD_TEMPLATES); in getExtraTemplateRootFolders() [all …]
|
D | TemplateHandler.java | 96 import java.io.File; 210 private final File mRootPath; 243 static TemplateHandler createFromPath(File rootPath) { in createFromPath() 254 List<File> templates = manager.getTemplates(category); in createFromName() 255 for (File file : templates) { in createFromName() 261 return new TemplateHandler(new File(getTemplateRootFolder(), in createFromName() 262 category + File.separator + name), manager); in createFromName() 265 private TemplateHandler(File rootPath, TemplateManager manager) { in TemplateHandler() 353 return new File(mRootPath.getPath(), templateName).getPath(); in getResourcePath() 365 return Files.toString(new File(mRootPath, in readTemplateTextResource() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/ |
D | SdkToolsLocator.java | 22 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(getSdkToolsFolder(), 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()
|
D | MonitorStartup.java | 28 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()
|
D | MonitorPlugin.java | 25 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.adt/src/com/android/ide/eclipse/adt/internal/actions/ |
D | AddSupportJarAction.java | 65 import java.io.File; 133 File jarPath = installSupport(-1); in install() 159 public static File installSupport(int minimumRevision) { in installSupport() 171 File path = getSupportJarFile(); in installSupport() 191 Pair<Boolean, File> result = window.installExtraPackage(VENDOR_ID, SUPPORT_ID); in installSupport() 205 File path = new File(result.getSecond(), FD_V4); in installSupport() 206 final File jarPath = new File(path, ANDROID_SUPPORT_V4_JAR); in installSupport() 261 File supportPath = getSupportPackageDir(); in installGridLayoutLibrary() 263 File path = installSupport(8); // GridLayout arrived in rev 7 and fixed in rev 8 in installGridLayoutLibrary() 269 File libraryPath = new File(supportPath, FD_V7 + File.separator + FD_GRIDLAYOUT); in installGridLayoutLibrary() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
D | FileUtils.java | 21 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/ |
D | SdkSelectionPage.java | 47 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.ddms/src/com/android/ide/eclipse/ddms/systrace/ |
D | SystraceOutputParser.java | 22 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/ |
D | SdkManagerAction.java | 30 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/project/ |
D | LibraryClasspathContainerInitializer.java | 49 import java.io.File; 169 Set<File> jarFiles = new HashSet<File>(); in allocateLibraryContainer() 199 Set<File> jarFiles) { in convertJarsToClasspathEntries() 211 List<File> sanitizedList = sanitizer.sanitize(jarFiles); in convertJarsToClasspathEntries() 213 for (File jarFile : sanitizedList) { in convertJarsToClasspathEntries() 231 File jarProperties = new File(jarPath + DOT_PROPERTIES); in convertJarsToClasspathEntries() 240 File srcPath = getFile(jarFile, value); in convertJarsToClasspathEntries() 249 File docPath = getFile(jarFile, value); in convertJarsToClasspathEntries() 306 final Set<File> jarFiles = new HashSet<File>(); in allocateDependencyContainer() 318 File annotationsJar = new File(Sdk.getCurrent().getSdkLocation(), in allocateDependencyContainer() [all …]
|
D | ExportHelper.java | 59 import java.io.File; 91 public static void exportReleaseApk(IProject project, File outputFile, PrivateKey key, in exportReleaseApk() 160 File resourceFile = File.createTempFile(TEMP_PREFIX, SdkConstants.DOT_RES); in exportReleaseApk() 184 File dexFile = File.createTempFile(TEMP_PREFIX, SdkConstants.DOT_DEX); in exportReleaseApk() 192 List<File> proguardConfigFiles = null; in exportReleaseApk() 197 if (File.separatorChar != '/' && proguardConfig.indexOf('/') != -1) { in exportReleaseApk() 198 proguardConfig = proguardConfig.replace('/', File.separatorChar); in exportReleaseApk() 210 File proguardConfigFile = new File(path); in exportReleaseApk() 212 proguardConfigFile = new File(project.getLocation().toFile(), path); in exportReleaseApk() 216 proguardConfigFiles = new ArrayList<File>(); in exportReleaseApk() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
D | RuleLoader.java | 31 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.adt/src/com/android/ide/eclipse/adt/internal/wizards/exportgradle/ |
D | BuildFileCreator.java | 47 import java.io.File; 101 File gradleLocation = new File(Sdk.getCurrent().getSdkLocation(), GRADLE_WRAPPER_LOCATION); in createBuildFiles() 108 for (File wrapperFile : getGradleWrapperFiles(gradleLocation)) { in createBuildFiles() 137 File settingsFile = new File(commonRoot.toFile(), SETTINGS_FILE); in createBuildFiles() 156 for (File wrapperFile : getGradleWrapperFiles(commonRoot.toFile())) { in createBuildFiles() 244 File mainBuildFile = new File(commonRoot.toFile(), BUILD_FILE); in createBuildFiles() 286 private static List<File> getGradleWrapperFiles(File root) { in getGradleWrapperFiles() 287 List<File> files = new ArrayList<File>(GRADLE_WRAPPER_FILES.length); in getGradleWrapperFiles() 289 files.add(new File(root, file)); in getGradleWrapperFiles() 297 private static void copyGradleWrapper(File from, File to, ExportStatus status) { in copyGradleWrapper() [all …]
|
D | ExportStatus.java | 24 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()
|
D | FinalPage.java | 29 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.tests/src/com/android/ide/eclipse/tests/ |
D | AdtTestData.java | 25 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/ |
D | Analyzer.java | 27 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.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ |
D | ProjectClassLoader.java | 37 import java.io.File; 124 File outFolder = new File(outRes.getLocation().toOSString()); in loadFromProject() 130 File classFile = getFile(outFolder, segments, 0); in loadFromProject() 168 private File getFile(File parent, String[] segments, int index) in getFile() 176 File[] files = parent.listFiles(); in getFile() 183 for (File file : files) { in getFile() 197 for (File file : files) { in getFile() 314 oslibraryList.add(new File(resource.getLocation().toOSString()) in handleClassPathEntry() 326 File f = new File(osFullPath); in handleClassPathEntry()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/lint/ |
D | ProjectLintConfigurationTest.java | 35 import java.io.File; 43 File dir = getTargetDir(); in testBasic() 75 File dir = getTargetDir(); in testInheritance() 79 File otherDir = new File(dir, "otherConfig"); in testInheritance() 133 File dir = getTargetDir(); in testBulkEditing() 150 File configFile = new File(dir, "lint.xml"); in testBulkEditing() 184 protected File getTargetDir() { 185 File targetDir = new File(getTempDir(), getClass().getSimpleName() + "_" + getName()); 208 public @NonNull String readFile(@NonNull File file) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/welcome/ |
D | AdtStartup.java | 48 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/ |
D | NdkManager.java | 27 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/build/ |
D | BuildHelper.java | 65 import java.io.File; 273 outputFolder + File.separator + outputFilename, resFilter, in packageResources() 292 File testFile = new File(folder.getLocation().toOSString()); in addFolderToList() 331 if (keystoreOsPath == null || new File(keystoreOsPath).isFile() == false) { in finalDebugPackage() 390 File file = new File(path); in finalPackage() 481 public void runProguard(List<File> proguardConfigs, File inputJar, Collection<String> jarFiles, in runProguard() 482 File obfuscatedJar, File logOutput) in runProguard() 490 for (File configFile : proguardConfigs) { in runProguard() 498 sb.append(File.pathSeparatorChar); in runProguard() 511 sb.append(File.pathSeparatorChar); in runProguard() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/resources/platform/ |
D | AttributeInfoTest.java | 45 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/ |
D | PreviewIconFactory.java | 60 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 …]
|