Home
last modified time | relevance | path

Searched refs:helper (Results 1 – 25 of 129) sorted by relevance

123456

/frameworks/base/core/tests/coretests/src/android/util/
DMonthDisplayHelperTest.java51 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/
DFlagged_test.cpp206 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/base/core/java/com/android/internal/infra/
DGlobalWhitelistState.java58 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/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/
DPartnerConfigHelperTest.java72 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getDimension_withWrongConfigType_shouldThrowException() local
73 assertThat(helper.mPartnerResourceCache).doesNotContainKey(TEST_COLOR_RESOURCE_NAME); in getDimension_withWrongConfigType_shouldThrowException()
74 helper.getDimension(application, TEST_COLOR_RESOURCE_NAME); in getDimension_withWrongConfigType_shouldThrowException()
79 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getDimension_shouldReturnExpectedDimension() local
80 assertThat(helper.mPartnerResourceCache).doesNotContainKey(TEST_DIMENSION_RESOURCE_NAME); in getDimension_shouldReturnExpectedDimension()
82 float result = helper.getDimension(application, TEST_DIMENSION_RESOURCE_NAME); in getDimension_shouldReturnExpectedDimension()
84 assertThat(helper.mPartnerResourceCache).containsKey(TEST_DIMENSION_RESOURCE_NAME); in getDimension_shouldReturnExpectedDimension()
85 assertThat(helper.mPartnerResourceCache.get(TEST_DIMENSION_RESOURCE_NAME)) in getDimension_shouldReturnExpectedDimension()
91 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getColor_shouldReturnExpectedColor() local
92 assertThat(helper.mPartnerResourceCache).doesNotContainKey(TEST_COLOR_RESOURCE_NAME); in getColor_shouldReturnExpectedColor()
[all …]
/frameworks/base/core/java/android/app/backup/
DBackupHelperDispatcher.java44 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 …]
DBackupAgentHelper.java92 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/
DAppDataRollbackHelperTest.java57 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer)); in testSnapshotAppData() local
60 doReturn(true).when(helper).isUserCredentialLocked(eq(10)); in testSnapshotAppData()
61 doReturn(true).when(helper).isUserCredentialLocked(eq(11)); in testSnapshotAppData()
63 helper.snapshotAppData(5, info, new int[]{10, 11}); in testSnapshotAppData()
79 doReturn(false).when(helper).isUserCredentialLocked(eq(10)); in testSnapshotAppData()
80 doReturn(true).when(helper).isUserCredentialLocked(eq(11)); in testSnapshotAppData()
84 helper.snapshotAppData(7, info2, new int[]{10, 11}); in testSnapshotAppData()
115 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer)); in testRestoreAppDataSnapshot_pendingBackupForUser() local
122 assertTrue(helper.restoreAppData(13 /* rollbackId */, info, 10 /* userId */, 1 /* appId */, in testRestoreAppDataSnapshot_pendingBackupForUser()
140 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer)); in testRestoreAppDataSnapshot_availableBackupForLockedUser() local
[all …]
/frameworks/opt/net/wifi/service/jni/
Dcom_android_server_wifi_WifiNative.cpp34 JNIHelper helper(env); in android_net_wifi_readKernelLogNative() local
40 return helper.newByteArray(0).detach(); in android_net_wifi_readKernelLogNative()
46 return helper.newByteArray(0).detach(); in android_net_wifi_readKernelLogNative()
53 return helper.newByteArray(0).detach(); in android_net_wifi_readKernelLogNative()
62 JNIObject<jbyteArray> result = helper.newByteArray(read); in android_net_wifi_readKernelLogNative()
69 helper.setByteArrayRegion(result, 0, read, (jbyte*)buf); in android_net_wifi_readKernelLogNative()
Djni_helper.h31 JNIObject(JNIHelper &helper, T obj);
89 JNIObject<T>::JNIObject(JNIHelper &helper, T obj) in JNIObject() argument
90 : mHelper(helper), mObj(obj) in JNIObject()
/frameworks/native/cmds/flatland/
DComposers.cpp28 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 …]
DRenderers.cpp46 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()
DFlatland.h50 virtual bool setUp(const LayerDesc& desc, GLHelper* helper) = 0;
64 virtual bool setUp(GLHelper* helper) = 0;
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/
DCarHelperRegistry.java111 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/base/services/backup/java/com/android/server/backup/encryption/storage/
DBackupEncryptionDb.java32 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/apct-tests/perftests/core/src/android/database/
DCursorWindowPerfTest.java56 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/
DContextMenuBuilder.java89 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()
DIconMenuPresenter.java95 MenuDialogHelper helper = new MenuDialogHelper(subMenu);
96 helper.setPresenterCallback(mSubMenuPresenterCallback);
97 helper.show(null);
98 mOpenSubMenu = helper;
/frameworks/av/media/libstagefright/id3/test/
DID3Test.cpp46 DataSourceHelper helper(file->wrap()); in TEST_P() local
47 ID3 tag(&helper); in TEST_P()
66 DataSourceHelper helper(file->wrap()); in TEST_P() local
67 ID3 tag(&helper); in TEST_P()
79 DataSourceHelper helper(file->wrap()); in TEST_P() local
80 ID3 tag(&helper); in TEST_P()
123 DataSourceHelper helper(file->wrap()); in TEST_P() local
124 ID3 tag(&helper); in TEST_P()
149 DataSourceHelper helper(file->wrap()); in TEST_P() local
150 ID3 tag(&helper); in TEST_P()
/frameworks/base/core/tests/coretests/src/android/database/
DSQLiteOpenHelperTest.java89 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/extractors/mpeg2/
DExtractorBundle.cpp54 DataSourceHelper helper(source); in GETEXTRACTORDEF() local
55 if (SniffMPEG2TS(&helper, confidence)) { in GETEXTRACTORDEF()
60 } else if (SniffMPEG2PS(&helper, confidence)) { in GETEXTRACTORDEF()
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelperTest.java260 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/
DPreNTestDatabaseHelper.java93 PreNTestDatabaseHelper helper = new PreNTestDatabaseHelper(context, name); in createV4Database() local
94 helper.getWritableDatabase(); in createV4Database()
95 helper.close(); in createV4Database()
/frameworks/av/media/codec2/vndk/include/util/
DC2InterfaceHelper.h238 Field(std::shared_ptr<FieldHelper> helper, C2Param::Index index);
382 std::shared_ptr<ParamHelper> helper, std::shared_ptr<T> &param,
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/compile/slang/tests/P_reflection3264_divergent/
Dreflection3264_divergent.rscript74 // for arguments, should get a helper struct that looks like struct NonDivergent
77 // for arguments, should get a helper struct that looks like struct Divergent
80 // for arguments, should get a helper struct that looks like struct DivergentNest
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeExtractor.java64 public void setZenHelper(ZenModeHelper helper) { in setZenHelper() argument
65 mZenModeHelper = helper; in setZenHelper()

123456