Search in sources :

Example 1 with DocumentArchiveHelper

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

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 2 with DocumentArchiveHelper

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

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 3 with DocumentArchiveHelper

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

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 4 with DocumentArchiveHelper

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

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 5 with DocumentArchiveHelper

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

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)

Aggregations

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