Home
last modified time | relevance | path

Searched refs:STATE_ON (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionActivity.java96 case BluetoothAdapter.STATE_ON: in onCreate()
138 case BluetoothAdapter.STATE_ON: { in onCreate()
209 if (mLocalAdapter.getBluetoothState() == BluetoothAdapter.STATE_ON) { in onActivityResult()
382 if (currentState == BluetoothAdapter.STATE_ON) { in onReceive()
DLocalDeviceNameDialogFragment.java47 == BluetoothAdapter.STATE_ON)) {
DBluetoothPairingDetail.java130 case BluetoothAdapter.STATE_ON: in updateContent()
DDevicePickerFragment.java157 if (bluetoothState == BluetoothAdapter.STATE_ON) { in onBluetoothStateChanged()
DBluetoothEnabler.java142 case BluetoothAdapter.STATE_ON: in handleStateChanged()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java134 when(mockAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON); in testAdapterOnAutoConnect()
163 intent.putExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.STATE_ON); in testAdapterOnAutoConnect()
199 when(mockAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON); in testReconnectOnPartialConnect()
262 when(mockAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON); in testNoReconnectOnNoConnect()
/packages/services/Telecomm/src/com/android/server/telecom/
DInCallTonePlayer.java93 private static final int STATE_ON = 1; field in InCallTonePlayer
254 mState = STATE_ON; in run()
303 if (mState == STATE_ON) { in stopTone()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothEnablerTest.java190 when(mBluetoothAdapter.getBluetoothState()).thenReturn(BluetoothAdapter.STATE_ON); in startWithBluetoothOn_switchIsOn()
203 when(mBluetoothAdapter.getBluetoothState()).thenReturn(BluetoothAdapter.STATE_ON); in bluetoothTurnsOff_switchTurnsOff()
240 on.putExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.STATE_ON); in bluetoothTurnsOn_switchTurnsOn()
DBluetoothSummaryUpdaterTest.java146 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_ON); in onBluetoothStateChanged_btEnabled_connected_shouldSendConnectedSummary()
160 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_ON); in onBluetoothStateChanged_btEnabled_connectedMisMatch_shouldSendNotConnected()
206 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_ON); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary()
DBluetoothPairingDetailTest.java121 mFragment.updateContent(BluetoothAdapter.STATE_ON); in testUpdateContent_stateOn_addDevices()
144 mFragment.updateContent(BluetoothAdapter.STATE_ON); in testOnScanningStateChanged_restartScanAfterInitialScanning()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java320 if (BluetoothAdapter.STATE_ON != entry.getValue()) { in processProfileServiceStateChanged()
501 setGattProfileServiceState(supportedProfileServices,BluetoothAdapter.STATE_ON); in BleOnProcessStart()
512 setProfileServiceState(supportedProfileServices,BluetoothAdapter.STATE_ON); in startCoreServices()
656 if (state != BluetoothAdapter.STATE_ON && state != BluetoothAdapter.STATE_OFF) { in setGattProfileServiceState()
665 expectedCurrentState= BluetoothAdapter.STATE_ON; in setGattProfileServiceState()
700 if (state != BluetoothAdapter.STATE_ON && state != BluetoothAdapter.STATE_OFF) { in setProfileServiceState()
708 expectedCurrentState= BluetoothAdapter.STATE_ON; in setProfileServiceState()
1397 return mAdapterProperties.getState() == BluetoothAdapter.STATE_ON; in isEnabled()
1955 if (mAdapterProperties.getState() != BluetoothAdapter.STATE_ON || in reportActivityInfo()
DPhonePolicy.java119 if (newState == BluetoothAdapter.STATE_ON) {
275 if (mAdapterService.getState() != BluetoothAdapter.STATE_ON) { in autoConnect()
345 if (mAdapterService.getState() != BluetoothAdapter.STATE_ON) { in processConnectOtherProfiles()
DProfileService.java143 } else if (state == BluetoothAdapter.STATE_ON) { in onStartCommand()
211 notifyProfileServiceStateChanged(BluetoothAdapter.STATE_ON); in doStart()
DRemoteDevices.java486 if (mAdapterService.getState() == BluetoothAdapter.STATE_ON) { in devicePropertyChangedCallback()
541 if (state == BluetoothAdapter.STATE_ON || state == BluetoothAdapter.STATE_TURNING_ON) { in aclStateChangeCallback()
556 if (state == BluetoothAdapter.STATE_ON || state == BluetoothAdapter.STATE_TURNING_OFF) { in aclStateChangeCallback()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DPlayerApplicationSettings.java208 return BluetoothAvrcpPlayerSettings.STATE_ON; in mapAttribIdValtoAvrcpPlayerSetting()
249 case BluetoothAvrcpPlayerSettings.STATE_ON: in mapAvrcpPlayerSettingstoBTattribVal()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DObexServerSockets.java151 (state != BluetoothAdapter.STATE_ON)) { in create()
246 if ((mAdapter != null) && (mAdapter.getState() == BluetoothAdapter.STATE_ON)) { in onAcceptFailed()
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java610 if (mState == NfcAdapter.STATE_ON) { in enableInternal()
644 updateState(NfcAdapter.STATE_ON); in enableInternal()
859 return mState == NfcAdapter.STATE_ON && mIsNdefPushEnabled; in isNdefPushEnabled()
1589 return (mState == NfcAdapter.STATE_ON || mState == NfcAdapter.STATE_TURNING_OFF); in isNfcEnabledOrShuttingDown()
1595 return mState == NfcAdapter.STATE_ON; in isNfcEnabled()
2433 case NfcAdapter.STATE_ON: in stateToString()
/packages/apps/Settings/src/com/android/settings/
DTetherSettings.java325 case BluetoothAdapter.STATE_ON: in onReceive()
469 if (btState == BluetoothAdapter.STATE_ON && bluetoothPan != null in updateBluetoothState()
/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
DAnswerProximitySensor.java110 return display.getState() == Display.STATE_ON; in isDefaultDisplayOn()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java164 (state != BluetoothAdapter.STATE_ON)) { in initSocket()
683 } else if (state == BluetoothAdapter.STATE_ON) { in onReceive()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppBtEnablingActivity.java142 case BluetoothAdapter.STATE_ON:
/packages/services/Car/service/src/com/android/car/
DSystemInterface.java98 return disp.getState() == Display.STATE_ON; in isMainDisplayOn()
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcEnabler.java121 case NfcAdapter.STATE_ON: in handleNfcStateChanged()
/packages/apps/Nfc/src/com/android/nfc/beam/
DBeamSendService.java151 if (state == BluetoothAdapter.STATE_ON) { in handleBluetoothStateChanged()
/packages/apps/Settings/tests/app/src/com/android/settings/tests/
DBluetoothRequestPermissionTest.java159 case BluetoothAdapter.STATE_ON:

12