OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:ApkAssets
(Results
1 - 5
of
5
) sorted by null
/frameworks/base/libs/androidfw/include/androidfw/
ApkAssets.h
35
class
ApkAssets
{
37
// Creates an
ApkAssets
.
40
static std::unique_ptr<const
ApkAssets
> Load(const std::string& path, bool system = false);
42
// Creates an
ApkAssets
, but forces any package with ID 0x7f to be loaded as a shared library.
45
static std::unique_ptr<const
ApkAssets
> LoadAsSharedLibrary(const std::string& path,
48
// Creates an
ApkAssets
from an IDMAP, which contains the original APK path, and the overlay
52
static std::unique_ptr<const
ApkAssets
> LoadOverlay(const std::string& idmap_path,
55
// Creates an
ApkAssets
from the given file descriptor, and takes ownership of the file
57
// this
ApkAssets
in log messages and other debug scenarios.
61
static std::unique_ptr<const
ApkAssets
> LoadFromFd(base::unique_fd fd
[
all
...]
/external/libmojo/base/android/java/src/org/chromium/base/
ApkAssets.java
23
public class
ApkAssets
{
24
private static final String LOGTAG = "
ApkAssets
";
/frameworks/base/core/java/android/content/res/
ApkAssets.java
32
* Since the
ApkAssets
instance is immutable, it can be reused and shared across AssetManagers,
36
public final class
ApkAssets
{
41
* Creates a new
ApkAssets
instance from the given path on disk.
44
* @return a new instance of
ApkAssets
.
47
public static @NonNull
ApkAssets
loadFromPath(@NonNull String path) throws IOException {
48
return new
ApkAssets
(path, false /*system*/, false /*forceSharedLib*/, false /*overlay*/);
52
* Creates a new
ApkAssets
instance from the given path on disk.
56
* @return a new instance of
ApkAssets
.
59
public static @NonNull
ApkAssets
loadFromPath(@NonNull String path, boolean system)
61
return new
ApkAssets
(path, system, false /*forceSharedLib*/, false /*overlay*/)
[
all
...]
AssetManager.java
65
private static final
ApkAssets
[] sEmptyApkAssets = new
ApkAssets
[0];
70
@GuardedBy("sSync") private static
ApkAssets
[] sSystemApkAssets = new
ApkAssets
[0];
71
@GuardedBy("sSync") private static ArraySet<
ApkAssets
> sSystemApkAssetsSet;
101
@GuardedBy("this") private
ApkAssets
[] mApkAssets;
110
* {@link AssetManager#setApkAssets(
ApkAssets
[], boolean)}. Without using this builder,
111
* AssetManager must ensure there are system
ApkAssets
loaded at all times, which when combined
112
* with the user's call to add additional
ApkAssets
, results in multiple calls to
113
* {@link AssetManager#setApkAssets(
ApkAssets
[], boolean)}
[
all
...]
/frameworks/base/libs/androidfw/
ApkAssets.cpp
17
#include "androidfw/
ApkAssets
.h"
42
ApkAssets
::
ApkAssets
(void* unmanaged_handle, const std::string& path)
46
std::unique_ptr<const
ApkAssets
>
ApkAssets
::Load(const std::string& path, bool system) {
50
std::unique_ptr<const
ApkAssets
>
ApkAssets
::LoadAsSharedLibrary(const std::string& path,
55
std::unique_ptr<const
ApkAssets
>
ApkAssets
::LoadOverlay(const std::string& idmap_path,
74
std::unique_ptr<const
ApkAssets
> ApkAssets::LoadFromFd(unique_fd fd
[
all
...]
Completed in 3308 milliseconds