Search in sources :

Example 1 with MediaInserter

use of android.media.MediaInserter in project android_frameworks_base by ParanoidAndroid.

the class MediaInserterTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    mMockProvider = EasyMock.createMock(IContentProvider.class);
    mMediaInserter = new MediaInserter(mMockProvider, mPackageName, TEST_BUFFER_SIZE);
    mPackageName = getInstrumentation().getContext().getPackageName();
    mFilesCounter = 0;
    mAudioCounter = 0;
    mVideoCounter = 0;
    mImagesCounter = 0;
}
Also used : IContentProvider(android.content.IContentProvider) MediaInserter(android.media.MediaInserter)

Example 2 with MediaInserter

use of android.media.MediaInserter in project platform_frameworks_base by android.

the class MediaInserterTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    mMockProvider = EasyMock.createMock(IContentProvider.class);
    final ContentProviderClient client = new ContentProviderClient(getInstrumentation().getContext().getContentResolver(), mMockProvider, true);
    mMediaInserter = new MediaInserter(client, TEST_BUFFER_SIZE);
    mPackageName = getInstrumentation().getContext().getPackageName();
    mFilesCounter = 0;
    mAudioCounter = 0;
    mVideoCounter = 0;
    mImagesCounter = 0;
}
Also used : IContentProvider(android.content.IContentProvider) MediaInserter(android.media.MediaInserter) ContentProviderClient(android.content.ContentProviderClient)

Example 3 with MediaInserter

use of android.media.MediaInserter in project android_frameworks_base by crdroidandroid.

the class MediaInserterTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    mMockProvider = EasyMock.createMock(IContentProvider.class);
    final ContentProviderClient client = new ContentProviderClient(getInstrumentation().getContext().getContentResolver(), mMockProvider, true);
    mMediaInserter = new MediaInserter(client, TEST_BUFFER_SIZE);
    mPackageName = getInstrumentation().getContext().getPackageName();
    mFilesCounter = 0;
    mAudioCounter = 0;
    mVideoCounter = 0;
    mImagesCounter = 0;
}
Also used : IContentProvider(android.content.IContentProvider) MediaInserter(android.media.MediaInserter) ContentProviderClient(android.content.ContentProviderClient)

Example 4 with MediaInserter

use of android.media.MediaInserter in project android_frameworks_base by AOSPA.

the class MediaInserterTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    mMockProvider = EasyMock.createMock(IContentProvider.class);
    final ContentProviderClient client = new ContentProviderClient(getInstrumentation().getContext().getContentResolver(), mMockProvider, true);
    mMediaInserter = new MediaInserter(client, TEST_BUFFER_SIZE);
    mPackageName = getInstrumentation().getContext().getPackageName();
    mFilesCounter = 0;
    mAudioCounter = 0;
    mVideoCounter = 0;
    mImagesCounter = 0;
}
Also used : IContentProvider(android.content.IContentProvider) MediaInserter(android.media.MediaInserter) ContentProviderClient(android.content.ContentProviderClient)

Example 5 with MediaInserter

use of android.media.MediaInserter in project android_frameworks_base by DirtyUnicorns.

the class MediaInserterTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    mMockProvider = EasyMock.createMock(IContentProvider.class);
    final ContentProviderClient client = new ContentProviderClient(getInstrumentation().getContext().getContentResolver(), mMockProvider, true);
    mMediaInserter = new MediaInserter(client, TEST_BUFFER_SIZE);
    mPackageName = getInstrumentation().getContext().getPackageName();
    mFilesCounter = 0;
    mAudioCounter = 0;
    mVideoCounter = 0;
    mImagesCounter = 0;
}
Also used : IContentProvider(android.content.IContentProvider) MediaInserter(android.media.MediaInserter) ContentProviderClient(android.content.ContentProviderClient)

Aggregations

IContentProvider (android.content.IContentProvider)6 MediaInserter (android.media.MediaInserter)6 ContentProviderClient (android.content.ContentProviderClient)5