/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
AlwaysOnVpnCurrentUserPreferenceControllerTest.java | 54 @Mock private PreferenceAvailabilityObserver mObserver; 69 mController.setAvailabilityObserver(mObserver); 74 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); 98 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_ALWAYS_ON_VPN_PRIMARY_USER, false); 103 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_ALWAYS_ON_VPN_PRIMARY_USER, true);
|
EnterprisePrivacyPreferenceControllerTest.java | 55 @Mock private PreferenceAvailabilityObserver mObserver; 65 mController.setAvailabilityObserver(mObserver); 70 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); 97 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_ENTERPRISE_PRIVACY, false); 101 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_ENTERPRISE_PRIVACY, true);
|
ImePreferenceControllerTest.java | 55 @Mock private PreferenceAvailabilityObserver mObserver; 67 mController.setAvailabilityObserver(mObserver); 72 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); 90 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_INPUT_METHOD, false); 95 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_INPUT_METHOD, true);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
ContactsContentObserverTest.java | 58 private ContactsContentObserver mObserver; 63 mObserver = new ContactsContentObserver(mMockManager, mContext); 77 assertFalse(mObserver.haveContentsChanged()); 83 assertTrue(mObserver.haveContentsChanged()); 92 assertTrue(mObserver.haveContentsChanged());
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
ItemTest.java | 61 private Observer mObserver; 108 item.registerObserver(mObserver); 109 final InOrder inOrder = inOrder(mObserver); 112 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); 115 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); 118 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); 122 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); 127 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); 166 item.registerObserver(mObserver); 172 verify(mObserver).onItemRangeRemoved(eq(item), eq(0), eq(1)) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapMasInstance.java | 81 BluetoothMapContentObserver mObserver; 270 if (mObserver != null) { 271 if (D) Log.d(TAG, "mObserver exists - shutting it down..."); 272 mObserver.deinit(); 273 mObserver = null; 356 mObserver = new BluetoothMapContentObserver(mContext, 361 mObserver.init(); 364 mObserver, 381 if(mObserver != null) { 382 return mObserver.handleSmsSendIntent(context, intent) [all...] |
/frameworks/base/core/java/android/app/backup/ |
RestoreSession.java | 41 RestoreObserverWrapper mObserver = null; 99 if (mObserver != null) { 103 mObserver = new RestoreObserverWrapper(mContext, observer); 108 err = mBinder.restoreAll(token, mObserver, monitorWrapper); 156 if (mObserver != null) { 160 mObserver = new RestoreObserverWrapper(mContext, observer); 165 err = mBinder.restoreSome(token, mObserver, monitorWrapper, packages); 216 if (mObserver != null) { 220 mObserver = new RestoreObserverWrapper(mContext, observer); 225 err = mBinder.restorePackage(packageName, mObserver, monitorWrapper) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
UserBinaryDictionary.java | 54 private ContentObserver mObserver; 73 mObserver = new ContentObserver(null) { 89 cres.registerContentObserver(Words.CONTENT_URI, true, mObserver); 105 if (mObserver != null) { 106 mContext.getContentResolver().unregisterContentObserver(mObserver); 107 mObserver = null;
|
/frameworks/support/room/integration-tests/testapp/src/main/java/android/arch/persistence/room/integration/testapp/database/ |
LastNameAscCustomerDataSource.java | 32 private final InvalidationTracker.Observer mObserver; 41 mObserver = new InvalidationTracker.Observer("customer") { 47 db.getInvalidationTracker().addWeakObserver(mObserver);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/ |
WifiDetailActionBarObserverTest.java | 48 private WifiDetailActionBarObserver mObserver; 59 mObserver = new WifiDetailActionBarObserver(mContext, mockFragment); 60 mLifecycle.addObserver(mObserver);
|
/frameworks/base/core/java/android/print/ |
PrinterDiscoverySession.java | 55 private IPrinterDiscoveryObserver mObserver; 69 mObserver = new PrinterDiscoveryObserver(this); 71 mPrintManager.createPrinterDiscoverySession(mObserver, mUserId); 85 mPrintManager.startPrinterDiscovery(mObserver, priorityList, mUserId); 100 mPrintManager.stopPrinterDiscovery(mObserver, mUserId); 183 return (mObserver == null); 189 mPrintManager.destroyPrinterDiscoverySession(mObserver, mUserId); 193 mObserver = null;
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
VeiledAddressMatcher.java | 81 private final AccountObserver mObserver = new AccountObserver() { 132 mObserver.initialize(controller);
|
/developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
RecipeListAdapter.java | 49 private DataSetObserver mObserver; 88 if (mObserver != null) { 89 mObserver.onChanged(); 152 mObserver = observer; 157 mObserver = null;
|
/developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
RecipeListAdapter.java | 49 private DataSetObserver mObserver; 88 if (mObserver != null) { 89 mObserver.onChanged(); 152 mObserver = observer; 157 mObserver = null;
|
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
RecipeListAdapter.java | 49 private DataSetObserver mObserver; 88 if (mObserver != null) { 89 mObserver.onChanged(); 152 mObserver = observer; 157 mObserver = null;
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ |
InterpreterPicker.java | 53 private ScriptListObserver mObserver; 59 mObserver = new ScriptListObserver(); 62 mConfiguration.registerObserver(mObserver); 64 mAdapter.registerDataSetObserver(mObserver); 89 mConfiguration.unregisterObserver(mObserver);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/ |
DynamicAvailabilityPreferenceControllerTest.java | 53 private @Mock PreferenceAvailabilityObserver mObserver; 123 controller.setAvailabilityObserver(mObserver); 124 assertThat(controller.getAvailabilityObserver()).isEqualTo(mObserver); 128 verify(mObserver).onPreferenceAvailabilityUpdated(PREFERENCE_KEY, false); 132 verify(mObserver).onPreferenceAvailabilityUpdated(PREFERENCE_KEY, true);
|
/frameworks/support/emoji/core/src/android/support/text/emoji/ |
FontRequestEmojiCompatConfig.java | 179 private ContentObserver mObserver; 245 if (mObserver == null) { 246 mObserver = new ContentObserver(mHandler) { 252 mFontProviderHelper.registerObserver(mContext, uri, mObserver); 269 if (mObserver != null) { 270 mFontProviderHelper.unregisterObserver(mContext, mObserver); 271 mObserver = null;
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
WindowFocusObserver.java | 37 final FocusObserver mObserver = new WindowId.FocusObserver() { 97 token.registerFocusObserver(mObserver); 104 getWindow().getDecorView().getWindowId().unregisterFocusObserver(mObserver);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
AutoAddTracker.java | 61 Secure.getUriFor(Secure.QS_AUTO_ADDED_TILES), false, mObserver); 75 mContext.getContentResolver().unregisterContentObserver(mObserver); 92 protected final ContentObserver mObserver = new ContentObserver(new Handler()) {
|
/frameworks/support/room/runtime/src/main/java/android/arch/persistence/room/paging/ |
LimitOffsetDataSource.java | 51 private final InvalidationTracker.Observer mObserver; 58 mObserver = new InvalidationTracker.Observer(tables) { 64 db.getInvalidationTracker().addWeakObserver(mObserver);
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
SelectVisibleCalendarsActivity.java | 43 private final ContentObserver mObserver = new ContentObserver(new Handler()) { 79 true, mObserver); 85 getContentResolver().unregisterContentObserver(mObserver);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/ |
AssistContextPreferenceControllerTest.java | 54 private AssistContextPreferenceController.SettingObserver mObserver; 66 ReflectionHelpers.setField(mController, "mSettingObserver", mObserver); 92 verify(mObserver).register(any(ContentResolver.class), eq(true));
|
/frameworks/base/core/java/android/content/ |
CursorLoader.java | 43 final ForceLoadContentObserver mObserver; 70 cursor.registerContentObserver(mObserver); 124 mObserver = new ForceLoadContentObserver(); 136 mObserver = new ForceLoadContentObserver();
|
/frameworks/base/core/java/com/android/internal/view/ |
RotationPolicy.java | 170 false, listener.mObserver, userHandle); 173 false, listener.mObserver, userHandle); 181 context.getContentResolver().unregisterContentObserver(listener.mObserver); 188 final ContentObserver mObserver = new ContentObserver(new Handler()) {
|