/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/ |
D | BrokenKeyDerivationActivity.java | 240 private void readFromFileOrCreateRandom(String fileName, byte[] bytes) { in readFromFileOrCreateRandom() argument 241 if (fileExists(fileName)) { in readFromFileOrCreateRandom() 242 readBytesFromFile(fileName, bytes); in readFromFileOrCreateRandom() 247 writeToFile(fileName, bytes); in readFromFileOrCreateRandom() 250 private boolean fileExists(String fileName) { in fileExists() argument 251 File file = new File(getFilesDir(), fileName); in fileExists() 255 private void removeFile(String fileName) { in removeFile() argument 256 File file = new File(getFilesDir(), fileName); in removeFile() 260 private void writeToFile(String fileName, byte[] bytes) { in writeToFile() argument 261 try (FileOutputStream fos = openFileOutput(fileName, Context.MODE_PRIVATE)) { in writeToFile() [all …]
|
/development/samples/browseable/AutoBackupForApps/src/com.example.android.autobackupsample/ |
D | AddFileActivity.java | 108 String fileName = getIntent().getStringExtra(FILE_NAME); in onResume() local 116 if (TextUtils.isEmpty(fileName) || in onResume() 117 isFileExists(fileName) || in onResume() 133 createFileWithRandomDataAndFinishActivity(fileName, mFileStorage, in onResume() 146 String fileName = fileNameEditText.getText().toString(); in onCreateFileButtonClick() local 149 if (TextUtils.isEmpty(fileName) || isFileExists(fileName)) { in onCreateFileButtonClick() 174 createFileWithRandomDataAndFinishActivity(fileName, mFileStorage, String.valueOf(fileSize)); in onCreateFileButtonClick() 222 private void createFileWithRandomDataAndFinishActivity(String fileName, FileStorage storage, in createFileWithRandomDataAndFinishActivity() argument 231 file = getInternalFile(fileName); in createFileWithRandomDataAndFinishActivity() 238 file = new File(externalAppDir, fileName); in createFileWithRandomDataAndFinishActivity() [all …]
|
D | MainActivityFragment.java | 110 String fileName = getItem(position).getAbsolutePath(); in onResume() 111 fileNameView.setText(fileName); in onResume()
|
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/ |
D | SimpleWebServer.java | 181 private byte[] loadContent(String fileName) throws IOException { in loadContent() argument 185 input = mAssets.open(fileName); in loadContent() 208 private String detectMimeType(String fileName) { in detectMimeType() argument 209 if (TextUtils.isEmpty(fileName)) { in detectMimeType() 211 } else if (fileName.endsWith(".html")) { in detectMimeType() 213 } else if (fileName.endsWith(".js")) { in detectMimeType() 215 } else if (fileName.endsWith(".css")) { in detectMimeType()
|
/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/ |
D | DirectoryEntry.java | 26 public String fileName; field in DirectoryEntry 32 fileName = in.readString(); in DirectoryEntry() 55 parcel.writeString(fileName); in writeToParcel()
|
D | DirectoryEntryAdapter.java | 38 viewHolder.fileName.setText(mDirectoryEntries.get(position).fileName); in onBindViewHolder() 63 public TextView fileName; field in DirectoryEntryAdapter.ViewHolder 69 fileName = (TextView) v.findViewById(R.id.textview_filename); in ViewHolder()
|
D | ScopedDirectoryAccessFragment.java | 205 entry.fileName = childCursor.getString(childCursor.getColumnIndex( in updateDirectoryEntries()
|
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/ |
D | JsonUtils.java | 37 public static JSONObject loadJsonFile(Context context, String fileName) throws IOException, in loadJsonFile() argument 39 InputStream is = context.getAssets().open(fileName); in loadJsonFile()
|
/development/samples/browseable/ActivitySceneTransitionBasic/src/com.example.android.activityscenetransitionbasic/ |
D | Item.java | 52 Item (String name, String author, String fileName) { in Item() argument 55 mFileName = fileName; in Item()
|
/development/tools/apkcheck/src/com/android/apkcheck/ |
D | ApkCheck.java | 160 static boolean parseApiDescr(ApiList apiList, String fileName) { in parseApiDescr() argument 164 FileReader fileReader = new FileReader(fileName); in parseApiDescr() 165 result = parseXml(apiList, fileReader, fileName); in parseApiDescr() 168 System.err.println("Error opening " + fileName); in parseApiDescr() 181 String fileName) { in parseXml() argument 194 System.err.println("Error parsing " + fileName + " line " + in parseXml() 197 System.err.println("Error while reading " + fileName + ": " + in parseXml()
|
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
D | RSSPullParser.java | 145 String fileName; in parseXml() local 177 fileName = Uri.parse(urlValue).getLastPathSegment(); in parseXml() 178 mImage.put(imageNameKey, fileName); in parseXml()
|
/development/tools/rmtypedefs/test/com/android/tools/rmtypedefs/ |
D | RmTypeDefsTest.java | 220 String fileName = file.getName(); in list() local 222 fileName = rootName; in list() 224 sb.append(fileName); in list() 238 prefix = prefix + fileName + "/"; in list()
|
/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/ |
D | DirectoryEntry.java | 23 public String fileName; field in DirectoryEntry
|
D | DirectoryEntryAdapter.java | 82 viewHolder.getFileName().setText(mDirectoryEntries.get(position).fileName); in onBindViewHolder()
|
D | DirectorySelectionFragment.java | 179 entry.fileName = childCursor.getString(0); in updateDirectoryEntries()
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeySourceRandomScript.java | 63 for (String fileName: scriptFileNames) { in MonkeySourceRandomScript() 64 mScriptSources.add(new MonkeySourceScript(random, fileName, throttle, in MonkeySourceRandomScript()
|
D | Monkey.java | 865 private static boolean loadPackageListFromFile(String fileName, Set<String> list) { in loadPackageListFromFile() argument 868 reader = new BufferedReader(new FileReader(fileName)); in loadPackageListFromFile()
|
/development/ndk/sources/android/ndk_helper/ |
D | JNIHelper.cpp | 107 bool JNIHelper::ReadFile( const char* fileName, in ReadFile() argument 127 if( fileName[0] != '/' ) in ReadFile() 131 s.append( fileName ); in ReadFile() 154 AAsset* assetFile = AAssetManager_open( assetManager, fileName, AASSET_MODE_BUFFER ); in ReadFile() 166 LOGI( "Failed to load:%s", fileName ); in ReadFile()
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
D | MmsMessagingDemo.java | 161 final String fileName = "send." + String.valueOf(Math.abs(mRandom.nextLong())) + ".dat"; in sendMessage() local 162 mSendFile = new File(getCacheDir(), fileName); in sendMessage() 171 .path(fileName) in sendMessage() 216 final String fileName = "download." + String.valueOf(Math.abs(mRandom.nextLong())) + ".dat"; in downloadMessage() local 217 mDownloadFile = new File(getCacheDir(), fileName); in downloadMessage() 224 .path(fileName) in downloadMessage()
|
/development/tools/rmtypedefs/src/com/android/tools/rmtypedefs/ |
D | RmTypeDefs.java | 179 String fileName = file.getName(); in addTypeDef() local 180 int index = fileName.lastIndexOf('$'); in addTypeDef() 184 File container = new File(parentFile, fileName.substring(0, index) + ".class"); in addTypeDef()
|
/development/tools/checkstyle/ |
D | checkstyle.jar | META-INF/MANIFEST.MF
META-INF/
checkstyle_packages.xml
sun_checks.xml
com/
... |