/frameworks/base/core/tests/coretests/src/android/util/ |
D | MonthDisplayHelperTest.java | 61 MonthDisplayHelper helper = new MonthDisplayHelper(2007, Calendar.SEPTEMBER); in testMonthRows() local 64 helper.getDigitsForRow(0)); in testMonthRows() 66 helper.getDigitsForRow(1)); in testMonthRows() 68 helper.getDigitsForRow(5)); in testMonthRows() 75 MonthDisplayHelper helper = new MonthDisplayHelper(2007, in testMonthRowsWeekStartsMonday() local 79 helper.getDigitsForRow(0)); in testMonthRowsWeekStartsMonday() 81 helper.getDigitsForRow(1)); in testMonthRowsWeekStartsMonday() 83 helper.getDigitsForRow(4)); in testMonthRowsWeekStartsMonday() 85 helper.getDigitsForRow(5)); in testMonthRowsWeekStartsMonday() 91 MonthDisplayHelper helper = new MonthDisplayHelper(2007, in testMonthRowsWeekStartsSaturday() local [all …]
|
/frameworks/av/media/module/foundation/tests/ |
D | Flagged_test.cpp | 206 using helper = _Flagged_helper; in TEST_F() typedef 248 static_assert(helper::mask_of<i32_800f_0, u32>::value == 0x800F, "incorrect mask"); in TEST_F() 249 static_assert(helper::mask_of<i32_800f_0, i32>::value == 0, in TEST_F() 251 static_assert(helper::mask_of<i32_800f_0, u32>::effective_value == 0x800F, "incorrect mask"); in TEST_F() 252 static_assert(helper::mask_of<i32_800f_0, i32>::effective_value == 0, in TEST_F() 254 static_assert(helper::mask_of<i32_800f_0, u32>::shift == 0, "incorrect shift"); in TEST_F() 255 static_assert(helper::mask_of<i32_800f_0, i32>::shift == 0, in TEST_F() 258 static_assert(helper::mask_of<i32_800f_4, u32>::value == 0x800F, "incorrect mask"); in TEST_F() 259 static_assert(helper::mask_of<i32_800f_4, i32>::value == 0, in TEST_F() 261 static_assert(helper::mask_of<i32_800f_4, u32>::effective_value == 0x800F0, "incorrect mask"); in TEST_F() [all …]
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/ |
D | PartnerConfigHelperTest.java | 73 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getDimension_withWrongConfigType_shouldThrowException() local 74 assertThat(helper.mPartnerResourceCache).doesNotContainKey(TEST_COLOR_RESOURCE_NAME); in getDimension_withWrongConfigType_shouldThrowException() 75 helper.getDimension(application, TEST_COLOR_RESOURCE_NAME); in getDimension_withWrongConfigType_shouldThrowException() 80 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getDimension_shouldReturnExpectedDimension() local 81 assertThat(helper.mPartnerResourceCache).doesNotContainKey(TEST_DIMENSION_RESOURCE_NAME); in getDimension_shouldReturnExpectedDimension() 83 float result = helper.getDimension(application, TEST_DIMENSION_RESOURCE_NAME); in getDimension_shouldReturnExpectedDimension() 85 assertThat(helper.mPartnerResourceCache).containsKey(TEST_DIMENSION_RESOURCE_NAME); in getDimension_shouldReturnExpectedDimension() 86 assertThat(helper.mPartnerResourceCache.get(TEST_DIMENSION_RESOURCE_NAME)) in getDimension_shouldReturnExpectedDimension() 95 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getColor_shouldReturnExpectedColor() local 96 assertThat(helper.mPartnerResourceCache).doesNotContainKey(TEST_COLOR_RESOURCE_NAME); in getColor_shouldReturnExpectedColor() [all …]
|
/frameworks/base/core/java/com/android/internal/infra/ |
D | GlobalWhitelistState.java | 58 WhitelistHelper helper = mWhitelisterHelpers.get(userId); in setWhitelist() local 59 if (helper == null) { in setWhitelist() 60 helper = new WhitelistHelper(); in setWhitelist() 61 mWhitelisterHelpers.put(userId, helper); in setWhitelist() 63 helper.setWhitelist(packageNames, components); in setWhitelist() 73 final WhitelistHelper helper = mWhitelisterHelpers.get(userId); in isWhitelisted() 74 return helper == null ? false : helper.isWhitelisted(packageName); in isWhitelisted() 84 final WhitelistHelper helper = mWhitelisterHelpers.get(userId); in isWhitelisted() 85 return helper == null ? false : helper.isWhitelisted(componentName); in isWhitelisted() 96 final WhitelistHelper helper = mWhitelisterHelpers.get(userId); in getWhitelistedComponents() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/ |
D | AnrTimerTest.java | 135 TestAnrTimer(Helper helper) { in TestAnrTimer() argument 136 this(helper.mHandler, MSG_TIMEOUT, caller()); in TestAnrTimer() 184 Helper helper = new Helper(1); in testSimpleTimeout() local 185 try (TestAnrTimer timer = new TestAnrTimer(helper)) { in testSimpleTimeout() 191 assertThat(helper.await(5000)).isTrue(); in testSimpleTimeout() 192 TestArg[] result = helper.messages(1); in testSimpleTimeout() 203 Helper helper = new Helper(1); in testTimerRestart() local 204 try (TestAnrTimer timer = new TestAnrTimer(helper)) { in testTimerRestart() 208 assertThat(helper.await(10)).isFalse(); in testTimerRestart() 211 assertThat(helper.await(5000)).isTrue(); in testTimerRestart() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupHelperDispatcher.java | 44 public void addHelper(String keyPrefix, BackupHelper helper) { in addHelper() argument 45 mHelpers.put(keyPrefix, helper); in addHelper() 61 BackupHelper helper = helpers.get(header.keyPrefix); in performBackup() local 62 Log.d(TAG, "handling existing helper '" + header.keyPrefix + "' " + helper); in performBackup() 63 if (helper != null) { in performBackup() 64 doOneBackup(oldState, data, newState, header, helper); in performBackup() 77 BackupHelper helper = entry.getValue(); in performBackup() local 78 doOneBackup(oldState, data, newState, header, helper); in performBackup() 83 ParcelFileDescriptor newState, Header header, BackupHelper helper) in doOneBackup() argument 97 helper.performBackup(oldState, data, newState); in doOneBackup() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | AppDataRollbackHelperTest.java | 65 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer, mApexManager)); in testSnapshotAppData() local 68 doReturn(true).when(helper).isUserCredentialLocked(eq(10)); in testSnapshotAppData() 69 doReturn(true).when(helper).isUserCredentialLocked(eq(11)); in testSnapshotAppData() 71 helper.snapshotAppData(5, info, new int[]{10, 11}); in testSnapshotAppData() 85 doReturn(false).when(helper).isUserCredentialLocked(eq(10)); in testSnapshotAppData() 86 doReturn(true).when(helper).isUserCredentialLocked(eq(11)); in testSnapshotAppData() 90 helper.snapshotAppData(7, info2, new int[]{10, 11}); in testSnapshotAppData() 131 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer, mApexManager)); in testRestoreAppDataSnapshot_pendingBackupForUser() local 138 assertTrue(helper.restoreAppData(13 /* rollbackId */, info, 10 /* userId */, 1 /* appId */, in testRestoreAppDataSnapshot_pendingBackupForUser() 156 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer, mApexManager)); in testRestoreAppDataSnapshot_availableBackupForLockedUser() local [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/ |
D | CarHelperRegistry.java | 109 H helper = getHelper(cls); in getOrCreateHelper() local 110 if (helper == null) { in getOrCreateHelper() 111 helper = creator.createHelper(appContext); in getOrCreateHelper() 112 putHelper(cls, helper); in getOrCreateHelper() 114 return helper; in getOrCreateHelper() 132 public <H> void putHelper(@NonNull Class<H> cls, @NonNull H helper) { in putHelper() argument 133 mMap.put(cls, helper); in putHelper()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/ |
D | MultiInstanceHelperTest.kt | 83 val helper = MultiInstanceHelper(mContext, context.packageManager, allowList, true) in supportsMultiInstanceSplit_inStaticAllowList() constant 85 assertEquals(true, helper.supportsMultiInstanceSplit(component)) in supportsMultiInstanceSplit_inStaticAllowList() 91 val helper = MultiInstanceHelper(mContext, context.packageManager, allowList, true) in supportsMultiInstanceSplit_notInStaticAllowList() constant 93 assertEquals(false, helper.supportsMultiInstanceSplit(component)) in supportsMultiInstanceSplit_notInStaticAllowList() 110 val helper = MultiInstanceHelper(mContext, pm, emptyArray(), true) in supportsMultiInstanceSplit_activityPropertyTrue() constant 112 assertEquals(true, helper.supportsMultiInstanceSplit(component)) in supportsMultiInstanceSplit_activityPropertyTrue() 129 val helper = MultiInstanceHelper(mContext, pm, emptyArray(), true) in supportsMultiInstanceSplit_activityPropertyFalseApplicationPropertyTrue() constant 131 assertEquals(false, helper.supportsMultiInstanceSplit(component)) in supportsMultiInstanceSplit_activityPropertyFalseApplicationPropertyTrue() 147 val helper = MultiInstanceHelper(mContext, pm, emptyArray(), true) in supportsMultiInstanceSplit_noActivityPropertyApplicationPropertyTrue() constant 149 assertEquals(true, helper.supportsMultiInstanceSplit(component)) in supportsMultiInstanceSplit_noActivityPropertyApplicationPropertyTrue() [all …]
|
/frameworks/native/cmds/flatland/ |
D | Composers.cpp | 28 bool setUp(GLHelper* helper) { in setUp() argument 31 result = helper->getShaderProgram("Blit", &mBlitPgm); in setUp() 117 GLHelper* helper) { in setUp() argument 119 return setUp(helper); in setUp() 145 virtual bool setUp(GLHelper* helper) { in opaque() argument 146 return mBlitter.setUp(helper); in opaque() 168 virtual bool setUp(GLHelper* helper) { in opaqueShrink() argument 170 return mBlitter.setUp(helper); in opaqueShrink() 201 virtual bool setUp(GLHelper* helper) { in blend() argument 202 return mBlitter.setUp(helper); in blend() [all …]
|
D | Renderers.cpp | 46 bool setUp(GLHelper* helper) { in setUp() argument 49 result = helper->getShaderProgram("Gradient", &mGradPgm); in setUp() 54 result = helper->getDitherTexture(&mDitherTexName); in setUp() 156 virtual bool setUp(GLHelper* helper) { in staticGradient() argument 158 mGLHelper = helper; in staticGradient() 159 return mGradientRenderer.setUp(helper); in staticGradient()
|
/frameworks/base/apct-tests/perftests/core/src/android/database/ |
D | CursorWindowPerfTest.java | 56 for (TableHelper helper : TableHelper.TABLE_HELPERS) { in setup() 57 sDatabase.execSQL(helper.createSql()); in setup() 58 final String insert = helper.insertSql(); in setup() 61 sDatabase.execSQL(insert, helper.createItem(0)); in setup() 91 private void loadRowFromCursorWindow(TableHelper helper, boolean doubleRef) { in loadRowFromCursorWindow() argument 92 try (Cursor cursor = sDatabase.rawQuery(helper.readSql(), new String[0])) { in loadRowFromCursorWindow() 93 TableHelper.CursorReader reader = helper.createReader(cursor); in loadRowFromCursorWindow()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ContextMenuBuilder.java | 89 MenuDialogHelper helper = new MenuDialogHelper(this); in showDialog() local 90 helper.show(token); in showDialog() 92 return helper; in showDialog() 111 final MenuPopupHelper helper = new MenuPopupHelper( in showPopup() local 117 helper.show(Math.round(x), Math.round(y)); in showPopup() 118 return helper; in showPopup()
|
/frameworks/av/media/libeffects/tests/common/ |
D | Android.bp | 11 name: "libeffects-test-helper-srcs", 18 name: "libeffects-test-helper-headers", 36 ":libeffects-test-helper-srcs", 39 "libeffects-test-helper-headers",
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputViewTest.java | 156 NotificationTestHelper helper = new NotificationTestHelper( in testSendRemoteInput_intentContainsResultsAndSource() local 160 ExpandableNotificationRow row = helper.createRow(); in testSendRemoteInput_intentContainsResultsAndSource() 193 NotificationTestHelper helper = new NotificationTestHelper( in getTargetInputMethodUser() local 197 ExpandableNotificationRow row = helper.createRow( in getTargetInputMethodUser() 243 NotificationTestHelper helper = new NotificationTestHelper( in testNoCrashWithoutVisibilityListener() local 247 ExpandableNotificationRow row = helper.createRow(); in testNoCrashWithoutVisibilityListener() 257 NotificationTestHelper helper = new NotificationTestHelper( in testPredictiveBack_registerAndUnregister() local 261 ExpandableNotificationRow row = helper.createRow(); in testPredictiveBack_registerAndUnregister() 286 NotificationTestHelper helper = new NotificationTestHelper( in testUiPredictiveBack_openAndDispatchCallback() local 290 ExpandableNotificationRow row = helper.createRow(); in testUiPredictiveBack_openAndDispatchCallback() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/ |
D | SystemBackupAgentTest.java | 172 for (BackupHelperWithLogger helper:mSystemBackupAgent.mAddedHelpers){ in onAddHelperIfEligibleForUser_flagIsOff_helpersHaveNoLogger() 173 assertThat(helper.isLoggerSet()).isFalse(); in onAddHelperIfEligibleForUser_flagIsOff_helpersHaveNoLogger() 185 for (BackupHelperWithLogger helper:mSystemBackupAgent.mAddedHelpers){ in onAddHelperIfEligibleForUser_flagIsOn_helpersHaveLogger() 186 assertThat(helper.isLoggerSet()).isTrue(); in onAddHelperIfEligibleForUser_flagIsOn_helpersHaveLogger() 195 public void addHelper(String keyPrefix, BackupHelper helper) { in addHelper() argument 197 if (helper instanceof BackupHelperWithLogger) { in addHelper() 198 mAddedHelpers.add((BackupHelperWithLogger) helper); in addHelper()
|
/frameworks/av/media/module/id3/test/ |
D | ID3Test.cpp | 48 DataSourceHelper helper(file->wrap()); in TEST_P() local 49 ID3 tag(&helper); in TEST_P() 69 DataSourceHelper helper(file->wrap()); in TEST_P() local 70 ID3 tag(&helper); in TEST_P() 83 DataSourceHelper helper(file->wrap()); in TEST_P() local 84 ID3 tag(&helper); in TEST_P() 128 DataSourceHelper helper(file->wrap()); in TEST_P() local 129 ID3 tag(&helper); in TEST_P() 155 DataSourceHelper helper(file->wrap()); in TEST_P() local 156 ID3 tag(&helper); in TEST_P()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | SQLiteOpenHelperTest.java | 89 for (SQLiteOpenHelper helper : mHelpersToClose) { in teardown() 91 helper.close(); in teardown() 97 Log.w(TAG, "Error occured when closing db helper " + helper, ex); in teardown() 185 TestHelper helper = new TestHelper(mContext, "openhelper_test_constructor", 1, params); in testOpenParamsConstructor() local 186 mHelpersToClose.add(helper); in testOpenParamsConstructor() 189 .stringForQuery(helper.getReadableDatabase(), "PRAGMA journal_mode", null); in testOpenParamsConstructor() 193 .stringForQuery(helper.getReadableDatabase(), "PRAGMA synchronous", null); in testOpenParamsConstructor()
|
/frameworks/av/media/module/extractors/mpeg2/ |
D | ExtractorBundle.cpp | 54 DataSourceHelper helper(source); in GETEXTRACTORDEF() local 55 if (SniffMPEG2TS(&helper, confidence)) { in GETEXTRACTORDEF() 60 } else if (SniffMPEG2PS(&helper, confidence)) { in GETEXTRACTORDEF()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | CallOrderStateMachineHelper.h | 103 auto helper = CurrentStateType(); in make() local 104 helper.mInstance = instance; in make() 105 return helper; in make()
|
/frameworks/base/core/java/android/app/timedetector/ |
D | ManualTimeSuggestion.java | 42 TimeSuggestionHelper helper = TimeSuggestionHelper.handleCreateFromParcel( 44 return new ManualTimeSuggestion(helper); 58 private ManualTimeSuggestion(@NonNull TimeSuggestionHelper helper) { in ManualTimeSuggestion() argument 59 mTimeSuggestionHelper = Objects.requireNonNull(helper); in ManualTimeSuggestion()
|
/frameworks/base/core/java/android/app/time/ |
D | ExternalTimeSuggestion.java | 76 TimeSuggestionHelper helper = TimeSuggestionHelper.handleCreateFromParcel( 78 return new ExternalTimeSuggestion(helper); 102 private ExternalTimeSuggestion(@NonNull TimeSuggestionHelper helper) { in ExternalTimeSuggestion() argument 103 mTimeSuggestionHelper = Objects.requireNonNull(helper); in ExternalTimeSuggestion()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | PreNTestDatabaseHelper.java | 93 PreNTestDatabaseHelper helper = new PreNTestDatabaseHelper(context, name); in createV4Database() local 94 helper.getWritableDatabase(); in createV4Database() 95 helper.close(); in createV4Database()
|
/frameworks/base/ravenwood/ |
D | Android.bp | 98 name: "ravenwood-helper-libcore-runtime.host", 100 "runtime-helper-src/libcore-fake/**/*.java", 109 name: "ravenwood-helper-libcore-runtime", 111 "ravenwood-helper-libcore-runtime.host", 117 name: "ravenwood-helper-framework-runtime", 119 "runtime-helper-src/framework/**/*.java", 131 // Combine ravenwood-helper-*-runtime and create a single library, which we include 136 name: "ravenwood-helper-runtime", 139 "ravenwood-helper-framework-runtime", 140 "ravenwood-helper-libcore-runtime",
|
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelperTest.java | 260 LinkAccessibilityHelper helper = new LinkAccessibilityHelper(delegate); in testMethodDelegation() local 265 helper.sendAccessibilityEvent(mTextView, AccessibilityEvent.TYPE_VIEW_CLICKED); in testMethodDelegation() 269 helper.sendAccessibilityEventUnchecked(mTextView, accessibilityEvent); in testMethodDelegation() 272 helper.performAccessibilityAction( in testMethodDelegation() 278 helper.dispatchPopulateAccessibilityEvent(mTextView, accessibilityEvent); in testMethodDelegation() 281 helper.getAccessibilityNodeProvider(mTextView); in testMethodDelegation() 284 helper.onInitializeAccessibilityEvent(mTextView, accessibilityEvent); in testMethodDelegation() 288 helper.onInitializeAccessibilityNodeInfo(mTextView, accessibilityNodeInfo); in testMethodDelegation() 292 helper.onPopulateAccessibilityEvent(mTextView, accessibilityEvent); in testMethodDelegation() 296 helper.onRequestSendAccessibilityEvent(parent, mTextView, accessibilityEvent); in testMethodDelegation()
|