Home
last modified time | relevance | path

Searched refs:mPtr (Results 1 – 13 of 13) sorted by relevance

/frameworks/native/include/utils/
DUniquePtr.h61 explicit UniquePtr(T* ptr = NULL) : mPtr(ptr) {
69 T& operator*() const { return *mPtr; }
70 T* operator->() const { return mPtr; }
71 T* get() const { return mPtr; }
76 T* result = mPtr;
77 mPtr = NULL;
85 if (ptr != mPtr) {
86 D()(mPtr);
87 mPtr = ptr;
93 T* mPtr;
[all …]
/frameworks/base/core/java/android/view/
DVelocityTracker.java37 private int mPtr; field in VelocityTracker
90 mPtr = nativeInitialize(strategy); in VelocityTracker()
97 if (mPtr != 0) { in finalize()
98 nativeDispose(mPtr); in finalize()
99 mPtr = 0; in finalize()
110 nativeClear(mPtr); in clear()
126 nativeAddMovement(mPtr, event); in addMovement()
136 nativeComputeCurrentVelocity(mPtr, units, Float.MAX_VALUE); in computeCurrentVelocity()
153 nativeComputeCurrentVelocity(mPtr, units, maxVelocity); in computeCurrentVelocity()
163 return nativeGetXVelocity(mPtr, ACTIVE_POINTER_ID); in getXVelocity()
[all …]
DKeyCharacterMap.java285 private int mPtr; field in KeyCharacterMap
304 mPtr = nativeReadFromParcel(in); in KeyCharacterMap()
305 if (mPtr == 0) { in KeyCharacterMap()
312 mPtr = ptr; in KeyCharacterMap()
317 if (mPtr != 0) { in finalize()
318 nativeDispose(mPtr); in finalize()
319 mPtr = 0; in finalize()
368 char ch = nativeGetCharacter(mPtr, keyCode, metaState); in get()
398 if (nativeGetFallbackAction(mPtr, keyCode, metaState, action)) { in getFallbackAction()
428 return nativeGetNumber(mPtr, keyCode); in getNumber()
[all …]
DInputQueue.java42 private int mPtr; field in InputQueue
52 mPtr = nativeInit(new WeakReference<InputQueue>(this), Looper.myQueue()); in InputQueue()
80 if (mPtr != 0) { in dispose()
81 nativeDispose(mPtr); in dispose()
82 mPtr = 0; in dispose()
88 return mPtr; in getNativePtr()
97 id = nativeSendKeyEvent(mPtr, (KeyEvent) e, predispatch); in sendInputEvent()
99 id = nativeSendMotionEvent(mPtr, (MotionEvent) e); in sendInputEvent()
DInputChannel.java49 private int mPtr; // used by native code field in InputChannel
/frameworks/base/media/java/android/media/
DRemoteDisplay.java41 private int mPtr; field in RemoteDisplay
91 if (mPtr != 0) { in dispose()
100 nativeDispose(mPtr); in dispose()
101 mPtr = 0; in dispose()
106 mPtr = nativeListen(iface); in startListening()
107 if (mPtr == 0) { in startListening()
/frameworks/av/media/libmedia/
DMemoryLeakTrackUtil.cpp43 : mPtr((char *)malloc(MAX_SIZE)) { in MyString8()
44 *mPtr = '\0'; in MyString8()
48 free(mPtr); in ~MyString8()
52 strcat(mPtr, s); in append()
56 return mPtr; in string()
60 return strlen(mPtr); in size()
64 char *mPtr; member
/frameworks/base/core/java/android/app/backup/
DFileBackupHelperBase.java32 int mPtr; field in FileBackupHelperBase
37 mPtr = ctor(); in FileBackupHelperBase()
43 dtor(mPtr); in finalize()
91 result = writeFile_native(mPtr, f.getAbsolutePath(), in.mData.mBackupReader); in writeFile()
105 int result = writeSnapshot_native(mPtr, fd.getFileDescriptor()); in writeNewStateDescription()
/frameworks/base/core/java/android/os/
DMessageQueue.java37 private int mPtr; // used by native code field in MessageQueue
105 mPtr = nativeInit(); in MessageQueue()
118 if (mPtr != 0) { in dispose()
119 nativeDestroy(mPtr); in dispose()
120 mPtr = 0; in dispose()
132 nativePollOnce(mPtr, nextPollTimeoutMillis); in next()
239 nativeWake(mPtr); in quit()
294 nativeWake(mPtr); in removeSyncBarrier()
343 nativeWake(mPtr); in enqueueMessage()
/frameworks/base/services/java/com/android/server/input/
DInputManagerService.java110 private final int mPtr; field in InputManagerService
252 mPtr = nativeInit(this, mContext, mHandler.getLooper().getQueue()); in InputManagerService()
265 nativeStart(mPtr); in start()
321 nativeReloadKeyboardLayouts(mPtr); in reloadKeyboardLayouts()
328 nativeReloadDeviceAliases(mPtr); in reloadDeviceAliases()
346 nativeSetDisplayViewport(mPtr, external, in setDisplayViewport()
365 return nativeGetKeyCodeState(mPtr, deviceId, sourceMask, keyCode); in getKeyCodeState()
378 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); in getScanCodeState()
391 return nativeGetSwitchState(mPtr, deviceId, sourceMask, switchCode); in getSwitchState()
416 return nativeHasKeys(mPtr, deviceId, sourceMask, keyCodes, keyExists); in hasKeys()
[all …]
/frameworks/base/core/jni/
Dandroid_os_MessageQueue.cpp29 jfieldID mPtr; // native object attached to the DVM MessageQueue member
113 jint intPtr = env->GetIntField(messageQueueObj, gMessageQueueClassInfo.mPtr); in android_os_MessageQueue_getMessageQueue()
170 GET_FIELD_ID(gMessageQueueClassInfo.mPtr, clazz, in register_android_os_MessageQueue()
Dandroid_view_InputChannel.cpp36 jfieldID mPtr; // native object attached to the DVM InputChannel member
84 jint intPtr = env->GetIntField(inputChannelObj, gInputChannelClassInfo.mPtr); in android_view_InputChannel_getNativeInputChannel()
90 env->SetIntField(inputChannelObj, gInputChannelClassInfo.mPtr, in android_view_InputChannel_setNativeInputChannel()
298 GET_FIELD_ID(gInputChannelClassInfo.mPtr, gInputChannelClassInfo.clazz, in register_android_view_InputChannel()
/frameworks/rs/
DrsScriptC.h85 void * mPtr; member