1 /*
2  * Copyright (C) 2019 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.providers.media.scan;
18 
19 import android.content.Context;
20 import android.net.Uri;
21 
22 import com.android.providers.media.MediaVolume;
23 
24 import java.io.File;
25 
26 @Deprecated
27 public class LegacyMediaScanner implements MediaScanner {
28     private final Context mContext;
29 
LegacyMediaScanner(Context context)30     public LegacyMediaScanner(Context context) {
31         mContext = context;
32     }
33 
34     @Override
getContext()35     public Context getContext() {
36         return mContext;
37     }
38 
39     @Override
scanDirectory(File file, int reason)40     public void scanDirectory(File file, int reason) {
41         throw new UnsupportedOperationException();
42     }
43 
44     @Override
scanFile(File file, int reason)45     public Uri scanFile(File file, int reason) {
46         throw new UnsupportedOperationException();
47     }
48 
49     @Override
onDetachVolume(MediaVolume volume)50     public void onDetachVolume(MediaVolume volume) {
51         throw new UnsupportedOperationException();
52     }
53 
54     @Override
onIdleScanStopped()55     public void onIdleScanStopped() {
56         throw new UnsupportedOperationException();
57     }
58 
59     @Override
onDirectoryDirty(File file)60     public void onDirectoryDirty(File file) {
61         throw new UnsupportedOperationException();
62     }
63 }
64