HomeSort by relevance Sort by last modified time
    Searched refs:position (Results 276 - 300 of 4070) sorted by null

<<11121314151617181920>>

  /libcore/luni/src/test/java/libcore/java/nio/
OldAndroidNIOTest.java 35 assertTrue(0 <= b.position());
36 assertTrue(b.position() <= b.limit());
98 b.position(0);
108 b.position(0);
118 b.position(b.limit() - 2);
126 b.position(0);
137 b.position(0);
152 b.position(0);
173 b.position(0);
194 b.position(6)
    [all...]
  /frameworks/ex/common/java/com/android/common/widget/
GroupingListAdapter.java 264 * Figures out whether the item at the specified position represents a
266 * corresponding cursor position.
268 public void obtainPositionMetadata(PositionMetadata metadata, int position) {
271 if (metadata.listPosition == position) {
279 // Check cache for the supplied position. What we are looking for is
280 // the group descriptor immediately preceding the supplied position.
281 // Once we have that, we will be able to tell whether the position
284 if (position <= mLastCachedListPosition) {
287 int index = mPositionCache.indexOfKey(position);
289 // If we get back a positive number, the position corresponds t
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/selectcalendars/
SelectCalendarsSimpleAdapter.java 217 public View getView(final int position, View convertView, ViewGroup parent) {
218 if (position >= mRowCount) {
221 String name = mData[position].displayName;
222 boolean selected = mData[position].selected;
224 int color = Utils.getDisplayColorFromColor(mData[position].color);
256 if (!hasMoreColors(position)) {
261 mColorPickerDialog = CalendarColorPickerDialog.newInstance(mData[position].id,
264 mColorPickerDialog.setCalendarId(mData[position].id);
287 colorView.setEnabled(hasMoreColors(position));
290 if (!TextUtils.isEmpty(mData[position].ownerAccount
    [all...]
  /external/chromium_org/third_party/skia/tests/
PathMeasureTest.cpp 114 SkPoint position; local
116 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
118 SkScalarNearlyEqual(position.fX,
121 REPORTER_ASSERT(reporter, position.fY == 0);
141 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
143 SkScalarNearlyEqual(position.fX,
146 REPORTER_ASSERT(reporter, position.fY == 0);
149 REPORTER_ASSERT(reporter, meas.getPosTan(2.5f, &position, &tangent));
151 SkScalarNearlyEqual(position.fX, SK_Scalar1, 0.0001f));
153 SkScalarNearlyEqual(position.fY, 1.5f))
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowAdapterView.java 215 public Object getItemAtPosition(int position) {
217 return (adapter == null || position < 0) ? null : adapter.getItem(position);
221 public long getItemIdAtPosition(int position) {
223 return (adapter == null || position < 0) ? AdapterView.INVALID_ROW_ID : adapter.getItemId(position);
227 public void setSelection(final int position) {
228 selectedPosition = position;
235 onItemSelectedListener.onItemSelected(realAdapterView, getChildAt(position), position, getAdapter().getItemId(position))
    [all...]
ShadowFragmentPagerAdapter.java 24 public void setPrimaryItem(ViewGroup container, int position, Object object) {
29 public Object instantiateItem(ViewGroup container, int position) {
30 return realAdapter.getItem(position);
  /external/skia/tests/
PathMeasureTest.cpp 114 SkPoint position; local
116 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
118 SkScalarNearlyEqual(position.fX,
121 REPORTER_ASSERT(reporter, position.fY == 0);
141 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
143 SkScalarNearlyEqual(position.fX,
146 REPORTER_ASSERT(reporter, position.fY == 0);
149 REPORTER_ASSERT(reporter, meas.getPosTan(2.5f, &position, &tangent));
151 SkScalarNearlyEqual(position.fX, SK_Scalar1, 0.0001f));
153 SkScalarNearlyEqual(position.fY, 1.5f))
    [all...]
  /frameworks/base/core/tests/coretests/src/android/util/
GridScenario.java 112 * Set the position that starts selected.
114 * @param startingSelectionPosition The selected position within the adapter's data set.
135 * @param position The position in the grid.
139 int position, double itemScreenSizeFactor) {
140 mOverrideItemScreenSizeFactors.put(position, itemScreenSizeFactor);
266 public void onItemSelected(AdapterView parent, View v, int position, long id) {
267 positionSelected(position);
315 public final String getValueAtPosition(int position) {
316 return "postion " + position;
    [all...]
  /packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
ContactEntryAdapter.java 97 * Resets the section data and returns the position of the given entry.
100 * @param entry the entry to return the position for
101 * @return the position of entry, or -1 if it isn't found
108 int position = 0; local
115 position += j;
116 return position;
119 position += sectionSize;
143 public final boolean isEnabled(int position) {
156 if (position == 0) {
160 position -= sectionSize
    [all...]
  /developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/recipeassistant/
MainActivity.java 32 protected void onListItemClick(ListView l, View v, int position, long id) {
34 Log.d(TAG , "onListItemClick " + position);
36 String itemName = mAdapter.getItemName(position);
  /development/samples/wearable/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
MainActivity.java 32 protected void onListItemClick(ListView l, View v, int position, long id) {
34 Log.d(TAG , "onListItemClick " + position);
36 String itemName = mAdapter.getItemName(position);
  /external/chromium_org/ash/display/
display_layout.h 26 enum Position {
36 static DisplayLayout FromInts(int position, int offsets);
39 DisplayLayout(Position position, int offset);
53 Position position; member in struct:ash::DisplayLayout
55 // The offset of the position of the secondary display. The offset is
  /external/chromium_org/chrome/browser/policy/
policy_path_parser_win.cc 80 size_t position = result.find(win_folder_mapping[i].name); local
81 if (position != std::wstring::npos) {
85 result.replace(position, wcslen(win_folder_mapping[i].name), path_string);
89 size_t position = result.find(kUserNamePolicyVarName); local
90 if (position != std::wstring::npos) {
97 result.replace(position, wcslen(kUserNamePolicyVarName), username_string);
100 position = result.find(kMachineNamePolicyVarName);
101 if (position != std::wstring::npos) {
110 position, wcslen(kMachineNamePolicyVarName), machinename_string);
113 position = result.find(kWinClientName)
    [all...]
  /external/chromium_org/content/browser/geolocation/
geolocation_provider_impl.h 33 virtual void OverrideLocationForTesting(const Geoposition& position) OVERRIDE;
36 void OnLocationUpdate(const Geoposition& position);
74 // Notifies all registered clients that a position update is available.
75 void NotifyClients(const Geoposition& position);
87 // True only in testing, where we want to use a custom position.
  /external/chromium_org/third_party/WebKit/Source/core/html/track/vtt/
VTTScanner.h 54 typedef const LChar* Position;
58 Run(Position start, Position end, bool is8Bit)
61 Position start() const { return m_start; }
62 Position end() const { return m_end; }
68 Position m_start;
69 Position m_end;
73 // Check if the input pointer points at the specified position.
74 bool isAt(Position checkPosition) const { return position() == checkPosition;
133 Position position() const { return m_data.characters8; } function in class:WebCore::VTTScanner
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
VerticalPositionCache.h 54 void set(RenderObject* renderer, FontBaseline baselineType, int position)
57 m_alphabeticPositions.set(renderer, position);
59 m_ideographicPositions.set(renderer, position);
  /external/chromium_org/ui/webui/resources/css/
bubble.css 6 position: absolute;
18 position: relative;
30 position: absolute;
64 position: absolute;
74 position: absolute;
96 position: fixed;
  /external/deqp/framework/platform/android/
tcuAndroidAssets.cpp 68 void AssetResource::setPosition (int position)
70 TCU_CHECK(AAsset_seek(m_asset, position, SEEK_SET) == position);
  /external/deqp/framework/referencerenderer/
rrPrimitivePacket.cpp 38 void GeometryEmitter::EmitVertex (const tcu::Vec4& position, float pointSize, const GenericVec4* varyings, int primitiveID)
50 packet->position = position;
  /external/libcxx/test/re/re.iter/re.regiter/re.regiter.cnstr/
cnstr.pass.cpp 29 assert(i->position() == 0);
34 assert(i->position() == 10);
39 assert(i->position() == 20);
  /external/libcxx/test/re/re.iter/re.regiter/re.regiter.deref/
deref.pass.cpp 27 assert((*i).position() == 0);
32 assert((*i).position() == 10);
37 assert((*i).position() == 20);
  /external/mockito/src/org/mockito/internal/invocation/
InvocationMatcher.java 121 for (int position = 0; position < matchers.size(); position++) {
122 Matcher m = matchers.get(position);
123 if (m instanceof CapturesArguments && invocation.getArguments().length > position) {
124 if(isVariableArgument(invocation, position) && isVarargMatcher(m)) {
125 ((CapturesArguments) m).captureFrom(invocation.getRawArguments()[position]);
127 ((CapturesArguments) m).captureFrom(invocation.getArguments()[position]);
141 private boolean isVariableArgument(Invocation invocation, int position) {
142 return invocation.getRawArguments().length - 1 == position
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
MediaPlayerTest.java 29 for (int position : positions) {
30 shadowMediaPlayer.setCurrentPosition(position);
31 assertThat(mediaPlayer.getCurrentPosition(), equalTo(position));
  /frameworks/base/core/java/android/database/
CrossProcessCursorWrapper.java 46 public void fillWindow(int position, CursorWindow window) {
49 crossProcessCursor.fillWindow(position, window);
53 DatabaseUtils.cursorFillWindow(mCursor, position, window);
  /frameworks/base/core/tests/coretests/src/android/widget/listview/
ListButtonsDiagonalAcrossItems.java 50 protected View createView(int position, ViewGroup parent,
52 final Slot slot = position == 0 ? Slot.Left :
53 (position == 1 ? Slot.Middle : Slot.Right);

Completed in 2203 milliseconds

<<11121314151617181920>>