Searched refs:allowPurging (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/core/java/android/os/
H A DMemoryFile.java32 * in low memory conditions (only if allowPurging is set to true).
151 * @param allowPurging true if the operating system can purge the contents
153 * @return previous value of allowPurging
155 synchronized public boolean allowPurging(boolean allowPurging) throws IOException { argument
157 if (oldValue != allowPurging) {
158 native_pin(mFD, !allowPurging);
159 mAllowPurging = allowPurging;
/frameworks/base/core/tests/coretests/src/android/os/
H A DMemoryFileTest.java52 newFile.allowPurging(true);
229 // Tests that we can't call allowPurging() after close()
238 file.allowPurging(true);
239 fail("allowPurging() after close() did not throw IOException.");

Completed in 168 milliseconds