/frameworks/native/include/utils/ |
D | UniquePtr.h | 61 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/ |
D | VelocityTracker.java | 37 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 …]
|
D | KeyCharacterMap.java | 285 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 …]
|
D | InputQueue.java | 42 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()
|
D | InputChannel.java | 49 private int mPtr; // used by native code field in InputChannel
|
/frameworks/base/media/java/android/media/ |
D | RemoteDisplay.java | 41 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/ |
D | MemoryLeakTrackUtil.cpp | 43 : 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/ |
D | FileBackupHelperBase.java | 32 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/ |
D | MessageQueue.java | 37 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/ |
D | InputManagerService.java | 110 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/ |
D | android_os_MessageQueue.cpp | 29 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()
|
D | android_view_InputChannel.cpp | 36 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/ |
D | rsScriptC.h | 85 void * mPtr; member
|