1be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey/*
2be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey * Copyright (C) 2014 The Android Open Source Project
3be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey *
4be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey * Licensed under the Apache License, Version 2.0 (the "License");
5be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey * you may not use this file except in compliance with the License.
6be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey * You may obtain a copy of the License at
7be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey *
8be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey *      http://www.apache.org/licenses/LICENSE-2.0
9be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey *
10be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey * Unless required by applicable law or agreed to in writing, software
11be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey * distributed under the License is distributed on an "AS IS" BASIS,
12be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey * See the License for the specific language governing permissions and
14be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey * limitations under the License.
15be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey */
16be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey
17be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkeypackage com.android.internal.os;
18be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey
19be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkeyimport android.os.ParcelFileDescriptor;
20be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey
21be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey/** {@hide} */
22be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkeyinterface IParcelFileDescriptorFactory {
23be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey    // NOTE: implementors should carefully sanitize the incoming name
24be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey    // using something like FileUtils.isValidExtFilename()
25be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey    ParcelFileDescriptor open(String name, int mode);
26be520fba1e45c77ca20eb66005a0cf19e10939a1Jeff Sharkey}
27