Home
last modified time | relevance | path

Searched refs:mHelper (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Calendar/tests/src/com/android/calendar/event/
DEditEventHelperTest.java129 private EditEventHelper mHelper; field in EditEventHelperTest
365 mHelper = new EditEventHelper(mActivity, null); in testSaveEventFailures()
375 mHelper.mEventOk = false; in testSaveEventFailures()
376 assertFalse(mHelper.saveEvent(null, null, 0)); in testSaveEventFailures()
377 mHelper.mEventOk = true; in testSaveEventFailures()
378 assertFalse(mHelper.saveEvent(null, null, 0)); in testSaveEventFailures()
380 assertFalse(mHelper.saveEvent(mModel1, mModel2, 0)); in testSaveEventFailures()
384 assertFalse(mHelper.saveEvent(mModel1, null, 0)); in testSaveEventFailures()
392 mHelper = new EditEventHelper(mActivity, null); in testSaveEventNewEvent()
398 assertTrue(mHelper.saveEvent(mModel1, null, 0)); in testSaveEventNewEvent()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DFinalizationControllerTest.java65 @Mock private UserProvisioningStateHelper mHelper; field in FinalizationControllerTest
80 mController = new FinalizationController(mContext, mUtils, mSettingsFacade, mHelper); in setUp()
91 when(mHelper.isStateUnmanagedOrFinalized()).thenReturn(false); in testInitiallyDone_alreadyCalled()
99 verify(mHelper, never()).markUserProvisioningStateInitiallyDone(params); in testInitiallyDone_alreadyCalled()
100 verify(mHelper, never()).markUserProvisioningStateFinalized(params); in testInitiallyDone_alreadyCalled()
106 when(mHelper.isStateUnmanagedOrFinalized()).thenReturn(true); in testFinalized_alreadyCalled()
114 verify(mHelper, never()).markUserProvisioningStateInitiallyDone(params); in testFinalized_alreadyCalled()
115 verify(mHelper, never()).markUserProvisioningStateFinalized(params); in testFinalized_alreadyCalled()
121 when(mHelper.isStateUnmanagedOrFinalized()).thenReturn(false); in testFinalized_noParamsStored()
127 verify(mHelper, never()) in testFinalized_noParamsStored()
[all …]
DUserProvisioningStateHelperTest.java56 private UserProvisioningStateHelper mHelper; field in UserProvisioningStateHelperTest
65 mHelper = new UserProvisioningStateHelper( in setUp()
81 mHelper.markUserProvisioningStateInitiallyDone(params); in testInitiallyDone_ProfileAfterSuw()
97 mHelper.markUserProvisioningStateInitiallyDone(params); in testInitiallyDone_ProfileDuringSuw()
115 mHelper.markUserProvisioningStateInitiallyDone(params); in testInitiallyDone_DeviceOwnerSkipUserSetup()
130 mHelper.markUserProvisioningStateInitiallyDone(params); in testInitiallyDone_DeviceOwnerDontSkipUserSetup()
145 mHelper.markUserProvisioningStateFinalized(params); in testFinalized_ManagedProfile()
162 mHelper.markUserProvisioningStateFinalized(params); in testFinalized_DeviceOwner()
180 return mHelper.isStateUnmanagedOrFinalized(); in isStateUnmanagedOrFinalizedWithCurrentState()
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DWearableDialogHelper.java156 private final WearableDialogHelper mHelper; field in WearableDialogHelper.DialogBuilder
160 mHelper = new WearableDialogHelper(context.getResources(), context.getTheme()); in DialogBuilder()
165 mHelper = new WearableDialogHelper(context.getResources(), context.getTheme()); in DialogBuilder()
169 return mHelper; in getHelper()
173 mHelper.setPositiveIcon(iconId); in setPositiveIcon()
178 mHelper.setPositiveIcon(icon); in setPositiveIcon()
183 mHelper.setNegativeIcon(iconId); in setNegativeIcon()
188 mHelper.setNegativeIcon(icon); in setNegativeIcon()
193 mHelper.setNeutralIcon(iconId); in setNeutralIcon()
198 mHelper.setNeutralIcon(icon); in setNeutralIcon()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/assist/
DDefaultVoiceInputPicker.java36 private VoiceInputHelper mHelper; field in DefaultVoiceInputPicker
49 mHelper = new VoiceInputHelper(context); in onAttach()
50 mHelper.buildUi(); in onAttach()
52 if (isCurrentAssistVoiceService(assist, getCurrentService(mHelper))) { in onAttach()
61 for (VoiceInputHelper.InteractionInfo info : mHelper.mAvailableInteractionInfos) { in getCandidates()
68 for (VoiceInputHelper.RecognizerInfo info : mHelper.mAvailableRecognizerInfos) { in getCandidates()
77 final ComponentName currentService = getCurrentService(mHelper); in getDefaultKey()
86 for (VoiceInputHelper.InteractionInfo info : mHelper.mAvailableInteractionInfos) { in setDefaultKey()
99 for (VoiceInputHelper.RecognizerInfo info : mHelper.mAvailableRecognizerInfos) { in setDefaultKey()
DDefaultVoiceInputPreferenceController.java42 private VoiceInputHelper mHelper; field in DefaultVoiceInputPreferenceController
52 mHelper = new VoiceInputHelper(context); in DefaultVoiceInputPreferenceController()
53 mHelper.buildUi(); in DefaultVoiceInputPreferenceController()
63 DefaultVoiceInputPicker.getCurrentService(mHelper); in isAvailable()
105 for (VoiceInputHelper.InteractionInfo info : mHelper.mAvailableInteractionInfos) { in getDefaultAppInfo()
112 for (VoiceInputHelper.RecognizerInfo info : mHelper.mAvailableRecognizerInfos) { in getDefaultAppInfo()
135 mHelper.buildUi(); in updatePreference()
147 final ComponentName currentService = DefaultVoiceInputPicker.getCurrentService(mHelper); in getDefaultAppKey()
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/
DVvm3Subscriber.java136 private final OmtpVvmCarrierConfigHelper mHelper; field in Vvm3Subscriber
171 mHelper = helper; in Vvm3Subscriber()
178 mHelper in Vvm3Subscriber()
192 try (NetworkWrapper wrapper = VvmNetworkRequest.getNetwork(mHelper, mHandle, mStatus)) { in subscribe()
196 Volley.newRequestQueue(mHelper.getContext(), new NetworkSpecifiedHurlStack(network)); in subscribe()
199 mHelper.handleEvent(mStatus, OmtpEvents.VVM3_VMG_CONNECTION_FAILED); in subscribe()
209 findSubscribeLink(getSubscribeLinkPatterns(mHelper.getContext()), selfProvisionResponse); in processSubscription()
254 mHelper.handleEvent(mStatus, OmtpEvents.VVM3_SPG_CONNECTION_FAILED); in getSelfProvisionResponse()
270 mHelper.handleEvent(mStatus, OmtpEvents.VVM3_SPG_CONNECTION_FAILED); in clickSubscribeLink()
307 mHelper.handleEvent(mStatus, OmtpEvents.VVM3_VMG_CONNECTION_FAILED); in vvm3XmlRequest()
/packages/apps/Settings/src/com/android/settings/
DRestrictedListPreference.java44 private final RestrictedPreferenceHelper mHelper; field in RestrictedListPreference
50 mHelper = new RestrictedPreferenceHelper(context, this, attrs); in RestrictedListPreference()
56 mHelper = new RestrictedPreferenceHelper(context, this, attrs); in RestrictedListPreference()
62 mHelper.onBindViewHolder(holder); in onBindViewHolder()
71 if (!mHelper.performClick()) { in performClick()
79 mHelper.setDisabledByAdmin(null); in setEnabled()
86 if (mHelper.setDisabledByAdmin(admin)) { in setDisabledByAdmin()
92 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java85 private AppRestrictionsHelper mHelper; field in AppRestrictionsFragment
119 mHelper.applyUserAppsStates(AppRestrictionsFragment.this);
228 mHelper = new AppRestrictionsHelper(getContext(), mUser); in init()
283 mHelper.applyUserAppsStates(AppRestrictionsFragment.this); in onPause()
321 mHelper.fetchAndMergeApps(); in doInBackground()
359 for (AppRestrictionsHelper.SelectableAppInfo app : mHelper.getVisibleApps()) { in populateApps()
368 mHelper.setPackageSelected(packageName, true); in populateApps()
411 p.setChecked(mHelper.isPackageSelected(packageName)); in populateApps()
414 mHelper.setPackageSelected(packageName, p.isChecked()); in populateApps()
422 mHelper.applyUserAppsStates(this); in populateApps()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DRestrictedDropDownPreference.java41 private final RestrictedPreferenceHelper mHelper; field in RestrictedDropDownPreference
51 mHelper = new RestrictedPreferenceHelper(context, this, attrs); in RestrictedDropDownPreference()
72 mHelper.onBindViewHolder(view); in onBindViewHolder()
125 if (!mHelper.performClick()) { in performClick()
134 mHelper.setDisabledByAdmin(null); in setEnabled()
141 if (mHelper.setDisabledByAdmin(admin)) { in setDisabledByAdmin()
155 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
DWorkSoundPreferenceController.java68 private final AudioHelper mHelper; field in WorkSoundPreferenceController
91 mHelper = helper; in WorkSoundPreferenceController()
112 mManagedProfileId = mHelper.getManagedProfileId(mUserManager); in onResume()
128 return mHelper.getManagedProfileId(mUserManager) != UserHandle.USER_NULL in isAvailable()
163 return !mHelper.isSingleVolume(); in shouldShowRingtoneSettings()
167 if (context == null || !mHelper.isUserUnlocked(mUserManager, context.getUserId())) { in updateRingtoneName()
179 return mHelper.createPackageContextAsUser(mManagedProfileId); in getManagedProfileContext()
292 mManagedProfileId = mHelper.getManagedProfileId(mUserManager); in onManagedProfileRemoved()
DAdjustVolumeRestrictedPreferenceController.java37 private AccountRestrictionHelper mHelper; field in AdjustVolumeRestrictedPreferenceController
46 mHelper = helper; in AdjustVolumeRestrictedPreferenceController()
54 mHelper.enforceRestrictionOnPreference((RestrictedPreference) preference, in updateState()
DAlarmVolumePreferenceController.java30 private AudioHelper mHelper; field in AlarmVolumePreferenceController
41 mHelper = helper; in AlarmVolumePreferenceController()
46 return !mHelper.isSingleVolume(); in isAvailable()
DNotificationVolumePreferenceController.java31 private AudioHelper mHelper; field in NotificationVolumePreferenceController
42 mHelper = helper; in NotificationVolumePreferenceController()
48 return !Utils.isVoiceCapable(mContext) && !mHelper.isSingleVolume(); in isAvailable()
DEmergencyBroadcastPreferenceController.java40 private AccountRestrictionHelper mHelper; field in EmergencyBroadcastPreferenceController
54 mHelper = helper; in EmergencyBroadcastPreferenceController()
83 && !mHelper.hasBaseUserRestriction( in isAvailable()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DAppRestrictionsFragment.java88 private AppRestrictionsHelper mHelper; field in AppRestrictionsFragment
122 mHelper.applyUserAppsStates(AppRestrictionsFragment.this);
258 mHelper = new AppRestrictionsHelper(getContext(), mUser); in onCreate()
259 mHelper.setLeanback(true); in onCreate()
316 mHelper.applyUserAppsStates(AppRestrictionsFragment.this); in onPause()
354 mHelper.fetchAndMergeApps(); in doInBackground()
392 for (AppRestrictionsHelper.SelectableAppInfo app : mHelper.getVisibleApps()) { in populateApps()
401 mHelper.setPackageSelected(packageName, true); in populateApps()
438 p.setChecked(mHelper.isPackageSelected(packageName)); in populateApps()
441 mHelper.setPackageSelected(packageName, p.isChecked()); in populateApps()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
DFinalizationController.java55 private final UserProvisioningStateHelper mHelper; field in FinalizationController
73 mHelper = checkNotNull(helper); in FinalizationController()
87 if (!mHelper.isStateUnmanagedOrFinalized()) { in provisioningInitiallyDone()
97 mHelper.markUserProvisioningStateInitiallyDone(params); in provisioningInitiallyDone()
117 if (mHelper.isStateUnmanagedOrFinalized()) { in provisioningFinalized()
143 mHelper.markUserProvisioningStateFinalized(params); in provisioningFinalized()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationVolumePreferenceControllerTest.java44 private AudioHelper mHelper; field in NotificationVolumePreferenceControllerTest
60 mController = new NotificationVolumePreferenceController(mContext, null, null, mHelper); in setUp()
65 when(mHelper.isSingleVolume()).thenReturn(true); in isAvailable_singleVolume_shouldReturnFalse()
73 when(mHelper.isSingleVolume()).thenReturn(false); in isAvailable_voiceCapable_shouldReturnFalse()
81 when(mHelper.isSingleVolume()).thenReturn(false); in isAvailable_notSingleVolume_notVoiceCapable_shouldReturnTrue()
DRingVolumePreferenceControllerTest.java45 private AudioHelper mHelper; field in RingVolumePreferenceControllerTest
70 mController = new RingVolumePreferenceController(mContext, null, null, mHelper); in setUp()
75 when(mHelper.isSingleVolume()).thenReturn(true); in isAvailable_singleVolume_shouldReturnFalse()
83 when(mHelper.isSingleVolume()).thenReturn(false); in isAvailable_notVoiceCapable_shouldReturnFalse()
91 when(mHelper.isSingleVolume()).thenReturn(false); in isAvailable_notSingleVolume_VoiceCapable_shouldReturnTrue()
DAlarmVolumePreferenceControllerTest.java42 private AudioHelper mHelper; field in AlarmVolumePreferenceControllerTest
49 mController = new AlarmVolumePreferenceController(mContext, null, null, mHelper); in setUp()
54 when(mHelper.isSingleVolume()).thenReturn(true); in isAvailable_singleVolume_shouldReturnFalse()
61 when(mHelper.isSingleVolume()).thenReturn(false); in isAvailable_notSingleVolume_shouldReturnTrue()
/packages/apps/DocumentsUI/src/com/android/documentsui/selection/
DBandController.java392 private final SelectionEnvironment mHelper; field in BandController.GridModel
434 mHelper = helper; in GridModel()
437 mHelper.addOnScrollListener(this); in GridModel()
445 mHelper.removeOnScrollListener(this); in stopListening()
463 mPointer = mHelper.createAbsolutePoint(relativeOrigin); in startSelection()
480 mPointer = mHelper.createAbsolutePoint(relativePointer); in resizeSelection()
515 for (int i = 0; i < mHelper.getVisibleChildCount(); i++) { in recordVisibleChildren()
516 int adapterPosition = mHelper.getAdapterPositionAt(i); in recordVisibleChildren()
520 if (mHelper.hasView(adapterPosition) && in recordVisibleChildren()
524 recordItemData(mHelper.getAbsoluteRectForChildViewAt(i), adapterPosition); in recordVisibleChildren()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
DFocusedItemDecorator.java32 private FocusIndicatorHelper mHelper; field in FocusedItemDecorator
35 mHelper = new FocusIndicatorHelper(container) { in FocusedItemDecorator()
45 return mHelper; in getFocusListener()
50 mHelper.draw(c); in onDraw()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DLastAccessedProvider.java82 private DatabaseHelper mHelper; field in LastAccessedProvider
135 mHelper = new DatabaseHelper(getContext()); in onCreate()
146 final SQLiteDatabase db = mHelper.getReadableDatabase(); in query()
163 final SQLiteDatabase db = mHelper.getWritableDatabase(); in insert()
241 final SQLiteDatabase db = mHelper.getWritableDatabase(); in purgeByAuthority()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java91 private AccountRestrictionHelper mHelper; field in AccountPreferenceController
149 mHelper = helper; in AccountPreferenceController()
181 if (!mHelper.hasBaseUserRestriction(DISALLOW_MODIFY_ACCOUNTS, userInfo.id)) { in updateRawDataToIndex()
188 if (!mHelper.hasBaseUserRestriction(DISALLOW_REMOVE_MANAGED_PROFILE, in updateRawDataToIndex()
314 mHelper.createAccessiblePreferenceCategory(mParent.getPreferenceManager().getContext()); in updateProfileUi()
328 mHelper.enforceRestrictionOnPreference(profileData.removeWorkProfilePreference, in updateProfileUi()
345 mHelper.enforceRestrictionOnPreference(profileData.addAccountPreference, in updateProfileUi()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperUpgradeTest.java96 private ContactsDatabaseHelper mHelper; field in ContactsDatabaseHelperUpgradeTest
101 mHelper = ContactsDatabaseHelper.getNewInstanceForTest(getContext(), in setUp()
103 mHelper.onConfigure(mDb); in setUp()
108 mHelper.close(); in tearDown()
118 mHelper.onCreate(mDb); in testDatabaseCreate()
146 mHelper.onUpgrade(mDb, upgradeFrom, MY_VERSION); in upgradeTo1109()
162 mHelper.onUpgrade(mDb, upgradeFrom, MY_VERSION); in upgradeTo1201()
211 mHelper.onUpgrade(mDb, upgradeFrom, upgradeTo); in upgrade()

12