/development/samples/browseable/CustomChoiceList/src/com.example.android.customchoicelist/ |
MainActivity.java | 48 public String getItem(int position) { 49 return Cheeses.CHEESES[position]; 53 public long getItemId(int position) { 54 return Cheeses.CHEESES[position].hashCode(); 58 public View getView(int position, View convertView, ViewGroup container) { 64 .setText(getItem(position));
|
/external/chromium_org/chrome/browser/policy/ |
policy_path_parser_linux.cc | 35 size_t position = result.find(kUserNamePolicyVarName); local 36 if (position != std::string::npos) { 39 result.replace(position, strlen(kUserNamePolicyVarName), user->pw_name); 44 position = result.find(kMachineNamePolicyVarName); 45 if (position != std::string::npos) { 48 result.replace(position, strlen(kMachineNamePolicyVarName), machinename);
|
/external/chromium_org/media/filters/ |
file_data_source.cc | 32 void FileDataSource::Read(int64 position, int size, uint8* data, 42 CHECK_GE(position, 0); 45 // Cap position and size within bounds. 46 position = std::min(position, file_size); 47 int64 clamped_size = std::min(static_cast<int64>(size), file_size - position); 49 memcpy(data, file_.data() + position, clamped_size);
|
/external/chromium_org/media/tools/player_x11/ |
data_source_logger.cc | 10 int64 position, int size, 12 VLOG(1) << "Read(" << position << ", " << size << ") -> " << result; 29 int64 position, int size, uint8* data, 31 VLOG(1) << "Read(" << position << ", " << size << ")"; 32 data_source_->Read(position, size, data, base::Bind( 33 &LogAndRunReadCB, position, size, read_cb));
|
/external/chromium_org/third_party/polymer/components/paper-tabs/ |
paper-tab.css | 12 position: relative; 17 position: absolute; 35 position: absolute;
|
/external/chromium_org/third_party/polymer/components-chromium/paper-tabs/ |
paper-tab.css | 12 position: relative; 17 position: absolute; 35 position: absolute;
|
/external/chromium_org/third_party/webrtc/examples/android/media_demo/src/org/webrtc/webrtcdemo/ |
SpinnerAdapter.java | 33 @Override public View getDropDownView(int position, View convertView, 35 return getCustomView(position, convertView, parent); 38 @Override public View getView(int position, View convertView, 40 return getCustomView(position, convertView, parent); 43 private View getCustomView(int position, View v, ViewGroup parent) { 46 label.setText(menuItems[position]);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
ListUtil.java | 43 * Set the selected position of the list view. 44 * @param pos The desired position. 70 * Arrow (up or down as appropriate) to the desired position in the list. 71 * @param desiredPos The desired position 72 * @throws IllegalStateException if the position can't be reached within 20 presses. 82 private void arrowDownToSelectedPosition(int position) { 84 while(mListView.getSelectedItemPosition() < position && --maxDowns > 0) { 87 if (position != mListView.getSelectedItemPosition()) { 93 private void arrowUpToSelectedPosition(int position) { 95 while(mListView.getSelectedItemPosition() > position && --maxUps > 0) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
GridDelete.java | 95 public Object getItem(int position) { 96 return mData.get(position); 99 public long getItemId(int position) { 100 return mData.get(position); 103 public View getView(int position, View convertView, ViewGroup parent) { 105 return createView(mData.get(position), parent, desiredHeight);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListTakeFocusFromSide.java | 55 public Object getItem(int position) { 56 return position; 59 public long getItemId(int position) { 60 return position; 63 public View getView(int position, View convertView, ViewGroup parent) { 71 view.setText(mTitles[position]);
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
BiDiTestGalleryImages.java | 52 public Object getItem(int position) { 53 return position; 57 public long getItemId(int position) { 58 return position; 62 public View getView(int position, View convertView, ViewGroup parent) { 64 i.setImageResource(mImageIds[position]);
|
/libcore/luni/src/main/java/java/security/ |
MessageDigestSpi.java | 80 int position = input.position(); local 82 engineUpdate(tmp, offset+position, limit - position); 83 input.position(limit); 85 tmp = new byte[input.limit() - input.position()];
|
/libcore/luni/src/main/java/javax/crypto/ |
MacSpi.java | 89 * buffer, starting at {@link ByteBuffer#position()}, including the next 103 int position = input.position(); local 105 engineUpdate(bInput, offset + position, limit - position); 106 input.position(limit); 108 bInput = new byte[input.limit() - input.position()];
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
SectionedAlbumDataAdapter.java | 113 public boolean isEnabled(int position) { 114 if (isHeader(position)) { 117 return mAlbumData.isEnabled(internalPosition(position)); 129 public Object getItem(int position) { 130 if (isHeader(position)) { 131 return mAlbumData.getItem(internalPosition(position+1)).account; 133 return mAlbumData.getItem(internalPosition(position)); 138 public long getItemId(int position) { 139 return position; 143 public int getItemViewType(int position) { [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/ |
SharedBuffer.cpp | 45 static inline unsigned segmentIndex(unsigned position) 47 return position / segmentSize; 50 static inline unsigned offsetInSegment(unsigned position) 52 return position & segmentPositionMask; 236 size_t position = 0; local 237 while (size_t length = data->getSomeData(segment, position)) { 239 position += length; 305 unsigned position = m_buffer.size(); local 306 while (unsigned segmentSize = getSomeData(segment, position)) { 308 position += segmentSize 392 unsigned position = 0; local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
MtpDeviceIndex.java | 34 * - get/getAscending/getDescending: get an item at a specified list position 195 * @param position Index of item to fetch, where 0 is the first item in the 198 * @return the bucket label or IngestObjectInfo at the specified position and 201 public Object get(int position, SortOrder order) { 207 DateBucket bucket = results.buckets[results.unifiedLookupIndex[position]]; 208 if (bucket.unifiedStartIndex == position) { 211 return results.mtpObjects[bucket.itemsStartIndex + position - 1 215 int zeroIndex = results.unifiedLookupIndex.length - 1 - position; 227 * @param position Index of item to fetch from a view of the data that does not 229 * @return position-th item in specified order, when not including label [all...] |
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/adapter/ |
SimpleStringAdapter.java | 50 public String getValueAt(int position) { 51 return mValues.get(position); 92 public void onBindViewHolder(ViewHolder holder, int position) { 93 holder.mBoundString = mValues.get(position); 94 holder.mTextView.setText(position + ":" + mValues.get(position)); 95 holder.mTextView.setMinHeight((200 + mValues.get(position).length() * 10)); 96 holder.mTextView.setBackgroundColor(getBackgroundColor(position)); 99 private int getBackgroundColor(int position) { 100 switch (position % 4) [all...] |
/external/chromium-trace/trace-viewer/src/ui/ |
quad_stack.css | 12 position: relative; 22 position: relative; 28 position: absolute; 37 background-position: left top, right top, left top; 45 position: absolute;
|
/external/chromium_org/native_client_sdk/src/gonacl_appengine/static/bullet/ |
scenes.js | 19 body.position = {}; 20 body.position.x = Math.random() * 30 - 15; 21 body.position.y = Math.random() * 50 + 10; 22 body.position.z = Math.random() * zwidth - (zwidth/2); 47 body.position = {}; 48 body.position.x = Math.random() * 30 - 15; 49 body.position.y = Math.random() * 50 + 10; 50 body.position.z = Math.random() * zwidth - (zwidth/2); 90 body.position = {}; 91 body.position.x = x [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
FakeAdapter.java | 86 public boolean isEnabled(int position) { 96 public Object getItem(int position) { 97 return mItems.get(position); 101 public long getItemId(int position) { 102 return position; 106 public int getItemViewType(int position) { 107 return mItems.get(position).getType(); 111 public View getView(int position, View convertView, ViewGroup parent) { 113 AdapterItem item = mItems.get(position); 129 public View getDropDownView(int position, View convertView, ViewGroup parent) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
FragmentStatePagerAdapter2.java | 52 * Return the Fragment associated with a specified position. 54 public abstract Fragment getItem(int position); 61 public Object instantiateItem(ViewGroup container, int position) { 66 final Fragment existing = mFragments.get(position); 75 Fragment fragment = getItem(position); 79 mFragments.put(position, fragment); 86 public void destroyItem(ViewGroup container, int position, Object object) { 92 mFragments.delete(position); 98 public void setPrimaryItem(ViewGroup container, int position, Object object) { 150 public Fragment getFragmentAt(int position) { [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/ |
GridResolvedPosition.cpp | 53 // GridResolvedPosition::resolveGrisPositionFromStyle() always return a valid resolved position. 60 // If the grid item has an automatic position and a grid span for a named line in a given dimension, instead treat the grid span as one. 106 // Infer the position from the final position ('auto / 1' or 'span 2 / 3' case). 112 // Infer our position from the initial position ('1 / auto' or '3 / span 2' case). 142 GridResolvedPosition GridResolvedPosition::resolveNamedGridLinePositionFromStyle(const RenderStyle& gridContainerStyle, const GridPosition& position, GridPositionSide side) 144 ASSERT(!position.namedGridLine().isNull()); 147 NamedGridLinesMap::const_iterator it = gridLinesNames.find(position.namedGridLine()); 149 if (position.isPositive() [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ViewPagerTabs.java | 83 public OnTabLongClickListener(int position) { 84 mPosition = position; 152 private void addTab(CharSequence tabTitle, final int position) { 160 mPager.setCurrentItem(getRtlPosition(position)); 164 textView.setOnLongClickListener(new OnTabLongClickListener(position)); 181 if (position == 0) { 188 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { 189 position = getRtlPosition(position); 191 if ((tabStripChildCount == 0) || (position < 0) || (position >= tabStripChildCount)) [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/main/test/ |
dual_stream_unittest.cc | 53 bool EqualTimestamp(int stream, int position); 54 int EqualPayloadLength(int stream, int position); 55 bool EqualPayloadData(int stream, int position); 248 bool DualStreamTest::EqualTimestamp(int stream_index, int position) { 249 if (timestamp_dual_[stream_index][position] 250 != timestamp_ref_[stream_index][position]) { 256 int DualStreamTest::EqualPayloadLength(int stream_index, int position) { 258 payload_len_dual_[stream_index][position] 259 - payload_len_ref_[stream_index][position]); 262 bool DualStreamTest::EqualPayloadData(int stream_index, int position) { 301 int position; local [all...] |
/frameworks/ex/common/java/com/android/common/widget/ |
CompositeCursorAdapter.java | 240 * Given a list position, returns the index of the corresponding partition. 242 public int getPartitionForPosition(int position) { 247 if (position >= start && position < end) { 256 * Given a list position, return the offset of the corresponding item in its 259 public int getOffsetInPartition(int position) { 264 if (position >= start && position < end) { 265 int offset = position - start; 277 * Returns the first list position for the specified partition 281 int position = 0; local [all...] |