/device/google/contexthub/firmware/src/drivers/ams_tmd2772/ |
ams_tmd2772.c | 175 static struct SensorData mData; 203 osEnqueuePrivateEvt(EVT_SENSOR_I2C, cookie, NULL, mData.tid); 210 osEnqueuePrivateEvt(EVT_SENSOR_ALS_TIMER, cookie, NULL, mData.tid); 215 osEnqueuePrivateEvt(EVT_SENSOR_PROX_TIMER, cookie, NULL, mData.tid); 251 mData.txrxBuf.bytes[0] = AMS_TMD2772_REG_ENABLE; 252 mData.txrxBuf.bytes[1] = POWER_ON_BIT | WAIT_ENABLE_BIT | 254 mData.txrxBuf.bytes[2] = AMS_TMD2772_ATIME_SETTING; 255 mData.txrxBuf.bytes[3] = AMS_TMD2772_PTIME_SETTING; 256 mData.txrxBuf.bytes[4] = alsOn ? AMS_TMD2772_WTIME_SETTING_ALS_ON : AMS_TMD2772_WTIME_SETTING_ALS_OFF; 257 i2cMasterTx(I2C_BUS_ID, I2C_ADDR, mData.txrxBuf.bytes, 5 [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
GenericBlobElement.java | 11 private final byte[] mData; 15 mData = new byte[payload.remaining()]; 16 payload.get(mData); 20 return mData; 25 return "Element ID " + getID() + ": " + Utils.toHexString(mData);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/util/ |
IntArray.java | 22 private int mData[] = new int[INIT_CAPACITY]; 26 if (mData.length == mSize) { 28 System.arraycopy(mData, 0, temp, 0, mSize); 29 mData = temp; 31 mData[mSize++] = value; 36 return mData[mSize]; 48 System.arraycopy(mData, 0, result, 0, mSize); 53 return mData; 58 if (mData.length != INIT_CAPACITY) mData = new int[INIT_CAPACITY] [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
IntArray.java | 22 private int mData[] = new int[INIT_CAPACITY]; 26 if (mData.length == mSize) { 28 System.arraycopy(mData, 0, temp, 0, mSize); 29 mData = temp; 31 mData[mSize++] = value; 36 return mData[mSize]; 48 System.arraycopy(mData, 0, result, 0, mSize); 53 return mData; 58 if (mData.length != INIT_CAPACITY) mData = new int[INIT_CAPACITY] [all...] |
RangeArray.java | 21 private T[] mData; 25 mData = (T[]) new Object[max - min + 1]; 34 mData = src; 39 mData[i - mOffset] = object; 43 return mData[i - mOffset]; 47 for (int i = 0; i < mData.length; i++) { 48 if (mData[i] == object) return i + mOffset;
|
RangeBoolArray.java | 21 private boolean[] mData; 25 mData = new boolean[max - min + 1]; 31 mData = src; 36 mData[i - mOffset] = object; 40 return mData[i - mOffset]; 44 for (int i = 0; i < mData.length; i++) { 45 if (mData[i] == object) return i + mOffset;
|
RangeIntArray.java | 21 private int[] mData; 25 mData = new int[max - min + 1]; 31 mData = src; 36 mData[i - mOffset] = object; 40 return mData[i - mOffset]; 44 for (int i = 0; i < mData.length; i++) { 45 if (mData[i] == object) return i + mOffset;
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
IntArray.java | 22 private int mData[] = new int[INIT_CAPACITY]; 26 if (mData.length == mSize) { 28 System.arraycopy(mData, 0, temp, 0, mSize); 29 mData = temp; 31 mData[mSize++] = value; 36 return mData[mSize]; 48 System.arraycopy(mData, 0, result, 0, mSize); 53 return mData; 58 if (mData.length != INIT_CAPACITY) mData = new int[INIT_CAPACITY] [all...] |
/frameworks/av/include/private/media/ |
VideoFrame.h | 33 VideoFrame(): mWidth(0), mHeight(0), mDisplayWidth(0), mDisplayHeight(0), mSize(0), mData(0), 42 mData = NULL; // initialize it first 43 if (mSize > 0 && copy.mData != NULL) { 44 mData = new uint8_t[mSize]; 45 if (mData != NULL) { 46 memcpy(mData, copy.mData, mSize); 55 if (mData != 0) { 56 delete[] mData; 65 uint32_t mSize; // Number of bytes in mData [all...] |
/frameworks/av/media/ndk/ |
NdkMediaCodec.cpp | 145 AMediaCodec *mData = new AMediaCodec(); 146 mData->mLooper = new ALooper; 147 mData->mLooper->setName("NDK MediaCodec_looper"); 148 size_t res = mData->mLooper->start( 154 AMediaCodec_delete(mData); 158 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder); 160 mData->mCodec = android::MediaCodec::CreateByComponentName(mData->mLooper, name); 162 if (mData->mCodec == NULL) { // failed to create code [all...] |
/frameworks/base/packages/Osu/src/com/android/anqp/eap/ |
VendorSpecificAuth.java | 12 private final byte[] mData; 15 mData = new byte[length]; 16 payload.get(mData); 25 return Arrays.hashCode(mData); 40 return mData; 45 return "Auth method VendorSpecificAuth, data = " + Arrays.toString(mData) + '\n';
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/eap/ |
VendorSpecificAuth.java | 12 private final byte[] mData; 15 mData = new byte[length]; 16 payload.get(mData); 25 return Arrays.hashCode(mData); 40 return mData; 45 return "Auth method VendorSpecificAuth, data = " + Arrays.toString(mData) + '\n';
|
/frameworks/rs/ |
rsStream.h | 33 float tmp = reinterpret_cast<const float *>(&mData[mPos])[0]; 39 int32_t tmp = reinterpret_cast<const int32_t *>(&mData[mPos])[0]; 45 uint32_t tmp = reinterpret_cast<const uint32_t *>(&mData[mPos])[0]; 51 uint16_t tmp = reinterpret_cast<const uint16_t *>(&mData[mPos])[0]; 56 uint8_t tmp = reinterpret_cast<const uint8_t *>(&mData[mPos])[0]; 74 return mData; 77 const uint8_t * mData; 103 mData[mPos++] = (uint8_t)(v & 0xff); 104 mData[mPos++] = (uint8_t)((v >> 8) & 0xff); 105 mData[mPos++] = (uint8_t)((v >> 16) & 0xff) [all...] |
rsStream.cpp | 25 mData = buf; 31 memcpy(dest, mData + mPos, numBytes); 39 tmp = reinterpret_cast<const uint64_t *>(&mData[mPos])[0]; 48 const char *s = rsuCopyString((const char *)&mData[mPos], len); 55 mData = (uint8_t*)malloc(len); 62 free(mData); 70 memcpy(mData + mPos, src, numBytes); 80 mData[mPos++] = (uint8_t)(v & 0xff); 81 mData[mPos++] = (uint8_t)((v >> 8) & 0xff); 82 mData[mPos++] = (uint8_t)((v >> 16) & 0xff) [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/ |
ImapMemoryLiteral.java | 32 private byte[] mData; 37 mData = new byte[in.getLength()]; 39 while (pos < mData.length) { 40 int read = in.read(mData, pos, mData.length - pos); 46 if (pos != mData.length) { 53 mData = null; 59 return Utility.fromAscii(mData); 64 return new ByteArrayInputStream(mData); 69 return String.format("{%d byte literal(memory)}", mData.length) [all...] |
/packages/services/Telephony/src/com/android/phone/common/mail/store/imap/ |
ImapMemoryLiteral.java | 32 private byte[] mData; 37 mData = new byte[in.getLength()]; 39 while (pos < mData.length) { 40 int read = in.read(mData, pos, mData.length - pos); 46 if (pos != mData.length) { 53 mData = null; 60 return new String(mData, "US-ASCII"); 69 return new ByteArrayInputStream(mData); 74 return String.format("{%d byte literal(memory)}", mData.length) [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/binding/ |
Binding.java | 25 private T mData; 39 return mData; 44 return (mData != null && mData.isBound(mBindingId)); 49 return (isBound() && data == mData); 63 } else if (data != mData) { 64 throw new IllegalStateException("not bound to correct data " + data + " vs " + mData); 75 if (mData != null || data.isBound()) { 81 mData = data; 87 if (mData == null || !mData.isBound(mBindingId)) [all...] |
/frameworks/av/media/libstagefright/foundation/ |
AString.cpp | 34 : mData((char *)kEmptyString), 40 : mData(NULL), 47 : mData(NULL), 54 : mData(NULL), 61 : mData(NULL), 68 : mData(NULL), 91 return mData; 111 setTo(from.mData + offset, n); 115 if (mData && mData != kEmptyString) [all...] |
/frameworks/av/media/libmedia/ |
Metadata.cpp | 59 :mData(p), 66 mData->setDataPosition(mBegin); 73 const size_t end = mData->dataPosition(); 75 mData->setDataPosition(mBegin); 76 mData->writeInt32(end - mBegin); 77 mData->setDataPosition(end); 86 ok = ok && mData->writeInt32(-1) == OK; 87 ok = ok && mData->writeInt32(kMetaMarker) == OK; 97 const size_t begin = mData->dataPosition(); 101 ok = ok && mData->writeInt32(4 * sizeof(int32_t)) == OK [all...] |
/frameworks/base/core/java/android/net/nsd/ |
DnsSdTxtRecord.java | 45 private byte[] mData; 49 mData = new byte[0]; 54 mData = (byte[]) data.clone(); 59 if (src != null && src.mData != null) { 60 mData = (byte[]) src.mData.clone(); 121 for (int i=0; avStart < mData.length; i++) { 122 int avLen = mData[avStart]; 124 (key.length() == avLen || mData[avStart + key.length() + 1] == mSeperator)) { 125 String s = new String(mData, avStart + 1, key.length()) [all...] |
/frameworks/base/core/java/android/app/backup/ |
FullBackupDataOutput.java | 12 private final BackupDataOutput mData; 17 mData = null; 23 mData = new BackupDataOutput(fd.getFileDescriptor()); 27 public BackupDataOutput getData() { return mData; }
|
/frameworks/base/tools/aapt2/util/ |
StringPiece.h | 71 const TChar* mData; 83 inline BasicStringPiece<TChar>::BasicStringPiece() : mData(nullptr) , mLength(0) { 88 mData(str.mData), mLength(str.mLength) { 93 mData(str.data()), mLength(str.length()) { 98 mData(str), mLength(str != nullptr ? strlen(str) : 0) { 103 mData(str), mLength(str != nullptr ? strlen16(str) : 0) { 108 mData(str), mLength(len) { 114 mData = rhs.mData; [all...] |
/cts/tests/tests/media/libaudiojni/ |
Blob.h | 32 mData(byReference ? data : mMem), 46 const void * const mData; 55 mData(malloc(size)), 58 mMem(mData) { } 62 mData(data), 71 void * const mData;
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
IntArray.java | 22 private int mData[] = new int[INIT_CAPACITY]; 26 if (mData.length == mSize) { 28 System.arraycopy(mData, 0, temp, 0, mSize); 29 mData = temp; 31 mData[mSize++] = value; 42 System.arraycopy(mData, 0, result, 0, mSize);
|
/device/google/contexthub/util/common/ |
ring.cpp | 30 mData((sensors_event_t *)malloc(sizeof(sensors_event_t) * mSize)), 36 free(mData); 37 mData = NULL; 57 memcpy(&mData[writePos], ev, copy * sizeof(sensors_event_t)); 60 memcpy(mData, &ev[copy], (size - copy) * sizeof(sensors_event_t)); 96 memcpy(ev, &mData[readPos], copy * sizeof(sensors_event_t)); 99 memcpy(&ev[copy], mData, (size - copy) * sizeof(sensors_event_t));
|