HomeSort by relevance Sort by last modified time
    Searched refs:MemoryFile (Results 1 - 25 of 41) 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 273 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"
107 MEMORY_FILE *MemoryFile;
111 MemoryFile = (MEMORY_FILE*)InputMemoryFile;
113 free (MemoryFile->FileImage);
118 memset (MemoryFile, 0xcc, sizeof (*MemoryFile));
119 MemoryFile->Eof -= 1;
121 free (MemoryFile);
239 MEMORY_FILE *MemoryFile;
243 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 46 List<MemoryFile> files = new ArrayList<MemoryFile>();
51 MemoryFile newFile = new MemoryFile("MemoryFileTest", 10000000);
55 for (MemoryFile file : files) {
65 for (MemoryFile fileToClose : files) {
73 MemoryFile file = new MemoryFile("MemoryFileTest", 1000000);
104 MemoryFile file = new MemoryFile("MemoryFileTest", 10)
    [all...]
  /frameworks/base/core/java/android/hardware/
SensorDirectChannel.java 19 import android.os.MemoryFile;
31 * {@link SensorManager#createDirectChannel(android.os.MemoryFile)} or
46 * Shared memory type ashmem, wrapped in MemoryFile object.
48 * @see SensorManager#createDirectChannel(MemoryFile)
123 * @see SensorManager#createDirectChannel(MemoryFile)
198 * This function encode handle information in {@link android.os.MemoryFile} into a long array to
202 static long[] encodeData(MemoryFile ashmem) {
SensorManager.java 24 import android.os.MemoryFile;
    [all...]
SystemSensorManager.java 25 import android.os.MemoryFile;
554 MemoryFile memoryFile, HardwareBuffer hardwareBuffer) {
558 if (memoryFile != null) {
561 fd = memoryFile.getFileDescriptor().getInt$();
563 throw new IllegalArgumentException("MemoryFile object is not valid");
566 if (memoryFile.length() < MIN_DIRECT_CHANNEL_BUFFER_SIZE) {
568 "Size of MemoryFile has to be greater than "
572 size = memoryFile.length();
577 new IOException("create MemoryFile direct channel failed " + id))
    [all...]
  /cts/tests/sensor/src/android/hardware/cts/
SensorDirectReportTest.java 27 import android.os.MemoryFile;
76 private MemoryFile mMemoryFile;
123 assertTrue("allocating MemoryFile returned null",
269 assertTrue("MemoryFile is null", mMemoryFile != null);
321 private MemoryFile allocateMemoryFile() {
322 MemoryFile memFile = null;
324 memFile = new MemoryFile("Sensor Channel", SHARED_MEMORY_SIZE);
326 Log.e(TAG, "IOException when allocating MemoryFile");
354 Log.e(TAG, "Read MemoryFile content fail");
374 assertTrue("read MemoryFile content failed", readMemoryFileContent())
    [all...]
  /frameworks/base/services/core/java/com/android/server/
GraphicsStatsService.java 29 import android.os.MemoryFile;
188 private ParcelFileDescriptor getPfd(MemoryFile file) {
409 MemoryFile mProcessBuffer;
419 mProcessBuffer = new MemoryFile("GFXStats-" + pid, ASHMEM_SIZE);
  /frameworks/base/core/java/android/os/
MemoryFile.java 28 * MemoryFile is a wrapper for the Linux ashmem driver.
36 public class MemoryFile
38 private static String TAG = "MemoryFile";
69 public MemoryFile(String name, int length) throws IOException {
130 Log.e(TAG, "MemoryFile.finalize() called while ashmem still open");
ParcelFileDescriptor.java 537 MemoryFile file = new MemoryFile(name, data.length);
    [all...]
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/
FakeSensorManager.java 29 import android.os.MemoryFile;
112 protected SensorDirectChannel createDirectChannelImpl(MemoryFile memoryFile,
  /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 
  /frameworks/base/
preloaded-classes     [all...]
  /external/guice/extensions/persist/lib/
db4o-6.4.14.8131-java5.jar 
  /prebuilts/sdk/12/
android.jar 
  /prebuilts/sdk/14/
android.jar 

Completed in 2382 milliseconds

1 2