Code examples for AssetFileDescriptor

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
40:	mp.setDataSource( afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); 
Full Snippet Info
10
CodeRank
574:	mp.setDataSource(afd.getFileDescriptor(),afd.getStartOffset(), afd.getLength()); 
-
578:	Thread.sleep(5000); 
Full Snippet Info
8
CodeRank
58:	player.setDataSource(file.getFileDescriptor(), file.getStartOffset(), file.getLength()); 
59:	file.close(); 
Full Snippet Info
7
CodeRank
40:	mp.setDataSource( afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); 
Full Snippet Info
7
CodeRank
246:	InputStream inputStream = assetFd.createInputStream(); 
247:	long length = assetFd.getLength(); 
248:	return new OpenForReadResult(uri, inputStream, mimeType, length, assetFd); 
Full Snippet Info
7
CodeRank
58:	long len = afd.getLength(); 
-
62:	player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), len); 
-
65:	afd.close(); 
Full Snippet Info
7
CodeRank
80:	long len = afd.getLength(); 
-
89:	player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), len); 
-
92:	afd.close(); 
Full Snippet Info
7
CodeRank
77:	AssetFileDescriptor afd = new AssetFileDescriptor(write, 0, -1); 
78:	new RequestHandler(getContext(), uri, afd.createOutputStream()).start(); 
Full Snippet Info
7
CodeRank
574:	mp.setDataSource(afd.getFileDescriptor(),afd.getStartOffset(), afd.getLength()); 
-
578:	Thread.sleep(5000); 
Full Snippet Info
6
CodeRank
18:	 
19:	public AndroidAudio(Activity activity) { 
20:	activity.setVolumeControlStream(AudioManager.STREAM_MUSIC); 
Full Snippet Info
7
CodeRank
93:	int soundId = mainActivity.sounds.load(fileDescriptor.getFileDescriptor(), fileDescriptor.getStartOffset(), fileDescriptor.getLength(), 1); 
94:	fileDescriptor.close(); 
Full Snippet Info
6
CodeRank
18:	mediaPlayer.setDataSource(assetDescriptor.getFileDescriptor(), 
19:	assetDescriptor.getStartOffset(), 
20:	assetDescriptor.getLength()); 
Full Snippet Info
7
CodeRank
30:	mediaPlayer.setDataSource(assetDescriptor.getFileDescriptor(), 
31:	assetDescriptor.getStartOffset(), 
32:	assetDescriptor.getLength()); 
Full Snippet Info
7
CodeRank
18:	 
19:	public AndroidAudio(Activity activity) { 
20:	activity.setVolumeControlStream(AudioManager.STREAM_MUSIC); 
Full Snippet Info
6
CodeRank
19:	mediaPlayer.setDataSource(assetDescriptor.getFileDescriptor(), assetDescriptor.getStartOffset(), assetDescriptor.getLength()); 
Full Snippet Info
6
CodeRank
16:	mediaPlayer.setDataSource(assetDescriptor.getFileDescriptor(), 
17:	assetDescriptor.getStartOffset(), 
18:	assetDescriptor.getLength()); 
Full Snippet Info
6
CodeRank
18:	mediaPlayer.setDataSource(assetDescriptor.getFileDescriptor(), 
19:	assetDescriptor.getStartOffset(), 
20:	assetDescriptor.getLength()); 
Full Snippet Info
6
CodeRank
102:	mediaPlayer.setDataSource(pAssetFileDescriptor.getFileDescriptor(), pAssetFileDescriptor.getStartOffset(), pAssetFileDescriptor.getLength()); 
Full Snippet Info
6
CodeRank
17:	public AndroidAudio(Activity activity) { 
Full Snippet Info
6
CodeRank
19:	public AndroidAudio(Activity activity){ 
20:	activity.setVolumeControlStream(AudioManager.STREAM_MUSIC); 
21:	this.assets = activity.getAssets(); 
Full Snippet Info
6
CodeRank