Home
last modified time | relevance | path

Searched refs:SharedMemory (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/core/java/android/os/
DSharedMemory.java40 public final class SharedMemory implements Parcelable, Closeable { class
47 private SharedMemory(FileDescriptor fd) { in SharedMemory() method in SharedMemory
82 public static @NonNull SharedMemory create(@Nullable String name, int size) in create()
87 return new SharedMemory(nCreate(name, size)); in create()
290 public static final @android.annotation.NonNull Parcelable.Creator<SharedMemory> CREATOR =
291 new Parcelable.Creator<SharedMemory>() {
293 public SharedMemory createFromParcel(Parcel source) {
295 return new SharedMemory(descriptor);
299 public SharedMemory[] newArray(int size) {
300 return new SharedMemory[size];
DHidlMemoryUtil.java79 try (SharedMemory shmem = SharedMemory.create(name != null ? name : "", input.length)) { in byteArrayToHidlMemory()
121 try (SharedMemory shmem = SharedMemory.create(name != null ? name : "", input.size())) { in byteListToHidlMemory()
194 @NonNull public static HidlMemory sharedMemoryToHidlMemory(@Nullable SharedMemory shmem) { in sharedMemoryToHidlMemory()
DMemoryFile.java49 private SharedMemory mSharedMemory;
62 mSharedMemory = SharedMemory.create(name, length); in MemoryFile()
88 SharedMemory.unmap(mMapping); in deactivate()
DSharedMemory.aidl20 parcelable SharedMemory;
/frameworks/base/core/java/com/android/internal/security/
DVerityUtils.java21 import android.os.SharedMemory;
140 SharedMemory shm = null; in generateApkVeritySetupData()
150 Pair<SharedMemory, Integer> result = in generateApkVeritySetupData()
198 private static Pair<SharedMemory, Integer> generateFsVerityIntoSharedMemory(String apkPath, in generateFsVerityIntoSharedMemory()
213 SharedMemory shm = shmBufferFactory.releaseSharedMemory(); in generateFsVerityIntoSharedMemory()
289 private SharedMemory mShm;
301 mShm = SharedMemory.create("apkverity", capacity); in create()
312 public SharedMemory releaseSharedMemory() { in releaseSharedMemory()
314 SharedMemory.unmap(mBuffer); in releaseSharedMemory()
317 SharedMemory tmp = mShm; in releaseSharedMemory()
/frameworks/base/services/core/java/com/android/server/graphics/fonts/
DFontManagerService.java31 import android.os.SharedMemory;
145 public SharedMemory getSerializedSystemFontMap() { in onStart()
189 private SharedMemory mSerializedFontMap = null;
227 @Nullable /* package */ SharedMemory getCurrentFontMap() { in getCurrentFontMap()
316 SharedMemory serializedFontMap = serializeFontMap(getSystemFontConfig()); in updateSerializedFontMap()
325 private static SharedMemory serializeFontMap(FontConfig fontConfig) { in serializeFontMap()
349 private static SharedMemory serializeSystemServerFontMap() { in serializeSystemServerFontMap()
358 private void setSerializedFontMap(SharedMemory serializedFontMap) { in setSerializedFontMap()
359 SharedMemory oldFontMap = null; in setSerializedFontMap()
DFontManagerInternal.java20 import android.os.SharedMemory;
26 @Nullable SharedMemory getSerializedSystemFontMap(); in getSerializedSystemFontMap()
/frameworks/base/core/jni/
Dandroid_os_SharedMemory.cpp83 NATIVE_METHOD(SharedMemory, nCreate, "(Ljava/lang/String;I)Ljava/io/FileDescriptor;"),
84 NATIVE_METHOD(SharedMemory, nGetSize, "(Ljava/io/FileDescriptor;)I"),
85 NATIVE_METHOD(SharedMemory, nSetProt, "(Ljava/io/FileDescriptor;I)I")
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DTypefaceSerializationPerfTest.java20 import android.os.SharedMemory;
55 SharedMemory memory = Typeface.serializeFontMap(Typeface.getSystemFontMap()); in testDeserializeFontMap()
68 SharedMemory memory = null; in testSetSystemFontMap()
/frameworks/base/core/java/android/service/voice/
DAbstractHotwordDetector.java31 import android.os.SharedMemory;
102 @Nullable SharedMemory sharedMemory) { in updateState()
112 @Nullable SharedMemory sharedMemory, IHotwordRecognitionStatusCallback callback) { in updateStateLocked()
DHotwordDetector.java29 import android.os.SharedMemory;
98 void updateState(@Nullable PersistableBundle options, @Nullable SharedMemory sharedMemory); in updateState()
DIHotwordDetectionService.aidl26 import android.os.SharedMemory;
51 in SharedMemory sharedMemory, in updateState()
DHotwordDetectionService.java41 import android.os.SharedMemory;
151 public void updateState(PersistableBundle options, SharedMemory sharedMemory,
295 @Nullable SharedMemory sharedMemory, in onUpdateState()
342 @Nullable SharedMemory sharedMemory, IRemoteCallback callback) { in onUpdateStateInternal()
DVoiceInteractionService.java39 import android.os.SharedMemory;
364 @Nullable SharedMemory sharedMemory,
376 @Nullable SharedMemory sharedMemory,
429 @Nullable SharedMemory sharedMemory, in createHotwordDetector()
DSoftwareHotwordDetector.java32 import android.os.SharedMemory;
61 SharedMemory sharedMemory, in SoftwareHotwordDetector()
DAlwaysOnHotwordDetector.java51 import android.os.SharedMemory;
580 @Nullable SharedMemory sharedMemory) { in AlwaysOnHotwordDetector()
615 @Nullable SharedMemory sharedMemory) { in updateState()
/frameworks/base/core/java/com/android/internal/net/
DINetworkWatchlistManager.aidl19 import android.os.SharedMemory;
/frameworks/base/core/java/com/android/internal/app/
DIVoiceInteractionManagerService.aidl27 import android.os.SharedMemory;
249 in SharedMemory sharedMemory, in updateState()
/frameworks/av/media/libshmem/
DREADME.md4 feature is the definition of the `android.media.SharedMemory` AIDL type, which represents a block of
/frameworks/base/graphics/java/android/graphics/
DTypeface.java40 import android.os.SharedMemory;
158 static SharedMemory sSystemFontMapSharedMemory = null;
183 public static @Nullable SharedMemory getSystemFontMapSharedMemory() { in getSystemFontMapSharedMemory()
1224 public static @NonNull SharedMemory serializeFontMap(@NonNull Map<String, Typeface> fontMap)
1236 SharedMemory sharedMemory = SharedMemory.create(
1249 SharedMemory.unmap(writableBuffer);
1313 public static void setSystemFontMap(@Nullable SharedMemory sharedMemory)
1432 SharedMemory.unmap(sSystemFontMapBuffer);
DGraphicsStatsService.java33 import android.os.SharedMemory;
499 SharedMemory mProcessBuffer;
512 mProcessBuffer = SharedMemory.create("GFXStats-" + pid, mAshmemSize); in ActiveBuffer()
529 SharedMemory.unmap(mMapping); in closeAllBuffers()
/frameworks/base/core/java/android/app/
DIApplicationThread.aidl46 import android.os.SharedMemory;
83 in SharedMemory serializedSystemFontMap); in bindApplication()
/frameworks/base/core/java/android/hardware/soundtrigger/
DConversionUtil.java36 import android.os.SharedMemory;
381 SharedMemory shmem = SharedMemory.create(name != null ? name : "", data.length); in byteArrayToSharedMemory()
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java28 import android.os.SharedMemory;
203 SharedMemory sharedMemory = Typeface.serializeFontMap(systemFontMap); in testSerialize()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DHotwordDetectionConnection.java48 import android.os.SharedMemory;
136 @Nullable SharedMemory sharedMemory, in HotwordDetectionConnection()
202 PersistableBundle options, SharedMemory sharedMemory) { in updateStateAfterProcessStart()
285 void updateStateLocked(PersistableBundle options, SharedMemory sharedMemory) { in updateStateLocked()

12