blob: 33ea3ff849efea1c14f2c8b4f00c2d2b5fb5741a [file] [log] [blame]
Yifan Hong66a41442018-08-08 17:49:29 -07001/*
2 * Copyright (C) 2018 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.hardware.health.filesystem@1.0;
18
19/**
20 * IFileSystem is an interface that provides operations on underlying storage
21 * devices, including flash memory.
22 */
23interface IFileSystem {
24 /**
25 * Start garbage collection on the driver of storage devices. This function
26 * must be called at regular intervals when it is a good time for a
27 * longer-running cleanup tasks.
28 *
29 * @return result Execution result. See documentation for Result for
30 * details.
31 */
32 garbageCollect() generates (Result result);
33};