code
stringlengths
10
174k
nl
stringlengths
3
129k
public static Uri addPlaceholder(Bitmap placeholder){ Uri uri=generateUniquePlaceholderUri(); replacePlaceholder(uri,placeholder); return uri; }
Add a placeholder for a new image that does not exist yet.
private void addNotificationCategory(JPanel panel,String categoryName){ addNotificationCategoryLabel(panel,"<html><b>" + categoryName + "</b></html>"); addNotificationCategorySeparator(panel); }
Adds a new category title to the notifications list.
public char nextClean() throws JSONException { int nextCleanInt=nextCleanInternal(); return nextCleanInt == -1 ? '\0' : (char)nextCleanInt; }
Returns the next character that is not whitespace and does not belong to a comment. If the input is exhausted before such a character can be found, the null character '\0' is returned. The return value of this method is ambiguous for JSON strings that contain the character '\0'.
public static void assertNotEqual(long expected,long actual,double minRelativeError,String errorMessage){ if (verbose) { log("assertNotEqual(" + expected + ", "+ actual+ ", "+ minRelativeError+ ", "+ errorMessage+ ")"); } if (expected == actual) { TestUtils.assertBool(false,errorMessage); } else { ...
Asserts that the given longs are not equal
public boolean startsWith(String prefix,int toffset){ return str().startsWith(prefix,toffset); }
Tests if this string starts with the specified prefix beginning a specified index.
protected void doFormatFile(File file,ResultCollector rc,Properties hashCache,String basedirPath,boolean dryRun) throws IOException, BadLocationException, MojoFailureException, MojoExecutionException { Log log=getLog(); log.debug("Processing file: " + file); String code=readFileAsString(file); String originalHa...
Format individual file.
protected void tag(String tag,ArrayList names,ArrayList values,int nattr,boolean close){ spacing(); m_out.print('<'); m_out.print(tag); for (int i=0; i < nattr; ++i) { m_out.print(' '); m_out.print((String)names.get(i)); m_out.print('='); m_out.print('\"'); escapeString((String)values.get(i)...
Internal method for printing a tag with attributes.
public String branch(){ return this.branch; }
Gets branch of this github url
@DSComment("Package priviledge") @DSBan(DSCat.DEFAULT_MODIFIER) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:31:04.612 -0500",hash_original_method="AB3B4827E233BF1789642230E2C32EC4",hash_generated_method="AB3B4827E233BF1789642230E2C32EC4") void updateFromNative(){ mRS.validate(...
If an object came from an a3d file, java fields need to be created with objects from the native layer
private Job createJobFromRequest(String namespaceCd,String jobName,Map<String,Object> mergedParameters,String processInstanceId){ Job job=new Job(); job.setId(processInstanceId); job.setNamespace(namespaceCd); job.setJobName(jobName); if (!mergedParameters.isEmpty()) { List<Parameter> jobParameters=new Ar...
Creates a new job object from request.
public static double[] P(double Y[][],int j[],int x[]){ int L=j.length; double p[]=new double[L]; for (int j_=0; j_ < L; j_++) { p[j_]=p(Y,j[j_],x[j_]); } return p; }
P - Empirical prior.
public SendableTextMessage.SendableTextMessageBuilder replyTo(Message replyTo){ this.replyTo=replyTo != null ? replyTo.getMessageId() : 0; return this; }
*Optional Sets the Message object that you want to reply to
protected File createFileOnSD(String filename,long fileSize,DataType type,String subdirectory) throws IOException { String sdPath=Environment.getExternalStorageDirectory().getPath(); StringBuilder fullPath=new StringBuilder(sdPath); if (subdirectory != null) { fullPath.append(File.separatorChar).append(subdir...
Helper to create a large file of random data on the SD card.
public boolean equals(ImageGraphicAttribute rhs){ if (rhs == null) { return false; } if (this == rhs) { return true; } if (fOriginX != rhs.fOriginX || fOriginY != rhs.fOriginY) { return false; } if (getAlignment() != rhs.getAlignment()) { return false; } if (!fImage.equals(rhs.fImage))...
Compares this <code>ImageGraphicAttribute</code> to the specified <code>ImageGraphicAttribute</code>.
@Override protected EClass eStaticClass(){ return TypesPackage.Literals.TANNOTATION_ARGUMENT; }
<!-- begin-user-doc --> <!-- end-user-doc -->
@Override public NotificationChain eInverseRemove(InternalEObject otherEnd,int featureID,NotificationChain msgs){ switch (featureID) { case ImPackage.SYMBOL_TABLE_ENTRY__REFERENCING_ELEMENTS: return ((InternalEList<?>)getReferencingElements()).basicRemove(otherEnd,msgs); } return super.eInverseRemove(otherEnd,featu...
<!-- begin-user-doc --> <!-- end-user-doc -->
public static void sendEvent(int category,int action,int label){ sendEvent(getString(category),getString(action),getString(label)); }
Sends an event to the tracker with string resources loaded as parameters.
protected void runTests() throws Exception { BreakpointEvent bpe=startToMain("ExpiredRequestDeletionTarg"); targetClass=bpe.location().declaringType(); mainThread=bpe.thread(); erm=vm().eventRequestManager(); List meths=targetClass.methodsByName("bar"); if (meths.size() != 1) { throw new Exception("test...
test core
@Override public void close(){ U.closeQuiet(in); }
Close wrapped input stream in case it was previously opened.
public static void send(final InternalResourceManager irm,Set<InternalDistributedMember> recips,ResourceManagerProfile profile){ final DM dm=irm.getResourceAdvisor().getDistributionManager(); ResourceProfileMessage r=new ResourceProfileMessage(recips,profile); dm.putOutgoing(r); }
Send profiles to the provided members
private void updatePendingNodes(final int newLandmarkIndex,final RouterPriorityQueue<Node> pendingNodes){ final List<Double> newEstRemTravCosts=new ArrayList<>(); final List<Node> nodesToBeUpdated=new ArrayList<>(); final InternalLandmarkData landmarkData=new InternalLandmarkData(); for ( Node node : pendingNo...
If a landmark has been added to the set of the active landmarks, this function re-evaluates the estimated remaining travel time based on the new set of active landmarks of the nodes contained in pendingNodes. If this estimation improved, the node's position in the pendingNodes queue is updated.
public void vetoableChange(PropertyChangeEvent e){ log.info(e.getPropertyName() + "=" + e.getNewValue()); if (e.getPropertyName().equals("AD_Org_ID")) m_AD_Org_ID=e.getNewValue(); if (e.getPropertyName().equals("C_BPartner_ID")) { m_C_BPartner_ID=e.getNewValue(); fBPartner.setValue(m_C_BPartner_ID); }...
Vetoable Change Listener - requery
public boolean undefinesSome(){ return (getUndefinedRegisters().size() != 0) && (getDefinedRegisters().size() != 0); }
Determines whether the instruction undefines some tracked registers.
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:56:08.056 -0500",hash_original_method="028A0A610E31197643C52E1AA7424EFD",hash_generated_method="1A432DCE8A1D9FDC87F89E0825D717EC") public static String format(String format,Ob...
Formats the supplied objects using the specified message format pattern.
public boolean isRowfill(){ return rowfill; }
Returns the rowfill.
protected static void register(Class<?> parent,String cname){ Entry e=data.get(parent); if (e == null) { data.put(parent,e=new Entry()); } e.addName(cname); }
Register a class with the registry.
private static void validateArray(final Object array){ if (array == null) { throw new IllegalArgumentException("The Array must not be null"); } Validate.isTrue(Array.getLength(array) != 0,"Array cannot be empty."); }
Checks if the specified array is neither null nor empty.
@Override public void validate(final StatementDescription description){ IExpressionDescription ed=description.getFacet(SPECIES); SpeciesDescription target=null; if (ed != null) { target=description.getType().getDenotedSpecies(); if (target == null) { description.error(ed.toString() + " is not the de...
Method validate()
protected TransientMixin(String id,String displayName){ super(id,displayName,false,true,false); }
Mixable is always "true", Primaryable is always "false"
public Y in(X value,X... values){ if (isIngore(value)) { return criteria; } if (q.isEmpty() == false) { q.add(" AND "); } q.add(getColumnName()).in(getValues(value,values)); return criteria; }
SQL: <code>IN(...)</code>
protected void downloadFileUsingDownloadManager() throws Exception { int downloadManagerUid=mConnectionUtil.downloadManagerUid(); assertTrue(downloadManagerUid >= 0); NetworkStats pre_test_stats=fetchDataFromProc(downloadManagerUid); TrafficStats.startDataProfiling(mContext); String ts=Long.toString(System.cu...
Helper method that downloads a file from a test server using the download manager and reports the stats to instrumentation out.
protected void decodeChildren(mxCodec dec,Node node,Object obj){ Node child=node.getFirstChild(); while (child != null) { if (child.getNodeType() == Node.ELEMENT_NODE && !processInclude(dec,child,obj)) { decodeChild(dec,child,obj); } child=child.getNextSibling(); } }
Decodec all children of the given node using decodeChild.
protected String form(DoubleMatrix1D matrix,int index,Former formatter){ return formatter.form(matrix.get(index)); }
Converts a given cell to a String; no alignment considered.
protected void selectSegment(Segment segment){ if (segment.isUnpaired()) { for ( Segment other : segments.getPairedSegments(segment)) { indirectSelections.put(other,segment); selectSegment(other); } } else { if (!selectedSegments.contains(segment)) { selectedSegments.add(segment); ...
Select a segment
private boolean excludeResultNSDecl(String prefix,String uri) throws TransformerException { if (uri != null) { if (uri.equals(Constants.S_XSLNAMESPACEURL) || getStylesheet().containsExtensionElementURI(uri)) return true; if (containsExcludeResultPrefix(prefix,uri)) return true; } return false; }
Tell if the result namespace decl should be excluded. Should be called before namespace aliasing (I think).
public static BlinkConn newConnection(Socket socket,ReceiveListener listener) throws Exception { return newConnection(socket,DEFAULT_SOCKET_BUFFER_SIZE,getDefaultResourcePath(),UUID.randomUUID().toString(),listener); }
Create a Bink connection by socket with main thread callback
public void invokeHookBoltAck(Tuple tuple,long processLatencyNs){ if (taskHooks.size() != 0) { BoltAckInfo ackInfo=new BoltAckInfo(tuple,getThisTaskId(),processLatencyNs / Constants.MILLISECONDS_TO_NANOSECONDS); for ( ITaskHook taskHook : taskHooks) { taskHook.boltAck(ackInfo); } } }
Task hook called in bolt every time a tuple gets acked
public void deleteAsync(final String flavorId,final FutureCallback<Task> responseCallback) throws IOException { deleteObjectAsync(flavorId,responseCallback); }
Deletes the specified flavor.
@Override protected void unregisterListeners(){ }
unregister this DragGestureRecognizer's Listeners with the Component subclasses must override this method
public void testMalformedUrl(){ setParameterToInitMockMethod("my_url.com/a/b/c/index2.html",TestSolution.NOT_APPLICABLE); SeoRule01081 test=new SeoRule01081(); test.setProcessResultDataService(mockProcessResultDataService); test.setTest(mockTest); ProcessResult processResult=test.processImpl(mockSspHandler); ...
Test to invalidate a complexe url with the underscore character in the path.
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 int findLastCompletelyVisibleItemPosition(){ final View child=findOneVisibleChild(layoutManager.getChildCount() - 1,-1,true,false); return child == null ? RecyclerView.NO_POSITION : recyclerView.getChildAdapterPosition(child); }
Returns the adapter position of the last fully visible view. This position does not include adapter changes that were dispatched after the last layout pass.
public boolean hasNavigtionBar(){ return mHasNavigationBar; }
Does this device have a system navigation bar?
public static String postImmediate(int WindowNo,int AD_Client_ID,int AD_Table_ID,int Record_ID,boolean force){ log.info("Window=" + WindowNo + ", AD_Table_ID="+ AD_Table_ID+ "/"+ Record_ID+ ", Force="+ force); String error=null; MAcctSchema[] ass=MAcctSchema.getClientAcctSchema(Env.getCtx(),AD_Client_ID); error...
Post Immediate
public static void main(String[] args){ Scanner input=new Scanner(System.in); System.out.print("Enter a password: "); String password=input.nextLine(); System.out.println((isValidPassword(password) ? "Valid " : "Invalid ") + "Password"); }
Main Method
public void removeTestingCallback(OneSheeldTestingCallback testingCallback){ if (testingCallback != null && testingCallbacks.contains(testingCallback)) testingCallbacks.remove(testingCallback); }
Remove a testing callback.
@Override public SortBuilder missing(Object missing){ return this; }
Not really relevant.
public Object addLineHighlight(int line,Color color) throws BadLocationException { if (lineHighlightManager == null) { lineHighlightManager=new LineHighlightManager(this); } return lineHighlightManager.addLineHighlight(line,color); }
Adds a line highlight.
public static int pickFromDistribution(final Object[] objs,final RandomChoiceChooser chooser,final float prob){ return pickFromDistribution(objs,chooser,prob,CHECKBOUNDARY); }
Picks a random item from an array of objects, each with an associated probability that is accessed by taking an object and passing it to chooser.getProbability(obj). The objects' probabilities are normalized and summed as follows: For example, if four probabilities are {0.3, 0.2, 0.1, 0.4}, then they should get norm...
public boolean equals(Object other){ if (other == null || getClass() != other.getClass()) { return false; } if (other == this) { return true; } DefaultProperty dp=(DefaultProperty)other; return compare(name,dp.name) && compare(displayName,dp.displayName) && compare(shortDescription,dp.shortDescripti...
Compares two DefaultProperty objects. Two DefaultProperty objects are equal if they are the same object or if their name, display name, short description, category, type and editable property are the same. Note the property value is not considered in the implementation.
@Override public Object eInvoke(int operationID,EList<?> arguments) throws InvocationTargetException { switch (operationID) { case N4JSPackage.ANNOTATION_ARGUMENT___VALUE: return value(); case N4JSPackage.ANNOTATION_ARGUMENT___GET_VALUE_AS_STRING: return getValueAsString(); } return super.eInvoke(operationID,argu...
<!-- begin-user-doc --> <!-- end-user-doc -->
protected void markFirstTime(Element elem){ String elemName=elem.getName(); if (elemName.equals("html")) { seenHtml=true; } else if (elemName.equals("head")) { seenHead=true; } else if (elemName.equals("body")) { if (buf.length == 1) { char[] newBuf=new char[256]; newBuf[0]=buf[0];...
Marks the first time a tag has been seen in a document
public void searchNextFrame(){ while (in.remaining() > 1) { int ch=in.get() & 0xff; if (ch != 0xff) { continue; } if ((in.get() & 0xe0) == 0xe0) { in.position(in.position() - 2); return; } } }
Search for next frame sync word. Sync word identifies valid frame.
public void print(boolean x){ out.print(x); out.flush(); }
Print an boolean and then flush the output stream.
public static UPSCoord fromLatLon(Angle latitude,Angle longitude){ return fromLatLon(latitude,longitude,null); }
Create a set of UPS coordinates from a pair of latitude and longitude for a WGS84 globe.
@Override public void paintIcon(final Component c,final Graphics g,final int x,final int y){ g.setColor(c.getForeground()); g.setFont(c.getFont()); if (fRotation == ROTATE_NONE) { int yPos=y + fCharHeight; for (int i=0; i < fCharStrings.length; i++) { final int tweak; switch (fPosition[i]) { case PO...
Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.
@Override public void respond(String response){ getBot().sendRaw().rawLine(response); }
Responds by sending a <b>raw line</b> to the server.
private static void placePhiFunctions(SsaMethod ssaMeth,LocalVariableInfo localInfo,int threshold){ ArrayList<SsaBasicBlock> ssaBlocks; int regCount; int blockCount; ssaBlocks=ssaMeth.getBlocks(); blockCount=ssaBlocks.size(); regCount=ssaMeth.getRegCount() - threshold; DomFront df=new DomFront(ssaMeth); ...
See Appel algorithm 19.6: Place Phi functions in appropriate locations.
public final void error(Object message,Throwable t){ if (isLevelEnabled(SimpleLog.LOG_LEVEL_ERROR)) { log(SimpleLog.LOG_LEVEL_ERROR,message,t); } }
Logs a message with <code>org.apache.commons.logging.impl.SimpleLog.LOG_LEVEL_ERROR</code>.
protected void createShapes(DrawContext dc){ this.paths=new Path[3]; Position baseMidpoint=new Position(LatLon.interpolate(0.5,this.position2,this.position3),0); this.paths[0]=this.createPath(Arrays.asList(baseMidpoint,this.position1)); List<Position> positions=this.computeArrowheadPositions(dc,baseMidpoint,thi...
Create the paths required to draw the graphic.
protected Serializable extractRowValue(int type,ResultSet rowValues,String columnName) throws Exception { switch (type) { case java.sql.Types.BIT: case java.sql.Types.BOOLEAN: { return rowValues.getBoolean(columnName); } case java.sql.Types.CHAR: case java.sql.Types.VARCHAR: case java.sql.Types.LONGVARCHAR: c...
Take a raw value and return the proper Java data type for the java.sql.Types type given
public CCriteriaDialog(final JFrame owner,final CCriteriaFactory conditionFactory){ super(owner,"Select by Criteria",true); Preconditions.checkNotNull(conditionFactory,"IE01315: Condition factory argument can not be null"); final List<ICriteriumCreator> criteria=conditionFactory.getConditions(); m_jtree=new JCr...
Creates a new dialog object.
public static void init(MonitorAgentProvider implementation){ MonitorAgent.monitorAgentImpl=implementation; }
Initialize the MonitorAgent with given implementation. This method must be called before any other methods in this class.
public static String toString(Object value){ return InvokerHelper.toString(value); }
Create a String representation of this object.
@Override public void readNdefMessage(Message message){ if (message.size() > 1) { toast(getString(R.string.readMultipleRecordNDEFMessage)); } else { toast(getString(R.string.readSingleRecordNDEFMessage)); } this.message=message; Log.d(TAG,"Found " + message.size() + " NDEF records"); for (int k=0; ...
An NDEF message was read and parsed. This method prints its contents to log and then shows its contents in the GUI.
protected float mapPoint(float x,float sourceStart,float sourceEnd,float targetStart,float targetEnd){ if (x <= sourceStart) { return targetStart; } if (x >= sourceEnd) { return targetEnd; } return (x - sourceStart) / (sourceEnd - sourceStart) * (targetEnd - targetStart) + targetStart; }
This method maps a number x, which is in the range [sourceStart, sourceEnd], to a new range [targetStart, targetEnd] <p> sourceStart <= x <= sourceEnd <br/> targetStart <= returnValue <= targetEnd </p>
public URLExt(URL url,boolean is_directory){ this(url,is_directory,null); }
Creates an URLExt with the given url. The name field will be the last segment of the path path of the given URL.
public SHACLSuggestionGenerator createSuggestionGenerator(Model dataModel,Model shapesModel){ return null; }
Default implementation returns nothing - no implementation is provided as part of the open source package.
public synchronized void insertChannelAssignment(String shardId,int channel) throws ReplicatorException { assertActive(); try { channelTable.insert(getConnection(),shardId,channel); if (channel > maxChannel) maxChannel=channel; assignments.put(shardId,channel); } catch ( SQLException e) { th...
Inserts a shard/channel assignment.
public NewExpression createNewExpression(){ NewExpressionImpl newExpression=new NewExpressionImpl(); return newExpression; }
<!-- begin-user-doc --> <!-- end-user-doc -->
protected BreakIterator parseBreakIterator(String type,Locale locale){ if (type == null || "SENTENCE".equals(type)) { return BreakIterator.getSentenceInstance(locale); } else if ("LINE".equals(type)) { return BreakIterator.getLineInstance(locale); } else if ("WORD".equals(type)) { return BreakIt...
parse a break iterator type for the specified locale
@NotNull @Override public Object[] toArray(){ Object[] elements=array; if (elements.length == 0) return ArrayUtilRt.EMPTY_OBJECT_ARRAY; return Arrays.copyOf(elements,elements.length,Object[].class); }
Returns an array containing all of the elements in this list in proper sequence (from first to last element). <p/> <p>The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array). The caller is thus free to modify the returned array...
public void testUnsizedLongsCount(){ LongAdder counter=new LongAdder(); Random r=new Random(); long size=100; r.longs().limit(size).parallel().forEach(null); assertEquals(counter.sum(),size); }
A parallel unsized stream of longs generates at least 100 values
protected BaseInterval(long startInstant,long endInstant,Chronology chrono){ super(); iChronology=DateTimeUtils.getChronology(chrono); checkInterval(startInstant,endInstant); iStartMillis=startInstant; iEndMillis=endInstant; }
Constructs an interval from a start and end instant.
public boolean canConnect(){ try { wake(); ClientSocket stream=open(); if (stream != null) { stream.free(stream.getIdleStartTime()); return true; } return false; } catch ( Exception e) { log.log(Level.FINER,e.toString(),e); return false; } }
Returns true if can connect to the client.
public String openExternal(String url){ try { Intent intent=null; intent=new Intent(Intent.ACTION_VIEW); Uri uri=Uri.parse(url); if ("file".equals(uri.getScheme())) { intent.setDataAndType(uri,webView.getResourceApi().getMimeType(uri)); } else { intent.setData(uri); } this.cor...
Display a new browser with the specified URL.
@Override public void doRun(int run) throws Exception { if (getRawOutput()) { if (m_ZipDest == null) { m_ZipDest=new OutputZipper(m_OutputFile); } } if (m_Instances == null) { throw new Exception("No Instances set"); } int fold=(run - 1) % m_NumFolds; run=((run - 1) / m_NumFolds) + 1; In...
Gets the results for a specified run number. Different run numbers correspond to different randomizations of the data. Results produced should be sent to the current ResultListener
public NamedThreadPoolExecutor(String poolName,int corePoolSize,int maximumPoolSize,long keepAliveTime,TimeUnit unit,BlockingQueue<Runnable> queue,ThreadFactory factory){ super(corePoolSize,maximumPoolSize,keepAliveTime,unit,queue,new NamedThreadFactory(poolName,factory)); setPoolName(poolName); }
Creates a new ThreadPoolExecutor with the given parameters.
@Override protected void load(){ if (!this.getWorld().isRemote) { for ( EnvironmentEvent event : this.environmentEventRegistry.getEvents().values()) { event.readFromNBT(this.getData()); } this.environmentEventRegistry.setDisabled(this.getData().getBoolean("eventsDisabled")); this.aspectManage...
Load data here
public SWFText tagDefineText2(int id,Rect bounds,Matrix matrix) throws IOException { lastBounds=curBounds; curBounds=bounds; return new TextDumper(); }
SWFTagTypes interface
public double remove(double key){ double prev=0; int index=index(key); if (index >= 0) { prev=_values[index]; removeAt(index); } return prev; }
Deletes a key/value pair from the map.
public static Builder builder(ConnectRequest request){ return new Builder(request); }
Returns a connect client request builder for an existing request.
public IoBufferDecoder(byte[] delimiter){ setDelimiter(delimiter,true); }
Creates a new instance that uses specified <tt>delimiter</tt> byte array as a message delimiter.
public static Gamepad logitechF310(int port){ Joystick joystick=new Joystick(port); return Gamepad.create(null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null); }
Create a Logitech F310 gamepad controlled by the Driver Station.
public void consumeAllTokens() throws IOException { while (incrementToken()) { } }
<code>TeeSinkTokenFilter</code> passes all tokens to the added sinks when itself is consumed. To be sure that all tokens from the input stream are passed to the sinks, you can call this methods. This instance is exhausted after this method returns, but all sinks are instant available.
public void addBounds(Rectangle2D bounds){ this.bounds.add(bounds); }
Set world coordinate bounds for tiles to be created. Should not cross over date line.
protected void print(double v) throws IOException { print(String.valueOf(v)); }
Prints a double to the stream.
public static void async(Activity act,Context context,ImageView iv,String url,Object progress,AccountHandle ah,ImageOptions options,HttpHost proxy,String networkUrl){ async(act,context,iv,url,options.memCache,options.fileCache,options.targetWidth,options.fallback,options.preset,options.animation,options.ratio,options...
AQuery internal use only. Please uses AQuery image() methods instead. Optimize memory usage if mem hit and there's no custom callback.
public boolean hasHeaders(){ return getListView().getVisibility() == View.VISIBLE && mPreferenceManager == null; }
Returns true if this activity is currently showing the header list.
@Override public void eUnset(int featureID){ switch (featureID) { case EipPackage.SPLITTER__NAME: setName(NAME_EDEFAULT); return; case EipPackage.SPLITTER__TO_CHANNELS: getToChannels().clear(); return; case EipPackage.SPLITTER__FROM_CHANNELS: getFromChannels().clear(); return; } super.eUnset(featureID); }
<!-- begin-user-doc --> <!-- end-user-doc -->
private void scrollToChild(View child){ child.getDrawingRect(mTempRect); offsetDescendantRectToMyCoords(child,mTempRect); int scrollDeltaV=computeScrollDeltaToGetChildRectOnScreenV(mTempRect); int scrollDeltaH=computeScrollDeltaToGetChildRectOnScreenH(mTempRect); if (scrollDeltaH != 0 || scrollDeltaV != 0) { ...
Scrolls the view to the given child.
public static ExtensionRegistryLite newInstance(){ return new ExtensionRegistryLite(); }
Construct a new, empty instance.
public boolean isReply(){ return reply; }
Indicates whether this content item is a reply to another content item.
public void runTest() throws Throwable { Document doc; NodeList nameList; doc=(Document)load("staff",false); nameList=doc.getElementsByTagName("*"); if (("image/svg+xml".equals(getContentType()))) { assertSize("elementCountSVG",39,nameList); } else { assertSize("documentGetElementsByTagNameTotalLen...
Runs the test case.
public Integer onLoadData32(byte[] ioPage,int addr,int value,DebuggableMemory.AccessSource accessSource){ if (addr >= REGISTER_TMRLRA0_32 && addr < (REGISTER_TMRLRA0_32 + NUM_TIMER32 * TIMER32_OFFSET)) { int channel; channel=(addr - REGISTER_TMRLRA0_32) / TIMER32_OFFSET; addr-=(channel * TIMER32_OFFSET); ...
Called when reading 32-bit value from register address range
public void add(LogLine object){ if (mOriginalValues != null) { synchronized (mLock) { mOriginalValues.add(object); mObjects.add(object); if (mNotifyOnChange) notifyDataSetChanged(); } } else { mObjects.add(object); if (mNotifyOnChange) notifyDataSetChanged(); } }
Adds the specified object at the end of the array.
public int count(){ return m_extFlds.size(); }
Devuelve el numero de campos de la lista
private void recordVirtualPoolEvent(String type,String description,URI vpool){ RecordableBourneEvent event=new RecordableBourneEvent(type,null,URI.create("ViPR-User"),null,vpool,EVENT_SERVICE_TYPE,vpool,description,System.currentTimeMillis(),"",null,RecordType.Event.name(),EVENT_SERVICE_SOURCE,"",""); try { _ev...
Record Bourne Event for the completed operations
public synchronized void disconnect(ITLCOutputListener listener){ Assert.isNotNull(listener); ITLCOutputSource source=this.sources.get(listener.getModel()); if (source != null) { source.removeTLCOutputListener(listener); } printStats(); }
Disconnect the source from the listener
public static final Criterion and(List<Criterion> criteria){ return new ConjunctionCriterion(Conjunction.AND,criteria); }
Creates a filter composing the listed criteria.