1/*
2 * Copyright (C) 2017 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 android.os;
18
19/** {@hide} */
20oneway interface IVoldListener {
21    void onDiskCreated(@utf8InCpp String diskId, int flags);
22    void onDiskScanned(@utf8InCpp String diskId);
23    void onDiskMetadataChanged(@utf8InCpp String diskId,
24            long sizeBytes, @utf8InCpp String label, @utf8InCpp String sysPath);
25    void onDiskDestroyed(@utf8InCpp String diskId);
26
27    void onVolumeCreated(@utf8InCpp String volId,
28            int type, @utf8InCpp String diskId, @utf8InCpp String partGuid);
29    void onVolumeStateChanged(@utf8InCpp String volId, int state);
30    void onVolumeMetadataChanged(@utf8InCpp String volId,
31            @utf8InCpp String fsType, @utf8InCpp String fsUuid, @utf8InCpp String fsLabel);
32    void onVolumePathChanged(@utf8InCpp String volId,
33            @utf8InCpp String path);
34    void onVolumeInternalPathChanged(@utf8InCpp String volId,
35            @utf8InCpp String internalPath);
36    void onVolumeDestroyed(@utf8InCpp String volId);
37}
38