/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/ |
H A D | CarAppContextManagerTest.java | 29 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 D | CarAppContextManagerTest.java | 29 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 D | BackgroundDataCondition.java | 33 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 D | BatterySaverCondition.java | 32 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 D | CellularDataCondition.java | 32 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 D | AirplaneModeCondition.java | 36 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 D | WorkModeCondition.java | 38 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 D | NightDisplayCondition.java | 45 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 D | Condition.java | 34 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 D | DndCondition.java | 48 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 D | HotspotCondition.java | 42 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 D | CarPackageManagerEmbedded.java | 26 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 D | CarAudioManagerEmbedded.java | 26 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 D | CarInfoManagerEmbedded.java | 29 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 D | CarAppContextManagerEmbedded.java | 28 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 D | CarSensorManagerEmbedded.java | 28 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 D | CarNavigationManagerEmbedded.java | 26 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 D | ContactsContentObserver.java | 42 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 D | SdpManagerTest.java | 46 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 D | CarProjectionManager.java | 169 private final WeakReference<CarProjectionManager> mManager; field in class:CarProjectionManager.ICarProjectionListenerImpl 172 mManager = new WeakReference<>(manager); 177 final CarProjectionManager manager = mManager.get();
|
H A D | CarAppContextManager.java | 238 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 D | AbstractPublicApiTest.java | 62 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 D | DeviceProfilesSettings.java | 63 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 D | PublicApiAccessTest.java | 48 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 D | CarNavigationManager.java | 268 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();
|