code
stringlengths
10
174k
nl
stringlengths
3
129k
public T caseEntryEvent(EntryEvent object){ return null; }
Returns the result of interpreting the object as an instance of '<em>Entry Event</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
@Deprecated public boolean allowThreadSuspension(boolean b){ return true; }
The definition of this method depends on the deprecated method <code>suspend()</code>. The behavior of this call was never specified.
public String toString(){ return image; }
Returns the image.
@Override @SuppressWarnings("unchecked") public synchronized <T>T[] toArray(T[] contents){ if (elementCount > contents.length) { throw new RuntimeException("Collection.toArray(T[]) requires an array of the same size as the collection to be passed as a parameter. "); } System.arraycopy(elementData,0,contents,0...
Returns an array containing all elements contained in this vector. If the specified array is large enough to hold the elements, the specified array is used, otherwise an array of the same type is created. If the specified array is used and is larger than this vector, the array element following the collection elements ...
@Override public String globalInfo(){ return "Outputs the received results in arff format to " + "a Writer. All results must be received before the instances can be " + "written out."; }
Returns a string describing this result listener
public void clear(){ int max=bits.length; for (int i=0; i < max; i++) { bits[i]=0; } }
Clears all bits (sets to false).
public boolean isEncodeDefaults(){ return encodeDefaults; }
Returns if default values of member variables should be encoded.
static void initPlanCalcScore(MatsimConfigType matsim4urbansimConfigPart1,Config config){ log.info("Setting PlanCalcScore to config..."); String activityType_0=matsim4urbansimConfigPart1.getActivityType0(); String activityType_1=matsim4urbansimConfigPart1.getActivityType1(); ActivityParams homeActivity=new Acti...
setting planCalcScore parameter
public void addEllipse(float latPoint,float lonPoint,float majorAxisSpan,float minorAxisSpan,int units,float rotationAngle,LinkProperties properties) throws IOException { LinkEllipse.write(latPoint,lonPoint,majorAxisSpan,minorAxisSpan,units,rotationAngle,properties,link.dos); }
Write an ellipse with Lat/Lon placement with axis defined in terms of distance.
public void startDocument() throws SAXException { }
Receive notification of the beginning of the document. <p>By default, do nothing. Application writers may override this method in a subclass to take specific actions at the beginning of a document (such as allocating the root node of a tree or creating an output file).</p>
public static boolean waitForCondition(GridAbsPredicate cond,long timeout) throws IgniteInterruptedCheckedException { long curTime=U.currentTimeMillis(); long endTime=curTime + timeout; if (endTime < 0) endTime=Long.MAX_VALUE; while (curTime < endTime) { if (cond.apply()) return true; U.sleep(DFLT...
Waits for condition, polling in busy wait loop.
public AztecDetectorResult detect() throws NotFoundException { Point pCenter=getMatrixCenter(); Point[] bullEyeCornerPoints=getBullEyeCornerPoints(pCenter); extractParameters(bullEyeCornerPoints); ResultPoint[] corners=getMatrixCornerPoints(bullEyeCornerPoints); BitMatrix bits=sampleGrid(image,corners[shift %...
<p>Detects an Aztec Code in an image.</p>
public void removeSupportedOptions(Set<String> unmatchedProcessorOptions){ unmatchedProcessorOptions.removeAll(supportedOptionNames); }
Remove options that are matched by this processor.
public static <T>Number count(T[] self,@ClosureParams(FirstParam.Component.class) Closure closure){ return count((Iterable)Arrays.asList(self),closure); }
Counts the number of occurrences which satisfy the given closure from inside this array.
public head addElement(String hashcode,Element element){ addElementToRegistry(hashcode,element); return (this); }
Adds an Element to the element.
@After public void tearDown(){ if (this.system != null) { this.system.disconnect(); } this.system=null; }
Closes the "loner" <code>DistributedSystem</code>
public BatchDestroyOperation(EntryEventImpl event){ super(event); }
Creates a new instance of DestroyOperation
public BusquedaDetalleVO estaSignaturaEntregada(String signatura){ Collection detallesPrestamos=null; boolean encontrado=false; BusquedaDetalleVO resultado=null; if (signatura != null && signatura.trim().length() > 0) { detallesPrestamos=this.getUnidadesEntregadasLikeSignatura(signatura,DBUtils.CONTIENE_LIK...
Comprueba si una signatura de una unidad documental ha sido entregada.
public static String of(String classname){ if (classname.equals("void")) return "V"; else if (classname.equals("int")) return "I"; else if (classname.equals("byte")) return "B"; else if (classname.equals("long")) return "J"; else if (classname.equals("double")) return "D"; else if (classname....
Converts to a descriptor from a Java class name
public void stop(){ ThreadUtils.assertOnUiThread(); Log.d(TAG,"Disabling sync"); InvalidationController.get(mContext).stop(); mProfileSyncService.requestStop(); if (AndroidSyncSettings.isMasterSyncEnabled(mContext)) { AndroidSyncSettings.disableChromeSync(mContext); } }
Stops Sync if a user is currently signed in. Affects native sync, the invalidation controller, and the Android sync settings.
@Override public String toString(){ return String.format("%s, bitSize=%d bits, %d members, id=%d",name,bitSize,members.size(),id); }
Note: this method shouldn't be used for displaying types in binnavi. The purpose of this function is to make debugging more convenient.
public static <U,I,F>Function<U,Predicate<I>> withFeatures(FeatureData<I,F,?> featureData){ Set<I> itemsWithFeatures=featureData.getItemsWithFeatures().collect(Collectors.toSet()); return null; }
Item filter that discard items for which no feature data is available.
private void updateProgress(String progressLabel,int progress){ if (myHost != null && ((progress != previousProgress) || (!progressLabel.equals(previousProgressLabel)))) { myHost.updateProgress(progressLabel,progress); } previousProgress=progress; previousProgressLabel=progressLabel; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public Map<String,String> toMap(){ return npv; }
To NPV map by reference (no copy).
public void sendSipCancel(SipDialogPath dialog) throws PayloadException, NetworkException { try { if (dialog.getInvite().getStackTransaction() instanceof ServerTransaction) { return; } SipRequest cancel=SipMessageFactory.createCancel(dialog); SessionAuthenticationAgent agent=dialog.getAuthentica...
Send a SIP CANCEL
public void test_query_join_2shards_nothingBoundOnAccessPath() throws Exception { final Var<?> x=Var.var("x"); final Var<?> y=Var.var("y"); final int startId=1; final int joinId=2; final int predId=3; final int sliceId=4; final StartOp startOp=new StartOp(new BOp[]{},NV.asMap(new NV[]{new NV(Predicate.Ann...
Test the ability run a simple join which is mapped across two index partitions. There are three operators. One feeds an empty binding set[] into the join, another is the predicate for the access path on which the join will read (no variables are bound so it will read everything), and the third is the join itself.
public static double[] toDoubleArray(char[] array){ double[] result=new double[array.length]; for (int i=0; i < array.length; i++) { result[i]=(double)array[i]; } return result; }
Coverts given chars array to array of doubles.
public static void openAppDetail(String packageName,Context context){ Intent intent=new Intent(); final int apiLevel=Build.VERSION.SDK_INT; if (apiLevel >= 9) { intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); Uri uri=Uri.fromParts("package",packageName,null); intent.setData(uri); } ...
Open App Detail page
public ServiceCall<Void> deleteRecognitionJob(String id){ Validator.notNull(id,"id cannot be null"); Request request=RequestBuilder.delete(String.format(PATH_RECOGNITION,id)).build(); return createServiceCall(request,ResponseConverterUtils.getVoid()); }
Delete recognition.
@DELETE @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Path("/{snapshot_id}/metadata/{key}") @CheckPermission(roles={Role.SYSTEM_MONITOR,Role.TENANT_ADMIN},acls={ACL.ANY}) public CinderSnapshotMetadata deleteSnapshotMetadataItem(@PathParam("tenant_id") String openstackTenantId,@PathParam("snapshot_i...
Delete a specific snapshot's metadata item
public void copy(int sx,int sy,int sw,int sh,int dx,int dy,int dw,int dh){ g.copy(sx,sy,sw,sh,dx,dy,dw,dh); }
Copy things from one area of this image to another area in the same image.
private void keepAliveSession(long index,long timestamp,long commandSequence,long eventIndex,ServerSessionContext session,CompletableFuture<Void> future,ThreadContext context){ if (!log.isOpen()) { context.executor().execute(null); return; } if (!session.state().active()) { context.executor().execute(...
Applies a keep alive for a session.
@SuppressWarnings("unchecked") public ChunkedOrderedStriterator(final int chunkSize,final Iterator<E> src){ this((I)new ChunkedWrappedIterator<E>(src,chunkSize,null,null)); }
Wraps the source iterator as a chunked ordered iterator.
public final void testContainsLetter(){ assertNotNull(Constraints.containsLetter()); }
Tests the functionality of the containsLetter-method.
public static void tab(String tab){ Formatting.tab=tab; Formatting.nltab=nl + tab; }
Sets the tab character to use when generating code. This should only be called before any indentation occurs to prevent errors.
private Map<MemberType,Integer> computeSearchLimits(int limit,MemberType memberType){ Map<MemberType,Integer> memberTypeToLimit=new HashMap<MemberType,Integer>(); int limitPerPrincipalType=limit; if (memberType == MemberType.ALL) { limitPerPrincipalType=limit < 0 ? -1 : limit / (MemberType.values().length - 1...
Search limit calculator that computes number of principal entities(users, groups and solution users) to be returned in search results
@SuppressWarnings("unchecked") public static <T extends IFawe>T imp(){ return INSTANCE != null ? (T)INSTANCE.IMP : null; }
Get the implementation specific class
@Override public IList<IAgent> selectAgent(final int x,final int y){ return null; }
Method selectAgent()
public static ObjectAnimator ofFloat(Object target,String propertyName,float... values){ ObjectAnimator anim=new ObjectAnimator(target,propertyName); anim.setFloatValues(values); return anim; }
Constructs and returns an ObjectAnimator that animates between float values. A single value implies that that value is the one being animated to. Two values imply a starting and ending values. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be...
public void runTest() throws Throwable { Document doc; NodeList elementList; Node nameNode; Node psNode; String psName; doc=(Document)load("staff",false); elementList=doc.getElementsByTagName("name"); nameNode=elementList.item(1); psNode=nameNode.getPreviousSibling(); psName=psNode.getNodeName(); ...
Runs the test case.
String internalsprintf(final int s) throws IllegalArgumentException { final String s2; switch (conversionCharacter) { case 'd': case 'i': if (optionalh) { s2=printDFormat((short)s); } else if (optionall) { s2=printDFormat((long)s); } else { s2=printDFormat(s); } break; case '...
Format an int argument using this conversion specification.
public void moveWest(double amount){ if (!isBlocked()) { setX(getX() - (float)amount); } }
Move the object west by the specified amount in pixels.
public void update(long value,long timestamp){ rescaleIfNeeded(); lockForRegularUsage(); try { final double priority=weight(timestamp - startTime) / random.nextDouble(); final long newCount=count.incrementAndGet(); if (newCount <= reservoirSize) { values.put(priority,value); } else { ...
Adds an old value with a fixed timestamp to the sample.
public final boolean isXMLParserValidating(){ return ((Boolean)SpriteTranscoder.this.hints.get(KEY_XML_PARSER_VALIDATING)).booleanValue(); }
Returns true if the XML parser must be in validation mode, false otherwise.
public static float atan2(float fY,float fX){ return (float)Math.atan2(fY,fX); }
A direct call to Math.atan2.
public Notify(IServiceCall call){ super(Type.SERVICE_CALL); this.call=call; }
Create new notification event with given service call
public void handleError(Source source,int line,int column,String msg) throws LexerException { errors++; print(source.getName() + ":" + line+ ":"+ column+ ": error: "+ msg); }
Handles an error. The behaviour of this method is defined by the implementation. It may simply record the error message, or it may throw an exception.
@Override public NotificationChain eInverseRemove(InternalEObject otherEnd,int featureID,NotificationChain msgs){ switch (featureID) { case UmplePackage.ANONYMOUS_METHOD_BODY_1__PRECONDITION_1: return ((InternalEList<?>)getPrecondition_1()).basicRemove(otherEnd,msgs); } return super.eInverseRemove(otherEnd,featureI...
<!-- begin-user-doc --> <!-- end-user-doc -->
public void resolveTypeStructure(Environment env){ }
We create a stub for this. Source classes do more work. Some calls from 'SourceClass.checkSupers' execute this method.
public void connect(ConnectionListener onConnected){ this.catchDisconnection=true; channelListeners=new HashMap<>(); connectionListener=onConnected; performHandshake(); }
Performs connection to the Faye server.
public void testComputeClasspathForSimpleProject() throws CoreException { addAndCreateSourceEntry(javaProjectA,SRC_DIR_NAME,null); List<File> actualCp=getListOfFiles(GWTCompileRunner.computeClasspath(javaProjectA)); List<File> expectedCp=new ArrayList<File>(); expectedCp.add(getFile(javaProjectA.getProject(),SR...
Tests computing the classpath for a simple project (one source, one output).
public int edgeIndex(TriangulationPoint p1,TriangulationPoint p2){ if (points[0] == p1) { if (points[1] == p2) { return 2; } else if (points[2] == p2) { return 1; } } else if (points[1] == p1) { if (points[2] == p2) { return 0; } else if (points[0] == p2) { r...
Get the neighbor that share this edge
@Override public void onDestroyView(){ super.onDestroyView(); if (mDialog != null) { mViewDestroyed=true; mDialog.dismiss(); mDialog=null; } }
Remove dialog.
private void updateProgress(int progress){ if (myHost != null && progress != previousProgress) { myHost.updateProgress(progress); } previousProgress=progress; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public static boolean isMetaTracker(CharSequence text,Object what){ return what == CAP || what == ALT || what == SYM || what == SELECTING; }
Returns true if this object is one that this class would use to keep track of any meta state in the specified text.
public ImagePortrayal3D(Image image){ this(image,true,false); }
Constructs a (semi-)transparent, oriented ImagePortrayal3D
public void onServicesDiscovered(BluetoothGatt gatt,int status){ }
Callback invoked when the list of remote services, characteristics and descriptors for the remote device have been updated, ie new services have been discovered.
public SQLTimeoutException(String reason,Throwable cause){ super(reason,cause); }
Constructs a <code>SQLTimeoutException</code> object with a given <code>reason</code> and <code>cause</code>. The <code>SQLState</code> is initialized to <code>null</code> and the vendor code is initialized to 0. <p>
public List<String> asStringList(String separator){ List<String> stringList=new LinkedList<>(); if (htmlList != null) { for ( String input : htmlList) { if (extractorsMap == null || extractorsMap.isEmpty()) { stringList.add(input); } else { StringBuffer stringBuffer=new StringBuf...
extract data as string list
public DateMidnight roundHalfEvenCopy(){ return iInstant.withMillis(iField.roundHalfEven(iInstant.getMillis())); }
Rounds to the nearest whole unit of this field on a copy of this DateMidnight. If halfway, the ceiling is favored over the floor only if it makes this field's value even.
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:28:02.240 -0500",hash_original_method="0A63E049EA1E17346730D259CF4DA78F",hash_generated_method="3923F6F8F48610B9EE0B46389A341951") public static void scrollTo(TextView widget,...
Scrolls the specified widget to the specified coordinates, except constrains the X scrolling position to the horizontal regions of the text that will be visible after scrolling to the specified Y position.
protected void switchNurseryZeroingApproach(Space nurserySpace){ if (Options.nurseryZeroing.getConcurrent()) { if (Options.nurseryZeroing.getAdaptive() && (VM.collection.getActiveThreads() >= VM.collection.getDefaultThreads())) { nurserySpace.skipConcurrentZeroing(); } else { nurserySpace.trigger...
Update the nursery zeroing approach based on option settings.
public static boolean isInSharedWithMeAndValid(File driveFile){ return isInSharedWithMe(driveFile) && !driveFile.getLabels().getTrashed(); }
Returns true if a drive file is a KML or KMZ file in the Shared with me directory and is not trashed.
public static Angle axisAngle(Vec4 v1,Vec4 v2,Vec4[] result){ if (v1 == null || v2 == null) { throw new IllegalArgumentException("Vec4 Is Null"); } if (result == null) { throw new IllegalArgumentException("Array Is Null"); } Vec4 u1=v1.normalize3(); Vec4 u0=v2.normalize3(); Angle angle=Angle.fromR...
Compute the angle and rotation axis required to rotate one vector to align with another.
public void runTest() throws Throwable { Document doc; Node entRef; Node createdNode; Node appendedNode; doc=(Document)load("staff",true); entRef=doc.createEntityReference("ent4"); assertNotNull("createdEntRefNotNull",entRef); createdNode=doc.createElement("text3"); { boolean success=false; try ...
Runs the test case.
private void matchID() throws ParserException, IOException { match(StreamTokenizer.TT_WORD); }
match a TT_WORD token that matches an arbitrary, not quoted token.
public final void update(Result<I> result){ _strategy.update(this,result); }
Update the controller from an admin command.
public void attrAdded(Attr node,String newv){ fireBaseAttributeListeners(); if (!hasAnimVal) { fireAnimatedAttributeListeners(); } }
Called when an Attr node has been added.
@Override protected void update(){ if (hasData()) m_PanelMatrix.setInstances(getData()); }
Gets called when the data changed.
public static byte[] loadFile(File file) throws IOException { ByteArrayOutputStream bytes=new ByteArrayOutputStream(); FileInputStream fis=null; int length=0; byte[] buffer=new byte[Settings.BUFFER_SIZE]; try { fis=new FileInputStream(file); while ((length=fis.read(buffer)) != -1) { bytes.write(...
Loads the contents of the specified file.
public KMLStyleUrl(String namespaceURI){ super(namespaceURI); }
Construct an instance.
public boolean isStarting(){ return starting; }
Check if the database is currently opening. This is true until all stored SQL statements have been executed.
@AndroidOnly("The RI doesn't throw the IllegalStateException.") public void test_wrap_ByteBuffer_ByteBuffer_04(){ String host="new host"; int port=8080; ByteBuffer bbs=ByteBuffer.allocate(10); ByteBuffer bbd=ByteBuffer.allocate(10); SSLEngine sse=getEngine(host,port); try { sse.wrap(bbs,bbd); fail("...
javax.net.ssl.SSLEngine#wrap(ByteBuffer src, ByteBuffer dst) IllegalStateException should be thrown.
private void eliminateBackfillStates(int baseState){ if (statesToBackfill.contains(new Integer(baseState))) { statesToBackfill.removeElement(new Integer(baseState)); short[] state=tempStateTable.elementAt(baseState); for (int i=0; i < numCategories; i++) { if (state[i] != 0) { eliminateBackf...
This removes "ending states" and states reachable from them from the list of states to backfill.
public int nextInt(int least,int bound){ if (least >= bound) { throw new IllegalArgumentException(); } return nextInt(bound - least) + least; }
Returns a pseudorandom, uniformly distributed value between the given least value (inclusive) and bound (exclusive).
static int GetGrayscale(int r,int g,int b){ return (int)((30 * r + 59 * g + 11 * g) / 100); }
Calculate grayscale value of pixel \n prgb - address of 24bpp or 32bpp pixel.
public static DateTimeFormatter hourMinuteSecondFraction(){ return Constants.hmsf; }
Returns a formatter for a two digit hour of day, two digit minute of hour, two digit second of minute, and three digit fraction of second (HH:mm:ss.SSS). Parsing will parse up to 9 fractional second digits, throwing away all except the first three.
public final void yyreset(java.io.Reader reader){ zzReader=reader; zzAtBOL=true; zzAtEOF=false; zzEndRead=zzStartRead=0; zzCurrentPos=zzMarkedPos=0; yyline=yychar=yycolumn=0; zzLexicalState=YYINITIAL; }
Resets the scanner to read from a new input stream. Does not close the old reader. All internal variables are reset, the old input stream <b>cannot</b> be reused (internal buffer is discarded and lost). Lexical state is set to <tt>ZZ_INITIAL</tt>.
@ObjectiveCName("changeTextSizeWithValue:") public void changeTextSize(int val){ modules.getSettingsModule().changeTextSize(val); }
Change text size
public String report(){ StringBuffer sb=new StringBuffer(); String indent=""; if (pubs.hasSamples() && subs.hasSamples()) { sb.append(String.format("%s Pub/Sub stats: %s\n",name,this)); indent+=" "; } if (pubs.hasSamples()) { String maybeTitle=""; if (!subs.hasSamples()) { maybeTitle=nam...
Creates the output report.
public static int dayFromDateValue(long x){ return (int)(x & 31); }
Get the day of month from a date value.
public int size(){ return cards.size(); }
Returns the number of cards.
@SuppressWarnings({"ForLoopThatDoesntUseLoopVariable"}) public boolean startGroup(){ for (boolean first=true; myDiff == 0 && myChangeGroupStartIndex < myChanges.size(); myChangeGroupStartIndex++, first=false) { TextChangeImpl change=myChanges.get(myChangeGroupStartIndex); myDiff=change.getDiff(); if (firs...
Asks current context to update its state in order to point to the first change in a group.
public DialogTextNodeComment(final Window owner,final INaviTextNode textNode){ super(owner,"Text Node Comments",ModalityType.APPLICATION_MODAL); Preconditions.checkNotNull(owner,"IE02711: owner argument can not be null"); Preconditions.checkNotNull(textNode,"IE02712: textNode argument can not be null"); new CDi...
Creates a new dialog object.
protected GraphicsNode createRasterImageNode(BridgeContext ctx,Element e,Filter img,ParsedURL purl){ Rectangle2D bounds=getImageBounds(ctx,e); if ((bounds.getWidth() == 0) || (bounds.getHeight() == 0)) { ShapeNode sn=new ShapeNode(); sn.setShape(bounds); return sn; } if (BrokenLinkProvider.hasBroken...
Returns a GraphicsNode that represents an raster image in JPEG or PNG format.
public boolean increasingTriplet(int[] nums){ int n1=Integer.MAX_VALUE; int n2=Integer.MAX_VALUE; for ( int n : nums) { if (n <= n1) { n1=n; } else if (n <= n2) { n2=n; } else { return true; } } return false; }
DP. Find three numbers. Find two numbers first, then find one that's larger than both. n1 means the minimum of subsequences of length 1. n2 means the minimum of subsequences of length 2.
public void addAnchoredRule(AnchoredRule rule){ inputRules.add(rule); }
Adds an incoming anchored rule to the output distribution.
@DSComment("Package priviledge") @DSBan(DSCat.DEFAULT_MODIFIER) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:32:45.168 -0500",hash_original_method="E680E4717FCBA329FAA87BAD42E56CAC",hash_generated_method="E680E4717FCBA329FAA87BAD42E56CAC") void notifyError(){ if (mNativeLoader ...
Notify the loader we encountered an error.
AttributeIterator(Compiler compiler,int opPos,int analysis) throws javax.xml.transform.TransformerException { super(compiler,opPos,analysis); }
Create a AttributeIterator object.
public MilStd2525UnitsFormat(String lengthUnits,String areaUnits){ this(lengthUnits,areaUnits,true); }
Constructs an instance that display length and area in specified units, and angles in degrees, minutes, seconds.
public void writeJarFromContent(final String className,final String content,final OutputStream outStream) throws IOException { JarOutputStream jarOutputStream=new JarOutputStream(outStream); String formattedName=className; if (!formattedName.endsWith(".class")) { formattedName=formattedName.concat(".class"); ...
Write a JAR with a class of the given name with the provided content. The className may have a package separated by /. For example: my/package/myclass
private boolean onTap(float rawX,float rawY){ OcrGraphic graphic=mGraphicOverlay.getGraphicAtLocation(rawX,rawY); TextBlock text=null; if (graphic != null) { text=graphic.getTextBlock(); if (text != null && text.getValue() != null) { Log.d(TAG,"text data is being spoken! " + text.getValue()); ...
onTap is called to speak the tapped TextBlock, if any, out loud.
@Override public void run(){ amIActive=true; String inputHeader=null; String outputHeader=null; double slope; double z, z2; int c, i; int progress; int[] dY={-1,0,1,1,1,0,-1,-1}; int[] dX={1,1,1,0,-1,-1,-1,0}; int row, col, x, y; double dist; double minSlope=0; double minZChange=0; if (args....
Used to execute this plugin tool.
public boolean reset(){ boolean wasReset=false; if (super.reset()) { resetToStream(); wasReset=true; } return wasReset; }
Try's to reset the super class and reset this class for re-use, so that you don't need to create a new serializer (mostly for performance reasons).
public void deleteImageSharing(String sharingId) throws RemoteException { if (TextUtils.isEmpty(sharingId)) { throw new ServerApiIllegalArgumentException("sharingId must not be null or empty!"); } mRichcallService.tryToDeleteImageSharing(sharingId); }
deletes an image sharing by its sharing id from history and abort/reject any associated ongoing session if such exists.
@TargetApi(21) public void onEpisodeSelected(int tvshowId,int episodeId){ selectedEpisodeId=episodeId; TVShowEpisodeDetailsFragment fragment=TVShowEpisodeDetailsFragment.newInstance(tvshowId,episodeId); FragmentTransaction fragTrans=getSupportFragmentManager().beginTransaction(); if (Utils.isLollipopOrLater()) ...
Callback from tvshow episodes list when a episode is selected
public void log(String t){ TestUtils.log(t); }
This method just invokes the test utils method, it is here for convenience
private static void renderClearHiddenParamsJavaScript(FacesContext ctx,ResponseWriter writer,Map formParams,String formTarget,String formName) throws IOException { writer.write("\n"); writer.startElement(SCRIPT_ELEMENT,null); writer.writeAttribute(SCRIPT_TYPE,"text/javascript",null); writer.write("\n<!--"); w...
Generates a JavaScript function to clear all the hidden fields associated with a form and reset the target attribute if necessary.
@Override public void handleMouseDragged(ChartCanvas canvas,MouseEvent e){ if (this.startPoint == null) { canvas.clearLiveHandler(); return; } boolean hZoom, vZoom; Plot p=canvas.getChart().getPlot(); if (!(p instanceof Zoomable)) { return; } Zoomable z=(Zoomable)p; if (z.getOrientation().is...
Handles a mouse dragged event by updating the zoom rectangle displayed in the ChartViewer.
public static void main(final String[] args){ DOMTestCase.doMain(nodevalue04.class,args); }
Runs this test from the command line.