Lines Matching refs:path
80 const string& path, uid_t uid) { in insertFileInternal() argument
81 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in insertFileInternal()
91 const string& path, uid_t uid) { in deleteFileInternal() argument
92 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in deleteFileInternal()
102 jmethodID mid_is_diraccess_allowed, const string& path, uid_t uid, in isDirAccessAllowedInternal() argument
104 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in isDirAccessAllowedInternal()
116 const string& path) { in isUidAllowedAccessToDataOrObbPathInternal() argument
117 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in isUidAllowedAccessToDataOrObbPathInternal()
129 const string& path) { in getFilesInDirectoryInternal() argument
131 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in getFilesInDirectoryInternal()
188 jmethodID mid_on_file_created, const string& path) { in onFileCreatedInternal() argument
189 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in onFileCreatedInternal()
282 int MediaProviderWrapper::InsertFile(const string& path, uid_t uid) { in InsertFile() argument
288 return insertFileInternal(env, media_provider_object_, mid_insert_file_, path, uid); in InsertFile()
291 int MediaProviderWrapper::DeleteFile(const string& path, uid_t uid) { in DeleteFile() argument
293 int res = unlink(path.c_str()); in DeleteFile()
298 return deleteFileInternal(env, media_provider_object_, mid_delete_file_, path, uid); in DeleteFile()
301 std::unique_ptr<FileOpenResult> MediaProviderWrapper::OnFileOpen(const string& path, in OnFileOpen() argument
312 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in OnFileOpen()
353 int MediaProviderWrapper::IsCreatingDirAllowed(const string& path, uid_t uid) { in IsCreatingDirAllowed() argument
359 return isDirAccessAllowedInternal(env, media_provider_object_, mid_is_diraccess_allowed_, path, in IsCreatingDirAllowed()
363 int MediaProviderWrapper::IsDeletingDirAllowed(const string& path, uid_t uid) { in IsDeletingDirAllowed() argument
369 return isDirAccessAllowedInternal(env, media_provider_object_, mid_is_diraccess_allowed_, path, in IsDeletingDirAllowed()
374 uid_t uid, const string& path, DIR* dirp) { in GetDirectoryEntries() argument
383 … res = getFilesInDirectoryInternal(env, media_provider_object_, mid_get_files_in_dir_, uid, path); in GetDirectoryEntries()
397 int MediaProviderWrapper::IsOpendirAllowed(const string& path, uid_t uid, bool forWrite) { in IsOpendirAllowed() argument
403 return isDirAccessAllowedInternal(env, media_provider_object_, mid_is_diraccess_allowed_, path, in IsOpendirAllowed()
408 bool MediaProviderWrapper::isUidAllowedAccessToDataOrObbPath(uid_t uid, const string& path) { in isUidAllowedAccessToDataOrObbPath() argument
415 env, media_provider_object_, mid_is_uid_allowed_access_to_data_or_obb_path_, uid, path); in isUidAllowedAccessToDataOrObbPath()
431 void MediaProviderWrapper::OnFileCreated(const string& path) { in OnFileCreated() argument
434 return onFileCreatedInternal(env, media_provider_object_, mid_on_file_created_, path); in OnFileCreated()
460 std::unique_ptr<FileLookupResult> MediaProviderWrapper::FileLookup(const std::string& path, in FileLookup() argument
464 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in FileLookup()