/external/tensorflow/tensorflow/core/lib/random/ |
D | weighted_picker_test.cc | 32 static void CheckUniform(SimplePhilox* rnd, WeightedPicker* picker, int trials); 33 static void CheckSkewed(SimplePhilox* rnd, WeightedPicker* picker, int trials); 42 WeightedPicker picker(0); in TEST() local 43 EXPECT_EQ(picker.Pick(&rnd), -1); in TEST() 48 WeightedPicker picker(1); in TEST() local 49 EXPECT_EQ(picker.Pick(&rnd), 0); in TEST() 50 EXPECT_EQ(picker.Pick(&rnd), 0); in TEST() 51 EXPECT_EQ(picker.Pick(&rnd), 0); in TEST() 56 WeightedPicker picker(0); in TEST() local 58 picker.Append(1); in TEST() [all …]
|
D | distribution_sampler_test.cc | 93 DistributionSampler picker(weights); in BM_DistributionSampler() local 96 r |= picker.Sample(&rand); in BM_DistributionSampler()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/util/ |
D | RoundRobinLoadBalancerTest.java | 207 SubchannelPicker picker = pickerCaptor.getValue(); in pickAfterResolvedUpdatedHosts() local 208 assertThat(getList(picker)).containsExactly(removedSubchannel, oldSubchannel); in pickAfterResolvedUpdatedHosts() 240 picker = pickerCaptor.getValue(); in pickAfterResolvedUpdatedHosts() 241 assertThat(getList(picker)).containsExactly(oldSubchannel, newSubchannel); in pickAfterResolvedUpdatedHosts() 300 ReadyPicker picker = new ReadyPicker(Collections.unmodifiableList( in pickerRoundRobin() local 304 assertThat(picker.getList()).containsExactly(subchannel, subchannel1, subchannel2); in pickerRoundRobin() 306 assertEquals(subchannel, picker.pickSubchannel(mockArgs).getSubchannel()); in pickerRoundRobin() 307 assertEquals(subchannel1, picker.pickSubchannel(mockArgs).getSubchannel()); in pickerRoundRobin() 308 assertEquals(subchannel2, picker.pickSubchannel(mockArgs).getSubchannel()); in pickerRoundRobin() 309 assertEquals(subchannel, picker.pickSubchannel(mockArgs).getSubchannel()); in pickerRoundRobin() [all …]
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | DelayedClientTransportTest.java | 346 SubchannelPicker picker = mock(SubchannelPicker.class); in reprocessSemantics() local 347 when(picker.pickSubchannel(any(PickSubchannelArgs.class))).thenReturn( in reprocessSemantics() 357 InOrder inOrder = inOrder(picker); in reprocessSemantics() 358 delayedTransport.reprocess(picker); in reprocessSemantics() 361 inOrder.verify(picker).pickSubchannel(ff1args); in reprocessSemantics() 362 inOrder.verify(picker).pickSubchannel(ff2args); in reprocessSemantics() 363 inOrder.verify(picker).pickSubchannel(ff3args); in reprocessSemantics() 364 inOrder.verify(picker).pickSubchannel(ff4args); in reprocessSemantics() 365 inOrder.verify(picker).pickSubchannel(wfr1args); in reprocessSemantics() 366 inOrder.verify(picker).pickSubchannel(wfr2args); in reprocessSemantics() [all …]
|
/external/perfetto/src/trace_processor/containers/ |
D | row_map_unittest.cc | 158 RowMap picker(4, 7); in TEST() local 159 auto res = rm.SelectRows(picker); in TEST() 169 RowMap picker(1u, 3u); in TEST() local 170 auto res = rm.SelectRows(picker); in TEST() 179 RowMap picker(2, 5); in TEST() local 180 auto res = rm.SelectRows(picker); in TEST() 190 RowMap picker(BitVector{true, false, false, true}); in TEST() local 191 auto res = rm.SelectRows(picker); in TEST() 200 RowMap picker(BitVector{false, true}); in TEST() local 201 auto res = rm.SelectRows(picker); in TEST() [all …]
|
D | bit_vector_unittest.cc | 230 BitVector picker(3u, true); in TEST() local 231 picker.Clear(1); in TEST() 233 bv.UpdateSetBits(picker); in TEST() 246 BitVector picker(2u, true); in TEST() local 247 picker.Clear(1); in TEST() 249 bv.UpdateSetBits(picker); in TEST()
|
D | bit_vector_benchmark.cc | 244 BitVector picker; in BM_BitVectorUpdateSetBits() local 252 picker.AppendTrue(); in BM_BitVectorUpdateSetBits() 254 picker.AppendFalse(); in BM_BitVectorUpdateSetBits() 266 copy.UpdateSetBits(picker); in BM_BitVectorUpdateSetBits()
|
/external/adhd/scripts/audio_tuning/frontend/ |
D | google_drive_picker.js | 14 var picker = new Picker({ 58 this.picker = new google.picker.PickerBuilder(). 59 addView(google.picker.ViewId.DOCS). 69 if (data[google.picker.Response.ACTION] == google.picker.Action.PICKED) { 70 var file = data[google.picker.Response.DOCUMENTS][0]; 71 var id = file[google.picker.Document.ID];
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowNumberPickerTest.java | 18 NumberPicker picker = new NumberPicker(ApplicationProvider.getApplicationContext()); in shouldFireListeners() local 21 picker.setOnValueChangedListener(listener); in shouldFireListeners() 23 ShadowNumberPicker shadowNumberPicker = Shadows.shadowOf(picker); in shouldFireListeners() 24 shadowNumberPicker.getOnValueChangeListener().onValueChange(picker, 5, 10); in shouldFireListeners() 26 verify(listener).onValueChange(picker, 5, 10); in shouldFireListeners()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/ |
D | PickFirstBalancerFactory.java | 98 SubchannelPicker picker; in handleSubchannelState() local 101 picker = new RequestConnectionPicker(subchannel); in handleSubchannelState() 106 picker = new Picker(PickResult.withNoResult()); in handleSubchannelState() 109 picker = new Picker(PickResult.withSubchannel(subchannel)); in handleSubchannelState() 112 picker = new Picker(PickResult.withError(stateInfo.getStatus())); in handleSubchannelState() 118 helper.updateBalancingState(currentState, picker); in handleSubchannelState()
|
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/ |
D | NumberPickerPreference.java | 89 private CustomNumberPicker picker; field in NumberPickerPreference.NumberPickerPreferenceDialogFragmentCompat 124 picker = (CustomNumberPicker) view.findViewById(R.id.numpicker_pref); in onBindDialogView() 125 picker.setMaxValue(getNumberPickerPreference().maxValue); in onBindDialogView() 126 picker.setMinValue(getNumberPickerPreference().minValue); in onBindDialogView() 127 picker.setValue(currentValue); in onBindDialogView() 133 int value = picker.getValue(); in onDialogClosed()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | DelayedClientTransport.java | 134 SubchannelPicker picker; in newStream() local 142 picker = lastPicker; in newStream() 149 PickResult pickResult = picker.pickSubchannel(args); in newStream() 165 picker = lastPicker; in newStream() 276 final void reprocess(@Nullable SubchannelPicker picker) { in reprocess() argument 279 lastPicker = picker; in reprocess() 281 if (picker == null || !hasPendingStreams()) { in reprocess() 289 PickResult pickResult = picker.pickSubchannel(stream.args); in reprocess()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/util/ |
D | RoundRobinLoadBalancerFactory.java | 263 private void updateBalancingState(ConnectivityState state, RoundRobinPicker picker) { in updateBalancingState() argument 264 if (state != currentState || !picker.isEquivalentTo(currentPicker)) { in updateBalancingState() 265 helper.updateBalancingState(state, picker); in updateBalancingState() 267 currentPicker = picker; in updateBalancingState() 405 abstract boolean isEquivalentTo(RoundRobinPicker picker); in isEquivalentTo() argument 460 boolean isEquivalentTo(RoundRobinPicker picker) { in isEquivalentTo() argument 461 if (!(picker instanceof ReadyPicker)) { in isEquivalentTo() 464 ReadyPicker other = (ReadyPicker) picker; in isEquivalentTo() 487 boolean isEquivalentTo(RoundRobinPicker picker) { in isEquivalentTo() argument 488 return picker instanceof EmptyPicker && (Objects.equal(status, ((EmptyPicker) picker).status) in isEquivalentTo() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/lb_policy/weighted_target/ |
D | weighted_target.cc | 88 explicit ChildPickerWrapper(std::unique_ptr<SubchannelPicker> picker) in ChildPickerWrapper() argument 89 : picker_(std::move(picker)) {} in ChildPickerWrapper() 151 std::unique_ptr<SubchannelPicker> picker) override; 166 std::unique_ptr<SubchannelPicker> picker); 378 std::unique_ptr<SubchannelPicker> picker; in UpdateStateLocked() local 382 picker = absl::make_unique<WeightedPicker>(std::move(picker_list)); in UpdateStateLocked() 386 picker = in UpdateStateLocked() 395 picker = absl::make_unique<TransientFailurePicker>(error); in UpdateStateLocked() 398 std::move(picker)); in UpdateStateLocked() 518 std::unique_ptr<SubchannelPicker> picker) { in OnConnectivityStateUpdateLocked() argument [all …]
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/dialog/ |
D | DurationPickerDialog.java | 40 final DurationPicker picker = new DurationPicker(activity); in getDurationFromDialog() local 44 alert.setView(picker); in getDurationFromDialog() 48 done.onSet(picker.getDuration()); in getDurationFromDialog()
|
/external/grpc-grpc-java/grpclb/src/test/java/io/grpc/grpclb/ |
D | GrpclbLoadBalancerTest.java | 305 RoundRobinPicker picker = new RoundRobinPicker(Collections.<DropEntry>emptyList(), pickList); in roundRobinPickerNoDrop() local 312 assertSame(b1.result, picker.pickSubchannel(args1)); in roundRobinPickerNoDrop() 319 assertSame(b2.result, picker.pickSubchannel(args2)); in roundRobinPickerNoDrop() 326 assertSame(b1.result, picker.pickSubchannel(args3)); in roundRobinPickerNoDrop() 346 RoundRobinPicker picker = new RoundRobinPicker(dropList, pickList); in roundRobinPickerWithDrop() local 353 assertSame(b1.result, picker.pickSubchannel(args1)); in roundRobinPickerWithDrop() 361 assertSame(DROP_PICK_RESULT, picker.pickSubchannel(args2)); in roundRobinPickerWithDrop() 368 assertSame(b2.result, picker.pickSubchannel(args3)); in roundRobinPickerWithDrop() 376 assertSame(DROP_PICK_RESULT, picker.pickSubchannel(args4)); in roundRobinPickerWithDrop() 383 assertSame(b1.result, picker.pickSubchannel(args5)); in roundRobinPickerWithDrop() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/lb_policy/xds/ |
D | xds_cluster_manager.cc | 85 std::unique_ptr<SubchannelPicker> picker) in ChildPickerWrapper() argument 86 : name_(std::move(name)), picker_(std::move(picker)) {} in ChildPickerWrapper() 152 std::unique_ptr<SubchannelPicker> picker) override; 340 std::unique_ptr<SubchannelPicker> picker; in UpdateStateLocked() local 363 picker = absl::make_unique<ClusterPicker>(std::move(cluster_map)); in UpdateStateLocked() 368 picker = in UpdateStateLocked() 377 picker = absl::make_unique<TransientFailurePicker>(error); in UpdateStateLocked() 380 std::move(picker)); in UpdateStateLocked() 551 std::unique_ptr<SubchannelPicker> picker) { in UpdateState() argument 559 status.ToString().c_str(), picker.get()); in UpdateState() [all …]
|
D | xds_cluster_impl.cc | 195 explicit RefCountedPicker(std::unique_ptr<SubchannelPicker> picker) in RefCountedPicker() argument 196 : picker_(std::move(picker)) {} in RefCountedPicker() 207 RefCountedPtr<RefCountedPicker> picker); 232 std::unique_ptr<SubchannelPicker> picker) override; 280 RefCountedPtr<RefCountedPicker> picker) in Picker() argument 287 picker_(std::move(picker)) { in Picker() 575 std::unique_ptr<SubchannelPicker> picker) { in UpdateState() argument 583 status.ToString().c_str(), picker.get()); in UpdateState() 589 MakeRefCounted<RefCountedPicker>(std::move(picker)); in UpdateState()
|
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/lb_policy/priority/ |
D | priority.cc | 133 explicit RefCountedPicker(std::unique_ptr<SubchannelPicker> picker) in RefCountedPicker() argument 134 : picker_(std::move(picker)) {} in RefCountedPicker() 144 explicit RefCountedPickerWrapper(RefCountedPtr<RefCountedPicker> picker) in RefCountedPickerWrapper() argument 145 : picker_(std::move(picker)) {} in RefCountedPickerWrapper() 163 std::unique_ptr<SubchannelPicker> picker) override; 178 std::unique_ptr<SubchannelPicker> picker); 609 std::unique_ptr<SubchannelPicker> picker) { in OnConnectivityStateUpdateLocked() argument 615 picker.get()); in OnConnectivityStateUpdateLocked() 620 picker_wrapper_ = MakeRefCounted<RefCountedPicker>(std::move(picker)); in OnConnectivityStateUpdateLocked() 759 std::unique_ptr<SubchannelPicker> picker) { in UpdateState() argument [all …]
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/widget/ |
D | NumberPickerButton.java | 46 public void setNumberPicker(NumberPicker picker) { in setNumberPicker() argument 47 mNumberPicker = picker; in setNumberPicker()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | CLDRLocale.java | 540 public String getDisplayName(boolean combined, Transform<String, String> picker) { 541 return getDisplayName(getDefaultFormatter(), combined, picker); 637 …tring getDisplayName(NameFormatter engFormat, boolean combined, Transform<String, String> picker) { 638 return engFormat.getDisplayName(this, combined, picker);
|
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/lb_policy/ |
D | child_policy_handler.cc | 50 std::unique_ptr<SubchannelPicker> picker) override { in UpdateState() argument 73 std::move(picker)); in UpdateState()
|
/external/python/cpython3/Doc/library/ |
D | tkinter.colorchooser.rst | 13 as an interface to the native color picker dialog. ``Chooser`` implements
|
/external/python/cpython2/Doc/library/ |
D | colorpicker.rst | 13 The :mod:`ColorPicker` module provides access to the standard color picker
|
/external/grpc-grpc-java/grpclb/src/main/java/io/grpc/grpclb/ |
D | GrpclbState.java | 709 private void maybeUpdatePicker(ConnectivityState state, RoundRobinPicker picker) { in maybeUpdatePicker() argument 713 if (picker.dropList.equals(currentPicker.dropList) in maybeUpdatePicker() 714 && picker.pickList.equals(currentPicker.pickList)) { in maybeUpdatePicker() 719 currentPicker = picker; in maybeUpdatePicker() 720 helper.updateBalancingState(state, picker); in maybeUpdatePicker()
|