/packages/apps/Settings/src/com/android/settings/display/darkmode/ |
D | DarkModePreference.java | 48 final boolean active = (getContext().getResources().getConfiguration().uiMode in DarkModePreference() 51 updateSummary(batterySaver, active); in DarkModePreference() 68 private void updateSummary(boolean batterySaver, boolean active) { in updateSummary() argument 70 final int stringId = active in updateSummary() 80 summary = getContext().getString(active in updateSummary() 86 summary = getContext().getString(active in updateSummary() 90 final LocalTime time = active in updateSummary() 94 summary = getContext().getString(active in updateSummary() 99 summary = getContext().getString(active in updateSummary()
|
D | DarkModeActivationPreferenceController.java | 61 final boolean active = (mContext.getResources().getConfiguration().uiMode in updateState() 63 mPreference.updateStatus(active); in updateState() 101 final boolean active = (mContext.getResources().getConfiguration().uiMode in onSwitchChanged() 103 mUiModeManager.setNightModeActivated(!active); in onSwitchChanged()
|
/packages/modules/Bluetooth/system/embdrv/lc3/src/ |
D | ltpf.c | 661 if (ltpf->active) { in lc3_ltpf_analyse() 666 data->active = pitch_present && in lc3_ltpf_analyse() 670 data->active = pitch_present && in lc3_ltpf_analyse() 675 ltpf->active = data->active; in lc3_ltpf_analyse() 809 bool active = data && data->active && g_idx < 4; in lc3_ltpf_synthesize() local 815 float g = active ? 0.4f - 0.05f * g_idx : 0; in lc3_ltpf_synthesize() 826 if (active) in lc3_ltpf_synthesize() 829 if (!ltpf->active && active) in lc3_ltpf_synthesize() 831 else if (ltpf->active && !active) in lc3_ltpf_synthesize() 833 else if (ltpf->active && active && ltpf->pitch == pitch) in lc3_ltpf_synthesize() [all …]
|
/packages/modules/Bluetooth/system/embdrv/lc3/test/ |
D | ltpf.py | 138 return { 'active' : self.active, 158 self.active = False 252 if not self.active: 253 active = (self.dt == T.DT_10M or self.nc[1] > 0.94) \ 259 active = nc > 0.9 or (dp < 2 and dc > -0.1 and nc > 0.84) 262 active = False 266 self.active = active 275 self.active = False 279 b.write_uint(self.active, 1) 300 self.active = [ False, False ] [all …]
|
/packages/apps/Camera2/src_pd/com/android/camera/stats/ |
D | SessionStatsCollector.java | 18 public synchronized void previewActive(boolean active) { in previewActive() argument 21 public synchronized void faceScanActive(boolean active) { in faceScanActive() argument 24 public synchronized void autofocusActive(boolean active) { in autofocusActive() argument 36 public synchronized void sessionActive(boolean active) { in sessionActive() argument
|
/packages/modules/Bluetooth/system/gd/os/fake_timer/ |
D | fake_timerfd.cc | 31 bool active; member in bluetooth::os::fake_timer::FakeTimerFd 64 entry->active = trigger_delta_ms != 0; in fake_timerfd_settime() 65 if (!entry->active) { in fake_timerfd_settime() 97 if (!entry->active) { in fire_next_event() 117 to_fire->active = is_periodic; in fire_next_event()
|
/packages/apps/Settings/src/com/android/settings/notification/history/ |
D | NotificationStation.java | 95 public boolean active; field in NotificationStation.HistoricalNotificationInfo 108 this.active = updatedInfo.active; in updateFrom() 244 info.active = false; in markNotificationAsDismissed() 262 if (TextUtils.equals(info.key, sbn.getKey()) && info.active in addOrUpdateNotification() 375 StatusBarNotification[] active = mNoMan.getActiveNotificationsWithAttribution( in loadNotifications() local 381 = new ArrayList<>(active.length + dismissed.length); in loadNotifications() 384 : new StatusBarNotification[][] { active, dismissed }) { in loadNotifications() 389 final HistoricalNotificationInfo info = createFromSbn(sbn, resultSet == active); in loadNotifications() 405 private HistoricalNotificationInfo createFromSbn(StatusBarNotification sbn, boolean active) { in createFromSbn() argument 424 info.active = active; in createFromSbn() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | HeadsetMediaButtonTest.java | 188 final boolean active = true; in testMediaSessionWrapperSetActive() 189 wrapper.setActive(active); in testMediaSessionWrapperSetActive() 190 verify(session).setActive(active); in testMediaSessionWrapperSetActive() 209 final boolean active = true; in testMediaSessionWrapperIsActive() 210 when(session.isActive()).thenReturn(active); in testMediaSessionWrapperIsActive() 211 assertEquals(active, wrapper.isActive()); in testMediaSessionWrapperIsActive()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/ |
D | WifiDetailsState.java | 178 final boolean active = mAccessPoint.isActive(); in update() 180 mConnectionStatusPref.setSummary(active in update() 183 mIpAddressPref.setVisible(active); in update() 184 mSignalStrengthPref.setVisible(active); in update() 190 if (active) { in update() 198 if (active && !TextUtils.isEmpty(macAddress)) { in update()
|
/packages/apps/Car/Radio/src/com/android/car/radio/platform/ |
D | TunerCallbackAdapterExt.java | 149 public void onTrafficAnnouncement(boolean active) { in onTrafficAnnouncement() argument 150 mHandler.post(() -> mCallback.onTrafficAnnouncement(active)); in onTrafficAnnouncement() 153 public void onEmergencyAnnouncement(boolean active) { in onEmergencyAnnouncement() argument 154 mHandler.post(() -> mCallback.onEmergencyAnnouncement(active)); in onEmergencyAnnouncement()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | WifiDetailsFragment.java | 149 final boolean active = mAccessPoint.isActive(); in update() 151 mConnectionStatusPref.setSummary(active ? R.string.connected : R.string.not_connected); in update() 152 mIpAddressPref.setVisible(active); in update() 153 mSignalStrengthPref.setVisible(active); in update() 155 if (active) { in update() 162 if (active && !TextUtils.isEmpty(macAddress)) { in update()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareNativeManager.java | 168 mInterfaceDestroyedListener.active = false; in releaseAware() 213 public boolean active = true; field in WifiAwareNativeManager.InterfaceDestroyedListener 219 + ", active=" + active); in onDestroyed() 221 if (active && mWifiNanIface != null) { in onDestroyed()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | Event.kt | 430 val active = iter.next() in removeAlldayActiveEvents() constant 431 if (active.endDay < event.startDay) { in removeAlldayActiveEvents() 432 colMask = colMask and (1L shl active.column).inv() in removeAlldayActiveEvents() 451 val active = iter.next() in removeNonAlldayActiveEvents() constant 453 active.getEndMillis() - active.getStartMillis(), minDurationMillis in removeNonAlldayActiveEvents() 455 if (active.getStartMillis() + duration <= start) { in removeNonAlldayActiveEvents() 456 colMask = colMask and (1L shl active.column).inv() in removeNonAlldayActiveEvents()
|
/packages/modules/Bluetooth/system/rust/src/connection/mocks/ |
D | mock_le_manager.rs | 21 active: Rc<RefCell<Option<Rc<MockActiveLeAclManager>>>>, field 27 Self { active: Rc::new(RefCell::new(None)), callbacks: Rc::new(RefCell::new(None)) } in new() 31 self.active.borrow().as_ref().unwrap().clone() in inner() 75 *self.active.borrow_mut() = Some(out.clone()); in register_callbacks()
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/ |
D | hid_host.rs | 373 pub fn activate_hogp(&mut self, active: bool) { in activate_hogp() 374 if self.is_hogp_activated != active { in activate_hogp() 375 self.is_hogp_activated = active; in activate_hogp() 380 pub fn activate_hidp(&mut self, active: bool) { in activate_hidp() 381 if self.is_hidp_activated != active { in activate_hidp() 382 self.is_hidp_activated = active; in activate_hidp()
|
/packages/apps/Car/Radio/src/com/android/car/radio/widget/ |
D | BandSelectorFlat.java | 107 boolean active = btn.getTag() == ptype; in setType() 108 btn.setTextColor(ctx.getColor(active in setType() 111 btn.setBackground(ctx.getDrawable(active in setType()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | AppFocusTest.java | 84 public void onAppFocusChanged(int appType, boolean active) { in onAppFocusChanged() argument 85 Log.i(TAG, "onAppFocusChanged appType=" + appType + " active=" + active); in onAppFocusChanged() 87 mLastChangeAppActive = active; in onAppFocusChanged()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/referenceui/ |
D | FanSpeedBar.java | 224 private void setMaxButtonActive(boolean active) { in setMaxButtonActive() argument 226 if (active) { in setMaxButtonActive() 235 private void setOffButtonActive(boolean active) { in setOffButtonActive() argument 237 if (active) { in setOffButtonActive()
|
/packages/modules/Bluetooth/system/bta/le_audio/ |
D | devices.cc | 117 ase.active = false; in RemoveNode() 236 ase->active = false; in Deactivate() 1220 if (ases_pair.sink && ases_pair.sink->active) { in CigAssignCisConnHandlesToAses() 1224 if (ases_pair.source && ases_pair.source->active) { in CigAssignCisConnHandlesToAses() 1586 ase->active = true; in ConfigureAses() 2327 [](const auto& ase) { return ase.active; }); in GetFirstActiveAse() 2335 return (ase.active && (ase.direction == direction)); in GetFirstActiveAseByDirection() 2352 return ase.active && (*iter).direction == ase.direction; in GetNextActiveAseWithSameDirection() 2371 return ase.active && iter->direction != ase.direction; in GetNextActiveAseWithDifferentDirection() 2385 return (ase.active && (ase.data_path_state == state)); in GetFirstActiveAseByDataPathState() [all …]
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/ |
D | MsrpSession.java | 192 private final AtomicBoolean active; field in StreamReader 197 this.active = session.isOpen; in StreamReader() 201 while (active.get()) { in run() 212 active.compareAndSet(true, false); in run()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | HeadsetMediaButton.java | 66 public void setActive(boolean active) { in setActive() argument 67 mMediaSession.setActive(active); in setActive() 91 void setActive(boolean active); in setActive() argument
|
/packages/modules/adb/client/ |
D | usb_libusb.cpp | 120 bool active = false; member 146 read_block->active = false; in Cleanup() 213 read_block->active = false; in header_read_cb() 251 read_block->active = false; in payload_read_cb() 295 read->active = true; in SubmitRead() 560 if (!read_block->active) { in CancelReadTransfer() 629 return !header_read_.active && !payload_read_.active; in CloseDevice()
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/shadows/ |
D | ShadowMediaSession.java | 81 public void setActive(boolean active) { in setActive() argument 82 mActive = active; in setActive()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/util/ |
D | IoUtilsTest.java | 129 File active = new File(mTestDir, "active"); in testDeleteStaleData() local 130 active.createNewFile(); in testDeleteStaleData() 137 assertThat(active.exists()).isTrue(); in testDeleteStaleData()
|
/packages/modules/DnsResolver/ |
D | PrivateDnsConfiguration.cpp | 138 const bool active = tmp.find(identity) != tmp.end(); in setDot() local 139 server.setActive(active); in setDot() 142 if (!server.active() && server.validationState() == Validation::success) { in setDot() 179 if (server.active()) { in getStatusLocked() 288 if (!target->active()) return Errorf("Server is not active"); in requestDotValidation() 428 } else if (!serverPair->second.active()) { in recordDotValidation() 474 if (!server.active()) return false; in needsValidation()
|