/frameworks/base/core/tests/coretests/src/android/util/ |
D | MonthDisplayHelperTest.java | 51 MonthDisplayHelper helper = new MonthDisplayHelper(2007, Calendar.SEPTEMBER); in testMonthRows() local 54 helper.getDigitsForRow(0)); in testMonthRows() 56 helper.getDigitsForRow(1)); in testMonthRows() 58 helper.getDigitsForRow(5)); in testMonthRows() 64 MonthDisplayHelper helper = new MonthDisplayHelper(2007, in testMonthRowsWeekStartsMonday() local 68 helper.getDigitsForRow(0)); in testMonthRowsWeekStartsMonday() 70 helper.getDigitsForRow(1)); in testMonthRowsWeekStartsMonday() 72 helper.getDigitsForRow(4)); in testMonthRowsWeekStartsMonday() 74 helper.getDigitsForRow(5)); in testMonthRowsWeekStartsMonday() 79 MonthDisplayHelper helper = new MonthDisplayHelper(2007, in testMonthRowsWeekStartsSaturday() local [all …]
|
/frameworks/av/media/libstagefright/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/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 …]
|
D | BackupAgentHelper.java | 92 public void addHelper(String keyPrefix, BackupHelper helper) { in addHelper() argument 93 mDispatcher.addHelper(keyPrefix, helper); in addHelper()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | AppDataRollbackHelperTest.java | 64 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer, mApexManager)); in testSnapshotAppData() local 67 doReturn(true).when(helper).isUserCredentialLocked(eq(10)); in testSnapshotAppData() 68 doReturn(true).when(helper).isUserCredentialLocked(eq(11)); in testSnapshotAppData() 70 helper.snapshotAppData(5, info, new int[]{10, 11}); in testSnapshotAppData() 84 doReturn(false).when(helper).isUserCredentialLocked(eq(10)); in testSnapshotAppData() 85 doReturn(true).when(helper).isUserCredentialLocked(eq(11)); in testSnapshotAppData() 89 helper.snapshotAppData(7, info2, new int[]{10, 11}); in testSnapshotAppData() 129 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer, mApexManager)); in testRestoreAppDataSnapshot_pendingBackupForUser() local 136 assertTrue(helper.restoreAppData(13 /* rollbackId */, info, 10 /* userId */, 1 /* appId */, in testRestoreAppDataSnapshot_pendingBackupForUser() 154 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer, mApexManager)); in testRestoreAppDataSnapshot_availableBackupForLockedUser() local [all …]
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/storage/ |
D | BackupEncryptionDb.java | 32 BackupEncryptionDbHelper helper = new BackupEncryptionDbHelper(context); in newInstance() local 33 helper.setWriteAheadLoggingEnabled(true); in newInstance() 34 return new BackupEncryptionDb(helper); in newInstance() 37 private BackupEncryptionDb(BackupEncryptionDbHelper helper) { in BackupEncryptionDb() argument 38 mHelper = helper; in BackupEncryptionDb()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/view/ |
D | RecyclerViewCaptureHelperTest.java | 159 RecyclerViewCaptureHelper helper = new RecyclerViewCaptureHelper(); in onScrollRequested_up_fromMiddle() local 160 Rect scrollBounds = helper.onComputeScrollBounds(mTarget); in onScrollRequested_up_fromMiddle() 161 helper.onPrepareForStart(mTarget, scrollBounds); in onScrollRequested_up_fromMiddle() 165 ScrollResult scrollResult = helper.onScrollRequested(mTarget, scrollBounds, request); in onScrollRequested_up_fromMiddle() 178 RecyclerViewCaptureHelper helper = new RecyclerViewCaptureHelper(); in onScrollRequested_down_fromMiddle() local 179 Rect scrollBounds = helper.onComputeScrollBounds(mTarget); in onScrollRequested_down_fromMiddle() 180 helper.onPrepareForStart(mTarget, scrollBounds); in onScrollRequested_down_fromMiddle() 185 ScrollResult scrollResult = helper.onScrollRequested(mTarget, scrollBounds, request); in onScrollRequested_down_fromMiddle() 198 RecyclerViewCaptureHelper helper = new RecyclerViewCaptureHelper(); in onScrollRequested_up_fromBottom() local 199 Rect scrollBounds = helper.onComputeScrollBounds(mTarget); in onScrollRequested_up_fromBottom() [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/ |
D | CarHelperRegistry.java | 111 H helper = getHelper(cls); in getOrCreateHelper() local 112 if (helper == null) { in getOrCreateHelper() 113 helper = creator.createHelper(appContext); in getOrCreateHelper() 114 putHelper(cls, helper); in getOrCreateHelper() 116 return helper; in getOrCreateHelper() 134 public <H> void putHelper(@NonNull Class<H> cls, @NonNull H helper) { in putHelper() argument 135 mMap.put(cls, helper); in putHelper()
|
/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()
|
D | Flatland.h | 50 virtual bool setUp(const LayerDesc& desc, GLHelper* helper) = 0; 64 virtual bool setUp(GLHelper* helper) = 0;
|
/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/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/libstagefright/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/av/media/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/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()
|
/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputViewTest.java | 120 NotificationTestHelper helper = new NotificationTestHelper( in testSendRemoteInput_intentContainsResultsAndSource() local 124 ExpandableNotificationRow row = helper.createRow(); in testSendRemoteInput_intentContainsResultsAndSource() 155 NotificationTestHelper helper = new NotificationTestHelper( in getTargetInputMethodUser() local 159 ExpandableNotificationRow row = helper.createRow( in getTargetInputMethodUser() 201 NotificationTestHelper helper = new NotificationTestHelper( in testNoCrashWithoutVisibilityListener() local 205 ExpandableNotificationRow row = helper.createRow(); in testNoCrashWithoutVisibilityListener() 215 NotificationTestHelper helper = new NotificationTestHelper( in testUiEventLogging_openAndSend() local 219 ExpandableNotificationRow row = helper.createRow(); in testUiEventLogging_openAndSend()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsBackupAgentTest.java | 96 TestSettingsHelper helper = new TestSettingsHelper(mContext); in testRoundTripDeviceSpecificSettings() local 97 mAgentUnderTest.mSettingsHelper = helper; in testRoundTripDeviceSpecificSettings() 101 …assertEquals("Not all values backed up.", DEVICE_SPECIFIC_TEST_VALUES.keySet(), helper.mReadEntrie… in testRoundTripDeviceSpecificSettings() 109 … assertEquals("Not all values were restored.", DEVICE_SPECIFIC_TEST_VALUES, helper.mWrittenValues); in testRoundTripDeviceSpecificSettings() 114 TestSettingsHelper helper = new TestSettingsHelper(mContext); in testRoundTripDeviceSpecificSettingsWithBlock() local 115 mAgentUnderTest.mSettingsHelper = helper; in testRoundTripDeviceSpecificSettingsWithBlock() 119 …assertEquals("Not all values backed up.", DEVICE_SPECIFIC_TEST_VALUES.keySet(), helper.mReadEntrie… in testRoundTripDeviceSpecificSettingsWithBlock() 128 assertTrue("Not all values were blocked.", helper.mWrittenValues.isEmpty()); in testRoundTripDeviceSpecificSettingsWithBlock()
|
/frameworks/av/media/codec2/vndk/include/util/ |
D | C2InterfaceHelper.h | 238 Field(std::shared_ptr<FieldHelper> helper, C2Param::Index index); 382 std::shared_ptr<ParamHelper> helper, std::shared_ptr<T> ¶m, 386 _mHelper(helper), 412 std::shared_ptr<FieldHelper> helper = _mHelper->findField(baseOffs, baseSize); 413 return FieldType<S>(helper, _mTypedParam->index()); 562 C2P<T> helper = factory.get(*typedParam, proposedValue); 563 C2R result = fn(mayBlock, oldValue, helper, factory.get(deps)...); 566 if (helper.get() != *typedParam->get()) { 602 C2P<T> helper = factory.get(*typedParam, proposedValue); 603 C2R result = fn(mayBlock, helper, factory.get(deps)...); [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageCacher.java | 79 … final PackageParserCacheHelper.ReadHelper helper = new PackageParserCacheHelper.ReadHelper(p); in fromCacheEntryStatic() local 80 helper.startAndInstall(); in fromCacheEntryStatic() 101 … final PackageParserCacheHelper.WriteHelper helper = new PackageParserCacheHelper.WriteHelper(p); in toCacheEntryStatic() local 105 helper.finishAndUninstall(); in toCacheEntryStatic()
|