HomeSort by relevance Sort by last modified time
    Searched refs:MemoryFile (Results 1 - 25 of 45) sorted by null

1 2

  /external/bsdiff/
memory_file.cc 12 MemoryFile::MemoryFile(const uint8_t* data, size_t size)
15 bool MemoryFile::Read(void* buf, size_t count, size_t* bytes_read) {
23 bool MemoryFile::Write(const void* buf, size_t count, size_t* bytes_written) {
27 bool MemoryFile::Seek(off_t pos) {
34 bool MemoryFile::Close() {
38 bool MemoryFile::GetSize(uint64_t* size) {
memory_file.h 14 class MemoryFile : public FileInterface {
16 // Creates a read only MemoryFile based on the underlying |data| passed.
17 // The MemoryFile will use data starting from |data| with length of |size| as
19 MemoryFile(const uint8_t* data, size_t size);
21 ~MemoryFile() = default;
bspatch.cc 235 std::unique_ptr<FileInterface> old_file(new MemoryFile(old_data, old_size));
  /device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
MemoryFile.c 20 #include "MemoryFile.h"
108 MEMORY_FILE *MemoryFile;
112 MemoryFile = (MEMORY_FILE*)InputMemoryFile;
114 free (MemoryFile->FileImage);
119 memset (MemoryFile, 0xcc, sizeof (*MemoryFile));
120 MemoryFile->Eof -= 1;
122 free (MemoryFile);
243 MEMORY_FILE *MemoryFile;
247 MemoryFile = (MEMORY_FILE*)InputMemoryFile;
    [all...]
ParseGuidedSectionTools.c 19 #include "MemoryFile.h"
68 EFI_HANDLE MemoryFile;
71 Status = GetMemoryFile (InputFile, &MemoryFile);
76 ParsedGuidedSectionTools = ParseGuidedSectionToolsMemoryFile (MemoryFile);
78 FreeMemoryFile (MemoryFile);
GNUmakefile 30 MemoryFile.o \
Makefile 29 MemoryFile.obj \
ParseInf.h 21 #include <MemoryFile.h>
  /cts/tests/tests/os/src/android/os/cts/
MemoryFileTest.java 24 import android.os.MemoryFile;
27 MemoryFile mMemoryFile;
36 new MemoryFile("Test File", 1024);
41 mMemoryFile = new MemoryFile("Test File", 1024);
58 fail("MemoryFile should throw IndexOutOfBoundsException here.");
66 // new the MemoryFile instance
67 mMemoryFile = new MemoryFile("Test File", 1024);
80 // new the MemoryFile instance
81 mMemoryFile = new MemoryFile("Test File", 1024);
98 mMemoryFile = new MemoryFile("Test File", 1024)
    [all...]
SeccompTest.java 31 import android.os.MemoryFile;
369 MemoryFile file = new MemoryFile("seccomp_isolated_test", 32);
  /frameworks/base/core/tests/coretests/src/android/os/
MemoryFileTest.java 47 List<MemoryFile> files = new ArrayList<MemoryFile>();
52 MemoryFile newFile = new MemoryFile("MemoryFileTest", 10000000);
56 for (MemoryFile file : files) {
66 for (MemoryFile fileToClose : files) {
74 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000);
105 MemoryFile file = new MemoryFile("MemoryFileTest", 10)
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowSensorManager.java 10 import android.os.MemoryFile;
72 public Object createDirectChannel(MemoryFile mem) {
  /frameworks/base/core/java/android/hardware/
SensorDirectChannel.java 19 import android.os.MemoryFile;
31 * {@link SensorManager#createDirectChannel(android.os.MemoryFile)} or
50 * Shared memory type ashmem, wrapped in MemoryFile object.
52 * @see SensorManager#createDirectChannel(MemoryFile)
132 * @see SensorManager#createDirectChannel(MemoryFile)
207 * This function encode handle information in {@link android.os.MemoryFile} into a long array to
211 static long[] encodeData(MemoryFile ashmem) {
SensorManager.java 24 import android.os.MemoryFile;
    [all...]
SystemSensorManager.java 25 import android.os.MemoryFile;
556 MemoryFile memoryFile, HardwareBuffer hardwareBuffer) {
560 if (memoryFile != null) {
563 fd = memoryFile.getFileDescriptor().getInt$();
565 throw new IllegalArgumentException("MemoryFile object is not valid");
568 if (memoryFile.length() < MIN_DIRECT_CHANNEL_BUFFER_SIZE) {
570 "Size of MemoryFile has to be greater than "
574 size = memoryFile.length();
579 new IOException("create MemoryFile direct channel failed " + id))
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowSensorManagerTest.java 13 import android.os.MemoryFile;
44 SensorDirectChannel channel = (SensorDirectChannel) sensorManager.createDirectChannel(new MemoryFile("name", 10));
  /frameworks/base/core/java/android/os/
MemoryFile.java 29 * MemoryFile is a wrapper for {@link SharedMemory} which can optionally be set to purgeable.
32 * access & control over the shared memory region than MemoryFile does.
39 public class MemoryFile {
40 private static String TAG = "MemoryFile";
57 public MemoryFile(String name, int length) throws IOException {
91 throw new IOException("MemoryFile has been deactivated");
99 throw new IOException("MemoryFile has been purged");
ParcelFileDescriptor.java 537 MemoryFile file = new MemoryFile(name, data.length);
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/util/
AsyncSensorManager.java 28 import android.os.MemoryFile;
86 protected SensorDirectChannel createDirectChannelImpl(MemoryFile memoryFile,
  /frameworks/base/services/core/java/com/android/server/
GraphicsStatsService.java 29 import android.os.MemoryFile;
189 private ParcelFileDescriptor getPfd(MemoryFile file) {
410 MemoryFile mProcessBuffer;
421 mProcessBuffer = new MemoryFile("GFXStats-" + pid, ASHMEM_SIZE);
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/
FakeSensorManager.java 29 import android.os.MemoryFile;
134 protected SensorDirectChannel createDirectChannelImpl(MemoryFile memoryFile,
  /cts/tests/sensor/src/android/hardware/cts/
SensorDirectReportTest.java 30 import android.os.MemoryFile;
146 private MemoryFile mMemoryFile;
147 private MemoryFile mMemoryFileSecondary;
198 assertTrue("allocating MemoryFile returned null: "
454 // MemoryFile identification is not supported by Android yet
    [all...]
  /frameworks/base/core/java/com/android/internal/os/
BatteryStatsHelper.java 29 import android.os.MemoryFile;
    [all...]
  /prebuilts/tools/common/m2/repository/com/github/marschall/memoryfilesystem/0.6.4/
memoryfilesystem-0.6.4.jar 
  /external/mesa3d/src/gallium/drivers/nouveau/codegen/
nv50_ir_from_tgsi.cpp 978 struct MemoryFile {
981 std::vector<MemoryFile> memoryFiles;
    [all...]

Completed in 1072 milliseconds

1 2