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 | 92 mountObb(filePath, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.MOUNTED); in testMountSingleEncryptedObb() 104 mountObb(filePath, OBB_FILE_1_PASSWORD, OnObbStateChangeListener.ERROR_COULD_NOT_MOUNT); in testMountSingleEncryptedObbInvalidPassword() 117 mountObb(filePath3, OBB_FILE_3_PASSWORD, OnObbStateChangeListener.MOUNTED); in testMountTwoEncryptedObb() 122 mountObb(filePath1, OBB_FILE_1_PASSWORD, OnObbStateChangeListener.MOUNTED); in testMountTwoEncryptedObb() 188 mountObb(filePath, OBB_FILE_2_UNSIGNED, OnObbStateChangeListener.ERROR_INTERNAL); in testMountUnsignedObb() 199 OnObbStateChangeListener.ERROR_PERMISSION_DENIED); in testMountBadPackageNameObb() 211 mountObb(filePath, null, OnObbStateChangeListener.ERROR_ALREADY_MOUNTED); in testRemountObb()
|
D | StorageManagerBaseTest.java | 157 public class ObbListener extends OnObbStateChangeListener { 287 return doMountObb(obbFilePath, null, OnObbStateChangeListener.MOUNTED); in mountObb() 334 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb_noThrow() 367 if (OnObbStateChangeListener.MOUNTED == expectedState) { in doMountObb() 371 } else if (OnObbStateChangeListener.UNMOUNTED == expectedState) { in doMountObb() 398 success &= (OnObbStateChangeListener.UNMOUNTED == obbListener.state()); in unmountObb_noThrow() 420 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 | 391 public int addListener(OnObbStateChangeListener listener) { in addListener() 410 private final WeakReference<OnObbStateChangeListener> mObbEventListenerRef; 415 ObbListenerDelegate(OnObbStateChangeListener listener) { in ObbListenerDelegate() 417 mObbEventListenerRef = new WeakReference<OnObbStateChangeListener>(listener); in ObbListenerDelegate() 421 final OnObbStateChangeListener changeListener = getListener(); in ObbListenerDelegate() 431 OnObbStateChangeListener getListener() { in getListener() 572 public boolean mountObb(String rawPath, String key, OnObbStateChangeListener listener) { in mountObb() 608 public boolean unmountObb(String rawPath, boolean force, OnObbStateChangeListener listener) { in unmountObb()
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 19 import static android.os.storage.OnObbStateChangeListener.ERROR_ALREADY_MOUNTED; 20 import static android.os.storage.OnObbStateChangeListener.ERROR_COULD_NOT_MOUNT; 21 import static android.os.storage.OnObbStateChangeListener.ERROR_COULD_NOT_UNMOUNT; 22 import static android.os.storage.OnObbStateChangeListener.ERROR_INTERNAL; 23 import static android.os.storage.OnObbStateChangeListener.ERROR_NOT_MOUNTED; 24 import static android.os.storage.OnObbStateChangeListener.ERROR_PERMISSION_DENIED; 25 import static android.os.storage.OnObbStateChangeListener.MOUNTED; 26 import static android.os.storage.OnObbStateChangeListener.UNMOUNTED; 93 import android.os.storage.OnObbStateChangeListener; 3150 OnObbStateChangeListener.UNMOUNTED); in handleMessage()
|
/frameworks/base/config/ |
D | hiddenapi-public-dex.txt | 31742 Landroid/os/storage/OnObbStateChangeListener; 31743 Landroid/os/storage/OnObbStateChangeListener;-><init>()V 31744 Landroid/os/storage/OnObbStateChangeListener;->ERROR_ALREADY_MOUNTED:I 31745 Landroid/os/storage/OnObbStateChangeListener;->ERROR_COULD_NOT_MOUNT:I 31746 Landroid/os/storage/OnObbStateChangeListener;->ERROR_COULD_NOT_UNMOUNT:I 31747 Landroid/os/storage/OnObbStateChangeListener;->ERROR_INTERNAL:I 31748 Landroid/os/storage/OnObbStateChangeListener;->ERROR_NOT_MOUNTED:I 31749 Landroid/os/storage/OnObbStateChangeListener;->ERROR_PERMISSION_DENIED:I 31750 Landroid/os/storage/OnObbStateChangeListener;->MOUNTED:I 31751 Landroid/os/storage/OnObbStateChangeListener;->onObbStateChange(Ljava/lang/String;I)V [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 | 33514 public abstract class OnObbStateChangeListener { 33515 ctor public OnObbStateChangeListener(); 33543 … boolean mountObb(java.lang.String, java.lang.String, android.os.storage.OnObbStateChangeListener); 33547 … public boolean unmountObb(java.lang.String, boolean, android.os.storage.OnObbStateChangeListener);
|