/libcore/include/ |
LocalArray.h | 42 mPtr = new char[mSize]; 44 mPtr = &mOnStackBuffer[0]; 52 if (mPtr != &mOnStackBuffer[0]) { 53 delete[] mPtr; 62 char& operator[](size_t n) { return mPtr[n]; } 63 const char& operator[](size_t n) const { return mPtr[n]; } 67 char* mPtr;
|
/libnativehelper/include/nativehelper/ |
UniquePtr.h | 54 explicit UniquePtr(T* ptr = NULL) : mPtr(ptr) { 62 T& operator*() const { return *mPtr; } 63 T* operator->() const { return mPtr; } 64 T* get() const { return mPtr; } 69 T* result = mPtr; 70 mPtr = NULL; 78 if (ptr != mPtr) { 79 D()(mPtr); 80 mPtr = ptr; 86 std::swap(mPtr, other.mPtr) [all...] |
ScopedBytes.h | 32 : mEnv(env), mObject(object), mByteArray(NULL), mPtr(NULL) 38 mPtr = mEnv->GetByteArrayElements(mByteArray, NULL); 40 mPtr = reinterpret_cast<jbyte*>(mEnv->GetDirectBufferAddress(mObject)); 46 mEnv->ReleaseByteArrayElements(mByteArray, mPtr, readOnly ? JNI_ABORT : 0); 56 jbyte* mPtr; 68 return mPtr; 76 return mPtr;
|
/frameworks/base/core/java/android/view/ |
VelocityTracker.java | 37 private int mPtr; 90 mPtr = nativeInitialize(strategy); 97 if (mPtr != 0) { 98 nativeDispose(mPtr); 99 mPtr = 0; 110 nativeClear(mPtr); 126 nativeAddMovement(mPtr, event); 136 nativeComputeCurrentVelocity(mPtr, units, Float.MAX_VALUE); 153 nativeComputeCurrentVelocity(mPtr, units, maxVelocity); 163 return nativeGetXVelocity(mPtr, ACTIVE_POINTER_ID) [all...] |
InputQueue.java | 42 private int mPtr; 52 mPtr = nativeInit(new WeakReference<InputQueue>(this), Looper.myQueue()); 80 if (mPtr != 0) { 81 nativeDispose(mPtr); 82 mPtr = 0; 88 return mPtr; 97 id = nativeSendKeyEvent(mPtr, (KeyEvent) e, predispatch); 99 id = nativeSendMotionEvent(mPtr, (MotionEvent) e);
|
KeyCharacterMap.java | 285 private int mPtr; 304 mPtr = nativeReadFromParcel(in); 305 if (mPtr == 0) { 312 mPtr = ptr; 317 if (mPtr != 0) { 318 nativeDispose(mPtr); 319 mPtr = 0; 368 char ch = nativeGetCharacter(mPtr, keyCode, metaState); 398 if (nativeGetFallbackAction(mPtr, keyCode, metaState, action)) { 428 return nativeGetNumber(mPtr, keyCode) [all...] |
InputChannel.java | 49 private int mPtr; // used by native code
|
/system/core/include/utils/ |
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/media/java/android/media/ |
RemoteDisplay.java | 41 private int mPtr; 93 nativePause(mPtr); 97 nativeResume(mPtr); 101 if (mPtr != 0) { 110 nativeDispose(mPtr); 111 mPtr = 0; 116 mPtr = nativeListen(iface); 117 if (mPtr == 0) {
|
/frameworks/base/core/java/android/app/backup/ |
FileBackupHelperBase.java | 32 int mPtr; 37 mPtr = ctor(); 43 dtor(mPtr); 91 result = writeFile_native(mPtr, f.getAbsolutePath(), in.mData.mBackupReader); 105 int result = writeSnapshot_native(mPtr, fd.getFileDescriptor());
|
/external/clang/test/Analysis/ |
templates.cpp | 26 static MyClass<T>* mPtr = 0; 27 useBlock(^{ mPtr = new MyClass<T> (MyClass<T>::one); });
|
/frameworks/av/media/libmedia/ |
MemoryLeakTrackUtil.cpp | 43 : mPtr((char *)malloc(MAX_SIZE)) { 44 *mPtr = '\0'; 48 free(mPtr); 52 strcat(mPtr, s); 56 return mPtr; 60 return strlen(mPtr); 64 char *mPtr;
|
/device/asus/flo/camera/QCamera2/HAL3/ |
QCamera3Mem.cpp | 232 mPtr[i] = NULL; 413 return mPtr[index]; 445 munmap(mPtr[i], mMemInfo[i].size); 450 mPtr[i] = vaddr; 471 munmap(mPtr[i], mMemInfo[i].size); 472 mPtr[i] = NULL; 495 return cacheOpsInternal(index, cmd, mPtr[index]); 677 munmap(mPtr[cnt], mMemInfo[cnt].size); 682 mPtr[cnt] = vaddr; 705 munmap(mPtr[cnt], mMemInfo[cnt].size) [all...] |
QCamera3Mem.h | 77 void *mPtr[MM_CAMERA_MAX_NUM_FRAMES];
|
/hardware/qcom/camera/QCamera2/HAL3/ |
QCamera3Mem.cpp | 232 mPtr[i] = NULL; 413 return mPtr[index]; 445 munmap(mPtr[i], mMemInfo[i].size); 450 mPtr[i] = vaddr; 471 munmap(mPtr[i], mMemInfo[i].size); 472 mPtr[i] = NULL; 495 return cacheOpsInternal(index, cmd, mPtr[index]); 677 munmap(mPtr[cnt], mMemInfo[cnt].size); 682 mPtr[cnt] = vaddr; 705 munmap(mPtr[cnt], mMemInfo[cnt].size) [all...] |
QCamera3Mem.h | 77 void *mPtr[MM_CAMERA_MAX_NUM_FRAMES];
|
/frameworks/base/core/java/android/os/ |
MessageQueue.java | 38 private int mPtr; // used by native code 107 mPtr = nativeInit(); 122 if (mPtr != 0) { 123 nativeDestroy(mPtr); 124 mPtr = 0; 136 // We can assume mPtr != 0 because the loop is obviously still running. 138 nativePollOnce(mPtr, nextPollTimeoutMillis); 245 // We can assume mPtr != 0 because mQuitting was previously false. 246 nativeWake(mPtr); 303 // We can assume mPtr != 0 when mQuitting is false [all...] |
/frameworks/base/services/java/com/android/server/input/ |
InputManagerService.java | 110 private final int mPtr; 252 mPtr = nativeInit(this, mContext, mHandler.getLooper().getQueue()); 265 nativeStart(mPtr); 322 nativeReloadKeyboardLayouts(mPtr); 329 nativeReloadDeviceAliases(mPtr); 347 nativeSetDisplayViewport(mPtr, external, 366 return nativeGetKeyCodeState(mPtr, deviceId, sourceMask, keyCode); 379 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); 392 return nativeGetSwitchState(mPtr, deviceId, sourceMask, switchCode); 417 return nativeHasKeys(mPtr, deviceId, sourceMask, keyCodes, keyExists) [all...] |
/frameworks/base/core/jni/ |
android_os_MessageQueue.cpp | 29 jfieldID mPtr; // native object attached to the DVM MessageQueue 113 jint intPtr = env->GetIntField(messageQueueObj, gMessageQueueClassInfo.mPtr); 176 GET_FIELD_ID(gMessageQueueClassInfo.mPtr, clazz, 177 "mPtr", "I");
|
android_view_InputChannel.cpp | 36 jfieldID mPtr; // native object attached to the DVM InputChannel 84 jint intPtr = env->GetIntField(inputChannelObj, gInputChannelClassInfo.mPtr); 90 env->SetIntField(inputChannelObj, gInputChannelClassInfo.mPtr, 298 GET_FIELD_ID(gInputChannelClassInfo.mPtr, gInputChannelClassInfo.clazz, 299 "mPtr", "I");
|
/sdk/find_java/ |
utils.h | 42 T* mPtr;
47 mPtr = new T[size];
51 if (mPtr != NULL) {
52 delete[] mPtr;
53 mPtr = NULL;
60 return mPtr[i];
|
/external/clang/test/CodeGenCXX/ |
anonymous-union-member-initializer.cpp | 171 void* mPtr;
|
/frameworks/rs/ |
rsScriptC.h | 85 void * mPtr;
|
/device/asus/flo/camera/QCamera2/HAL/ |
QCameraMem.cpp | 392 mPtr[i] = NULL; 424 return mPtr[index]; 455 munmap(mPtr[i], mMemInfo[i].size); 460 mPtr[i] = vaddr; 479 munmap(mPtr[i], mMemInfo[i].size); 480 mPtr[i] = NULL; 503 return cacheOpsInternal(index, cmd, mPtr[index]); 561 if (mPtr[i] == opaque) { [all...] |
/hardware/qcom/camera/QCamera2/HAL/ |
QCameraMem.cpp | 392 mPtr[i] = NULL; 424 return mPtr[index]; 455 munmap(mPtr[i], mMemInfo[i].size); 460 mPtr[i] = vaddr; 479 munmap(mPtr[i], mMemInfo[i].size); 480 mPtr[i] = NULL; 503 return cacheOpsInternal(index, cmd, mPtr[index]); 561 if (mPtr[i] == opaque) { [all...] |