Searched refs:OnObbStateChangeListener (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | MountServiceTests.java | 23 import android.os.storage.OnObbStateChangeListener; 49 private static class ObbObserver extends OnObbStateChangeListener { 139 if (expectedState == OnObbStateChangeListener.MOUNTED) { in mountObb() 193 if (expectedState == OnObbStateChangeListener.UNMOUNTED) { in unmountObb() 204 mountObb(sm, R.raw.test1, outFile, OnObbStateChangeListener.MOUNTED); in testMountAndUnmountObbNormal() 206 mountObb(sm, R.raw.test1, outFile, OnObbStateChangeListener.ERROR_ALREADY_MOUNTED); in testMountAndUnmountObbNormal() 214 unmountObb(sm, outFile, OnObbStateChangeListener.UNMOUNTED); in testMountAndUnmountObbNormal() 223 mountObb(sm, R.raw.test1_nosig, outFile, OnObbStateChangeListener.ERROR_INTERNAL); in testAttemptMountNonObb() 239 OnObbStateChangeListener.ERROR_PERMISSION_DENIED); in testAttemptMountObbWrongPackage() 259 waitForObbActionCompletion(sm, file1, oo1, OnObbStateChangeListener.MOUNTED, false); in testMountAndUnmountTwoObbs() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
D | StorageManagerIntegrationTest.java | 126 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.MOUNTED); in testMountSingleEncryptedObb() 139 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.ERROR_COULD_NOT_MOUNT); in testMountSingleEncryptedObbInvalidPassword() 153 mountObb(filePath3, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.MOUNTED); in testMountTwoEncryptedObb() 158 mountObb(filePath1, OBB_FILE_1_PASSWORD, OnObbStateChangeListener.MOUNTED); in testMountTwoEncryptedObb() 224 mountObb(filePath, OBB_FILE_2_UNSIGNED, OnObbStateChangeListener.ERROR_INTERNAL); in testMountUnsignedObb() 235 OnObbStateChangeListener.ERROR_PERMISSION_DENIED); in testMountBadPackageNameObb() 247 mountObb(filePath, null, OnObbStateChangeListener.ERROR_ALREADY_MOUNTED); in testRemountObb()
|
D | StorageManagerBaseTest.java | 28 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/ |
D | OnObbStateChangeListener.java | 23 public abstract class OnObbStateChangeListener { class
|
D | StorageManager.java | 381 public int addListener(OnObbStateChangeListener listener) { in addListener() 400 private final WeakReference<OnObbStateChangeListener> mObbEventListenerRef; 405 ObbListenerDelegate(OnObbStateChangeListener listener) { in ObbListenerDelegate() 407 mObbEventListenerRef = new WeakReference<OnObbStateChangeListener>(listener); in ObbListenerDelegate() 411 final OnObbStateChangeListener changeListener = getListener(); in ObbListenerDelegate() 421 OnObbStateChangeListener getListener() { in getListener() 562 public boolean mountObb(String rawPath, String key, OnObbStateChangeListener listener) { in mountObb() 598 public boolean unmountObb(String rawPath, boolean force, OnObbStateChangeListener listener) { in unmountObb()
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 77 import android.os.storage.OnObbStateChangeListener; 3558 OnObbStateChangeListener.UNMOUNTED); in handleMessage() 3678 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_PERMISSION_DENIED); in handleExecute() 3688 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_ALREADY_MOUNTED); in handleExecute() 3706 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_INTERNAL); in handleExecute() 3710 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_INTERNAL); in handleExecute() 3734 sendNewStatusOrIgnore(OnObbStateChangeListener.MOUNTED); in handleExecute() 3738 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_COULD_NOT_MOUNT); in handleExecute() 3744 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_INTERNAL); in handleError() 3776 sendNewStatusOrIgnore(OnObbStateChangeListener.ERROR_NOT_MOUNTED); in handleExecute() [all …]
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 22442 public abstract class OnObbStateChangeListener { 22443 ctor public OnObbStateChangeListener(); 22458 … boolean mountObb(java.lang.String, java.lang.String, android.os.storage.OnObbStateChangeListener); 22459 … public boolean unmountObb(java.lang.String, boolean, android.os.storage.OnObbStateChangeListener);
|
/frameworks/base/api/ |
D | current.txt | 31750 public abstract class OnObbStateChangeListener { 31751 ctor public OnObbStateChangeListener(); 31778 … boolean mountObb(java.lang.String, java.lang.String, android.os.storage.OnObbStateChangeListener); 31782 … public boolean unmountObb(java.lang.String, boolean, android.os.storage.OnObbStateChangeListener);
|
D | system-current.txt | 34598 public abstract class OnObbStateChangeListener { 34599 ctor public OnObbStateChangeListener(); 34629 … boolean mountObb(java.lang.String, java.lang.String, android.os.storage.OnObbStateChangeListener); 34633 … public boolean unmountObb(java.lang.String, boolean, android.os.storage.OnObbStateChangeListener);
|