/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 97 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/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/webrtc/webrtc/base/ |
D | windowpicker_unittest.cc | 28 rtc::scoped_ptr<rtc::WindowPicker> picker( in TEST() local 30 EXPECT_TRUE(picker->Init()); in TEST() 32 EXPECT_TRUE(picker->GetWindowList(&descriptions)); in TEST() 43 rtc::scoped_ptr<rtc::WindowPicker> picker( in TEST() local 45 EXPECT_TRUE(picker->Init()); in TEST() 47 EXPECT_TRUE(picker->GetDesktopList(&descriptions)); in TEST() 51 EXPECT_TRUE(picker->GetDesktopDimensions(descriptions[0].id(), &width, in TEST()
|
D | macwindowpicker_unittest.cc | 28 MacWindowPicker picker, picker2; in TEST() local 31 EXPECT_TRUE(picker.Init()); in TEST() 32 EXPECT_TRUE(picker.GetWindowList(&descriptions)); in TEST() 35 EXPECT_FALSE(picker.Init()); in TEST() 36 EXPECT_FALSE(picker.GetWindowList(&descriptions)); in TEST()
|
/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/syzkaller/vendor/google.golang.org/grpc/ |
D | pickfirst.go | 62 b.cc.UpdateBalancerState(connectivity.Idle, &picker{sc: b.sc}) 83 b.cc.UpdateBalancerState(s, &picker{sc: sc}) 85 b.cc.UpdateBalancerState(s, &picker{err: balancer.ErrNoSubConnAvailable}) 87 b.cc.UpdateBalancerState(s, &picker{err: balancer.ErrTransientFailure}) 94 type picker struct { struct 99 func (p *picker) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balan… argument
|
D | picker_wrapper.go | 43 picker balancer.Picker member 102 bp.picker = p 167 if bp.picker == nil { 184 p = bp.picker
|
/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 | 83 private CustomNumberPicker picker; field in NumberPickerPreference.NumberPickerPreferenceDialogFragmentCompat 118 picker = (CustomNumberPicker) view.findViewById(R.id.numpicker_pref); in onBindDialogView() 119 picker.setMaxValue(getNumberPickerPreference().maxValue); in onBindDialogView() 120 picker.setMinValue(getNumberPickerPreference().minValue); in onBindDialogView() 121 picker.setValue(currentValue); in onBindDialogView() 127 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/grpc-grpc-java/grpclb/src/test/java/io/grpc/grpclb/ |
D | GrpclbLoadBalancerTest.java | 306 RoundRobinPicker picker = new RoundRobinPicker(Collections.<DropEntry>emptyList(), pickList); in roundRobinPickerNoDrop() local 313 assertSame(b1.result, picker.pickSubchannel(args1)); in roundRobinPickerNoDrop() 320 assertSame(b2.result, picker.pickSubchannel(args2)); in roundRobinPickerNoDrop() 327 assertSame(b1.result, picker.pickSubchannel(args3)); in roundRobinPickerNoDrop() 347 RoundRobinPicker picker = new RoundRobinPicker(dropList, pickList); in roundRobinPickerWithDrop() local 354 assertSame(b1.result, picker.pickSubchannel(args1)); in roundRobinPickerWithDrop() 362 assertSame(DROP_PICK_RESULT, picker.pickSubchannel(args2)); in roundRobinPickerWithDrop() 369 assertSame(b2.result, picker.pickSubchannel(args3)); in roundRobinPickerWithDrop() 377 assertSame(DROP_PICK_RESULT, picker.pickSubchannel(args4)); in roundRobinPickerWithDrop() 384 assertSame(b1.result, picker.pickSubchannel(args5)); in roundRobinPickerWithDrop() [all …]
|
/external/syzkaller/vendor/google.golang.org/grpc/balancer/base/ |
D | balancer.go | 45 picker: NewErrPicker(balancer.ErrNoSubConnAvailable), 62 picker balancer.Picker member 104 b.picker = NewErrPicker(balancer.ErrTransientFailure) 115 b.picker = b.pickerBuilder.Build(readySCs) 148 b.cc.UpdateBalancerState(b.state, b.picker)
|
/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/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()
|
D | NumberPicker.java | 41 void onChanged(NumberPicker picker, int oldVal, int newVal); in onChanged() argument
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | CLDRLocale.java | 526 public String getDisplayName(boolean combined, Transform<String, String> picker) { 527 return getDisplayName(getDefaultFormatter(), combined, picker); 624 …tring getDisplayName(NameFormatter engFormat, boolean combined, Transform<String, String> picker) { 625 return engFormat.getDisplayName(this, combined, picker);
|
/external/grpc-grpc-java/grpclb/src/main/java/io/grpc/grpclb/ |
D | GrpclbState.java | 715 private void maybeUpdatePicker(ConnectivityState state, RoundRobinPicker picker) { in maybeUpdatePicker() argument 719 if (picker.dropList.equals(currentPicker.dropList) in maybeUpdatePicker() 720 && picker.pickList.equals(currentPicker.pickList)) { in maybeUpdatePicker() 725 currentPicker = picker; in maybeUpdatePicker() 726 helper.updateBalancingState(state, picker); in maybeUpdatePicker()
|
/external/python/cpython2/Doc/library/ |
D | colorpicker.rst | 13 The :mod:`ColorPicker` module provides access to the standard color picker
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestCLDRUtils.java | 181 Transform<String, String> picker = attrs.get("alt") in oldTestCLDRLocaleDataDriven() 188 picker); in oldTestCLDRLocaleDataDriven()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/ |
D | PickFirstLoadBalancerTest.java | 253 SubchannelPicker picker = pickerCaptor.getValue(); in requestConnection() local 256 picker.requestConnection(); in requestConnection()
|
/external/skqp/site/user/sample/ |
D | viewer.md | 27 … clicking and dragging will translate. Other display options and a slide picker can be found in th…
|