Search in sources :

Example 6 with DocumentArchiveHelper

use of android.support.provider.DocumentArchiveHelper in project android_frameworks_base by crdroidandroid.

the class ExternalStorageProvider method onCreate.

@Override
public boolean onCreate() {
    mStorageManager = (StorageManager) getContext().getSystemService(Context.STORAGE_SERVICE);
    mHandler = new Handler();
    mArchiveHelper = new DocumentArchiveHelper(this, (char) 0);
    updateVolumes();
    return true;
}
Also used : Handler(android.os.Handler) DocumentArchiveHelper(android.support.provider.DocumentArchiveHelper)

Example 7 with DocumentArchiveHelper

use of android.support.provider.DocumentArchiveHelper in project platform_frameworks_base by android.

the class BugreportStorageProvider method onCreate.

@Override
public boolean onCreate() {
    mRoot = new File(getContext().getFilesDir(), "bugreports");
    mArchiveHelper = new DocumentArchiveHelper(this, (char) 0);
    return true;
}
Also used : DocumentArchiveHelper(android.support.provider.DocumentArchiveHelper) File(java.io.File)

Example 8 with DocumentArchiveHelper

use of android.support.provider.DocumentArchiveHelper in project android_frameworks_base by AOSPA.

the class BugreportStorageProvider method onCreate.

@Override
public boolean onCreate() {
    mRoot = new File(getContext().getFilesDir(), "bugreports");
    mArchiveHelper = new DocumentArchiveHelper(this, (char) 0);
    return true;
}
Also used : DocumentArchiveHelper(android.support.provider.DocumentArchiveHelper) File(java.io.File)

Example 9 with DocumentArchiveHelper

use of android.support.provider.DocumentArchiveHelper in project android_frameworks_base by ResurrectionRemix.

the class BugreportStorageProvider method onCreate.

@Override
public boolean onCreate() {
    mRoot = new File(getContext().getFilesDir(), "bugreports");
    mArchiveHelper = new DocumentArchiveHelper(this, (char) 0);
    return true;
}
Also used : DocumentArchiveHelper(android.support.provider.DocumentArchiveHelper) File(java.io.File)

Example 10 with DocumentArchiveHelper

use of android.support.provider.DocumentArchiveHelper in project android_frameworks_base by ResurrectionRemix.

the class ExternalStorageProvider method onCreate.

@Override
public boolean onCreate() {
    mStorageManager = (StorageManager) getContext().getSystemService(Context.STORAGE_SERVICE);
    mHandler = new Handler();
    mArchiveHelper = new DocumentArchiveHelper(this, (char) 0);
    updateVolumes();
    return true;
}
Also used : Handler(android.os.Handler) DocumentArchiveHelper(android.support.provider.DocumentArchiveHelper)

Aggregations

DocumentArchiveHelper (android.support.provider.DocumentArchiveHelper)10 Handler (android.os.Handler)5 File (java.io.File)5