1559bf2836f5da25b75bfb229fec0d20d540ee426James Dong/*
2559bf2836f5da25b75bfb229fec0d20d540ee426James Dong * Copyright (C) 2008 The Android Open Source Project
3559bf2836f5da25b75bfb229fec0d20d540ee426James Dong *
4559bf2836f5da25b75bfb229fec0d20d540ee426James Dong * Licensed under the Apache License, Version 2.0 (the "License");
5559bf2836f5da25b75bfb229fec0d20d540ee426James Dong * you may not use this file except in compliance with the License.
6559bf2836f5da25b75bfb229fec0d20d540ee426James Dong * You may obtain a copy of the License at
7559bf2836f5da25b75bfb229fec0d20d540ee426James Dong *
8559bf2836f5da25b75bfb229fec0d20d540ee426James Dong *      http://www.apache.org/licenses/LICENSE-2.0
9559bf2836f5da25b75bfb229fec0d20d540ee426James Dong *
10559bf2836f5da25b75bfb229fec0d20d540ee426James Dong * Unless required by applicable law or agreed to in writing, software
11559bf2836f5da25b75bfb229fec0d20d540ee426James Dong * distributed under the License is distributed on an "AS IS" BASIS,
12559bf2836f5da25b75bfb229fec0d20d540ee426James Dong * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13559bf2836f5da25b75bfb229fec0d20d540ee426James Dong * See the License for the specific language governing permissions and
14559bf2836f5da25b75bfb229fec0d20d540ee426James Dong * limitations under the License.
15559bf2836f5da25b75bfb229fec0d20d540ee426James Dong */
16559bf2836f5da25b75bfb229fec0d20d540ee426James Dong
17559bf2836f5da25b75bfb229fec0d20d540ee426James Dong#ifndef ActivityManager_H
18559bf2836f5da25b75bfb229fec0d20d540ee426James Dong#define ActivityManager_H
19559bf2836f5da25b75bfb229fec0d20d540ee426James Dong
20559bf2836f5da25b75bfb229fec0d20d540ee426James Dong#include <utils/String16.h>
21559bf2836f5da25b75bfb229fec0d20d540ee426James Dong
22559bf2836f5da25b75bfb229fec0d20d540ee426James Dongnamespace android {
23559bf2836f5da25b75bfb229fec0d20d540ee426James Dong
24559bf2836f5da25b75bfb229fec0d20d540ee426James Dong// Perform a ContentProvider.openFile() call for the given URI.
25559bf2836f5da25b75bfb229fec0d20d540ee426James Dong//
26559bf2836f5da25b75bfb229fec0d20d540ee426James Dong// Returns the native file descriptor for the opened stream, < 0 on error.
27559bf2836f5da25b75bfb229fec0d20d540ee426James Dongextern int openContentProviderFile(const String16& uri);
28559bf2836f5da25b75bfb229fec0d20d540ee426James Dong
29559bf2836f5da25b75bfb229fec0d20d540ee426James Dong}
30559bf2836f5da25b75bfb229fec0d20d540ee426James Dong
31559bf2836f5da25b75bfb229fec0d20d540ee426James Dong#endif
32