code
stringlengths
10
174k
nl
stringlengths
3
129k
public boolean match(CRL crl){ if (!(crl instanceof X509CRL)) { return false; } X509CRL crlist=(X509CRL)crl; if ((issuerNames != null) && !(issuerNames.contains(crlist.getIssuerX500Principal().getName(X500Principal.CANONICAL)))) { return false; } if ((minCRL != null) || (maxCRL != null)) { try {...
Returns whether the specified CRL matches all the criteria collected in this instance.
public INNER_JOIN INNER_JOIN(String tableToJoin){ return new INNER_JOIN(this,tableToJoin); }
Add a INNER JOIN
public String toString(){ return (attributeValue.toString()); }
Returns the attribute in user readable form.
public Map flatten(Map target){ if (target == null) target=new ConfigObject(); populate("",target,this); return target; }
Flattens this ConfigObject populating the results into the target Map
public static long[] shiftRightI(long[] v,int off){ if (off == 0) { return v; } if (off < 0) { return shiftLeftI(v,-off); } final int shiftWords=off >>> LONG_LOG2_SIZE; final int shiftBits=off & LONG_LOG2_MASK; if (shiftWords >= v.length) { return zeroI(v); } if (shiftBits == 0) { Syst...
Shift a long[] bitset inplace. Low-endian layout for the array.
void remove(SuperCardToast superCardToast){ mList.remove(superCardToast); }
Removes a SuperCardToast from the list.
private void insert(ByteString byteString){ int depthBin=getDepthBinForLength(byteString.size()); int binEnd=minLengthByDepth[depthBin + 1]; if (prefixesStack.isEmpty() || prefixesStack.peek().size() >= binEnd) { prefixesStack.push(byteString); } else { int binStart=minLengthByDepth[depthBin]; Byte...
Push a string on the balance stack (BAP95). BAP95 uses an array and calls the elements in the array 'bins'. We instead use a stack, so the 'bins' of lengths are represented by differences between the elements of minLengthByDepth. <p>If the length bin for our string, and all shorter length bins, are empty, we just pus...
@Override public void onClick(View v){ if (v.getId() == R.id.btnSelect) { List<IContact> contacts=contactSelectedAdapter.getSelectedContacts(); if (option.allowSelectEmpty || checkMinMaxSelection(contacts.size())) { ArrayList<String> selectedAccounts=new ArrayList<>(); for ( IContact c : cont...
************************** select
public static ObjectMetadata parseObjectMetadata(Map<String,String> headers) throws ResponseParseException { try { ObjectMetadata objectMetadata=new ObjectMetadata(); for (Iterator<String> it=headers.keySet().iterator(); it.hasNext(); ) { String key=it.next(); if (key.indexOf(OSSHeaders.OSS_USER_M...
Unmarshall object metadata from response headers.
public void clearRect(int x,int y,int width,int height){ Rectangle2D.Float rect=new Rectangle2D.Float(x,y,width,height); addDrawingRect(rect); mPrintMetrics.clear(this); }
Clears the specified rectangle by filling it with the background color of the current drawing surface. This operation does not use the current paint mode. <p> Beginning with Java&nbsp;1.1, the background color of offscreen images may be system dependent. Applications should use <code>setColor</code> followed by <code>f...
protected void checkTransactionalRead(TransactionConcurrency concurrency,TransactionIsolation isolation) throws IgniteCheckedException { IgniteCache<String,Integer> cache=jcache(0); cache.clear(); Transaction tx=grid(0).transactions().txStart(concurrency,isolation); try { cache.put("key",1); assertEqual...
Tests sequential value write and read inside transaction.
protected String computeRemoteAddress() throws MessagingException, UnknownHostException { String domain=getRemoteDomain(); String address; String validatedAddress; int ipAddressStart=domain.indexOf('['); int ipAddressEnd=-1; if (ipAddressStart > -1) { ipAddressEnd=domain.indexOf(']',ipAddressStart); }...
Answer the IP Address of the remote server for the message being processed.
private void testUpload(final int size,final boolean useFileStorage) throws TimeoutException { mWaiter=new Waiter(); if (useFileStorage) { mSocket.setUploadStorageType(UploadStorageType.FILE_STORAGE); } mSocket.startUpload(SPEED_TEST_SERVER_HOST,SPEED_TEST_SERVER_PORT,SPEED_TEST_SERVER_URI_UL,size); mWait...
Test upload with given packet size.
public void openKeyStore(File keyStoreFile,String defaultPassword){ try { if (!keyStoreFile.isFile()) { JOptionPane.showMessageDialog(frame,MessageFormat.format(res.getString("OpenAction.NotFile.message"),keyStoreFile),res.getString("OpenAction.OpenKeyStore.Title"),JOptionPane.WARNING_MESSAGE); return...
Open the supplied KeyStore file from disk.
public void install(JFormattedTextField ftf){ super.install(ftf); if (ftf != null) { Object value=ftf.getValue(); try { stringToValue(valueToString(value)); } catch ( ParseException pe) { setEditValid(false); } } }
Installs the <code>DefaultFormatter</code> onto a particular <code>JFormattedTextField</code>. This will invoke <code>valueToString</code> to convert the current value from the <code>JFormattedTextField</code> to a String. This will then install the <code>Action</code>s from <code>getActions</code>, the <code>DocumentF...
public SIRtree(){ this(10); }
Constructs an SIRtree with the default node capacity.
@NotNull public static <Type extends PsiElement>Type addBlockIntoParent(@NotNull Type statement) throws IncorrectOperationException { PsiElement parent=statement.getParent(); PsiElement child=statement; while (!(parent instanceof GrLoopStatement) && !(parent instanceof GrIfStatement) && !(parent instanceof GrVari...
adds block statement in parent of statement if needed. For Example: while (true) a=foo() will be replaced with while(true) {a=foo()}
private static void writeMajorStatisticsString(BufferedWriter output,SAZone zone) throws IOException { output.write(zone.getName()); output.write(delimiter); output.write(String.valueOf(zone.getMajorActivityCount())); output.write(delimiter); for (int i=0; i < 24; i++) { output.write(String.valueOf(zone.g...
Method to create a statistics string for 'major' activities.
private boolean isAlphaUsedForScale(){ return android.os.Build.VERSION.SDK_INT < 11; }
Pre API 11, alpha is used to make the progress circle appear instead of scale.
@SuppressWarnings("deprecation") private void configBluetoothSensor(){ ListPreference preference=(ListPreference)findPreference(getString(R.string.bluetooth_sensor_key)); String value=PreferencesUtils.getString(this,R.string.bluetooth_sensor_key,PreferencesUtils.BLUETOOTH_SENSOR_DEFAULT); List<String> optionsList...
Configures the bluetooth sensor.
@Override public void onViewCreated(View view,Bundle savedInstanceState){ super.onViewCreated(view,savedInstanceState); ensureList(); }
Attach to list view once the view hierarchy has been created.
public void writeUint64(long n){ check(8); buffer[write_pos++]=(byte)((n & 0x00ff00000000000000L) >> 56); buffer[write_pos++]=(byte)((n & 0x00ff000000000000L) >> 48); buffer[write_pos++]=(byte)((n & 0x00ff0000000000L) >> 40); buffer[write_pos++]=(byte)((n & 0x00ff00000000L) >> 32); buffer[write_pos++]=(byte...
Writes Uint64 value
public ClientHello(SecureRandom sr,byte[] version,byte[] ses_id,CipherSuite[] cipher_suite){ client_version=version; long gmt_unix_time=System.currentTimeMillis() / 1000; sr.nextBytes(random); random[0]=(byte)(gmt_unix_time & 0xFF000000 >>> 24); random[1]=(byte)(gmt_unix_time & 0xFF0000 >>> 16); random[2]=(...
Creates outbound message
private void releaseWakeLock(){ if (wakeLock != null && wakeLock.isHeld()) { wakeLock.release(); wakeLock=null; } }
Releases the wake lock.
@Override public byte[] executeAttack(){ byte[] paddedDecryptedData=new byte[encryptedData.length - blockSize]; int lastBlockLength=0; int blockPairNumber=(encryptedData.length / blockSize) - 1; FindIVMethodProperties.Type type=FindIVMethodProperties.Type.UNDEFINED; for (int i=0; i < blockPairNumber; i++) { ...
execute attack on the given ciphertext using the existing m_Oracle
public void checkForNullValue(String value){ if (value == null) { throw new NullPointerException(); } }
null keys would corrupt the shared pref file and make them unreadable this is a preventive measure the pref key
private boolean isIPConstrained(byte ip[],byte[] constraint){ int ipLength=ip.length; if (ipLength != (constraint.length / 2)) { return false; } byte[] subnetMask=new byte[ipLength]; System.arraycopy(constraint,ipLength,subnetMask,0,ipLength); byte[] permittedSubnetAddress=new byte[ipLength]; byte[] i...
Checks if the IP address <code>ip</code> is constrained by <code>constraint</code>.
public void initLayout(){ closePosition=0; layoutSize=0; isArranged=false; isCalculatedSize=false; savedState=null; if (isVertical()) { measure(MeasureSpec.makeMeasureSpec(getWidth(),MeasureSpec.EXACTLY),MeasureSpec.makeMeasureSpec(getHeight(),MeasureSpec.UNSPECIFIED)); } else { measure(MeasureSp...
Initializes this layout.
public static final OCSPResp fromBasicToResp(final BasicOCSPResp basicOCSPResp){ try { final byte[] encoded=basicOCSPResp.getEncoded(); final OCSPResp ocspResp=fromBasicToResp(encoded); return ocspResp; } catch ( IOException e) { throw new DSSException(e); } }
Convert a BasicOCSPResp in OCSPResp (connection status is set to SUCCESSFUL).
public static String random(int count,boolean letters,boolean numbers){ return random(count,0,0,letters,numbers); }
<p>Creates a random string whose length is the number of characters specified.</p> <p>Characters will be chosen from the set of alpha-numeric characters as indicated by the arguments.</p>
public boolean on(ASN1ObjectIdentifier stem){ String id=getId(), stemId=stem.getId(); return id.length() > stemId.length() && id.charAt(stemId.length()) == '.' && id.startsWith(stemId); }
Return true if this oid is an extension of the passed in branch, stem.
public Code39Reader(boolean usingCheckDigit){ this.usingCheckDigit=usingCheckDigit; this.extendedMode=false; }
Creates a reader that can be configured to check the last character as a check digit. It will not decoded "extended Code 39" sequences.
protected void writeEntityToNBT(NBTTagCompound par1NBTTagCompound){ }
(abstract) Protected helper method to write subclass entity data to NBT.
public boolean userCanViewUser(int connectedUserId,String entidad) throws Exception { boolean can=false; try { can=hasUserAuth(connectedUserId,USER_ACTION_ID_VIEW,Defs.NULL_ID,Defs.NULL_ID,entidad); } catch ( Exception e) { _logger.error(e); throw e; } return can; }
Obtiene si el usuario conectado puede consultar usuarios
public synchronized long waitMinTime(long time,long seqno) throws InterruptedException { while (head != null && time > head.time) { wait(1000); } if (head == null) return 0; else return head.time; }
Wait until the minimum time in array is greater than or equal to the request time. If there is nothing in the array we return immediately.
public void go(OutputStream out) throws IOException { buildPage().write(out); }
Writes the hCards to an output stream.
public void run(){ for ( LocalGossipMember member : members.keySet()) { if (member != me) { member.startTimeoutTimer(); } } try { passiveGossipThread=passiveGossipThreadClass.getConstructor(GossipManager.class).newInstance(this); gossipThreadExecutor.execute(passiveGossipThread); active...
Starts the client. Specifically, start the various cycles for this protocol. Start the gossip thread and start the receiver thread.
private Node addConditionWaiter(){ Node t=lastWaiter; if (t != null && t.waitStatus != Node.CONDITION) { unlinkCancelledWaiters(); t=lastWaiter; } Node node=new Node(Thread.currentThread(),Node.CONDITION); if (t == null) firstWaiter=node; else t.nextWaiter=node; lastWaiter=node; return node; ...
Adds a new waiter to wait queue.
public final void addToTiersByVarNames(List<String> myNodes){ if (!this.myNodes.containsAll(myNodes)) { for ( String variable : myNodes) { if (!checkVarName(variable)) { throw new IllegalArgumentException("Bad variable name: " + variable); } addVariable(variable); } } for ( O...
Puts a variable into tier i if its name is xxx:ti for some xxx and some i.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:33:40.373 -0500",hash_original_method="276C18C659FAD0D183192D3E613DC123",hash_generated_method="BE93730CA41BE33A2A3EB37CEE8379CD") public ViolationInfo(Parcel in,boolean unsetGatheringBit){ crashInfo=new ApplicationErrorReport.CrashI...
Create an instance of ViolationInfo initialized from a Parcel.
public boolean exportSelected(){ return exportSelected; }
Has the user chosen to export?
public ClassPath appendClassPath(String pathname) throws NotFoundException { return source.appendClassPath(pathname); }
Appends a directory or a jar (or zip) file to the end of the search path.
private static void readChar(ByteToChar converter,CharReader is,int ch,boolean isTop) throws IOException { if (ch == '+') { if (isTop) converter.addByte(' '); else converter.addChar(' '); } else if (ch == '%') { int ch1=is.next(); if (ch1 == 'u') { ch1=is.next(); int ch2=is.next(...
Scans the next character from the input stream, adding it to the converter.
public MainMenu(TDA listener){ this.listener=listener; createMenuBar(); }
Creates a new instance of the MainMenu
private boolean isHardwareKeyboardPresent(){ Configuration config=getResources().getConfiguration(); boolean returnValue=false; if (config.keyboard != Configuration.KEYBOARD_NOKEYS) { returnValue=true; } return returnValue; }
Returns true if a hardware keyboard is detected, otherwise false.
public PowerVm(final int id,final int userId,final double mips,final int pesNumber,final int ram,final long bw,final long size,final int priority,final String vmm,final CloudletScheduler cloudletScheduler,final double schedulingInterval){ super(id,userId,mips,pesNumber,ram,bw,size,vmm,cloudletScheduler); setSchedul...
Instantiates a new PowerVm.
public void writeObjectFieldValueSeparator(JsonGenerator jg) throws IOException, JsonGenerationException { jg.writeRaw(':'); }
Method called after an object field has been output, but before the value is output. <p> Default handling will just output a single colon to separate the two, without additional spaces.
public static <T>boolean allSatisfy(Iterable<T> iterable,Predicate<? super T> predicate){ if (iterable instanceof RichIterable) { return ((RichIterable<T>)iterable).allSatisfy(predicate); } if (iterable instanceof ArrayList) { return ArrayListIterate.allSatisfy((ArrayList<T>)iterable,predicate); } if ...
Returns true if the predicate evaluates to true for every element of the iterable, or returns false. Returns true if the iterable is empty.
public MatchQueryBuilder cutoffFrequency(float cutoff){ this.cutoff_Frequency=cutoff; return this; }
Set a cutoff value in [0..1] (or absolute number >=1) representing the maximum threshold of a terms document frequency to be considered a low frequency term.
private void injectDiscoveryProfile(AccessProfile accessProfile,StorageSystem system) throws DatabaseException, DeviceControllerException { StorageProvider provider=getActiveProviderForStorageSystem(system,accessProfile); populateSMISAccessProfile(accessProfile,provider); accessProfile.setSystemId(system.getId())...
inject Details needed for Discovery
private void updateProductInfo(int C_AcctSchema_ID){ log.fine("C_Invoice_ID=" + get_ID()); StringBuffer sql=new StringBuffer("UPDATE M_Product_Costing pc " + "SET (PriceLastInv, TotalInvAmt,TotalInvQty) = " + "(SELECT currencyConvert(il.PriceActual,i.C_Currency_ID,a.C_Currency_ID,i.DateInvoiced,i.C_ConversionType_I...
Update Product Info (old). - Costing (PriceLastInv) - PO (PriceLastInv)
public boolean isDashedLineEnabled(){ return mDashPathEffect == null ? false : true; }
Returns true if the dashed-line effect is enabled, false if not. Default: disabled
public double[] distributionForInstance(Instance instance) throws Exception { double[] sums=new double[instance.numClasses()], newProbs; double numPreds=0; for (int i=0; i < m_NumIterations; i++) { if (instance.classAttribute().isNumeric() == true) { double pred=m_Classifiers[i].classifyInstance(instanc...
Calculates the class membership probabilities for the given test instance.
protected void installDefaultPainter(Style s){ if (s.getBgPainter() == null) { s.setBgPainter(new BGPainter(s)); } }
Allows subclasses to create their own custom style types and install the background painter into them
public boolean isAfterLast(){ return this.index >= this.rows.size() && this.rows.size() != 0; }
Returns true if we got the last element.
@Override public void shutdown(){ super.shutdown(); disconnect(); }
Stop sensing.
protected int select(double[] array,int[] indices,int left,int right,final int indexStart,int k){ if (left == right) { return left; } else { int middle=partition(array,indices,left,right,indexStart); if ((middle - left + 1) >= k) { return select(array,indices,left,middle,indexStart,k); } els...
Implements computation of the kth-smallest element according to Manber's "Introduction to Algorithms".
public void add(Permission permission){ if (isReadOnly()) throw new SecurityException("attempt to add a Permission " + "to a readonly PermissionCollection"); if (!(permission instanceof CryptoPermission)) return; permissions.addElement(permission); }
Adds a permission to the CryptoPermissionCollection.
public void reset(){ if (rules != null) { rules.clear(); } includesCount=excludesCount=0; blacklist=true; }
Resets all the rules in this rule engine.
public final int valueCount(){ return values.size(); }
Returns the number of onNext values received.
public IdentityHashMap(int maxSize){ if (maxSize >= 0) { this.size=0; threshold=getThreshold(maxSize); elementData=newElementArray(computeElementArraySize()); } else { throw new IllegalArgumentException(); } }
Creates an IdentityHashMap with the specified maximum size parameter.
public Collection<SynchronizingStorageEngine> values(){ return localStores.values(); }
Get a collection containing all the currently-registered stores
private boolean isPending(BlockMirror mirror){ return !isInactive(mirror) && isNullOrEmpty(mirror.getSynchronizedInstance()); }
Check if a mirror exists in ViPR as an active model and is pending creation on the storage array.
public void close(){ if (dialog != null) { dialog.setVisible(false); dialog.dispose(); dialog=null; pane=null; myBar=null; } }
Indicate that the operation is complete. This happens automatically when the value set by setProgress is &gt;= max, but it may be called earlier if the operation ends early.
public static void attach(@NonNull Activity activity){ init(activity.getApplication()); if (sInstance.mStates == null) { sInstance.mStates=new StateLinkedList(3); } }
Attach an activity to Toro. Toro register activity's life cycle to properly handle Screen visibility: free necessary resource if User doesn't need it anymore
public static <T,X extends Throwable>Tuple3<CompletableFuture<Subscription>,Runnable,CompletableFuture<Boolean>> forEachEvent(final LazyFutureStream<T> stream,final Consumer<? super T> consumerElement,final Consumer<? super Throwable> consumerError,final Runnable onComplete){ final CompletableFuture<Subscription> sub...
Perform a forEach operation over the Stream capturing any elements and errors in the supplied consumers when the entire Stream has been processed an onComplete event will be recieved. <pre>
@Override public void write(byte[] buffer,int offset,int length) throws IOException { while ((mByteToSkip > 0 || mByteToCopy > 0 || mState != STATE_JPEG_DATA) && length > 0) { if (mByteToSkip > 0) { int byteToProcess=length > mByteToSkip ? mByteToSkip : length; length-=byteToProcess; mByteToSkip...
Writes the image out. The input data should be a valid JPEG format. After writing, it's Exif header will be replaced by the given header.
public TileEntityElectricMachine(String soundPath,String name,double perTick,int ticksRequired,double maxEnergy){ super(soundPath,name,MekanismUtils.getResource(ResourceType.GUI,"GuiBasicMachine.png"),perTick,ticksRequired,maxEnergy); configComponent=new TileComponentConfig(this,TransmissionType.ITEM,TransmissionTy...
A simple electrical machine. This has 3 slots - the input slot (0), the energy slot (1), output slot (2), and the upgrade slot (3). It will not run if it does not have enough energy.
public boolean isImageDefined(){ return imageDefined; }
Checks whether an image was defined which is used when customers subscribe to the service.
public static byte[] combine(final List<byte[]> dataChunks){ int totalSize=0; for ( final byte[] dataPart : dataChunks) { totalSize+=dataPart.length; } final byte[] data=new byte[totalSize]; int index=0; for ( final byte[] dataPart : dataChunks) { System.arraycopy(dataPart,0,data,index,dataPart.le...
Combines a list of byte arrays into one big byte array.
public boolean isStateActive(State state){ switch (state) { case constOnlyNamedScope_main_region_A: return stateVector[0] == State.constOnlyNamedScope_main_region_A; case constOnlyNamedScope_main_region_B: return stateVector[0] == State.constOnlyNamedScope_main_region_B; case constOnlyNamedScope_main_region_C: re...
Returns true if the given state is currently active otherwise false.
private static void checkArgs(final long[] min,final long[] max){ if (min == null || max == null || min.length == 0 || max.length == 0) { throw new IllegalArgumentException("min/max range values cannot be null or empty"); } if (min.length != max.length) { throw new IllegalArgumentException("min/max ranges...
validate the arguments
public final void lazySet(long newValue){ unsafe.putOrderedLong(this,valueOffset,newValue); }
Eventually sets to the given value.
public Word loadWord(){ return new Word(loadArchitecturalWord()); }
Loads a word value from the memory location pointed to by the current instance.
public boolean isDefault(){ Object oo=get_Value(COLUMNNAME_IsDefault); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; }
Get Default.
private void executeCommand(HttpServletRequest request,String p_cmd,MobileSessionCtx wsc,WWindowStatus ws){ String p_tab=MobileUtil.getParameter(request,P_Tab); String p_row=MobileUtil.getParameter(request,P_MR_RowNo); log.config(p_cmd + " - Tab=" + p_tab+ " - Row="+ p_row); if (p_row != null && p_row.length() ...
Execute Command.
@Override @SuppressWarnings("unchecked") public Object invoke(Object object,Method nativeMethod,Object[] objects) throws Throwable { log.debug("Invoked response method. NativeMethod={}, method args length={}",nativeMethod.getName(),objects.length); E event=(E)createGenericEvent(objects[0]); R response=(R)createGe...
Handles the invocation
private Object findFlushingPropertyContrust(){ if (flashingProperty.indexOf("Color") > -1) { int val=Integer.decode("0x" + originalFlashingPropertyValue); if (val > 0xf0f0f0) { return "000000"; } else { return "ffffff"; } } if (flashingProperty.indexOf("derive") > -1) { return "No...
Returns a "contrasting" value for the property to flash, e.g. for a font, return a differnet font or for a color return a ligher/darker color...
private boolean fillBuffer(){ assertOpen(); if (ft != null) { throw new AssertionError(); } try { while (src.hasNext() && buffer.remainingCapacity() > 0) { final Justification jst=(Justification)src.next().getObject(); try { buffer.put(jst); numBuffered++; } catch ( ...
(Re-)fills the buffer up to its capacity or the exhaustion of the source iterator.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2014-02-25 10:37:58.877 -0500",hash_original_method="BCC81355363782E84A460D40E9FAB2BD",hash_generated_method="BCC81355363782E84A460D40E9FAB2BD") boolean _requestedDo(int option){ return ((_options[option] & _REQUESTED_DO_MASK) != 0); }
Looks for the state of the option. <p>
public ConnectionConfig(jmri.jmrix.SerialPortAdapter p){ super(p); }
Ctor for an object being created during load process; Swing init is deferred.
default String renderType(Generator gen,M model){ return gen.on(model.getType()).map(null).orElse(EMPTY); }
Render the type of the model appended by an extra space.
public boolean invalidateIt(){ log.info(toString()); setDocAction(DOCACTION_Prepare); return true; }
Invalidate Document
public void testContinuousMode() throws Throwable { processTest(CONTINUOUS); }
Test GridDeploymentMode.CONTINUOUS mode.
private byte[] entityToBytes(HttpEntity entity) throws IOException, ServerError { PoolingByteArrayOutputStream bytes=new PoolingByteArrayOutputStream(mPool,(int)entity.getContentLength()); byte[] buffer=null; try { InputStream in=entity.getContent(); if (in == null) { throw new ServerError(); } ...
Reads the contents of HttpEntity into a byte[].
public void repaint(){ }
Overriden to do nothing and remove a performance issue where renderer changes perform needless repaint calls
public CachingMetadataReaderFactory(ResourceLoader resourceLoader){ super(resourceLoader); }
Create a new CachingMetadataReaderFactory for the given resource loader.
private void inflateContentView(){ contentContainer=(ViewGroup)rootView.findViewById(R.id.content_container); contentContainer.removeAllViews(); if (customView != null) { contentContainer.setVisibility(View.VISIBLE); contentContainer.addView(customView); } else if (customViewId != -1) { contentCo...
Inflates the layout, which is used to show the bottom sheet's content. The layout may either be the default one or a custom view, if one has been set before.
public void addConf(String s){ conf.add(s); }
Add realm-specific krb5.conf setting
public void testCreateConfigurationWhenInvalidHint(){ try { this.factory.createConfiguration("testableContainerId",ContainerType.INSTALLED,new ConfigurationType("invalidhint")); } catch ( ContainerException expected) { assertEquals("Cannot create configuration. There's no registered configuration for " + ...
Test configuration creation with invalid hint.
private void insertCOMMarkerSegment(COMMarkerSegment newGuy){ int lastCOM=findMarkerSegmentPosition(COMMarkerSegment.class,false); boolean hasJFIF=(findMarkerSegment(JFIFMarkerSegment.class,true) != null); int firstAdobe=findMarkerSegmentPosition(AdobeMarkerSegment.class,true); if (lastCOM != -1) { markerSe...
Insert a new COM marker segment into an appropriate place in the marker sequence, as follows: If there already exist COM marker segments, the new one is inserted after the last one. If there are no COM segments, the new COM segment is inserted after the JFIF segment, if there is one. If there is no JFIF segment, the ne...
private static void s_uackp(SparseBlock a,double[] c,int m,int n,KahanObject kbuff,KahanPlus kplus,int rl,int ru){ if (a.isContiguous()) { sumAgg(a.values(rl),c,a.indexes(rl),a.pos(rl),(int)a.size(rl,ru),n,kbuff,kplus); } else { for (int i=rl; i < ru; i++) { if (!a.isEmpty(i)) sumAgg(a.values(i...
COLSUM, opcode: uack+, sparse input.
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:35:19.739 -0500",hash_original_method="B3CD0EA91E55821485199A61F4C775D4",hash_generated_method="B6ED1071D2558B7B04C360A56B033244") public boolean shouldIncludeInGlobalSearch(){ return mIncludeInGlobalSearch; }
Checks whether the searchable should be included in global search.
public void hincrByFloat(String key,String field,double doubleValue){ connection.hincrbyfloat(key,field,doubleValue); if (keyExpiryTime != -1) { connection.expire(key,keyExpiryTime); } }
Calls hincrbyfloat on the redis store.
public SnackbarBuilder icon(Drawable icon){ this.icon=icon; return this; }
Set an icon to display on the Snackbar next to the message.
@SuppressWarnings("unchecked") public static EntityView<IEntity> create(final IEntity entity){ try { if (entity.isUser()) { Entity2DView<IEntity> user2DView=new User2DView(); user2DView.initialize(entity); return user2DView; } final String type=entity.getType(); String eclass=entity....
Create an entity view from an entity.
protected static Map<String,String> convertHeaders(Header[] headers){ Map<String,String> result=new TreeMap<String,String>(String.CASE_INSENSITIVE_ORDER); for (int i=0; i < headers.length; i++) { result.put(headers[i].getName(),headers[i].getValue()); } return result; }
Converts Headers[] to Map<String, String>.
public void paintToolBarDragWindowBackground(SynthContext context,Graphics g,int x,int y,int w,int h){ paintBackground(context,g,x,y,w,h,null); }
Paints the background of the window containing the tool bar when it has been detached from its primary frame.
public static Color shadow(Color c,int amount){ return new Color(Math.max(0,c.getRed() - amount),Math.max(0,c.getGreen() - amount),Math.max(0,c.getBlue() - amount),c.getAlpha()); }
Blackens the specified color by casting a black shadow of the specified amount on the color.
public void checkOwnsNoSchemas(){ for ( Schema s : database.getAllSchemas()) { if (this == s.getOwner()) { throw DbException.get(ErrorCode.CANNOT_DROP_2,getName(),s.getName()); } } }
Check that this user does not own any schema. An exception is thrown if he owns one or more schemas.