Home
last modified time | relevance | path

Searched refs:mData (Results 1 – 25 of 74) sorted by relevance

123

/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListItemView.java93 final String previewType = mData.getShowDraft() ?
94 mData.getDraftPreviewContentType() : mData.getPreviewContentType();
98 final Uri previewUri = mData.getShowDraft() ?
99 mData.getDraftPreviewUri() : mData.getPreviewUri();
101 final Uri imagesUri = mData.getShowDraft() ?
102 MessagingContentProvider.buildDraftImagesUri(mData.getConversationId()) :
104 .buildConversationImagesUri(mData.getConversationId());
114 private final ConversationListItemData mData; field in ConversationListItemView
137 mData = new ConversationListItemData(); in ConversationListItemView()
189 mWorkProfileIconView.setVisibility(mData.isEnterprise() ? View.VISIBLE : View.GONE); in setWorkProfileIcon()
[all …]
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DEncodedStringValue.java43 private byte[] mData; field in EncodedStringValue
59 mData = new byte[data.length]; in EncodedStringValue()
60 System.arraycopy(data, 0, mData, 0, data.length); in EncodedStringValue()
90 mData = data.getBytes(CharacterSets.getMimeName(charset)); in EncodedStringValue()
93 mData = data.getBytes(); in EncodedStringValue()
122 byte[] byteArray = new byte[mData.length]; in getTextString()
124 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString()
139 mData = new byte[textString.length]; in setTextString()
140 System.arraycopy(textString, 0, mData, 0, textString.length); in setTextString()
152 return new String(mData); // system default encoding. in getString()
[all …]
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DEncodedStringValue.java43 private byte[] mData; field in EncodedStringValue
59 mData = new byte[data.length]; in EncodedStringValue()
60 System.arraycopy(data, 0, mData, 0, data.length); in EncodedStringValue()
75 mData = data.getBytes(CharacterSets.DEFAULT_CHARSET_NAME); in EncodedStringValue()
107 byte[] byteArray = new byte[mData.length]; in getTextString()
109 System.arraycopy(mData, 0, byteArray, 0, mData.length); in getTextString()
124 mData = new byte[textString.length]; in setTextString()
125 System.arraycopy(textString, 0, mData, 0, textString.length); in setTextString()
137 return new String(mData); // system default encoding. in getString()
141 return new String(mData, name); in getString()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactListItemView.java49 final ContactListItemData mData; field in ContactListItemView
62 mData = DataModel.get().createContactListItemData(); in ContactListItemView()
87 mData.bind(cursor, headerLabel); in bind()
110 mData.bind(recipientEntry, styledName, styledDestination, isSingleRecipient, isWorkContact); in bind()
117 mContactNameTextView.setText(mData.getDisplayName()); in updateViewAppearance()
118 mContactDetailsTextView.setText(mData.getDestination()); in updateViewAppearance()
120 mData.getDestinationType(), mData.getDestinationLabel())); in updateViewAppearance()
121 final RecipientEntry recipientEntry = mData.getRecipientEntry(); in updateViewAppearance()
122 final String destinationString = String.valueOf(mData.getDestination()); in updateViewAppearance()
123 if (mData.getIsSimpleContactItem()) { in updateViewAppearance()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java91 private final ConversationMessageData mData; field in ConversationMessageView
120 mData = new ConversationMessageData(); in ConversationMessageView()
204 if (mData.getIsIncoming()) { in onLayout()
248 mData.bind(cursor); in bind()
249 setSelected(TextUtils.equals(mData.getMessageId(), selectedMessageId)); in bind()
274 return mData; in getData()
282 return mData.getCanClusterWithPreviousMessage(); in shouldShowSimplifiedVisualStyle()
291 && !(mData.hasAttachments() || mMessageHasYouTubeLink); in shouldShowMessageBubbleArrow()
298 if (mData.hasText()) { in shouldShowMessageTextBubble()
302 mData.getMmsSubject()); in shouldShowMessageTextBubble()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSetSlidingWindow.java59 private final AlbumSetEntry mData[]; field in AlbumSetSlidingWindow
98 mData = new AlbumSetEntry[cacheSize]; in AlbumSetSlidingWindow()
125 return mData[slotIndex % mData.length]; in get()
168 if (!(start <= end && end - start <= mData.length && end <= mSize)) { in setActiveWindow()
170 start, end, mData.length, mSize); in setActiveWindow()
173 AlbumSetEntry data[] = mData; in setActiveWindow()
212 AlbumSetEntry entry = mData[slotIndex % mData.length]; in requestImagesInSlot()
219 AlbumSetEntry entry = mData[slotIndex % mData.length]; in cancelImagesInSlot()
231 AlbumSetEntry entry = mData[slotIndex % mData.length]; in freeSlotContent()
236 mData[slotIndex % mData.length] = null; in freeSlotContent()
[all …]
DAlbumSlidingWindow.java61 private final AlbumEntry mData[]; field in AlbumSlidingWindow
95 mData = new AlbumEntry[cacheSize]; in AlbumSlidingWindow()
119 return mData[slotIndex % mData.length]; in get()
165 if (!(start <= end && end - start <= mData.length && end <= mSize)) { in setActiveWindow()
166 Utils.fail("%s, %s, %s, %s", start, end, mData.length, mSize); in setActiveWindow()
168 AlbumEntry data[] = mData; in setActiveWindow()
183 AlbumEntry entry = mData[index % mData.length]; in uploadBgTextureInSlot()
196 AlbumEntry entry = mData[i % mData.length]; in updateTextureUploadQueue()
228 AlbumEntry entry = mData[slotIndex % mData.length]; in requestSlotImage()
250 AlbumEntry item = mData[slotIndex % mData.length]; in cancelSlotImage()
[all …]
/packages/apps/SecureElement/src/com/android/se/security/
DCommandApdu.java45 protected byte[] mData = new byte[0]; field in CommandApdu
65 mData = data; in CommandApdu()
74 mData = data; in CommandApdu()
129 return mData; in getData()
135 mData = data; in setData()
151 if (mData.length != 0) { in toBytes()
153 length += mData.length; // DATA in toBytes()
170 if (mData.length != 0) { in toBytes()
173 System.arraycopy(mData, 0, apdu, index, mData.length); in toBytes()
174 index += mData.length; in toBytes()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSmsPdu.java64 private byte[] mData; field in BluetoothMapSmsPdu.SmsPdu
78 this.mData = data; in SmsPdu()
94 this.mData = data; in SmsPdu()
101 return mData; in getData()
126 return mData.length - mUserDataMsgOffset; in getUserDataMsgSize()
165 ByteArrayInputStream pdu = new ByteArrayInputStream(mData); in cdmaGetParameterOffset()
199 ByteArrayInputStream pdu = new ByteArrayInputStream(mData); in cdmaGetSubParameterOffset()
239 if (mData == null) { in cdmaChangeToDeliverPdu()
243 if (mData.length < offset) { in cdmaChangeToDeliverPdu()
246 mData[offset] = ORIGINATING_ADDRESS; in cdmaChangeToDeliverPdu()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/binding/
DBinding.java25 private T mData; field in Binding
39 return mData; in getData()
44 return (mData != null && mData.isBound(mBindingId)); in isBound()
49 return (isBound() && data == mData); in isBound()
63 } else if (data != mData) { in ensureBound()
64 throw new IllegalStateException("not bound to correct data " + data + " vs " + mData); in ensureBound()
75 if (mData != null || data.isBound()) { in bind()
81 mData = data; in bind()
87 if (mData == null || !mData.isBound(mBindingId)) { in unbind()
90 mData.unbind(mBindingId); in unbind()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DFakeCursor.java30 private final Object[][] mData; field in FakeCursor
36 mData = data; in FakeCursor()
46 return (dataIdx < 0 || row < 0 || row >= mData.length) ? 0 : mData[row][dataIdx]; in getAt()
51 return mData.length; in getCount()
61 return mIndex == mData.length - 1; in isLast()
66 if (mData.length == 0) { in moveToFirst()
75 if (position < 0 || position >= mData.length) { in moveToPosition()
98 if (mIndex == mData.length - 1) { in moveToNext()
134 final Object obj = (dataIdx < 0 ? null : mData[mIndex][dataIdx]); in getString()
141 return (dataIdx < 0 ? 0 : (Integer) mData[mIndex][dataIdx]); in getInt()
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DVideoItem.java85 return mData.getDimensions().getWidth(); in getBestWidth()
94 return mData.getDimensions().getHeight(); in getBestHeight()
125 MediaStore.Video.VideoColumns._ID + "=" + mData.getContentId(), null); in delete()
135 TimeUnit.MILLISECONDS.toSeconds(mData.getVideoDurationMillis())); in getMediaDetails()
143 return mVideoItemFactory.get(mData.getUri()); in refresh()
172 videoClickedCallback.playVideo(mData.getUri(), mData.getTitle()); in getView()
178 mDateFormatter.format(mData.getLastModifiedDate()))); in getView()
195 mGlideManager.loadScreen(mData.getUri(), generateSignature(mData), mSuggestedSize) in renderThumbnail()
196 .thumbnail(mGlideManager.loadMediaStoreThumb(mData.getUri(), in renderThumbnail()
197 generateSignature(mData))) in renderThumbnail()
[all …]
DPhotoItem.java87 return "PhotoItem: " + mData.toString(); in toString()
94 MediaStore.Images.ImageColumns._ID + "=" + mData.getContentId(), null); in delete()
103 MediaDetails.extractExifInfo(mediaDetails, mData.getFilePath()); in getMediaDetails()
104 mediaDetails.addDetail(MediaDetails.INDEX_ORIENTATION, mData.getOrientation()); in getMediaDetails()
112 return mPhotoItemFactory.get(mData.getUri()); in refresh()
133 renderTinySize(mData.getUri()).into(imageView); in fillImageView()
150 mDateFormatter.format(mData.getLastModifiedDate()))); in fillImageView()
167 renderTinySize(mData.getUri()).into((ImageView) view); in renderTiny()
176 renderScreenSize(mData.getUri()).into((ImageView) view); in renderThumbnail()
185 renderFullSize(mData.getUri()).into((ImageView) view); in renderFullRes()
[all …]
DFilmstripItemBase.java47 protected final T mData; field in FilmstripItemBase
58 mData = data; in FilmstripItemBase()
68 return mData; in getData()
73 File fileToDelete = new File(mData.getFilePath()); in delete()
96 mediaDetails.addDetail(MediaDetails.INDEX_TITLE, mData.getTitle()); in getMediaDetails()
99 mediaDetails.addDetail(MediaDetails.INDEX_PATH, mData.getFilePath()); in getMediaDetails()
101 mDateFormatter.format(mData.getLastModifiedDate())); in getMediaDetails()
102 long mSizeInBytes = mData.getSizeInBytes(); in getMediaDetails()
107 Location location = mData.getLocation(); in getMediaDetails()
126 return mData.getDimensions(); in getDimensions()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DIntArray.java22 private int mData[] = new int[INIT_CAPACITY]; field in IntArray
26 if (mData.length == mSize) { in add()
28 System.arraycopy(mData, 0, temp, 0, mSize); in add()
29 mData = temp; in add()
31 mData[mSize++] = value; in add()
36 return mData[mSize]; in removeLast()
48 System.arraycopy(mData, 0, result, 0, mSize); in toArray()
53 return mData; in getInternalArray()
58 if (mData.length != INIT_CAPACITY) mData = new int[INIT_CAPACITY]; in clear()
DRangeIntArray.java21 private int[] mData; field in RangeIntArray
25 mData = new int[max - min + 1]; in RangeIntArray()
31 mData = src; in RangeIntArray()
36 mData[i - mOffset] = object; in put()
40 return mData[i - mOffset]; in get()
44 for (int i = 0; i < mData.length; i++) { in indexOf()
45 if (mData[i] == object) return i + mOffset; in indexOf()
DRangeBoolArray.java21 private boolean[] mData; field in RangeBoolArray
25 mData = new boolean[max - min + 1]; in RangeBoolArray()
31 mData = src; in RangeBoolArray()
36 mData[i - mOffset] = object; in put()
40 return mData[i - mOffset]; in get()
44 for (int i = 0; i < mData.length; i++) { in indexOf()
45 if (mData[i] == object) return i + mOffset; in indexOf()
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DIntArray.java22 private int mData[] = new int[INIT_CAPACITY]; field in IntArray
26 if (mData.length == mSize) { in add()
28 System.arraycopy(mData, 0, temp, 0, mSize); in add()
29 mData = temp; in add()
31 mData[mSize++] = value; in add()
36 return mData[mSize]; in removeLast()
48 System.arraycopy(mData, 0, result, 0, mSize); in toArray()
53 return mData; in getInternalArray()
58 if (mData.length != INIT_CAPACITY) mData = new int[INIT_CAPACITY]; in clear()
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
DImapMemoryLiteral.java32 private byte[] mData; field in ImapMemoryLiteral
37 mData = new byte[in.getLength()]; in ImapMemoryLiteral()
39 while (pos < mData.length) { in ImapMemoryLiteral()
40 int read = in.read(mData, pos, mData.length - pos); in ImapMemoryLiteral()
46 if (pos != mData.length) { in ImapMemoryLiteral()
53 mData = null; in destroy()
59 return Utility.fromAscii(mData); in getString()
64 return new ByteArrayInputStream(mData); in getAsStream()
69 return String.format("{%d byte literal(memory)}", mData.length); in toString()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
DPeopleOptionsItemView.java47 private final PeopleOptionsItemData mData; field in PeopleOptionsItemView
52 mData = DataModel.get().createPeopleOptionsItemData(context); in PeopleOptionsItemView()
63 mHostInterface.onOptionsItemViewClicked(mData, !mData.getChecked()); in onFinishInflate()
71 mData.bind(cursor, otherParticipant, columnIndex); in bind()
74 mTitle.setText(mData.getTitle()); in bind()
75 final String subtitle = mData.getSubtitle(); in bind()
83 if (mData.getCheckable()) { in bind()
85 mSwitch.setChecked(mData.getChecked()); in bind()
90 final boolean enabled = mData.getEnabled(); in bind()
/packages/apps/TV/src/com/android/tv/data/
DChannelDataManager.java84 private volatile UnmodifiableChannelData mData = new UnmodifiableChannelData(); field in ChannelDataManager
101 ChannelData data = new ChannelData(mData);
102 for (ChannelWrapper channel : mData.channelWrapperMap.values()) {
111 mData = new UnmodifiableChannelData(data);
120 for (ChannelWrapper channel : mData.channelWrapperMap.values()) {
129 data.channelWrapperMap.putAll(mData.channelWrapperMap);
136 mData = new UnmodifiableChannelData(data);
252 ChannelWrapper channelWrapper = mData.channelWrapperMap.get(channelId); in addChannelListener()
264 ChannelWrapper channelWrapper = mData.channelWrapperMap.get(channelId); in removeChannelListener()
278 return mData.channels.size(); in getChannelCount()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java47 ArrayList<PtNode> mData; field in FusionDictionary.PtNodeArray
60 mData = new ArrayList<>(); in PtNodeArray()
64 mData = data; in PtNodeArray()
129 mChildren.mData.add(n); in addChild()
286 ArrayList<PtNode> stack = ptNodeArray.mData; in checkStack()
348 currentPtNode = currentNodeArray.mData.get(nodeIndex); in add()
365 currentNodeArray.mData.add(insertionIndex, newPtNode); in add()
384 currentPtNode.mChildren.mData.add(newNode); in add()
403 newChildren.mData.add(newOldWord); in add()
423 newChildren.mData.add(addIndex, newWord); in add()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DGalleryGridItemView.java53 GalleryGridItemData mData; field in GalleryGridItemView
60 mHostInterface.onItemClicked(GalleryGridItemView.this, mData, false /*longClick*/);
66 mData = DataModel.get().createGalleryGridItemData(); in GalleryGridItemView()
79 mHostInterface.onItemClicked(v, mData, true /* longClick */); in onFinishInflate()
120 mData.bind(cursor, desiredSize, desiredSize); in bind()
127 if (mHostInterface.isMultiSelectEnabled() && !mData.isDocumentPickerItem()) { in updateViewState()
130 mCheckBox.setChecked(mHostInterface.isItemSelected(mData)); in updateViewState()
138 if (mData.isDocumentPickerItem()) { in updateImageView()
148 mImageView.setImageResourceId(mData.getImageRequestDescriptor()); in updateImageView()
149 final long dateSeconds = mData.getDateSeconds(); in updateImageView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryFlagParser.java25 private final SparseBooleanArray mData = new SparseBooleanArray(); field in BatteryFlagParser
53 mData.put((int) time, isSet); in onDataPoint()
62 mData.put((int) mLastTime, false); in onDataGap()
70 mData.put((int) mLastTime, false); in onParsingDone()
82 return mData.size() > 1; in hasData()
88 for (int i = 0; i < mData.size(); i++) { in getColorArray()
89 ret.put(mData.keyAt(i), getColor(mData.valueAt(i))); in getColorArray()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryFlagParser.java25 private final SparseBooleanArray mData = new SparseBooleanArray(); field in BatteryFlagParser
53 mData.put((int) time, isSet); in onDataPoint()
62 mData.put((int) mLastTime, false); in onDataGap()
70 mData.put((int) mLastTime, false); in onParsingDone()
82 return mData.size() > 1; in hasData()
88 for (int i = 0; i < mData.size(); i++) { in getColorArray()
89 ret.put(mData.keyAt(i), getColor(mData.valueAt(i))); in getColorArray()

123