Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f37143d8 authored by Michael Wright's avatar Michael Wright Committed by Android (Google) Code Review
Browse files

Merge "Cancel touches as well as pointer gestures." into mnc-dev

parents 570052f7 fbbaf2ef
Loading
Loading
Loading
Loading

docs/Doxyfile

0 → 100644
+1902 −0

File added.

Preview size limit exceeded, changes collapsed.

docs/Makefile

0 → 100644
+13 −0
Original line number Diff line number Diff line
HEADERS := $(wildcard ../include/android/*.h)

all: html jd

html: $(HEADERS) Doxyfile
	mkdir -p html
	doxygen

jd: $(HEADERS) Doxyfile header.jd
	mkdir -p jd
	HTML_HEADER=header.jd HTML_FOOTER=footer.jd HTML_OUTPUT=jd doxygen
	for file in jd/*.html; do mv "$${file}" "$${file/.html/.jd}"; done
	rm -f jd/index.jd

docs/footer.jd

0 → 100644
+0 −0

Empty file added.

docs/header.jd

0 → 100644
+3 −0
Original line number Diff line number Diff line
page.title=$title
page.customHeadTag=<link rel="stylesheet" type="text/css" href="doxygen-dac.css">
@jd:body
+41 −1
Original line number Diff line number Diff line
@@ -14,6 +14,14 @@
 * limitations under the License.
 */

/**
 * @addtogroup Asset
 * @{
 */

/**
 * @file asset_manager.h
 */

#ifndef ANDROID_ASSET_MANAGER_H
#define ANDROID_ASSET_MANAGER_H
@@ -23,19 +31,49 @@ extern "C" {
#endif

struct AAssetManager;
/**
 * {@link AAssetManager} provides access to an application's raw assets by
 * creating {@link AAsset} objects.
 *
 * AAssetManager is a wrapper to the low-level native implementation
 * of the java {@link AAssetManager}, a pointer can be obtained using
 * AAssetManager_fromJava().
 *
 * The asset hierarchy may be examined like a filesystem, using
 * {@link AAssetDir} objects to peruse a single directory.
 *
 * A native {@link AAssetManager} pointer may be shared across multiple threads.
 */
typedef struct AAssetManager AAssetManager;

struct AAssetDir;
/**
 * {@link AAssetDir} provides access to a chunk of the asset hierarchy as if
 * it were a single directory. The contents are populated by the
 * {@link AAssetManager}.
 *
 * The list of files will be sorted in ascending order by ASCII value.
 */
typedef struct AAssetDir AAssetDir;

struct AAsset;
/**
 * {@link AAsset} provides access to a read-only asset.
 *
 * {@link AAsset} objects are NOT thread-safe, and should not be shared across
 * threads.
 */
typedef struct AAsset AAsset;

/* Available modes for opening assets */
/** Available access modes for opening assets with {@link AAssetManager_open} */
enum {
    /** No specific information about how data will be accessed. **/
    AASSET_MODE_UNKNOWN      = 0,
    /** Read chunks, and seek forward and backward. */
    AASSET_MODE_RANDOM       = 1,
    /** Read sequentially, with an occasional forward seek. */
    AASSET_MODE_STREAMING    = 2,
    /** Caller plans to ask for a read-only buffer with all data. */
    AASSET_MODE_BUFFER       = 3
};

@@ -173,3 +211,5 @@ int AAsset_isAllocated(AAsset* asset);
#endif

#endif      // ANDROID_ASSET_MANAGER_H

/** @} */
Loading