code
stringlengths
3
1.18M
language
stringclasses
1 value
package kianxali.loader.pe; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import kianxali.loader.ByteSequence; public class Imports { private List<Import> imports; private Map<Long, Import> memToIm...
Java
package kianxali.loader.pe; import kianxali.loader.ByteSequence; public class OptionalHeader { public static final int HEADER_MAGIC_PE32 = 0x010B; public static final int HEADER_MAGIC_PE32PLUS = 0x020B; // means some fields are 64 bit, but doesn't imply 64 bit code public enum SubSystem { DLL, CONSOLE, GU...
Java
package kianxali.decoder; import kianxali.util.OutputFormatter; /** * An entity is a decoded instruction or data with a fixed * memory address. Every memory address can become either * data or instruction. * @author fwi * */ public interface DecodedEntity { /** * Returns the memory address of this enti...
Java
/** * The decoder's task is to process a single entry from a {@link kianxali.loader.ByteSequence} and * parse it into an {@link kianxali.decoder.Instruction} instance. The main class that can be used * by other packages is {@link kianxali.decoder.Decoder}. */ package kianxali.decoder;
Java
package kianxali.decoder; import kianxali.loader.ByteSequence; import kianxali.util.OutputFormatter; /** * This class represents data references that can be yielded by operands. * The data can be used for further analysis by higher level classes. * @author fwi * */ public class Data implements DecodedEntity { ...
Java
package kianxali.decoder; import java.util.List; import java.util.Map; /** * This interface represents a decoded instruction. To have the * disassembler architecture independent, instructions must supply * some information to the dissasembler through this interface. * @author fwi * */ public interface Instructi...
Java
package kianxali.decoder; import java.util.ArrayList; import java.util.List; import kianxali.loader.ByteSequence; import kianxali.util.OutputFormatter; /** * A jump table is a special type of data that represents * a table of memory adresses pointing to code. * @author fwi * */ public class JumpTa...
Java
package kianxali.decoder; /** * A context stores information that is required for and modified when parsing * opcodes. It is mostly architecture dependent. * @author fwi * */ public interface Context { /** * Create an instruction decoder for the this context. * @return an instruction decoder matchin...
Java
package kianxali.decoder; import java.util.Collection; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; /** * This class describes the prefix tree that is used to parse * opcodes. * @author fwi * * @param <LeafType> the type of data in the ...
Java
package kianxali.decoder; /** * Specifies whether an operand is used as source or destination of an instruction * @author fwi * */ public enum UsageType { SOURCE, DEST; }
Java
/** * This package contains an XML parser that parses the x86 instruction set * from <a href='http://ref.x86asm.net/'>http://ref.x86asm.net/</a> and * stores all opcode syntaxes in a list that can be processed further. * The main class to do that is {@link kianxali.decoder.arch.x86.xml.XMLParserX86}. * */ package...
Java
package kianxali.decoder.arch.x86.xml; /** * A group used to categorize an opcode semantically. * @author fwi * */ public enum OpcodeGroup { PREFIX, PREFIX_SEGREG, PREFIX_BRANCH, PREFIX_BRANCH_CONDITIONAL, PREFIX_FPU, PREFIX_FPU_CONTROL, PREFIX_STRING, // undocumented in the XML doc ...
Java
package kianxali.decoder.arch.x86.xml; import java.io.FileReader; import java.io.IOException; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.Set; import java.util.logging.Logger; import kianxali.decoder.UsageType; import kianxali.decoder.arch.x86.X86Mnemonic; import...
Java
package kianxali.decoder.arch.x86.xml; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import kianxali.decoder.arch.x86.X86CPU.ExecutionMode; import kianxali.decoder.arch.x86.X86CPU.InstructionSetExtension; import kianxali.decoder.arch.x86.X86CPU.Model; /** * An x8...
Java
package kianxali.decoder.arch.x86.xml; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import kianxali.decoder.arch.x86.X86Mnemonic; import kianxali.decoder.arch.x86.xml.OperandDesc.AddressType; /** * Represents the syntax of an opcode, i.e. the number and ...
Java
package kianxali.decoder.arch.x86.xml; import kianxali.decoder.UsageType; /** * This class describes an opcode's operands. * Each operand has an operand type specifying the width of the operand * and an address type specifying how this operand is addressed (encoded). * @author fwi * */ public class OperandDesc ...
Java
package kianxali.decoder.arch.x86; import kianxali.decoder.Register; import kianxali.decoder.arch.x86.xml.OperandDesc; import kianxali.decoder.arch.x86.xml.OperandDesc.OperandType; /** * This utility class contains several constants and helper methods used * to work with the x86 architecture. * @author fwi * */ ...
Java
/** * This package contains an instruction decoder for the x86 * architecture. It uses an XML to read the instruction set * and creates a prefix tree for parsing byte sequences into * instructions. */ package kianxali.decoder.arch.x86;
Java
package kianxali.decoder.arch.x86; import kianxali.decoder.arch.x86.X86CPU.X86Register; import kianxali.decoder.arch.x86.xml.OperandDesc; import kianxali.loader.ByteSequence; /** * This class is used to parse a SIB byte that can follow a ModR/M byte. * @author fwi * */ class SIB { private PointerOp sibOp; ...
Java
package kianxali.decoder.arch.x86; import kianxali.decoder.Operand; import kianxali.decoder.arch.x86.X86CPU.AddressSize; import kianxali.decoder.arch.x86.X86CPU.X86Register; import kianxali.decoder.arch.x86.xml.OperandDesc; import kianxali.loader.ByteSequence; /** * Used to parse a ModR/M byte. * @author fwi * */...
Java
package kianxali.decoder.arch.x86; import java.util.logging.Logger; import kianxali.decoder.Data; import kianxali.decoder.Operand; import kianxali.decoder.UsageType; import kianxali.decoder.Data.DataType; import kianxali.decoder.arch.x86.X86CPU.OperandSize; import kianxali.decoder.arch.x86.X86CPU.Segment; import kian...
Java
package kianxali.decoder.arch.x86; import kianxali.decoder.Operand; import kianxali.decoder.UsageType; import kianxali.util.OutputFormatter; /** * This class is used to represent operands that contain * an immediate value, e.g. the 123 in mov eax, 123. * Since it is not always possible to distinguish whether * an...
Java
package kianxali.decoder.arch.x86; import kianxali.decoder.Operand; import kianxali.decoder.UsageType; import kianxali.decoder.arch.x86.X86CPU.X86Register; import kianxali.util.OutputFormatter; /** * This class is used to describe operands that represent * direct register access. * @author fwi * */ public class ...
Java
package kianxali.decoder.arch.x86; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.logging.Logger; import kianxali.decoder.Context; import kianxali.decoder.DecodeT...
Java
package kianxali.decoder.arch.x86; import java.io.IOException; import kianxali.decoder.Context; import kianxali.decoder.Decoder; import kianxali.decoder.arch.x86.X86CPU.AddressSize; import kianxali.decoder.arch.x86.X86CPU.ExecutionMode; import kianxali.decoder.arch.x86.X86CPU.Model; import kianxali.decoder.arch.x86.X...
Java
package kianxali.decoder.arch.x86; import java.util.ArrayList; import java.util.List; import kianxali.decoder.arch.x86.X86CPU.Segment; /** * This class is used to store the information that can be encoded in * prefixes to opcodes. The information are stored in flags and as raw * bytes (in case the opcode needs to...
Java
package kianxali.decoder.arch.x86; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import kianxali.decoder.Data; import kianxali.decoder.Instruction; import kianxali.decoder.Operand; import kianxali.decoder.UsageType; import kianxali.dec...
Java
package kianxali.decoder; import kianxali.loader.ByteSequence; /** * A decoder reads bytes from a sequence until an instruction is fully * decoded with all its operands. * @author fwi * */ public interface Decoder { /** * Decode the next instruction from a byte sequence * @param ctx the current con...
Java
package kianxali.decoder; import kianxali.util.OutputFormatter; /** * Represents an operand for an instruction * @author fwi * */ public interface Operand { /** * Returns whether the operand is a source or destination operand * @return the usage type of the operand */ UsageType getUsage(); ...
Java
package kianxali.decoder; /** * This interface is used to tag enumerations that represent CPU registers * @author fwi * */ public interface Register { }
Java
package kianxali.disassembler; /** * This is the main listener interface for the disassembler. * It can be used to register at the {@link DisassemblyData} instance * to get notified when the information of an address changes. * @author fwi * */ public interface DataListener { /** * Will be called when t...
Java
package kianxali.disassembler; import kianxali.decoder.Instruction; /** * Implementation of this interface can be passed to {@link DisassemblyData#visitInstructions(InstructionVisitor)} * to allow a traversal through all instructions of the image. * @author fwi * */ public interface InstructionVisitor { /** ...
Java
package kianxali.disassembler; import java.util.Collections; import java.util.HashMap; import java.util.Map; import kianxali.decoder.Data; import kianxali.decoder.DecodedEntity; import kianxali.decoder.Instruction; import kianxali.loader.ImageFile; import kianxali.loader.Section; /** * This class represents all info...
Java
package kianxali.disassembler; /** * Implementations of this interface can register at the disassembler * to be notified when the disassembly starts, ends or runs into an * error * @author fwi * */ public interface DisassemblyListener { /** * Will be called when the analysis starts */ void onAn...
Java
package kianxali.disassembler; /** * This class represents a function discovered by the disassembler * @author fwi * */ public class Function { private final long startAddress; private long endAddress; private String name; private final AddressNameListener nameListener; Function(long startAddr...
Java
/** * This package implements a recursive-traversal disassembler. The {@link kianxali.disassembler.Disassembler} * gets an {@link ImageFile} and fills a {@link DisassemblyData} instance, * informing {@link DisassemblyListener} implementations during the analysis. * Information about the discovered entries can be re...
Java
package kianxali.disassembler; import java.util.Map.Entry; import java.util.NavigableMap; import java.util.TreeMap; import java.util.concurrent.CopyOnWriteArraySet; import kianxali.decoder.DecodedEntity; import kianxali.decoder.Instruction; import kianxali.loader.ImageFile; import kianxali.loader.Section; /** * Thi...
Java
package kianxali.disassembler; /** * Implementations of this interface can register at a {@link Function} to be * notified when the name changes. * @author fwi * */ public interface AddressNameListener { /** * Will be called when the name of the function changes. * @param fun the function whose name...
Java
package kianxali.disassembler; import java.util.Map; import java.util.PriorityQueue; import java.util.Queue; import java.util.Set; import java.util.TreeMap; import java.util.concurrent.CopyOnWriteArraySet; import java.util.logging.Level; import java.util.logging.Logger; import kianxali.decoder.Context; import kianxal...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package untils; import java.io.BufferedWriter; import java.io.IOException; import java.util.ArrayList; /** * * @author Kanet */ public class DoiTuong { String ten; ArrayList<Double> giaTri; public ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package untils; import java.io.*; import java.util.ArrayList; /** * * @author Kanet */ public class PhanLop { ArrayList<Nhom> kNhom; ArrayList<DoiTuong> tapHuanLuyen; int k; public int getK() { ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package untils; import java.io.BufferedWriter; import java.io.IOException; import java.util.ArrayList; /** * * @author Kanet */ public class Nhom { ArrayList<DoiTuong> nhom; DoiTuong trungTam; public Do...
Java
package untils; import java.io.File; import java.util.Hashtable; import java.util.Enumeration; import javax.swing.*; import javax.swing.filechooser.*; public class ExampleFileFilter extends FileFilter { private static String TYPE_UNKNOWN = "Type Unknown"; private static String HIDDEN_FILE = "Hidden File"; privat...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * jfMain.java * * Created on Feb 7, 2012, 12:15:43 PM */ package kmean; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Date; import java.util.logging.Leve...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package kmean; import java.awt.Dimension; import java.awt.Point; import java.awt.Toolkit; import javax.swing.UIManager; /** * * @author TerryBoward */ public class KMean { /** * @param ar...
Java
package game; import java.awt.Graphics2D; import com.golden.gamedev.object.Sprite; public class Part { double x; double y; double vx; double vy; Sprite icon; double life; double speed; ProgBob progBob; Part next; public Part (ProgBob progBob, double x, double y, Sprite icon, d...
Java
package game; import java.awt.Color; import java.awt.Graphics2D; public class PartString extends Part { String text; public PartString (ProgBob progBob, double x, double y, String text, double speed) { super(progBob, x, y, null, speed); this.text = text; } @Override public vo...
Java
package game; import java.awt.Image; import java.awt.image.BufferedImage; import com.golden.gamedev.object.Sprite; public class BonusPause extends AbstractBonus { private static final long serialVersionUID = 1L; private double time_paused = 0; public BonusPause (ProgBob progBob, String name, Sprite icon) {...
Java
package game; import com.golden.gamedev.object.Sprite; public class BonusRewind extends AbstractBonus { private static final long serialVersionUID = 1L; private double time_rewind; public BonusRewind (ProgBob progBob, String name, Sprite icon) { super(progBob, name, icon); } public Bonu...
Java
package game; import com.golden.gamedev.object.Sprite; public class BonusTorpedo extends AbstractBonus { private static final long serialVersionUID = 1L; public BonusTorpedo(){ new BonusTorpedo(super.progBob, "Torpedo", new Sprite(createBufferedImage("resources/bon_torpedo.png"))); } public BonusTorpedo (...
Java
package game; import java.awt.geom.Point2D; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Properties; import java.util.Scanner; /** * * @author Shun Fan * This class represents a level in bubblefish */ public class Lev...
Java
package game; public class BonusFactory { public BonusFactory(){ } /* * Returns a new specified Bonus object */ @SuppressWarnings("unchecked") public AbstractBonus getBonusInstance(String panelType) { Class<AbstractBonus> myClass = null; try { myClass = (Class<AbstractBonus>) Class.fo...
Java
package game; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.event.KeyEvent; import java.awt.geom.Point2D; import java.io.File; import java.util.ArrayList; import com.golden.gamedev.Game; import com.golden.gamedev.object.Sprite; /** * backup version 4 * @author Shun * */ ...
Java
package game; import java.awt.Graphics; import java.awt.Image; import java.awt.image.BufferedImage; import javax.swing.ImageIcon; import com.golden.gamedev.object.Sprite; /* * This abstract bonus class handle all types of bonuses/rewards that are alloted in the game. */ public abstract class AbstractBonus extends...
Java
package game; import com.golden.gamedev.object.Sprite; public class Item { int type; double x; double y; double py; double vel_y; double time_existed; Sprite bm; AbstractBonus bonus; Item next; }
Java
package game; import java.awt.geom.Point2D; import java.awt.geom.Point2D.Double; import java.util.ArrayList; /** * * @author Shun * allows user to parse different types of input// *not sure if this is needed, with creation of level class *this class is not used, but was created in case the user needed ...
Java
package game; import com.golden.gamedev.object.Sprite; public class Bubble { double x; double y; double t; double phase; Sprite bm; Bubble next; Bubble prev; boolean shot; boolean fish_inside; double attach_x; double attach_y; double trans; int combo; }
Java
package game; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.event.KeyEvent; import java.awt.geom.Point2D; import java.io.File; import java.util.ArrayList; import com.golden.gamedev.Game; import com.golden.gamedev.object.Sprite; /** * backup version 2 * @author Shun * */ ...
Java
package game.tests; public class IEventHandler { }
Java
package game.tests; import com.golden.gamedev.Game; /** * @author Conrad, Shun * This abstractGameState class controls all states of the Game utilizing the GameLoop and * various added classes * also, we assume that game loop just initializes things */ public abstract class AbstractGameState { pr...
Java
package game.tests; /** * @author Conrad, Shun * AbstractTransition class acts as the central hub to all transition classes that can be * implemented between gameState. It is used to add a visual element (be it fade, flashes, etc.) * to what goes on when the states change */ public abstract class Abstrac...
Java
package game.tests; public class GameManager { }
Java
package game.tests; import static org.junit.Assert.*; import game.TxtParser; import java.io.File; import org.junit.Test; public class TxtParserTest { @Test public void testParseInputObject() { File asdf = new File("resources/properties/level1properties.txt"); TxtParser t = new TxtParser(asd...
Java
package game.tests; import java.awt.Color; public class ExampleTransition extends AbstractTransition{ public ExampleTransition(GameLoop gameLoop){ super(gameLoop); } /** * I'm not sure what the exact syntax would be but the * method would basically render whatever the transition would * be f...
Java
package game.tests; /** * @author Conrad, Shun * The GenericGameStateClass acts as a basic extension to AbstractGameState. It allows the user to get * specific about what exactly they desire to update in each gameState. */ public class ExampleGameState extends AbstractGameState{ /** * myName is used ...
Java
package game.tests; public class GameLoop { }
Java
package game; import com.golden.gamedev.object.Sprite; public class BonusSmRocks extends AbstractBonus { private int smallRocks; public BonusSmRocks (ProgBob progBob, String name, Sprite icon){ super(progBob, name, icon); smallRocks = 0 ; } public BonusSmRocks(){ new BonusSmRock...
Java
package game; public class PathPoint { double x; double y; double dist_to_next; }
Java
package game; import java.awt.Graphics2D; import com.golden.gamedev.object.Sprite; public class PartBub extends Part { public PartBub (ProgBob progBob, double x, double y, Sprite icon, double speed) { super(progBob, x, y, icon, speed); } @Override public void draw (Graphics2D context) ...
Java
package game; //test import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.event.KeyEvent; import java.awt.geom.Point2D; import java.io.File; import java.util.ArrayList; import com.golden.gamedev.Game; import com.golden.gamedev.object.Sprite; /** * commented version o...
Java
package game; import java.awt.*; import com.golden.gamedev.Game; import com.golden.gamedev.GameLoader; public class BubblefishBob extends Game { private static final long serialVersionUID = 1L; private ProgBob progbob = new ProgBob(); public BubblefishBob () { distribute = true; } @Ove...
Java
package game; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.event.KeyEvent; import java.awt.geom.Point2D; import java.io.File; import java.util.ArrayList; import com.golden.gamedev.Game; import com.golden.gamedev.object.Sprite; /** * this progbob is a backup from before i s...
Java
package game; import ResourceManager; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.event.KeyEvent; import java.awt.geom.Point2D; import com.golden.gamedev.Game; import com.golden.gamedev.object.Sprite; /** * refactored version of prog bob i refactored the level creation ...
Java
package game; import java.lang.Double; import java.awt.geom.Point2D; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.Properties; import java.util.Scanner; /** * * @author Shun Fan * par...
Java
package de.fmaul.android.cmis; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import android.app.AlertDialog; import android.app.Dialog; import android.app.ListActivity; import android.content.DialogInterface; import android.content.Intent; impo...
Java
/* * Copyright (C) 2010 Jean Marie PASCAL * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
Java
/* * Copyright (C) 2010 Florian Maul * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
/* * Copyright (C) 2010 Florian Maul * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
/* * Copyright (C) 2010 Florian Maul * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
/* * Copyright (C) 2010 Jean Marie PASCAL * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
Java
/* * Copyright (C) 2010 Florian Maul * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
/* * Copyright (C) 2010 Jean Marie PASCAL * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
Java
/* * Copyright (C) 2010 Florian Maul * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
/* * Copyright (C) 2010 Florian Maul * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
/* * Copyright (C) 2010 Florian Maul * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
/* * Copyright (C) 2010 Jean Marie PASCAL * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
Java
/* * Copyright (C) 2010 Florian Maul * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
/* * Copyright 2009 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Java
package de.fmaul.android.cmis.utils; import android.graphics.drawable.Drawable; import android.view.View.OnClickListener; /** * Action item, displayed as menu with icon and text. * * @author Lorensius. W. L. T * */ public class ActionItem { private Drawable icon; private String title; private O...
Java
/* * Copyright 2009 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Java
package de.fmaul.android.cmis.utils; public class StorageException extends Exception { /** * */ private static final long serialVersionUID = 329581492462074017L; StorageException(String erreur, Exception e){ super(erreur, e); } public StorageException(String erreur) { super(erreur)...
Java
package de.fmaul.android.cmis.utils; import android.content.Context; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.widget.ImageView; import android.widget.TextView; import android.widget.LinearLayout; import android.view.Gravity; import android.view.LayoutInflat...
Java
package de.fmaul.android.cmis.utils; import android.app.Activity; import android.app.AlertDialog; import android.app.ListActivity; import android.app.SearchManager; import android.content.DialogInterface; import android.view.ContextMenu; import android.view.ContextMenu.ContextMenuInfo; import android.view.Men...
Java
/* * Copyright (C) 2010 Florian Maul * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
/* * Copyright (C) 2010 Florian Maul * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
/* * Copyright (C) 2010 Jean Marie PASCAL * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
Java
package de.fmaul.android.cmis.utils; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import android.app.Activity; import de.fmaul.android.cmis.CmisApp; import de.fmaul.android.cmis.R; import de.fmaul.android.cmis.repo.CmisItem; import de.fmaul.android.cmis.r...
Java
package de.fmaul.android.cmis.utils; import de.fmaul.android.cmis.R; import android.content.Context; import android.graphics.Rect; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.view.Gravity; import android.view.LayoutInflater; import android.vie...
Java
/* * Copyright (C) 2010 Florian Maul * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
/* * Copyright (C) 2010 Florian Maul * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java