HomeSort by relevance Sort by last modified time
    Searched full:allowpurging (Results 1 - 3 of 3) sorted by null

  /frameworks/base/core/java/android/os/
MemoryFile.java 32 * in low memory conditions (only if allowPurging is set to true).
156 * @param allowPurging true if the operating system can purge the contents
158 * @return previous value of allowPurging
160 synchronized public boolean allowPurging(boolean allowPurging) throws IOException {
162 if (oldValue != allowPurging) {
163 native_pin(mFD, !allowPurging);
164 mAllowPurging = allowPurging;
  /cts/tests/tests/os/src/android/os/cts/
MemoryFileTest.java 83 assertFalse(mMemoryFile.allowPurging(true));
92 assertTrue(mMemoryFile.allowPurging(false));
  /frameworks/base/core/tests/coretests/src/android/os/
MemoryFileTest.java 52 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.");
    [all...]

Completed in 1198 milliseconds