Home
last modified time | relevance | path

Searched refs:mData (Results 1 – 25 of 70) 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/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/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/Calendar/src/com/android/calendar/selectcalendars/
DSelectCalendarsSimpleAdapter.java63 private CalendarRow[] mData; field in SelectCalendarsSimpleAdapter
181 mData = null; in initData()
195 mData = new CalendarRow[(c.getCount())]; in initData()
199 mData[p] = new CalendarRow(); in initData()
200 mData[p].id = c.getLong(mIdColumn); in initData()
201 mData[p].displayName = c.getString(mNameColumn); in initData()
202 mData[p].color = c.getInt(mColorColumn); in initData()
203 mData[p].selected = c.getInt(mVisibleColumn) != 0; in initData()
204 mData[p].ownerAccount = c.getString(mOwnerAccountColumn); in initData()
205 mData[p].accountName = c.getString(mAccountNameColumn); in initData()
[all …]
DSelectCalendarsSyncAdapter.java58 private CalendarRow[] mData; field in SelectCalendarsSyncAdapter
108 mData = null; in initData()
120 mData = new CalendarRow[mRowCount]; in initData()
125 mData[p] = new CalendarRow(); in initData()
126 mData[p].id = id; in initData()
127 mData[p].displayName = c.getString(mNameColumn); in initData()
128 mData[p].color = c.getInt(mColorColumn); in initData()
129 mData[p].originalSynced = c.getInt(mSyncedColumn) != 0; in initData()
130 mData[p].accountName = c.getString(mAccountNameColumn); in initData()
131 mData[p].accountType = c.getString(mAccountTypeColumn); in initData()
[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/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/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSmsPdu.java62 private byte[] mData; field in BluetoothMapSmsPdu.SmsPdu
75 this.mData = data; in SmsPdu()
91 this.mData = data; in SmsPdu()
97 return mData; in getData()
116 return mData.length - mUserDataMsgOffset; in getUserDataMsgSize()
155 ByteArrayInputStream pdu = new ByteArrayInputStream(mData); in cdmaGetParameterOffset()
189 ByteArrayInputStream pdu = new ByteArrayInputStream(mData); in cdmaGetSubParameterOffset()
228 if(mData == null) { in cdmaChangeToDeliverPdu()
232 if(mData.length < offset) { in cdmaChangeToDeliverPdu()
235 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/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/TV/src/com/android/tv/data/
DChannelDataManager.java84 volatile private UnmodifiableChannelData mData = new UnmodifiableChannelData(); field in ChannelDataManager
100 ChannelData data = new ChannelData(mData);
101 for (ChannelWrapper channel : mData.channelWrapperMap.values()) {
110 mData = new UnmodifiableChannelData(data);
119 for (ChannelWrapper channel : mData.channelWrapperMap.values()) {
128 data.channelWrapperMap.putAll(mData.channelWrapperMap);
135 mData = new UnmodifiableChannelData(data);
247 ChannelWrapper channelWrapper = mData.channelWrapperMap.get(channelId); in addChannelListener()
259 ChannelWrapper channelWrapper = mData.channelWrapperMap.get(channelId); in removeChannelListener()
277 return mData.channels.size(); in getChannelCount()
[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/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/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()
/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/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapMemoryLiteral.java29 private byte[] mData; field in ImapMemoryLiteral
34 mData = new byte[in.getLength()]; in ImapMemoryLiteral()
36 while (pos < mData.length) { in ImapMemoryLiteral()
37 int read = in.read(mData, pos, mData.length - pos); in ImapMemoryLiteral()
43 if (pos != mData.length) { in ImapMemoryLiteral()
50 mData = null; in destroy()
57 return new String(mData, "US-ASCII"); in getString()
66 return new ByteArrayInputStream(mData); in getAsStream()
71 return String.format("{%d byte literal(memory)}", mData.length); in toString()
/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/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/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryFlagParser.java24 private final SparseBooleanArray mData = new SparseBooleanArray(); field in BatteryFlagParser
52 mData.put((int) time, isSet); in onDataPoint()
61 mData.put((int) mLastTime, false); in onDataGap()
69 mData.put((int) mLastTime, false); in onParsingDone()
81 return mData.size() > 1; in hasData()
87 for (int i = 0; i < mData.size(); i++) { in getColorArray()
88 ret.put(mData.keyAt(i), getColor(mData.valueAt(i))); in getColorArray()
DBatteryCellParser.java25 private final SparseIntArray mData = new SparseIntArray(); field in BatteryCellParser
56 mData.put((int) time, value); in onDataPoint()
65 mData.put((int) mLastTime, 0); in onDataGap()
73 mData.put((int) mLastTime, 0); in onParsingDone()
85 return mData.size() > 1; in hasData()
91 for (int i = 0; i < mData.size(); i++) { in getColorArray()
92 ret.put(mData.keyAt(i), getColor(mData.valueAt(i))); in getColorArray()

123