/frameworks/base/libs/hwui/tests/unit/ |
D | ShaderCacheTests.cpp | 116 #define GrProgramDescTest(a) (*SkData::MakeWithCString(#a).get()) 132 ShaderCache::get().setFilename(cacheFile1.c_str()); in TEST() 133 ShaderCacheTestUtils::setSaveDelay(ShaderCache::get(), 0); // disable deferred save in TEST() 134 ShaderCache::get().initShaderDiskCache(); in TEST() 138 ASSERT_EQ(ShaderCache::get().load(GrProgramDescTest(432)), sk_sp<SkData>()); in TEST() 143 ShaderCache::get().store(GrProgramDescTest(100), *inVS.get()); in TEST() 145 ShaderCache::get().store(GrProgramDescTest(432), *inVS.get()); in TEST() 146 ASSERT_NE((outVS = ShaderCache::get().load(GrProgramDescTest(100))), sk_sp<SkData>()); in TEST() 148 ASSERT_NE((outVS = ShaderCache::get().load(GrProgramDescTest(432))), sk_sp<SkData>()); in TEST() 152 ShaderCacheTestUtils::terminate(ShaderCache::get(), true); in TEST() [all …]
|
D | LayerUpdateQueueTests.cpp | 45 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/native/libs/gui/tests/ |
D | SurfaceTextureClient_test.cpp | 134 int err = mANW->query(mANW.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F() 142 int err = mANW->query(mANW.get(), NATIVE_WINDOW_CONCRETE_TYPE, &result); in TEST_F() 173 EGLSurface eglSurface = eglCreateWindowSurface(dpy, myConfig, mANW.get(), in TEST_F() 187 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, mANW.get(), nullptr); in TEST_F() 214 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 8)); in TEST_F() 215 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 8, 0)); in TEST_F() 219 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F() 221 ASSERT_EQ(OK, native_window_dequeue_buffer_and_wait(mANW.get(), &buf)); in TEST_F() 225 ASSERT_EQ(OK, mANW->cancelBuffer(mANW.get(), buf, -1)); in TEST_F() 229 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F() [all …]
|
D | SurfaceTextureGL_test.cpp | 31 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/base/services/tests/servicestests/src/com/android/server/textservices/ |
D | LocaleUtilsTest.java | 52 assertEquals(LOCALE_EN_US, locales.get(0)); in testGetSuitableLocalesForSpellChecker() 53 assertEquals(LOCALE_EN_GB, locales.get(1)); in testGetSuitableLocalesForSpellChecker() 54 assertEquals(LOCALE_EN, locales.get(2)); in testGetSuitableLocalesForSpellChecker() 61 assertEquals(LOCALE_EN_GB, locales.get(0)); in testGetSuitableLocalesForSpellChecker() 62 assertEquals(LOCALE_EN_US, locales.get(1)); in testGetSuitableLocalesForSpellChecker() 63 assertEquals(LOCALE_EN, locales.get(2)); in testGetSuitableLocalesForSpellChecker() 70 assertEquals(LOCALE_EN, locales.get(0)); in testGetSuitableLocalesForSpellChecker() 71 assertEquals(LOCALE_EN_US, locales.get(1)); in testGetSuitableLocalesForSpellChecker() 72 assertEquals(LOCALE_EN_GB, locales.get(2)); in testGetSuitableLocalesForSpellChecker() 79 assertEquals(LOCALE_EN_IN, locales.get(0)); in testGetSuitableLocalesForSpellChecker() [all …]
|
/frameworks/native/libs/ui/tests/ |
D | BufferHubEventFd_test.cpp | 50 ASSERT_GE(epollFd.get(), 0); in TEST_F() 53 ASSERT_EQ(epoll_ctl(epollFd.get(), EPOLL_CTL_ADD, eventFd.get(), &e), 0); in TEST_F() 56 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F() 59 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F() 62 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F() 66 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F() 67 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F() 70 BufferHubEventFd dupEventFd(dup(eventFd.get())); in TEST_F() 73 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F() 74 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F() [all …]
|
/frameworks/rs/rsov/compiler/spirit/ |
D | pass_queue_test.cpp | 98 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 …]
|
D | transformer_test.cpp | 83 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/base/packages/SystemUI/src/com/android/systemui/ |
D | Dependency.java | 314 mProviders.put(TIME_TICK_HANDLER, mTimeTickHandler::get); in start() 315 mProviders.put(BG_LOOPER, mBgLooper::get); in start() 316 mProviders.put(BG_HANDLER, mBgHandler::get); in start() 317 mProviders.put(MAIN_HANDLER, mMainHandler::get); in start() 318 mProviders.put(ActivityStarter.class, mActivityStarter::get); in start() 319 mProviders.put(ActivityStarterDelegate.class, mActivityStarterDelegate::get); in start() 321 mProviders.put(AsyncSensorManager.class, mAsyncSensorManager::get); in start() 323 mProviders.put(BluetoothController.class, mBluetoothController::get); in start() 324 mProviders.put(SensorPrivacyManager.class, mSensorPrivacyManager::get); in start() 326 mProviders.put(LocationController.class, mLocationController::get); in start() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
D | InputMethodSubtypeArrayTest.java | 45 assertEquals(subtypes.get(0), array.get(0)); in testInstantiate() 46 assertEquals(subtypes.get(1), array.get(1)); in testInstantiate() 47 assertEquals(subtypes.get(2), array.get(2)); in testInstantiate() 51 assertEquals(subtypes.get(0), clonedArray.get(0)); in testInstantiate() 52 assertEquals(subtypes.get(1), clonedArray.get(1)); in testInstantiate() 53 assertEquals(subtypes.get(2), clonedArray.get(2)); in testInstantiate() 57 assertEquals(clonedArray.get(0), clonedClonedArray.get(0)); in testInstantiate() 58 assertEquals(clonedArray.get(1), clonedClonedArray.get(1)); in testInstantiate() 59 assertEquals(clonedArray.get(2), clonedClonedArray.get(2)); in testInstantiate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | FalsingDataProviderTest.java | 69 assertThat(motionEventList.get(0).getActionMasked(), is(MotionEvent.ACTION_DOWN)); in test_trackMotionEvents() 70 assertThat(motionEventList.get(1).getActionMasked(), is(MotionEvent.ACTION_MOVE)); in test_trackMotionEvents() 71 assertThat(motionEventList.get(2).getActionMasked(), is(MotionEvent.ACTION_UP)); in test_trackMotionEvents() 72 assertThat(motionEventList.get(0).getEventTime(), is(1L)); in test_trackMotionEvents() 73 assertThat(motionEventList.get(1).getEventTime(), is(2L)); in test_trackMotionEvents() 74 assertThat(motionEventList.get(2).getEventTime(), is(3L)); in test_trackMotionEvents() 75 assertThat(motionEventList.get(0).getX(), is(2f)); in test_trackMotionEvents() 76 assertThat(motionEventList.get(1).getX(), is(4f)); in test_trackMotionEvents() 77 assertThat(motionEventList.get(2).getX(), is(6f)); in test_trackMotionEvents() 78 assertThat(motionEventList.get(0).getY(), is(9f)); in test_trackMotionEvents() [all …]
|
/frameworks/native/libs/vr/libpdx/ |
D | variant_tests.cpp | 40 const T& get() const { return value_; } in get() function in __anon1ad818080111::TestType 61 InstrumentType(const TestType<T>& other) : value_(other.get()) { in InstrumentType() 83 value_ = other.get(); in operator =() 97 const T& get() const { return value_; } in get() function in __anon1ad818080111::InstrumentType 144 EXPECT_EQ(10, std::get<int>(v)); in TEST() 154 EXPECT_EQ(false, std::get<bool>(v)); in TEST() 164 EXPECT_FLOAT_EQ(1.0f, std::get<float>(v)); in TEST() 183 EXPECT_FLOAT_EQ(1.1, std::get<float>(v)); in TEST() 199 EXPECT_EQ(20, std::get<int>(v)); in TEST() 208 EXPECT_EQ("test", std::get<std::string>(v)); in TEST() [all …]
|
D | status_tests.cpp | 14 EXPECT_EQ(0, status.get()); in TEST() 22 EXPECT_EQ(0, status_int.get()); in TEST() 26 EXPECT_EQ(3, status_int.get()); in TEST() 30 EXPECT_EQ(-3, status_int.get()); in TEST() 35 EXPECT_EQ("foo", status_str.get()); in TEST() 42 EXPECT_EQ(0, status_int.get()); in TEST() 69 EXPECT_EQ(12, status1.get()); in TEST() 71 EXPECT_EQ(0, status2.get()); in TEST() 79 EXPECT_EQ(0, status1.get()); in TEST() 81 EXPECT_EQ(0, status2.get()); in TEST() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | IntRangeManagerTest.java | 123 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 …]
|
D | ClientWakelockTrackerTest.java | 48 ClientWakelockAccountant abc = myTracker.mClients.get("ABC"); in testTwoClients() 49 ClientWakelockAccountant pqr = myTracker.mClients.get("PQR"); in testTwoClients() 50 assertEquals(2, abc.mPendingRilWakelocks.get(0).getConcurrentRequests()); in testTwoClients() 51 assertEquals(2, pqr.mPendingRilWakelocks.get(0).getConcurrentRequests()); in testTwoClients() 56 assertEquals(1, pqr.mPendingRilWakelocks.get(0).getConcurrentRequests()); in testTwoClients() 83 ClientWakelockAccountant abc = myTracker.mClients.get("ABC"); 84 assertEquals(2, abc.mPendingRilWakelocks.get(0).getConcurrentRequests()); 85 assertEquals(2, abc.mPendingRilWakelocks.get(1).getConcurrentRequests()); 90 assertEquals(1, abc.mPendingRilWakelocks.get(0).getConcurrentRequests()); 109 ClientWakelockAccountant abc = myTracker.mClients.get("ABC"); [all …]
|
/frameworks/base/tools/aapt2/optimize/ |
D | VersionCollapser_test.cpp | 45 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/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerUITest.java | 106 TestableLooper.get(this).processAllMessages(); in testSkinWarning_throttlingCritical() 119 TestableLooper.get(this).processAllMessages(); in testSkinWarning_throttlingEmergency() 132 TestableLooper.get(this).processAllMessages(); in testUsbAlarm_throttlingCritical() 144 TestableLooper.get(this).processAllMessages(); in testUsbAlarm_throttlingEmergency() 156 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_enableSkinTemperatureWarning() 169 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_enableUsbTemperatureAlarm() 182 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_disableSkinTemperatureWarning() 195 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_disableUsbTemperatureAlarm() 212 TestableLooper.get(this).processAllMessages(); in testThermalEventListenerRegistration_success_skinType() 222 TestableLooper.get(this).processAllMessages(); in testThermalEventListenerRegistration_success_skinType() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | LayoutCacheTest.cpp | 41 const LayoutPiece* get() const { return mLayout; } in get() function in minikin::LayoutCapture 62 EXPECT_EQ(layout1.get(), layout2.get()); in TEST() 81 EXPECT_NE(layout1.get(), layout2.get()); in TEST() 89 EXPECT_NE(layout1.get(), layout2.get()); in TEST() 97 EXPECT_NE(layout1.get(), layout2.get()); in TEST() 105 EXPECT_NE(layout1.get(), layout2.get()); in TEST() 113 EXPECT_NE(layout1.get(), layout2.get()); in TEST() 121 EXPECT_NE(layout1.get(), layout2.get()); in TEST() 131 EXPECT_NE(layout1.get(), layout2.get()); in TEST() 144 EXPECT_NE(layout1.get(), layout2.get()); in TEST() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | MediaDeviceTest.java | 150 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice1); in compareTo_carKit_nonCarKitBluetooth_carKitFirst() 152 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice2); in compareTo_carKit_nonCarKitBluetooth_carKitFirst() 161 assertThat(mMediaDevices.get(0)).isEqualTo(mInfoMediaDevice1); in compareTo_carKit_info_carKitFirst() 163 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice1); in compareTo_carKit_info_carKitFirst() 172 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice1); in compareTo_carKit_phone_phoneFirst() 174 assertThat(mMediaDevices.get(0)).isEqualTo(mPhoneMediaDevice); in compareTo_carKit_phone_phoneFirst() 185 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice1); in compareTo_carKitIsDisConnected_nonCarKitBluetooth_nonCarKitBluetoothFirst() 187 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice1); in compareTo_carKitIsDisConnected_nonCarKitBluetooth_nonCarKitBluetoothFirst() 196 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice1); in compareTo_lastSelected_others_lastSelectedFirst() 198 assertThat(mMediaDevices.get(0)).isEqualTo(mBluetoothMediaDevice2); in compareTo_lastSelected_others_lastSelectedFirst() [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger_test.cpp | 70 TableMerger merger(context_.get(), &final_table, TableMergerOptions{}); in TEST_F() 72 ASSERT_TRUE(merger.Merge({}, table_a.get(), false /*overlay*/)); in TEST_F() 73 ASSERT_TRUE(merger.MergeAndMangle({}, "com.app.b", table_b.get())); 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() 140 TableMerger merger(context_.get(), &final_table, TableMergerOptions{}); in TEST_F() 142 ASSERT_TRUE(merger.Merge({}, table_a.get(), false /*overlay*/)); in TEST_F() 143 ASSERT_TRUE(merger.MergeAndMangle({}, "com.app.b", table_b.get())); in TEST_F() 171 TableMerger merger(context_.get(), &final_table, options); in TEST_F() 173 ASSERT_TRUE(merger.Merge({}, base.get(), false /*overlay*/)); in TEST_F() [all …]
|
/frameworks/base/tools/aapt2/java/ |
D | JavaClassGenerator_test.cpp | 44 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST() 47 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() 69 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST() 72 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() 94 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST() 97 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() 131 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST() 135 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() 169 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST() 172 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | UsimPhoneBookManager.java | 198 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/java/android/widget/ |
D | DayPickerPagerAdapter.java | 82 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 …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/ |
D | LocaleUtilsTest.java | 114 assertEquals(availableLocales.get(1), dest.get(0)); // "en-US" in testFilterByLanguageNullAvailableLocales() 127 assertEquals(availableLocales.get(1), dest.get(0)); // "en" in testFilterByLanguageNullAvailableLocales() 158 assertEquals(availableLocales.get(1), dest.get(0)); // "fr-CA" in testFilterByLanguage() 159 assertEquals(availableLocales.get(0), dest.get(1)); // "en-US" in testFilterByLanguage() 160 assertEquals(availableLocales.get(3), dest.get(2)); // "ja" in testFilterByLanguage() 173 assertEquals(availableLocales.get(0), dest.get(0)); // "en-US" in testFilterByLanguage() 188 assertEquals(availableLocales.get(1), dest.get(0)); // "en-US" in testFilterByLanguageTheSameLanguage() 199 assertEquals(availableLocales.get(1), dest.get(0)); // "en" in testFilterByLanguageTheSameLanguage() 211 assertEquals(availableLocales.get(2), dest.get(0)); // "en-IN" in testFilterByLanguageTheSameLanguage() 224 assertEquals(availableLocales.get(1), dest.get(0)); // "en-CA" in testFilterByLanguageTheSameLanguage() [all …]
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | OpPropAnimation.cpp | 56 canvas.drawRoundRect(mRoundRectLeft.get(), mRoundRectTop.get(), mRoundRectRight.get(), in createContent() 57 mRoundRectBottom.get(), mRoundRectRx.get(), mRoundRectRy.get(), in createContent() 58 mPaint.get()); in createContent() 59 canvas.drawCircle(mCircleX.get(), mCircleY.get(), mCircleRadius.get(), mPaint.get()); in createContent() 61 canvas.drawRenderNode(content.get()); in createContent()
|