Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/
DVelocityTracker.java37 private long 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 long 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.java41 private long mPtr; field in InputQueue
51 mPtr = nativeInit(new WeakReference<InputQueue>(this), Looper.myQueue()); in InputQueue()
79 if (mPtr != 0) { in dispose()
80 nativeDispose(mPtr); in dispose()
81 mPtr = 0; in dispose()
87 return mPtr; in getNativePtr()
96 id = nativeSendKeyEvent(mPtr, (KeyEvent) e, predispatch); in sendInputEvent()
98 id = nativeSendMotionEvent(mPtr, (MotionEvent) e); in sendInputEvent()
DInputChannel.java49 private long mPtr; // used by native code field in InputChannel
/frameworks/base/media/java/android/media/
DRemoteDisplay.java42 private long mPtr; field in RemoteDisplay
96 nativePause(mPtr); in pause()
100 nativeResume(mPtr); in resume()
104 if (mPtr != 0) { in dispose()
113 nativeDispose(mPtr); in dispose()
114 mPtr = 0; in dispose()
119 mPtr = nativeListen(iface, mOpPackageName); in startListening()
120 if (mPtr == 0) { in startListening()
/frameworks/av/include/media/
DRingBuffer.h64 T* mPtr;
90 const T* mPtr;
178 mPtr{ptr}, mSize{size}, mPos{pos}, mCtr{ctr} {} in iterator()
195 iterator tmp{mPtr, mSize, mPos, mCtr};
202 return (mPtr + mPos) == (rhs.mPtr + rhs.mPos);
207 return (mPtr + mPos) != (rhs.mPtr + rhs.mPos);
212 return *(mPtr + mPos);
217 return mPtr + mPos;
222 mPtr{ptr}, mSize{size}, mPos{pos}, mCtr{ctr} {} in const_iterator()
239 const_iterator tmp{mPtr, mSize, mPos, mCtr};
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHal.java66 private long mPtr = 0; field in TvInputHal
79 mPtr = nativeOpen(mHandler.getLooper().getQueue()); in init()
85 if (mPtr == 0) { in addOrUpdateStream()
92 if (nativeAddOrUpdateStream(mPtr, deviceId, streamConfig.getStreamId(), surface) == 0) { in addOrUpdateStream()
102 if (mPtr == 0) { in removeStream()
109 if (nativeRemoveStream(mPtr, deviceId, streamConfig.getStreamId()) == 0) { in removeStream()
119 if (mPtr != 0l) { in close()
120 nativeClose(mPtr); in close()
127 mStreamConfigs.put(deviceId, nativeGetStreamConfigs(mPtr, deviceId, generation)); in retrieveStreamConfigsLocked()
/frameworks/base/cmds/hid/src/com/android/commands/hid/
DDevice.java101 private long mPtr; field in Device.DeviceHandler
113 mPtr = nativeOpenDevice((String) args.arg1, args.argi1, args.argi2, args.argi3, in handleMessage()
115 nativeSendReport(mPtr, (byte[]) args.arg3); in handleMessage()
119 if (mPtr != 0) { in handleMessage()
120 nativeSendReport(mPtr, (byte[]) msg.obj); in handleMessage()
126 if (mPtr != 0) { in handleMessage()
127 nativeCloseDevice(mPtr); in handleMessage()
129 mPtr = 0; in handleMessage()
/frameworks/av/media/libmedia/
DMemoryLeakTrackUtil.cpp45 : mPtr((char *)malloc(MAX_SIZE)) { in MyString8()
46 *mPtr = '\0'; in MyString8()
50 free(mPtr); in ~MyString8()
54 strncat(mPtr, s, MAX_SIZE - size() - 1); in append()
58 return mPtr; in string()
62 return strlen(mPtr); in size()
66 *mPtr = '\0'; in clear()
70 char *mPtr; member
/frameworks/base/core/java/android/app/backup/
DFileBackupHelperBase.java32 long 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/services/core/java/com/android/server/input/
DInputManagerService.java117 private final long mPtr; field in InputManagerService
269 mPtr = nativeInit(this, mContext, mHandler.getLooper().getQueue()); in InputManagerService()
284 nativeStart(mPtr); in start()
345 nativeReloadKeyboardLayouts(mPtr); in reloadKeyboardLayouts()
352 nativeReloadDeviceAliases(mPtr); in reloadDeviceAliases()
369 nativeSetDisplayViewport(mPtr, external, in setDisplayViewport()
388 return nativeGetKeyCodeState(mPtr, deviceId, sourceMask, keyCode); in getKeyCodeState()
401 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); in getScanCodeState()
414 return nativeGetSwitchState(mPtr, deviceId, sourceMask, switchCode); in getSwitchState()
439 return nativeHasKeys(mPtr, deviceId, sourceMask, keyCodes, keyExists); in hasKeys()
[all …]
/frameworks/base/core/java/android/os/
DMessageQueue.java46 private long mPtr; // used by native code field in MessageQueue
70 mPtr = nativeInit(); in MessageQueue()
85 if (mPtr != 0) { in dispose()
86 nativeDestroy(mPtr); in dispose()
87 mPtr = 0; in dispose()
159 return !mQuitting && nativeIsPolling(mPtr); in isPollingLocked()
251 nativeSetFileDescriptorEvents(mPtr, fdNum, events); in updateOnFileDescriptorEventListenerLocked()
311 final long ptr = mPtr; in next()
431 nativeWake(mPtr); in quit()
528 nativeWake(mPtr); in removeSyncBarrier()
[all …]
/frameworks/base/core/jni/
Dandroid_view_InputChannel.cpp38 jfieldID mPtr; // native object attached to the DVM InputChannel member
86 jlong longPtr = env->GetLongField(inputChannelObj, gInputChannelClassInfo.mPtr); in android_view_InputChannel_getNativeInputChannel()
92 env->SetLongField(inputChannelObj, gInputChannelClassInfo.mPtr, in android_view_InputChannel_setNativeInputChannel()
287 gInputChannelClassInfo.mPtr = GetFieldIDOrDie(env, gInputChannelClassInfo.clazz, "mPtr", "J"); in register_android_view_InputChannel()
Dandroid_os_MessageQueue.cpp31 jfieldID mPtr; // native object attached to the DVM MessageQueue member
168 jlong ptr = env->GetLongField(messageQueueObj, gMessageQueueClassInfo.mPtr); in android_os_MessageQueue_getMessageQueue()
228 gMessageQueueClassInfo.mPtr = GetFieldIDOrDie(env, clazz, "mPtr", "J"); in register_android_os_MessageQueue()