System directories
Method | Result |
---|---|
Environment.getDataDirectory() | /data |
Environment.getDownloadCacheDirectory() | /cache |
Environment.getRootDirectory() | /system |
External storage directories
/* | |
* Copyright 2012 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
// decode Y, U, and V values on the YUV 420 buffer described as YCbCr_422_SP by Android | |
// David Manpearl 081201 | |
public void decodeYUV(int[] out, byte[] fg, int width, int height) | |
throws NullPointerException, IllegalArgumentException { | |
int sz = width * height; | |
if (out == null) | |
throw new NullPointerException("buffer out is null"); | |
if (out.length < sz) | |
throw new IllegalArgumentException("buffer out size " + out.length | |
+ " < minimum " + sz); |
System directories
Method | Result |
---|---|
Environment.getDataDirectory() | /data |
Environment.getDownloadCacheDirectory() | /cache |
Environment.getRootDirectory() | /system |
External storage directories