Searched refs:mManager (Results 1 - 25 of 32) sorted by relevance

12

/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/
H A DCarAppContextManagerTest.java29 private CarAppContextManager mManager; field in class:CarAppContextManagerTest
34 mManager = (CarAppContextManager) getCar().getCarManager(Car.APP_CONTEXT_SERVICE);
35 assertNotNull(mManager);
40 mManager.setActiveContexts(null, CarAppContextManager.APP_CONTEXT_NAVIGATION);
49 mManager.registerContextListener(null, 0);
59 mManager.registerContextListener(listener, 0);
60 mManager.registerContextListener(listener2, 0);
61 mManager.unregisterContextListener();
63 mManager.unregisterContextListener();
76 assertEquals(0, mManager
[all...]
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
H A DCarAppContextManagerTest.java29 private CarAppContextManager mManager; field in class:CarAppContextManagerTest
34 mManager = (CarAppContextManager) getCar().getCarManager(Car.APP_CONTEXT_SERVICE);
35 assertNotNull(mManager);
40 mManager.setActiveContexts(null, CarAppContextManager.APP_CONTEXT_NAVIGATION);
49 mManager.registerContextListener(null, 0);
59 mManager.registerContextListener(listener, 0);
60 mManager.registerContextListener(listener2, 0);
61 mManager.unregisterContextListener();
63 mManager.unregisterContextListener();
76 assertEquals(0, mManager
[all...]
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/
H A DBackgroundDataCondition.java33 setActive(NetworkPolicyManager.from(mManager.getContext()).getRestrictBackground());
38 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_data_saver);
43 return mManager.getContext().getString(R.string.condition_bg_data_title);
48 return mManager.getContext().getString(R.string.condition_bg_data_summary);
53 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_off) };
58 mManager.getContext().startActivity(new Intent(mManager.getContext(),
70 NetworkPolicyManager.from(mManager.getContext()).setRestrictBackground(false);
H A DBatterySaverCondition.java32 PowerManager powerManager = mManager.getContext().getSystemService(PowerManager.class);
38 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_settings_battery);
43 return mManager.getContext().getString(R.string.condition_battery_title);
48 return mManager.getContext().getString(R.string.condition_battery_summary);
53 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_off) };
58 Utils.startWithFragment(mManager.getContext(), BatterySaverSettings.class.getName(), null,
65 mManager.getContext().getSystemService(PowerManager.class).setPowerSaveMode(false);
H A DCellularDataCondition.java32 ConnectivityManager connectivity = mManager.getContext().getSystemService(
34 TelephonyManager telephony = mManager.getContext().getSystemService(TelephonyManager.class);
50 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_cellular_off);
55 return mManager.getContext().getString(R.string.condition_cellular_title);
60 return mManager.getContext().getString(R.string.condition_cellular_summary);
65 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_on) };
70 mManager.getContext().startActivity(new Intent(mManager.getContext(),
77 TelephonyManager telephony = mManager.getContext().getSystemService(
H A DAirplaneModeCondition.java36 setActive(WirelessUtils.isAirplaneModeOn(mManager.getContext()));
46 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_airplane);
51 return mManager.getContext().getString(R.string.condition_airplane_title);
56 return mManager.getContext().getString(R.string.condition_airplane_summary);
61 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_off) };
66 mManager.getContext().startActivity(new Intent(mManager.getContext(),
73 ConnectivityManager.from(mManager.getContext()).setAirplaneMode(false);
H A DWorkModeCondition.java38 mUm = (UserManager) mManager.getContext().getSystemService(Context.USER_SERVICE);
63 return Icon.createWithResource(mManager.getContext(),
69 return mManager.getContext().getString(R.string.condition_work_title);
74 return mManager.getContext().getString(R.string.condition_work_summary);
80 mManager.getContext().getString(R.string.condition_turn_on)
86 mManager.getContext().startActivity(new Intent(mManager.getContext(),
H A DNightDisplayCondition.java45 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_settings_night_display);
50 return mManager.getContext().getString(R.string.condition_night_display_title);
55 return mManager.getContext().getString(R.string.condition_night_display_summary);
60 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_off) };
65 Utils.startWithFragment(mManager.getContext(), NightDisplaySettings.class.getName(), null,
H A DCondition.java34 protected final ConditionManager mManager; field in class:Condition
42 mManager = manager;
45 PackageManager pm = mManager.getContext().getPackageManager();
46 pm.setComponentEnabledSetting(new ComponentName(mManager.getContext(), receiverClass),
69 mManager.notifyChanged(this);
96 MetricsLogger.action(mManager.getContext(),
113 PackageManager pm = mManager.getContext().getPackageManager();
114 pm.setComponentEnabledSetting(new ComponentName(mManager.getContext(), clz),
H A DDndCondition.java48 mManager.getContext().getSystemService(NotificationManager.class);
79 return mManager.getContext().getString(R.string.zen_mode_option_alarms);
81 return mManager.getContext().getString(
84 return mManager.getContext().getString(R.string.zen_mode_option_no_interruptions);
91 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_zen);
96 return mManager.getContext().getString(R.string.condition_zen_title, getZenState());
103 return isForever ? mManager.getContext().getString(com.android.internal.R.string.zen_mode_forever_dnd)
104 : ZenModeConfig.getConditionSummary(mManager.getContext(), mConfig,
111 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_off) };
116 StatusBarManager statusBar = mManager
[all...]
H A DHotspotCondition.java42 mWifiManager = mManager.getContext().getSystemService(WifiManager.class);
58 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_hotspot);
64 return mManager.getContext().getString(
73 return mManager.getContext().getString(R.string.condition_hotspot_title);
78 return mManager.getContext().getString(R.string.condition_hotspot_summary, getSsid());
83 final Context context = mManager.getContext();
93 Utils.startWithFragment(mManager.getContext(), TetherSettings.class.getName(), null, null,
100 final Context context = mManager.getContext();
/packages/services/Car/car-support-lib/src/android/support/car/content/pm/
H A DCarPackageManagerEmbedded.java26 private final android.car.content.pm.CarPackageManager mManager; field in class:CarPackageManagerEmbedded
29 mManager = (android.car.content.pm.CarPackageManager) manager;
34 return mManager;
41 return mManager.isActivityAllowedWhileDriving(packageName, className);
51 return mManager.isServiceAllowedWhileDriving(packageName, className);
/packages/services/Car/car-support-lib/src/android/support/car/media/
H A DCarAudioManagerEmbedded.java26 private final android.car.media.CarAudioManager mManager; field in class:CarAudioManagerEmbedded
29 mManager = (android.car.media.CarAudioManager) manager;
34 return mManager.getAudioAttributesForCarUsage(carUsage);
42 return mManager.requestAudioFocus(l, requestAttributes, durationHint, flags);
47 return mManager.abandonAudioFocus(l, aa);
/packages/services/Car/car-support-lib/src/android/support/car/
H A DCarInfoManagerEmbedded.java29 private final android.car.CarInfoManager mManager; field in class:CarInfoManagerEmbedded
34 mManager = (android.car.CarInfoManager) manager;
40 return mManager.getFloat(key);
49 return mManager.getInt(key);
58 return mManager.getLong(key);
67 return mManager.getString(key);
86 return mManager.getBundle(key);
H A DCarAppContextManagerEmbedded.java28 private final android.car.CarAppContextManager mManager; field in class:CarAppContextManagerEmbedded
36 mManager = (android.car.CarAppContextManager) manager;
51 mManager.registerContextListener(proxy, contextFilter);
63 mManager.unregisterContextListener();
73 return mManager.getActiveAppContexts();
82 return mManager.isOwningContext(context);
105 mManager.setActiveContexts(proxy, contexts);
114 mManager.resetActiveContexts(contexts);
/packages/services/Car/car-support-lib/src/android/support/car/hardware/
H A DCarSensorManagerEmbedded.java28 private final android.car.hardware.CarSensorManager mManager; field in class:CarSensorManagerEmbedded
32 mManager = (android.car.hardware.CarSensorManager) manager;
38 return mManager.getSupportedSensors();
47 return mManager.isSensorSupported(sensorType);
66 return mManager.registerListener(proxy, sensorType, rate);
84 mManager.unregisterListener(proxy);
105 mManager.unregisterListener(proxy, sensorType);
114 return convert(mManager.getLatestSensorEvent(type));
/packages/services/Car/car-support-lib/src/android/support/car/navigation/
H A DCarNavigationManagerEmbedded.java26 private final android.car.navigation.CarNavigationManager mManager; field in class:CarNavigationManagerEmbedded
30 mManager = (android.car.navigation.CarNavigationManager) manager;
41 return mManager.sendNavigationStatus(status);
51 return mManager.sendNavigationTurnEvent(event, road, turnAngle, turnNumber, image,
62 return mManager.sendNavigationTurnDistanceEvent(distanceMeters, timeSeconds);
71 return mManager.isInstrumentClusterSupported();
91 mManager.registerListener(proxy);
102 mManager.unregisterListener();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DContactsContentObserver.java42 private final ContactsManager mManager; field in class:ContactsContentObserver
49 mManager = manager;
108 final int contactCount = mManager.getContactCount();
115 if (contactCount != mManager.getContactCountAtLastRebuild()) {
118 + mManager.getContactCountAtLastRebuild() + " to " + contactCount);
122 final ArrayList<String> names = mManager.getValidNames(Contacts.CONTENT_URI);
123 if (names.hashCode() != mManager.getHashCodeAtLastRebuild()) {
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
H A DSdpManagerTest.java46 SdpManager mManager = null; field in class:SdpManagerTest
55 mManager = SdpManager.getDefaultManager();
66 mManager = SdpManager.getDefaultManager();
87 handles[++record_id] = mManager.createMapMasRecord(SDP_SERVER_NAME,
94 handles[++record_id] = mManager.createMapMnsRecord(SDP_SERVER_NAME,
101 handles[++record_id] = mManager.createOppOpsRecord(SDP_SERVER_NAME,
107 handles[++record_id] = mManager.createPbapPseRecord(SDP_SERVER_NAME,
114 handles[++record_id] = mManager.createSapsRecord(SDP_SERVER_NAME,
127 assertTrue(mManager.removeSdpRecord(handles[record_id]));
180 mManager
[all...]
/packages/services/Car/car-lib/src/android/car/
H A DCarProjectionManager.java169 private final WeakReference<CarProjectionManager> mManager; field in class:CarProjectionManager.ICarProjectionListenerImpl
172 mManager = new WeakReference<>(manager);
177 final CarProjectionManager manager = mManager.get();
H A DCarAppContextManager.java238 private final WeakReference<CarAppContextManager> mManager; field in class:CarAppContextManager.IAppContextListenerImpl
241 mManager = new WeakReference<>(manager);
246 final CarAppContextManager manager = mManager.get();
260 final CarAppContextManager manager = mManager.get();
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DAbstractPublicApiTest.java62 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId));
78 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId));
89 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId));
100 ParcelFileDescriptor downloadedFile = mManager.openDownloadedFile(mId);
178 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId));
213 protected DownloadManager mManager; field in class:AbstractPublicApiTest
222 mManager = new DownloadManager(new ContextWrapper(mContext) {
233 mManager.setAccessFilename(true);
246 return new Download(mManager.enqueue(request));
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DDeviceProfilesSettings.java63 private LocalBluetoothManager mManager; field in class:DeviceProfilesSettings
82 mManager = Utils.getLocalBtManager(getActivity());
83 CachedBluetoothDeviceManager deviceManager = mManager.getCachedDeviceManager();
86 BluetoothDevice remoteDevice = mManager.getBluetoothAdapter().getRemoteDevice(address);
90 mCachedDevice = deviceManager.addDevice(mManager.getBluetoothAdapter(),
91 mManager.getProfileManager(), remoteDevice);
93 mProfileManager = mManager.getProfileManager();
150 mManager.setForegroundActivity(getActivity());
170 mManager.setForegroundActivity(null);
183 final PbapServerProfile psp = mManager
[all...]
/packages/providers/DownloadProvider/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/
H A DPublicApiAccessTest.java48 private DownloadManager mManager; field in class:PublicApiAccessTest
54 mManager = new DownloadManager(getContext());
145 mManager.enqueue(request);
154 mManager.enqueue(request);
/packages/services/Car/car-lib/src/android/car/navigation/
H A DCarNavigationManager.java268 private final WeakReference<CarNavigationManager> mManager; field in class:CarNavigationManager.ICarNavigationEventListenerImpl
271 mManager = new WeakReference<>(manager);
276 CarNavigationManager manager = mManager.get();
284 CarNavigationManager manager = mManager.get();

Completed in 346 milliseconds

12