Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 3754) sorted by relevance

12345678910>>...151

/frameworks/native/libs/gui/tests/
DSurfaceTextureClient_test.cpp135 int err = mANW->query(mANW.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F()
143 int err = mANW->query(mANW.get(), NATIVE_WINDOW_CONCRETE_TYPE, &result); in TEST_F()
174 EGLSurface eglSurface = eglCreateWindowSurface(dpy, myConfig, mANW.get(), in TEST_F()
188 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, mANW.get(), NULL); in TEST_F()
215 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 8)); in TEST_F()
216 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 8, 0)); in TEST_F()
220 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
222 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F()
226 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F()
230 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
[all …]
DSurfaceTextureGL_test.cpp31 ASSERT_EQ(NO_ERROR, native_window_api_connect(mANW.get(), in TEST_F()
33 ASSERT_EQ(NO_ERROR, native_window_set_buffers_dimensions(mANW.get(), in TEST_F()
35 ASSERT_EQ(NO_ERROR, native_window_set_buffers_format(mANW.get(), in TEST_F()
37 ASSERT_EQ(NO_ERROR, native_window_set_usage(mANW.get(), in TEST_F()
41 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(mANW.get(), in TEST_F()
52 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf->getNativeBuffer(), in TEST_F()
81 ASSERT_EQ(NO_ERROR, native_window_api_connect(mANW.get(), in TEST_F()
83 ASSERT_EQ(NO_ERROR, native_window_set_buffers_dimensions(mANW.get(), in TEST_F()
85 ASSERT_EQ(NO_ERROR, native_window_set_buffers_format(mANW.get(), in TEST_F()
87 ASSERT_EQ(NO_ERROR, native_window_set_usage(mANW.get(), in TEST_F()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DGapWorkerTest.java89 list.get(0).view = null; in taskOrderViewPresence()
90 list.get(1).view = new RecyclerView(getContext()); in taskOrderViewPresence()
91 list.get(2).view = null; in taskOrderViewPresence()
95 assertNotNull(list.get(0).view); in taskOrderViewPresence()
96 assertNull(list.get(1).view); in taskOrderViewPresence()
97 assertNull(list.get(2).view); in taskOrderViewPresence()
106 list.get(0).immediate = true; in taskOrderImmediate()
107 list.get(1).immediate = false; in taskOrderImmediate()
108 list.get(2).immediate = true; in taskOrderImmediate()
112 assertTrue(list.get(0).immediate); in taskOrderImmediate()
[all …]
/frameworks/rs/rsov/compiler/spirit/
Dpass_queue_test.cpp98 EXPECT_EQ(1, countEntity<IAddInst>(m.get())); in TEST_F()
99 EXPECT_EQ(1, countEntity<IMulInst>(m.get())); in TEST_F()
103 auto m1 = passes.run(m.get()); in TEST_F()
118 EXPECT_EQ(1, countEntity<IAddInst>(m.get())); in TEST_F()
119 EXPECT_EQ(1, countEntity<IMulInst>(m.get())); in TEST_F()
120 EXPECT_EQ(1, countEntity<TypeFloatInst>(m.get())); in TEST_F()
124 auto m1 = passes.run(m.get()); in TEST_F()
138 ASSERT_NE(nullptr, m.get()); in TEST_F()
140 EXPECT_EQ(1, countEntity<IMulInst>(m.get())); in TEST_F()
144 auto m1 = passes.run(m.get()); in TEST_F()
[all …]
Dtransformer_test.cpp83 EXPECT_EQ(1, countEntity<IAddInst>(m.get())); in TEST_F()
84 EXPECT_EQ(1, countEntity<IMulInst>(m.get())); in TEST_F()
87 std::unique_ptr<Module> m1(trans.run(m.get())); in TEST_F()
93 EXPECT_EQ(2, countEntity<IAddInst>(m1.get())); in TEST_F()
94 EXPECT_EQ(0, countEntity<IMulInst>(m1.get())); in TEST_F()
100 ASSERT_NE(nullptr, m.get()); in TEST_F()
102 EXPECT_EQ(1, countEntity<IMulInst>(m.get())); in TEST_F()
105 std::unique_ptr<Module> m1(trans.run(m.get())); in TEST_F()
107 ASSERT_NE(nullptr, m1.get()); in TEST_F()
109 EXPECT_EQ(1, countEntity<IAddInst>(m1.get())); in TEST_F()
[all …]
/frameworks/native/libs/vr/libpdx/
Dvariant_tests.cpp35 const T& get() const { return value_; } in get() function in __anon1fde347f0111::TestType
53 InstrumentType(const TestType<T>& other) : value_(other.get()) { in InstrumentType()
74 value_ = other.get(); in operator =()
88 const T& get() const { return value_; } in get() function in __anon1fde347f0111::InstrumentType
135 EXPECT_EQ(10, std::get<int>(v)); in TEST()
145 EXPECT_EQ(false, std::get<bool>(v)); in TEST()
155 EXPECT_FLOAT_EQ(1.0f, std::get<float>(v)); in TEST()
174 EXPECT_FLOAT_EQ(1.1, std::get<float>(v)); in TEST()
190 EXPECT_EQ(20, std::get<int>(v)); in TEST()
199 EXPECT_EQ("test", std::get<std::string>(v)); in TEST()
[all …]
Dstatus_tests.cpp12 EXPECT_EQ(0, status.get()); in TEST()
20 EXPECT_EQ(0, status_int.get()); in TEST()
24 EXPECT_EQ(3, status_int.get()); in TEST()
28 EXPECT_EQ(-3, status_int.get()); in TEST()
33 EXPECT_EQ("foo", status_str.get()); in TEST()
40 EXPECT_EQ(0, status_int.get()); in TEST()
67 EXPECT_EQ(12, status1.get()); in TEST()
69 EXPECT_EQ(0, status2.get()); in TEST()
77 EXPECT_EQ(0, status1.get()); in TEST()
79 EXPECT_EQ(0, status2.get()); in TEST()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DInputMethodSubtypeArrayTest.java36 assertEquals(subtypes.get(0), array.get(0)); in testInstanciate()
37 assertEquals(subtypes.get(1), array.get(1)); in testInstanciate()
38 assertEquals(subtypes.get(2), array.get(2)); in testInstanciate()
42 assertEquals(subtypes.get(0), clonedArray.get(0)); in testInstanciate()
43 assertEquals(subtypes.get(1), clonedArray.get(1)); in testInstanciate()
44 assertEquals(subtypes.get(2), clonedArray.get(2)); in testInstanciate()
48 assertEquals(clonedArray.get(0), clonedClonedArray.get(0)); in testInstanciate()
49 assertEquals(clonedArray.get(1), clonedClonedArray.get(1)); in testInstanciate()
50 assertEquals(clonedArray.get(2), clonedClonedArray.get(2)); in testInstanciate()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DTwoWayBindingAdapterTest.java64 assertEquals(0, mBindingObject.selectedItemPosition.get()); in testListViewSelectedItemPosition()
70 while (mBindingObject.selectedItemPosition.get() == 0 && in testListViewSelectedItemPosition()
78 assertEquals(1, mBindingObject.selectedItemPosition.get()); in testListViewSelectedItemPosition()
111 final int touchSlop = ViewConfiguration.get(view.getContext()).getScaledTouchSlop(); in clickView()
146 assertTrue(mBindingObject.date.get() != 0); in testCalendarViewDate()
147 assertDatesMatch(mBindingObject.date.get(), mBinder.calendarView.getDate()); in testCalendarViewDate()
169 while (mBindingObject.date.get() == 0 && SystemClock.uptimeMillis() < timeout) { in testCalendarViewDate()
173 assertDatesMatch(date[0], mBindingObject.date.get()); in testCalendarViewDate()
181 assertEquals(expected.get(Calendar.YEAR), testValue.get(Calendar.YEAR)); in assertDatesMatch()
182 assertEquals(expected.get(Calendar.MONTH), testValue.get(Calendar.MONTH)); in assertDatesMatch()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DIntRangeManagerTest.java123 checkConfigInfo(testManager.mConfigList.get(0), 123, 123, SMS_CB_CODE_SCHEME_MIN, in testAddSingleChannel()
129 checkConfigInfo(testManager.mConfigList.get(0), 123, 123, SMS_CB_CODE_SCHEME_MIN, in testAddSingleChannel()
166 checkConfigInfo(testManager.mConfigList.get(0), 100, 120, SMS_CB_CODE_SCHEME_MIN, in testAddTwoChannels()
172 checkConfigInfo(testManager.mConfigList.get(0), 200, 250, SMS_CB_CODE_SCHEME_MIN, in testAddTwoChannels()
178 checkConfigInfo(testManager.mConfigList.get(0), 100, 120, SMS_CB_CODE_SCHEME_MIN, in testAddTwoChannels()
180 checkConfigInfo(testManager.mConfigList.get(1), 200, 250, SMS_CB_CODE_SCHEME_MIN, in testAddTwoChannels()
191 checkConfigInfo(testManager.mConfigList.get(0), 100, 200, SMS_CB_CODE_SCHEME_MIN, in testOverlappingChannels()
197 checkConfigInfo(testManager.mConfigList.get(0), 201, 250, SMS_CB_CODE_SCHEME_MIN, in testOverlappingChannels()
203 checkConfigInfo(testManager.mConfigList.get(0), 100, 250, SMS_CB_CODE_SCHEME_MIN, in testOverlappingChannels()
209 checkConfigInfo(testManager.mConfigList.get(0), 150, 250, SMS_CB_CODE_SCHEME_MIN, in testOverlappingChannels()
[all …]
DClientWakelockTrackerTest.java44 ClientWakelockAccountant abc = myTracker.mClients.get("ABC"); in testTwoClients()
45 ClientWakelockAccountant pqr = myTracker.mClients.get("PQR"); in testTwoClients()
46 assertEquals(2, abc.mPendingRilWakelocks.get(0).getConcurrentRequests()); in testTwoClients()
47 assertEquals(2, pqr.mPendingRilWakelocks.get(0).getConcurrentRequests()); in testTwoClients()
52 assertEquals(1, pqr.mPendingRilWakelocks.get(0).getConcurrentRequests()); in testTwoClients()
78 ClientWakelockAccountant abc = myTracker.mClients.get("ABC");
79 assertEquals(2, abc.mPendingRilWakelocks.get(0).getConcurrentRequests());
80 assertEquals(2, abc.mPendingRilWakelocks.get(1).getConcurrentRequests());
85 assertEquals(1, abc.mPendingRilWakelocks.get(0).getConcurrentRequests());
103 ClientWakelockAccountant abc = myTracker.mClients.get("ABC");
[all …]
/frameworks/minikin/tests/unittest/
DHbFontCacheTest.cpp53 EXPECT_NE(nullptr, getHbFontLocked(fontA.get())); in TEST_F()
54 EXPECT_NE(nullptr, getHbFontLocked(fontB.get())); in TEST_F()
55 EXPECT_NE(nullptr, getHbFontLocked(fontC.get())); in TEST_F()
60 EXPECT_EQ(getHbFontLocked(fontA.get()), getHbFontLocked(fontA.get())); in TEST_F()
61 EXPECT_EQ(getHbFontLocked(fontB.get()), getHbFontLocked(fontB.get())); in TEST_F()
62 EXPECT_EQ(getHbFontLocked(fontC.get()), getHbFontLocked(fontC.get())); in TEST_F()
65 EXPECT_NE(getHbFontLocked(fontA.get()), getHbFontLocked(fontB.get())); in TEST_F()
66 EXPECT_NE(getHbFontLocked(fontA.get()), getHbFontLocked(fontC.get())); in TEST_F()
74 hb_font_t* font = getHbFontLocked(minikinFont.get()); in TEST_F()
88 font = getHbFontLocked(minikinFont.get()); in TEST_F()
/frameworks/base/tools/aapt2/optimize/
DVersionCollapser_test.cpp45 ASSERT_TRUE(collapser.Consume(context.get(), table.get())); in TEST()
49 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
52 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
57 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
62 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
67 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
70 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
73 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
87 ASSERT_TRUE(collapser.Consume(context.get(), table.get())); in TEST()
91 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DLayerUpdateQueueTests.cpp45 queue.enqueueLayerWithDamage(a.get(), Rect(25, 25, 75, 75)); in TEST()
46 queue.enqueueLayerWithDamage(b.get(), Rect(100, 100, 300, 300)); in TEST()
47 queue.enqueueLayerWithDamage(c.get(), Rect(.5, .5, .5, .5)); in TEST()
51 EXPECT_EQ(a.get(), queue.entries()[0].renderNode.get()); in TEST()
53 EXPECT_EQ(b.get(), queue.entries()[1].renderNode.get()); in TEST()
55 EXPECT_EQ(c.get(), queue.entries()[2].renderNode.get()); in TEST()
63 queue.enqueueLayerWithDamage(a.get(), Rect(10, 10, 20, 20)); in TEST()
64 queue.enqueueLayerWithDamage(a.get(), Rect(30, 30, 40, 40)); in TEST()
68 EXPECT_EQ(a.get(), queue.entries()[0].renderNode.get()); in TEST()
76 queue.enqueueLayerWithDamage(a.get(), Rect(100, 100)); in TEST()
/frameworks/support/compat/java/android/support/v4/view/
DViewPropertyAnimatorCompat.java122 if ((view = mView.get()) != null) { in setDuration()
137 if ((view = mView.get()) != null) { in alpha()
152 if ((view = mView.get()) != null) { in alphaBy()
167 if ((view = mView.get()) != null) { in translationX()
182 if ((view = mView.get()) != null) { in translationY()
215 if ((view = mView.get()) != null) { in withEndAction()
236 if ((view = mView.get()) != null) { in getDuration()
253 if ((view = mView.get()) != null) { in setInterpolator()
266 if ((view = mView.get()) != null) { in getInterpolator()
285 if ((view = mView.get()) != null) { in setStartDelay()
[all …]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMapMessage.java82 new BigInteger(attrs.get("handle"), 16); in BluetoothMapMessage()
84 mHandle = attrs.get("handle"); in BluetoothMapMessage()
93 mSubject = attrs.get("subject"); in BluetoothMapMessage()
94 String dateTime = attrs.get("datetime"); in BluetoothMapMessage()
103 mSenderName = attrs.get("sender_name"); in BluetoothMapMessage()
105 mSenderAddressing = attrs.get("sender_addressing"); in BluetoothMapMessage()
107 mReplytoAddressing = attrs.get("replyto_addressing"); in BluetoothMapMessage()
109 mRecipientName = attrs.get("recipient_name"); in BluetoothMapMessage()
111 mRecipientAddressing = attrs.get("recipient_addressing"); in BluetoothMapMessage()
113 mType = strToType(attrs.get("type")); in BluetoothMapMessage()
[all …]
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
DOpReorderTest.java318 clones.add(Item.clone(items.get(i))); in process()
328 Item.idCounter = originalAdded.get(0).id; in process()
379 Item.assertIdentical(log, items.get(i), clones.get(i)); in assertListsIdentical()
404 items.get(index).version = items.get(index).version + 1; in apply()
426 assertEquals(mv(7, 12), mUpdateOps.get(1)); in testSwapMoveRemove_1()
427 assertEquals(rm(2, 3), mUpdateOps.get(0)); in testSwapMoveRemove_1()
436 assertEquals(rm(5, 2), mUpdateOps.get(0)); in testSwapMoveRemove_2()
437 assertEquals(mv(3, 6), mUpdateOps.get(1)); in testSwapMoveRemove_2()
446 assertEquals(rm(4, 2), mUpdateOps.get(0)); in testSwapMoveRemove_3()
447 assertEquals(mv(3, 6), mUpdateOps.get(1)); in testSwapMoveRemove_3()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DUsimPhoneBookManager.java198 files = mPbrRecords.get(recId).mFileIds; in readEmailFileAndWait()
201 File email = files.get(USIM_EFEMAIL_TAG); in readEmailFileAndWait()
211 if (files.get(USIM_EFIAP_TAG) == null) { in readEmailFileAndWait()
217 readIapFileAndWait(files.get(USIM_EFIAP_TAG).getEfid()); in readEmailFileAndWait()
235 if (mPbrRecords.get(i) != null) { in readEmailFileAndWait()
236 SparseArray<File> previousFileIds = mPbrRecords.get(i).mFileIds; in readEmailFileAndWait()
238 File id = previousFileIds.get(USIM_EFEMAIL_TAG); in readEmailFileAndWait()
285 if (mPbrRecords.get(recId) == null) in buildType1EmailList()
288 int numRecs = mPbrRecords.get(recId).mMasterFileRecordNum; in buildType1EmailList()
295 emailRec = mEmailFileRecord.get(i); in buildType1EmailList()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
DLocaleUtilsTest.java31 public Locale get(Locale source) {
112 assertEquals(availableLocales.get(1), dest.get(0)); // "en-US" in testFilterByLanguageNullAvailableLocales()
125 assertEquals(availableLocales.get(1), dest.get(0)); // "en" in testFilterByLanguageNullAvailableLocales()
156 assertEquals(availableLocales.get(1), dest.get(0)); // "fr-CA" in testFilterByLanguage()
157 assertEquals(availableLocales.get(0), dest.get(1)); // "en-US" in testFilterByLanguage()
158 assertEquals(availableLocales.get(3), dest.get(2)); // "ja" in testFilterByLanguage()
171 assertEquals(availableLocales.get(0), dest.get(0)); // "en-US" in testFilterByLanguage()
186 assertEquals(availableLocales.get(1), dest.get(0)); // "en-US" in testFilterByLanguageTheSameLanguage()
197 assertEquals(availableLocales.get(1), dest.get(0)); // "en" in testFilterByLanguageTheSameLanguage()
209 assertEquals(availableLocales.get(2), dest.get(0)); // "en-IN" in testFilterByLanguageTheSameLanguage()
[all …]
/frameworks/base/libs/hwui/tests/common/scenes/
DOpPropAnimation.cpp57 canvas.drawRoundRect(mRoundRectLeft.get(), mRoundRectTop.get(), in createContent()
58 mRoundRectRight.get(), mRoundRectBottom.get(), in createContent()
59 mRoundRectRx.get(), mRoundRectRy.get(), mPaint.get()); in createContent()
60 canvas.drawCircle(mCircleX.get(), mCircleY.get(), mCircleRadius.get(), mPaint.get()); in createContent()
62 canvas.drawRenderNode(content.get()); in createContent()
/frameworks/base/tools/aapt2/link/
DTableMerger_test.cpp69 TableMerger merger(context_.get(), &final_table, TableMergerOptions{}); in TEST_F()
72 ASSERT_TRUE(merger.Merge({}, table_a.get())); in TEST_F()
73 ASSERT_TRUE(merger.MergeAndMangle({}, "com.app.b", table_b.get(), &collection)); in TEST_F()
93 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
113 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
137 TableMerger merger(context_.get(), &final_table, TableMergerOptions{}); in TEST_F()
141 ASSERT_TRUE(merger.Merge({}, table_a.get())); in TEST_F()
142 ASSERT_TRUE(merger.MergeAndMangle({}, "com.app.b", table_b.get(), &collection)); in TEST_F()
168 TableMerger merger(context_.get(), &final_table, options); in TEST_F()
170 ASSERT_TRUE(merger.Merge({}, base.get())); in TEST_F()
[all …]
DReferenceLinker_test.cpp46 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
54 ASSERT_TRUE(linker.Consume(context.get(), table.get())); in TEST()
56 Reference* ref = test::GetValue<Reference>(table.get(), "com.app.test:string/foo"); in TEST()
61 ref = test::GetValue<Reference>(table.get(), "com.app.test:string/bar"); in TEST()
66 ref = test::GetValue<Reference>(table.get(), "com.app.test:string/baz"); in TEST()
89 Style* style = test::GetValue<Style>(table.get(), "com.app.test:style/Theme"); in TEST()
118 ASSERT_TRUE(linker.Consume(context.get(), table.get())); in TEST()
120 Style* style = test::GetValue<Style>(table.get(), "com.app.test:style/Theme"); in TEST()
130 ASSERT_NE(nullptr, ValueCast<BinaryPrimitive>(style->entries[0].value.get())); in TEST()
134 ASSERT_NE(nullptr, ValueCast<BinaryPrimitive>(style->entries[1].value.get())); in TEST()
[all …]
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/
DEmojiCompatTest.java106 EmojiCompat.get(); in testGet_throwsException()
111 assertNull(EmojiCompat.get().process(null)); in testProcess_doesNothing_withNullCharSequence()
116 final CharSequence charSequence = EmojiCompat.get().process(""); in testProcess_returnsEmptySpanned_withEmptyString()
125 EmojiCompat.get().process("a", -1, 1); in testProcess_withNegativeStartValue()
131 EmojiCompat.get().process("a", 1, -1); in testProcess_withNegativeEndValue()
136 EmojiCompat.get().process("aa", 1, 0); in testProcess_withStartSmallerThanEndValue()
141 EmojiCompat.get().process("a", 2, 2); in testProcess_withStartGreaterThanLength()
146 EmojiCompat.get().process("a", 0, 2); in testProcess_withEndGreaterThanLength()
154 assertSame(spannable, EmojiCompat.get().process(spannable, 0, 0)); in testProcessWithStartEnd_withNoOpValues()
155 assertSame(spannable, EmojiCompat.get().process(spannable, 1, 1)); in testProcessWithStartEnd_withNoOpValues()
[all …]
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator_test.cpp39 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
42 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST()
65 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
68 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST()
96 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
99 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST()
122 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
125 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST()
152 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
159 JavaClassGenerator generator(context.get(), table.get(), options); in TEST()
[all …]
/frameworks/base/core/java/android/widget/
DDayPickerPagerAdapter.java82 final int diffYear = mMaxDate.get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR); in setRange()
83 final int diffMonth = mMaxDate.get(Calendar.MONTH) - mMinDate.get(Calendar.MONTH); in setRange()
113 final ViewHolder monthView = mItems.get(position, null); in getBoundsForDate()
117 final int dayOfMonth = day.get(Calendar.DAY_OF_MONTH); in getBoundsForDate()
133 final ViewHolder oldMonthView = mItems.get(oldPosition, null); in setSelectedDay()
141 final ViewHolder newMonthView = mItems.get(newPosition, null); in setSelectedDay()
143 final int dayOfMonth = day.get(Calendar.DAY_OF_MONTH); in setSelectedDay()
205 return (position + mMinDate.get(Calendar.MONTH)) % MONTHS_IN_YEAR; in getMonthForPosition()
209 final int yearOffset = (position + mMinDate.get(Calendar.MONTH)) / MONTHS_IN_YEAR; in getYearForPosition()
210 return yearOffset + mMinDate.get(Calendar.YEAR); in getYearForPosition()
[all …]

12345678910>>...151