2
// Copyright (c) 2010-2011 Linaro Limited
4
// All rights reserved. This program and the accompanying materials
5
// are made available under the terms of the MIT License which accompanies
6
// this distribution, and is available at
7
// http://www.opensource.org/licenses/mit-license.php
10
// Alexandros Frantzis <alexandros.frantzis@linaro.org>
11
// Jesse Barker <jesse.barker@linaro.org>
23
#include <android/asset_manager_jni.h>
27
static void split(const std::string &s, char delim, std::vector<std::string> &elems);
28
static uint64_t get_timestamp_us();
29
static std::istream *get_resource(const std::string &path);
30
static void list_files(const std::string& dirName, std::vector<std::string>& fileVec);
31
template <class T> static void dispose_pointer_vector(std::vector<T*> &vec)
33
for (typename std::vector<T*>::const_iterator iter = vec.begin();
44
fromString(const std::string& asString)
46
std::stringstream ss(asString);
61
appname_from_path(const std::string& path);
64
static void android_set_asset_manager(AAssetManager *asset_manager);
65
static AAssetManager *android_get_asset_manager(void);
67
static AAssetManager *android_asset_manager;