blob: d73dda584a1febcd5d477ee7626b03894aafd856 [file] [log] [blame]
Jeff Sharkey10b4d8d2019-02-04 21:53:22 -07001/*
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
17package com.android.providers.media.scan;
18
19import android.content.Context;
20import android.net.Uri;
Jeff Sharkey10b4d8d2019-02-04 21:53:22 -070021
Martijn Coenenb5d6dde2021-04-01 16:17:41 +020022import com.android.providers.media.MediaVolume;
23
Jeff Sharkey10b4d8d2019-02-04 21:53:22 -070024import java.io.File;
25
Jeff Sharkey6669e0c2019-10-11 15:44:31 -060026@Deprecated
Jeff Sharkey10b4d8d2019-02-04 21:53:22 -070027public class LegacyMediaScanner implements MediaScanner {
28 private final Context mContext;
29
30 public LegacyMediaScanner(Context context) {
31 mContext = context;
32 }
33
34 @Override
35 public Context getContext() {
36 return mContext;
37 }
38
39 @Override
Jeff Sharkey3c0a6c62019-11-15 20:45:41 -070040 public void scanDirectory(File file, int reason) {
Jeff Sharkey6669e0c2019-10-11 15:44:31 -060041 throw new UnsupportedOperationException();
Jeff Sharkey10b4d8d2019-02-04 21:53:22 -070042 }
43
44 @Override
Jeff Sharkey3c0a6c62019-11-15 20:45:41 -070045 public Uri scanFile(File file, int reason) {
Jeff Sharkey6669e0c2019-10-11 15:44:31 -060046 throw new UnsupportedOperationException();
Jeff Sharkey10b4d8d2019-02-04 21:53:22 -070047 }
Jeff Sharkey68b2f062019-03-22 16:54:30 -060048
49 @Override
Martijn Coenenb5d6dde2021-04-01 16:17:41 +020050 public void onDetachVolume(MediaVolume volume) {
Jeff Sharkey6669e0c2019-10-11 15:44:31 -060051 throw new UnsupportedOperationException();
Jeff Sharkey68b2f062019-03-22 16:54:30 -060052 }
Zim32d6b152020-09-30 18:33:22 +010053
54 @Override
55 public void onIdleScanStopped() {
56 throw new UnsupportedOperationException();
57 }
Zim7e730f32020-09-30 11:38:50 +010058
59 @Override
60 public void onDirectoryDirty(File file) {
61 throw new UnsupportedOperationException();
62 }
Jeff Sharkey10b4d8d2019-02-04 21:53:22 -070063}