Home
last modified time | relevance | path

Searched refs:choice (Results 1 – 25 of 55) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/network/
DTetherEnabler.java281 public static boolean isTethering(@TetheringState int state, int choice) { in isTethering() argument
282 return (state & (1 << choice)) != TETHERING_OFF; in isTethering()
298 public void stopTethering(int choice) { in stopTethering() argument
300 if (isTethering(state, choice)) { in stopTethering()
302 mConnectivityManager.stopTethering(choice); in stopTethering()
303 if (choice == TETHERING_BLUETOOTH) { in stopTethering()
312 public void startTethering(int choice) { in startTethering() argument
313 if (choice == TETHERING_BLUETOOTH) { in startTethering()
317 if (isTethering(state, choice)) { in startTethering()
321 if (choice == TETHERING_BLUETOOTH && mBluetoothAdapter != null in startTethering()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DBluetoothActionFragment.java45 void onChoice(String key, int choice); in onChoice() argument
86 for (int choice : choices) { in onCreateActions()
88 .title(getString(choice)) in onCreateActions()
89 .id(choice) in onCreateActions()
115 for (int choice : choices) { in onGuidedActionClicked()
116 if (choice == id) { in onGuidedActionClicked()
117 listener.onChoice(key, choice); in onGuidedActionClicked()
DBluetoothActionActivity.java76 public void onChoice(String key, int choice) { in onChoice() argument
89 if (choice == YES) { in onChoice()
97 if (choice == YES) { in onChoice()
103 if (choice == YES) { in onChoice()
109 if (choice == YES) { in onChoice()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DCompatibilityScorer.java112 ScoredCandidate choice = ScoredCandidate.NONE; in scoreCandidates() local
115 if (scoredCandidate.value > choice.value) { in scoreCandidates()
116 choice = scoredCandidate; in scoreCandidates()
121 return choice; in scoreCandidates()
DBubbleFunScorer.java122 ScoredCandidate choice = ScoredCandidate.NONE; in scoreCandidates() local
125 if (scoredCandidate.value > choice.value) { in scoreCandidates()
126 choice = scoredCandidate; in scoreCandidates()
131 return choice; in scoreCandidates()
DScoreCardBasedScorer.java135 ScoredCandidate choice = ScoredCandidate.NONE; in scoreCandidates() local
138 if (scoredCandidate.value > choice.value) { in scoreCandidates()
139 choice = scoredCandidate; in scoreCandidates()
144 return choice; in scoreCandidates()
DThroughputScorer.java272 ScoredCandidate choice = ScoredCandidate.NONE; in scoreCandidates() local
276 if (scoredCandidate.value > choice.value) { in scoreCandidates()
277 choice = scoredCandidate; in scoreCandidates()
282 return choice; in scoreCandidates()
DWifiNetworkSelector.java1530 WifiCandidates.ScoredCandidate choice = activeScorer.scoreCandidates(group); in selectNetwork() local
1531 if (choice == null) continue; in selectNetwork()
1532 ScanDetail scanDetail = getScanDetailForCandidateKey(choice.candidateKey); in selectNetwork()
1535 .getConfiguredNetwork(choice.candidateKey.networkId); in selectNetwork()
1555 WifiCandidates.ScoredCandidate choice; in selectNetwork() local
1557 choice = wifiCandidates.choose(candidateScorer); in selectNetwork()
1562 int networkId = choice.candidateKey == null in selectNetwork()
1564 : choice.candidateKey.networkId; in selectNetwork()
1568 legacyOverrideWanted = choice.userConnectChoiceOverride; in selectNetwork()
1570 updateChosenPasspointNetwork(choice); in selectNetwork()
[all …]
DWifiCandidates.java818 ScoredCandidate choice = candidateScorer.scoreCandidates(candidates); in choose() local
819 return choice == null ? ScoredCandidate.NONE : choice; in choose()
DREADME.txt48 … mode will be on even though Wi-Fi is being turned off. The user has the choice to turn this notif…
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DUserChoiceInfo.java71 public void put(@PAGE int page, int choice) { in put() argument
72 mChoiceSummary.put(page, choice); in put()
82 public boolean choiceChosen(CharSequence choice, @PAGE int page) { in choiceChosen() argument
86 return TextUtils.equals(choice, mDataSummary.get(page)); in choiceChosen()
DAdvancedOptionsFlowInfo.java89 public boolean choiceChosen(CharSequence choice, @PAGE int page) { in choiceChosen() argument
93 return TextUtils.equals(choice, mPageSummary.get(page)); in choiceChosen()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoSourceDialogFragment.java79 final ChoiceListItem choice = choices.get(which); in onCreateDialog()
80 switch (choice.getId()) { in onCreateDialog()
DPhotoActionPopup.java108 final ChoiceListItem choice = choices.get(position); in createPopupMenu()
109 switch (choice.getId()) { in createPopupMenu()
/packages/modules/Bluetooth/tools/rootcanal/scripts/
Dsimple_link_layer_socket.py64 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \
69 return ''.join(random.SystemRandom().choice(string.digits) for _ in \
Dsend_simple_commands.py78 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \
83 return ''.join(random.SystemRandom().choice(string.digits) for _ in \
Dtest_channel.py53 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \
58 return ''.join(random.SystemRandom().choice(string.digits) for _ in \
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DCandidateScorerTest.java173 ScoredCandidate choice = mCandidateScorer.scoreCandidates(candidates); in evaluate() local
174 return Math.max(-999999999.0, choice.value); in evaluate()
535 ScoredCandidate choice = mCandidateScorer.scoreCandidates(candidates); in testPreferCurrentNetworkWithInternetOverNetworkWithNoInternet() local
536 assertEquals(score1, choice.value, TOL); in testPreferCurrentNetworkWithInternetOverNetworkWithNoInternet()
/packages/providers/MediaProvider/
Dmediaprovider_flags.aconfig32 …ription: "This flag will enable selection of items based on recency of selection in picker choice."
/packages/apps/Settings/src/com/android/settings/network/tether/
DTetherSettings.java561 private void startTethering(int choice) { in startTethering() argument
562 if (choice == TETHERING_BLUETOOTH) { in startTethering()
573 mCm.startTethering(choice, true, mStartTetheringCallback, mHandler); in startTethering()
/packages/modules/Bluetooth/system/blueberry/tests/connectivity/
Dbluetooth_latency_test.py41 random.choice(string.ascii_letters + string.digits) for _ in range(6)))
/packages/modules/Wifi/framework/java/android/net/wifi/
DBaseWifiService.java210 public void allowAutojoinGlobal(boolean choice) { in allowAutojoinGlobal() argument
215 public void allowAutojoinGlobal(boolean choice, String packageName, Bundle extras) { in allowAutojoinGlobal() argument
225 public void allowAutojoin(int netId, boolean choice) { in allowAutojoin() argument
/packages/modules/IntentResolver/tests/
DREADME.md11 **Use cases**: The first choice for all new code. Fakes and other reusable test code should be plac…
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java185 public void setSizeChoice(int choice) { in setSizeChoice() argument
187 if (mSizeChoice == choice) return; in setSizeChoice()
188 mSizeChoice = choice; in setSizeChoice()
/packages/modules/Bluetooth/system/blueberry/utils/
Dbt_test_utils.py97 return ''.join(random.choice(chars) for _ in range(size))

123