Home
last modified time | relevance | path

Searched refs:OnObbStateChangeListener (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/
DMountServiceTests.java23 import android.os.storage.OnObbStateChangeListener;
61 private static class ObbObserver extends OnObbStateChangeListener {
151 if (expectedState == OnObbStateChangeListener.MOUNTED) { in mountObb()
206 if (expectedState == OnObbStateChangeListener.UNMOUNTED) { in unmountObb()
217 mountObb(sm, R.raw.test1, outFile, OnObbStateChangeListener.MOUNTED); in testMountAndUnmountObbNormal()
219 mountObb(sm, R.raw.test1, outFile, OnObbStateChangeListener.ERROR_ALREADY_MOUNTED); in testMountAndUnmountObbNormal()
227 unmountObb(sm, outFile, OnObbStateChangeListener.UNMOUNTED); in testMountAndUnmountObbNormal()
236 mountObb(sm, R.raw.test1_nosig, outFile, OnObbStateChangeListener.ERROR_INTERNAL); in testAttemptMountNonObb()
252 OnObbStateChangeListener.ERROR_PERMISSION_DENIED); in testAttemptMountObbWrongPackage()
272 waitForObbActionCompletion(sm, file1, oo1, OnObbStateChangeListener.MOUNTED, false); in testMountAndUnmountTwoObbs()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerIntegrationTest.java120 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.MOUNTED); in testMountSingleEncryptedObb()
132 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.ERROR_COULD_NOT_MOUNT); in testMountSingleEncryptedObbInvalidPassword()
146 mountObb(filePath3, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.MOUNTED); in testMountTwoEncryptedObb()
151 mountObb(filePath1, OBB_FILE_1_PASSWORD, OnObbStateChangeListener.MOUNTED); in testMountTwoEncryptedObb()
217 mountObb(filePath, OBB_FILE_2_UNSIGNED, OnObbStateChangeListener.ERROR_INTERNAL); in testMountUnsignedObb()
228 OnObbStateChangeListener.ERROR_PERMISSION_DENIED); in testMountBadPackageNameObb()
240 mountObb(filePath, null, OnObbStateChangeListener.ERROR_ALREADY_MOUNTED); in testRemountObb()
DStorageManagerBaseTest.java28 import android.os.storage.OnObbStateChangeListener;
160 public class ObbListener extends OnObbStateChangeListener {
315 return doMountObb(obbFilePath, null, OnObbStateChangeListener.MOUNTED); in mountObb()
362 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb_noThrow()
395 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb()
399 } else if (OnObbStateChangeListener.UNMOUNTED == expectedState) { in doMountObb()
426 success &= (OnObbStateChangeListener.UNMOUNTED == obbListener.state()); in unmountObb_noThrow()
448 assertEquals("OBB failed to unmount", OnObbStateChangeListener.UNMOUNTED, in unmountObb()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java130 public int addListener(OnObbStateChangeListener listener) { in addListener()
149 private final WeakReference<OnObbStateChangeListener> mObbEventListenerRef;
154 ObbListenerDelegate(OnObbStateChangeListener listener) { in ObbListenerDelegate()
156 mObbEventListenerRef = new WeakReference<OnObbStateChangeListener>(listener); in ObbListenerDelegate()
160 final OnObbStateChangeListener changeListener = getListener(); in ObbListenerDelegate()
177 OnObbStateChangeListener getListener() { in getListener()
459 public boolean mountObb(String rawPath, String key, OnObbStateChangeListener listener) { in mountObb()
497 public boolean unmountObb(String rawPath, boolean force, OnObbStateChangeListener listener) { in unmountObb()
DOnObbStateChangeListener.java23 public abstract class OnObbStateChangeListener { class
/frameworks/base/services/java/com/android/server/
DMountService.java53 import android.os.storage.OnObbStateChangeListener;
2327 OnObbStateChangeListener.UNMOUNTED); in handleMessage()
2447 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_PERMISSION_DENIED); in handleExecute()
2457 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_ALREADY_MOUNTED); in handleExecute()
2475 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_INTERNAL); in handleExecute()
2479 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_INTERNAL); in handleExecute()
2503 sendNewStatusOrIgnore(OnObbStateChangeListener.MOUNTED); in handleExecute()
2507 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_COULD_NOT_MOUNT); in handleExecute()
2513 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_INTERNAL); in handleError()
2547 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_NOT_MOUNTED); in handleExecute()
[all …]
/frameworks/base/docs/html/
Dsitemap.txt4078 http://developer.android.com/reference/android/os/storage/OnObbStateChangeListener.html
/frameworks/base/api/
Dcurrent.txt17713 public abstract class OnObbStateChangeListener {
17714 ctor public OnObbStateChangeListener();
17729 … boolean mountObb(java.lang.String, java.lang.String, android.os.storage.OnObbStateChangeListener);
17730 … public boolean unmountObb(java.lang.String, boolean, android.os.storage.OnObbStateChangeListener);