Home
last modified time | relevance | path

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

123456

/packages/apps/CertInstaller/robotests/src/com/android/certinstaller/
DCertInstallerRoboTest.java50 CredentialHelper helper = startActivityAndGetCredentialHelper(intent); in testNameNotNullPass() local
52 assertThat(helper.getName()).isEqualTo("name"); in testNameNotNullPass()
59 CredentialHelper helper = startActivityAndGetCredentialHelper(intent); in testReferrerNotNullPass() local
61 assertThat(helper.getReferrer()).isEqualTo("referrer"); in testReferrerNotNullPass()
75 CredentialHelper helper = startActivityAndGetCredentialHelper(intent); in testUidUsageEqualWifiPass() local
77 assertThat(helper.getCertUsageSelected()).isEqualTo(Credentials.CERTIFICATE_USAGE_WIFI); in testUidUsageEqualWifiPass()
78 assertThat(helper.getUid()).isEqualTo(Process.WIFI_UID); in testUidUsageEqualWifiPass()
93 CredentialHelper helper = startActivityAndGetCredentialHelper(intent); in testUidUsageNotNullPass() local
95 assertThat(helper.getUid()).isEqualTo(KeyStore.UID_SELF); in testUidUsageNotNullPass()
96 assertThat(helper.getCertUsageSelected()).isEqualTo("usage"); in testUidUsageNotNullPass()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DActivationTask.java138 OmtpVvmCarrierConfigHelper helper; in onExecuteInBackgroundThread() local
140 helper = configForTest; in onExecuteInBackgroundThread()
142 helper = new OmtpVvmCarrierConfigHelper(getContext(), phoneAccountHandle); in onExecuteInBackgroundThread()
144 if (!helper.isValid()) { in onExecuteInBackgroundThread()
151 if (helper.isLegacyModeEnabled()) { in onExecuteInBackgroundThread()
153 helper.activateSmsFilter(); in onExecuteInBackgroundThread()
164 .setType(helper.getVvmType()) in onExecuteInBackgroundThread()
166 VvmLog.e(TAG, "Failed to configure content provider - " + helper.getVvmType()); in onExecuteInBackgroundThread()
169 VvmLog.i(TAG, "VVM content provider configured - " + helper.getVvmType()); in onExecuteInBackgroundThread()
175 helper.activateSmsFilter(); in onExecuteInBackgroundThread()
[all …]
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiSnapHelper.java285 private static int distanceToTopMargin(@NonNull View targetView, OrientationHelper helper) { in distanceToTopMargin() argument
286 final int childTop = helper.getDecoratedStart(targetView); in distanceToTopMargin()
287 final int containerTop = helper.getStartAfterPadding(); in distanceToTopMargin()
301 private static View findTopView(LayoutManager layoutManager, OrientationHelper helper) { in findTopView() argument
315 int absDistance = Math.abs(distanceToTopMargin(child, helper)); in findTopView()
338 private boolean isValidSnapView(View view, OrientationHelper helper) { in isValidSnapView() argument
339 return helper.getDecoratedMeasurement(view) <= helper.getTotalSpace(); in isValidSnapView()
350 private float getPercentageVisible(View view, OrientationHelper helper) { in getPercentageVisible() argument
351 int start = helper.getStartAfterPadding(); in getPercentageVisible()
352 int end = helper.getEndAfterPadding(); in getPercentageVisible()
[all …]
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DDbDowngradeHelperTest.java111 TestOpenHelper helper = new TestOpenHelper(24); in testDowngrade_success_v24() local
112 assertEquals(24, helper.getReadableDatabase().getVersion()); in testDowngrade_success_v24()
113 helper.close(); in testDowngrade_success_v24()
120 SQLiteOpenHelper helper = new TestOpenHelper(22); in testDowngrade_success_v22() local
121 assertEquals(22, helper.getWritableDatabase().getVersion()); in testDowngrade_success_v22()
124 try (Cursor c = helper.getWritableDatabase().query(Favorites.TABLE_NAME, in testDowngrade_success_v22()
131 helper.close(); in testDowngrade_success_v22()
133 helper = new DatabaseHelper(mContext, null, DB_FILE) { in testDowngrade_success_v22()
137 assertEquals(LauncherProvider.SCHEMA_VERSION, helper.getWritableDatabase().getVersion()); in testDowngrade_success_v22()
139 try (Cursor c = helper.getWritableDatabase().query(Favorites.TABLE_NAME, in testDowngrade_success_v22()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DPagedSnapHelper.java91 @NonNull View targetView, OrientationHelper helper) { in distanceToTopMargin() argument
92 final int childTop = helper.getDecoratedStart(targetView); in distanceToTopMargin()
93 final int containerTop = helper.getStartAfterPadding(); in distanceToTopMargin()
108 OrientationHelper helper) { in findTopView() argument
120 int absDistance = Math.abs(distanceToTopMargin(layoutManager, child, helper)); in findTopView()
140 OrientationHelper helper) { in getPercentageVisible() argument
142 int start = helper.getStartAfterPadding(); in getPercentageVisible()
143 int end = helper.getEndAfterPadding(); in getPercentageVisible()
145 int viewHeight = helper.getDecoratedMeasurement(view); in getPercentageVisible()
147 int viewStart = helper.getDecoratedStart(view); in getPercentageVisible()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetConfigure.java128 WidgetDatabaseHelper helper = new WidgetDatabaseHelper(this); in setPhotoWidget() local
130 helper.setPhoto(mAppWidgetId, mPickedItem, bitmap); in setPhotoWidget()
131 updateWidgetAndFinish(helper.getEntry(mAppWidgetId)); in setPhotoWidget()
133 helper.close(); in setPhotoWidget()
165 WidgetDatabaseHelper helper = new WidgetDatabaseHelper(this); in setChoosenAlbum() local
180 helper.setWidget(mAppWidgetId, in setChoosenAlbum()
182 updateWidgetAndFinish(helper.getEntry(mAppWidgetId)); in setChoosenAlbum()
184 helper.close(); in setChoosenAlbum()
194 WidgetDatabaseHelper helper = new WidgetDatabaseHelper(this); in setWidgetType() local
196 helper.setWidget(mAppWidgetId, WidgetDatabaseHelper.TYPE_SHUFFLE, null, null); in setWidgetType()
[all …]
DPhotoAppWidgetProvider.java61 WidgetDatabaseHelper helper = new WidgetDatabaseHelper(context); in onUpdate() local
64 Entry entry = helper.getEntry(id); in onUpdate()
73 helper.close(); in onUpdate()
133 WidgetDatabaseHelper helper = new WidgetDatabaseHelper(context); in onDeleted() local
135 helper.deleteEntry(appWidgetId); in onDeleted()
137 helper.close(); in onDeleted()
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/
DVvm3Subscriber.java136 private final OmtpVvmCarrierConfigHelper helper; field in Vvm3Subscriber
166 OmtpVvmCarrierConfigHelper helper, in Vvm3Subscriber() argument
172 this.helper = helper; in Vvm3Subscriber()
180 this.helper in Vvm3Subscriber()
205 try (NetworkWrapper wrapper = VvmNetworkRequest.getNetwork(helper, handle, status)) { in subscribe()
209 Volley.newRequestQueue(helper.getContext(), new NetworkSpecifiedHurlStack(network)); in subscribe()
212 helper.handleEvent(status, OmtpEvents.VVM3_VMG_CONNECTION_FAILED); in subscribe()
222 findSubscribeLink(getSubscribeLinkPatterns(helper.getContext()), selfProvisionResponse); in processSubscription()
226 helper.handleEvent(status, OmtpEvents.CONFIG_SERVICE_NOT_AVAILABLE); in processSubscription()
268 helper.handleEvent(status, OmtpEvents.VVM3_SPG_CONNECTION_FAILED); in getSelfProvisionResponse()
[all …]
DVvm3Protocol.java225 try (ImapHelper helper = in startProvisionNewUser() argument
232 helper.changeVoicemailTuiLanguage(VVM3_VM_LANGUAGE_SPANISH_STANDARD_NO_GUEST_PROMPTS); in startProvisionNewUser()
235 helper.changeVoicemailTuiLanguage(VVM3_VM_LANGUAGE_ENGLISH_STANDARD_NO_GUEST_PROMPTS); in startProvisionNewUser()
239 if (setPin(config.getContext(), phoneAccountHandle, helper, message)) { in startProvisionNewUser()
241 helper.closeNewUserTutorial(); in startProvisionNewUser()
261 ImapHelper helper, in setPin() argument
281 if (helper.changePin(defaultPin, newPin) == PinChanger.CHANGE_PIN_SUCCESS) { in setPin()
283 helper.handleEvent(OmtpEvents.CONFIG_DEFAULT_PIN_REPLACED); in setPin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockSettingsHelperTest.java41 ChooseLockSettingsHelper helper = getChooseLockSettingsHelper(activity); in testLaunchConfirmationActivityWithExternalAndChallenge() local
42 helper.launchConfirmationActivityWithExternalAndChallenge( in testLaunchConfirmationActivityWithExternalAndChallenge()
76 ChooseLockSettingsHelper helper = getChooseLockSettingsHelper(activity); in testLaunchConfirmationActivityInternalAndChallenge() local
77 helper.launchConfirmationActivityWithExternalAndChallenge( in testLaunchConfirmationActivityInternalAndChallenge()
112 ChooseLockSettingsHelper helper = getChooseLockSettingsHelper(activity); in testLaunchConfirmationActivity_internal_shouldPropagateTheme() local
113 helper.launchConfirmationActivity(123, "test title", true, 0 /* userId */); in testLaunchConfirmationActivity_internal_shouldPropagateTheme()
127 ChooseLockSettingsHelper helper = new ChooseLockSettingsHelper(activity); in getChooseLockSettingsHelper() local
128 helper.mLockPatternUtils = mockLockPatternUtils; in getChooseLockSettingsHelper()
129 return helper; in getChooseLockSettingsHelper()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DStorageDashboardFragmentTest.java77 CachedStorageValuesHelper helper = mock(CachedStorageValuesHelper.class); in test_cacheProviderProvidesValuesIfBothCached() local
79 when(helper.getCachedPrivateStorageInfo()).thenReturn(info); in test_cacheProviderProvidesValuesIfBothCached()
81 when(helper.getCachedAppsStorageResult()).thenReturn(result); in test_cacheProviderProvidesValuesIfBothCached()
83 mFragment.setCachedStorageValuesHelper(helper); in test_cacheProviderProvidesValuesIfBothCached()
92 CachedStorageValuesHelper helper = mock(CachedStorageValuesHelper.class); in test_cacheProviderDoesntProvideValuesIfAppsMissing() local
94 when(helper.getCachedPrivateStorageInfo()).thenReturn(info); in test_cacheProviderDoesntProvideValuesIfAppsMissing()
96 mFragment.setCachedStorageValuesHelper(helper); in test_cacheProviderDoesntProvideValuesIfAppsMissing()
105 CachedStorageValuesHelper helper = mock(CachedStorageValuesHelper.class); in test_cacheProviderDoesntProvideValuesIfVolumeInfoMissing() local
107 when(helper.getCachedAppsStorageResult()).thenReturn(result); in test_cacheProviderDoesntProvideValuesIfVolumeInfoMissing()
109 mFragment.setCachedStorageValuesHelper(helper); in test_cacheProviderDoesntProvideValuesIfVolumeInfoMissing()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DFileCopyUiTest.java194 DocumentsProviderHelper helper) throws Exception { in createDocuments() argument
206 Uri uri = helper.createFolder(root, TARGET_FOLDER); in createDocuments()
212 loadImages(uri, helper); in createDocuments()
215 DocumentInfo parent = helper.findDocument(root.documentId, TARGET_FOLDER); in createDocuments()
216 List<DocumentInfo> children = helper.listChildren(parent.documentId, TARGET_COUNT); in createDocuments()
247 private void loadImages(Uri root, DocumentsProviderHelper helper) throws Exception { in loadImages() argument
253 loadImageFromResources(root, helper, resId, res); in loadImages()
259 private void loadImageFromResources(Uri root, DocumentsProviderHelper helper, int resId, in loadImageFromResources() argument
269 Uri uri = helper.createDocument(root, "image/png", fileName); in loadImageFromResources()
272 helper.writeAppendDocument(uri, buff, read); in loadImageFromResources()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java725 private void ensureDefaultFolders(String volumeName, DatabaseHelper helper, SQLiteDatabase db) { in ensureDefaultFolders() argument
743 insertDirectory(helper, db, folder.getAbsolutePath()); in ensureDefaultFolders()
841 final DatabaseHelper helper = mExternalDatabase; in onIdleMaintenance() local
842 final SQLiteDatabase db = helper.getReadableDatabase(); in onIdleMaintenance()
893 Log.d(TAG, "Deleted " + c.getCount() + " expired items on " + helper.mName); in onIdleMaintenance()
915 final DatabaseHelper helper = mExternalDatabase; in onPackageOrphaned() local
916 final SQLiteDatabase db = helper.getWritableDatabase(); in onPackageOrphaned()
925 + packageName + " on " + helper.mName); in onPackageOrphaned()
1730 final DatabaseHelper helper; in queryInternal() local
1733 helper = getDatabaseForUri(uri); in queryInternal()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DPhotoAppWidgetProvider.java48 PhotoDatabaseHelper helper = new PhotoDatabaseHelper(context); in onUpdate() local
51 RemoteViews views = buildUpdate(context, appWidgetId, helper); in onUpdate()
58 helper.close(); in onUpdate()
64 PhotoDatabaseHelper helper = new PhotoDatabaseHelper(context); in onDeleted() local
66 helper.deletePhoto(appWidgetId); in onDeleted()
68 helper.close(); in onDeleted()
75 PhotoDatabaseHelper helper) { in buildUpdate() argument
77 Bitmap bitmap = helper.getPhoto(appWidgetId); in buildUpdate()
DPhotoAppWidgetBind.java62 PhotoDatabaseHelper helper = new PhotoDatabaseHelper(this); in onCreate() local
66 helper.setPhoto(appWidgetId, bitmaps.get(i)); in onCreate()
71 helper); in onCreate()
74 helper.close(); in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountPreferenceController.java139 String[] authorities, AccountRestrictionHelper helper) { in AccountPreferenceController() argument
149 mHelper = helper; in AccountPreferenceController()
477 private ArrayList<AccountTypePreference> getAccountTypePreferences(AuthenticatorHelper helper, in getAccountTypePreferences() argument
479 final String[] accountTypes = helper.getEnabledAccountTypes(); in getAccountTypePreferences()
486 if (!accountTypeHasAnyRequestedAuthorities(helper, accountType)) { in getAccountTypePreferences()
489 final CharSequence label = helper.getLabelForType(mContext, accountType); in getAccountTypePreferences()
493 final String titleResPackageName = helper.getPackageForType(accountType); in getAccountTypePreferences()
494 final int titleResId = helper.getLabelIdForType(accountType); in getAccountTypePreferences()
498 final Drawable icon = helper.getDrawableForType(mContext, accountType); in getAccountTypePreferences()
510 helper.getAuthoritiesForAccountType(account.type); in getAccountTypePreferences()
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java139 String[] authorities, AccountRestrictionHelper helper) { in AccountPreferenceController() argument
149 mHelper = helper; in AccountPreferenceController()
477 private ArrayList<AccountTypePreference> getAccountTypePreferences(AuthenticatorHelper helper, in getAccountTypePreferences() argument
479 final String[] accountTypes = helper.getEnabledAccountTypes(); in getAccountTypePreferences()
486 if (!accountTypeHasAnyRequestedAuthorities(helper, accountType)) { in getAccountTypePreferences()
489 final CharSequence label = helper.getLabelForType(mContext, accountType); in getAccountTypePreferences()
493 final String titleResPackageName = helper.getPackageForType(accountType); in getAccountTypePreferences()
494 final int titleResId = helper.getLabelIdForType(accountType); in getAccountTypePreferences()
498 final Drawable icon = helper.getDrawableForType(mContext, accountType); in getAccountTypePreferences()
510 helper.getAuthoritiesForAccountType(account.type); in getAccountTypePreferences()
[all …]
/packages/apps/Settings/tests/uitests/
DAndroid.bp30 "launcher-helper-lib",
31 "metrics-helper-lib",
33 "settings-helper",
34 "sysui-helper",
35 "timeresult-helper-lib",
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidDeviceTest.java287 BluetoothHidDeviceCallbackTestHelper helper = new BluetoothHidDeviceCallbackTestHelper(); in testRegistration() local
288 Assert.assertTrue(mHidDeviceService.registerApp(mSettings, null, null, helper)); in testRegistration()
322 BluetoothHidDeviceCallbackTestHelper helper = new BluetoothHidDeviceCallbackTestHelper(); in testSendReport() local
323 Assert.assertTrue(mHidDeviceService.registerApp(mSettings, null, null, helper)); in testSendReport()
359 BluetoothHidDeviceCallbackTestHelper helper = new BluetoothHidDeviceCallbackTestHelper(); in testReplyReport() local
360 Assert.assertTrue(mHidDeviceService.registerApp(mSettings, null, null, helper)); in testReplyReport()
394 BluetoothHidDeviceCallbackTestHelper helper = new BluetoothHidDeviceCallbackTestHelper(); in testReportError() local
395 Assert.assertTrue(mHidDeviceService.registerApp(mSettings, null, null, helper)); in testReportError()
496 BluetoothHidDeviceCallbackTestHelper helper = new BluetoothHidDeviceCallbackTestHelper(); in testCallbacks() local
497 Assert.assertTrue(mHidDeviceService.registerApp(mSettings, null, null, helper)); in testCallbacks()
/packages/apps/Dialer/java/com/android/voicemail/impl/sms/
DOmtpMessageReceiver.java79 OmtpVvmCarrierConfigHelper helper = new OmtpVvmCarrierConfigHelper(this.context, phone); in onReceive() local
80 if (!helper.isValid()) { in onReceive()
85 if (helper.isLegacyModeEnabled()) { in onReceive()
116 VisualVoicemailProtocol protocol = helper.getProtocol(); in onReceive()
120 Bundle statusData = helper.getProtocol().translateStatusSmsBundle(helper, eventType, data); in onReceive()
/packages/apps/Settings/src/com/android/settings/security/
DLockUnificationPreferenceController.java121 final ChooseLockSettingsHelper helper = in onPreferenceChange()
123 if (!helper.launchConfirmationActivity( in onPreferenceChange()
182 final ChooseLockSettingsHelper helper =
184 if (!helper.launchConfirmationActivity(
193 final ChooseLockSettingsHelper helper =
195 if (!helper.launchConfirmationActivity(
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DLockUnificationPreferenceController.java121 final ChooseLockSettingsHelper helper = in onPreferenceChange()
123 if (!helper.launchConfirmationActivity( in onPreferenceChange()
182 final ChooseLockSettingsHelper helper =
184 if (!helper.launchConfirmationActivity(
193 final ChooseLockSettingsHelper helper =
195 if (!helper.launchConfirmationActivity(
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapStore.java38 private final ImapHelper helper; field in ImapStore
54 ImapHelper helper, in ImapStore() argument
62 this.helper = helper; in ImapStore()
73 return helper; in getImapHelper()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DDatabaseTestUtils.java36 SlicesDatabaseHelper helper = SlicesDatabaseHelper.getInstance(context); in clearSlicesDb() local
37 helper.close(); in clearSlicesDb()
43 AnomalyDatabaseHelper helper = AnomalyDatabaseHelper.getInstance(context); in clearAnomalyDb() local
44 helper.close(); in clearAnomalyDb()
/packages/apps/Settings/src/com/android/settings/applications/assist/
DDefaultVoiceInputPicker.java118 public static ComponentName getCurrentService(VoiceInputHelper helper) { in getCurrentService() argument
119 if (helper.mCurrentVoiceInteraction != null) { in getCurrentService()
120 return helper.mCurrentVoiceInteraction; in getCurrentService()
121 } else if (helper.mCurrentRecognizer != null) { in getCurrentService()
122 return helper.mCurrentRecognizer; in getCurrentService()

123456