text stringlengths 3 1.18M |
|---|
package org.kefirsf.bb;
/**
* The interface of text processors
*
* @author Kefir
*/
public interface TextProcessor {
/**
* Process the text.
* <p/>
* ATTENTION!!! Do not use java.nio.CharBuffer.
* CharBuffer has invalid realization of subSequence methods from interface java.lang.CharSequenc... |
package org.kefirsf.bb;
import java.util.Arrays;
/**
* Class for escape processing. For example, EscapeXmlProcessorFactory use this class for create EscapeXmlProcessor.
*
* @author Kefir
*/
public class EscapeProcessor extends TextProcessorAdapter {
/**
* Escape symbols with replacement.
*/
priv... |
package org.kefirsf.bb.proc;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
/**
* Code template
*
* @author Vitaliy Samolovskih aka Kefir
*/
public class ProcTemplate {
/**
* Empty template
*/
public static final ProcTemplate EMPTY = new ProcTemplate(Collections... |
package org.kefirsf.bb.proc;
/**
* @author kefir
*/
public class TemplateConstant implements ProcTemplateElement {
private final String value;
public TemplateConstant(String value) {
this.value = value;
}
public CharSequence generate(Context context) {
return value;
}
}
|
package org.kefirsf.bb.proc;
import org.kefirsf.bb.util.ArrayCharSequence;
import java.util.Arrays;
import java.util.Set;
import java.util.TreeSet;
/**
* Класс источник для парсинга BB-кодов
*
* @author Kefir
*/
public class Source {
/**
* Source text content
*/
private final char[] text;
... |
package org.kefirsf.bb.proc;
/**
* Named element are variable and text ProcPatternElement or ProcTemplateElement
*/
public abstract class ProcNamedElement {
/**
* Variable name
*/
private final String name;
/**
* Create named element
*
* @param name name of element
*/
p... |
package org.kefirsf.bb.proc;
import java.util.regex.Matcher;
/**
* Класс переменной
*
* @author Kefir
*/
public class ProcVariable extends ProcNamedElement implements ProcPatternElement {
private final java.util.regex.Pattern regex;
/**
* Create named variable
*
* @param name variable nam... |
package org.kefirsf.bb.proc;
/**
* Throws if nesting is too big.
*
* @author Vitalii Samolovskikh aka Kefir
*/
class NestingException extends Exception {
}
|
package org.kefirsf.bb.proc;
import java.io.IOException;
/**
* Класс текста, который подлежит парсингу
*
* @author Kefir
*/
public class ProcText extends ProcNamedElement implements ProcPatternElement {
/**
* Scope define the codeset for parsing this text
*/
private final ProcScope scope;
/... |
package org.kefirsf.bb.proc;
import org.kefirsf.bb.util.IntSet;
import java.util.HashMap;
import java.util.Map;
/**
* The bb-processing context
*
* @author Kefir
*/
public class Context {
/**
* Parent context
*/
private final Context parent;
/**
* source text
*/
private Sourc... |
package org.kefirsf.bb.proc;
/**
* Constant element of pattern or template
*
* @author Kefir
*/
public class PatternConstant implements ProcPatternElement {
/**
* Constant value
*/
private final String value;
private final char[] chars;
/**
* Mark ignore case
*/
private fin... |
package org.kefirsf.bb.proc;
import org.kefirsf.bb.TextProcessorFactoryException;
import java.io.IOException;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Set;
/**
* bb-code scope. Required for tables, for example.
* Scope contains code set for parsing text.
*
... |
package org.kefirsf.bb.proc;
/**
* Named value to build target text
*/
public class ProcNamedValue extends ProcNamedElement implements ProcTemplateElement {
public ProcNamedValue(String name) {
super(name);
}
/**
* Добавляет элемент в новую строку
*
* @param context контекст
... |
package org.kefirsf.bb.proc;
import org.kefirsf.bb.TextProcessorAdapter;
import org.kefirsf.bb.TextProcessorNestingException;
import java.io.IOException;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
/**
* The bbcode processor. You can use the standard code set or define other.
*
* @au... |
package org.kefirsf.bb.proc;
/**
* @author Vitalii Samolovskikh aka Kefir
*/
public class PatternJunk implements ProcPatternElement {
public boolean parse(Context context, ProcPatternElement terminator) {
Source source = context.getSource();
int offset = source.getOffset();
int end;
... |
package org.kefirsf.bb.proc;
/**
* Pattern element for parse part of bbcode
*
* @author Kefir
*/
public interface ProcPatternElement {
/**
* Parse element
*
* @param context context
* @param terminator teminator to stop text process
* @return true - subsequence is valid to this patt... |
package org.kefirsf.bb.proc;
/**
* The element of template to build target text
*/
public interface ProcTemplateElement {
/**
* Append template element to source of context
*
* @param context контекст
* @return builded text
*/
public CharSequence generate(Context context);
}
|
package org.kefirsf.bb.proc;
import java.io.IOException;
/**
* The bbcode class
*
* @author Kefir
*/
public class ProcCode implements Comparable<ProcCode> {
/**
* template for build result char sequence
*/
private final ProcTemplate template;
/**
* Pattern for parsing code
*/
p... |
package org.kefirsf.bb.proc;
import java.util.Collections;
import java.util.List;
/**
* Represents the pattern
*
* @author Vitaliy Samolovskih aka Kefir
*/
public class ProcPattern {
/**
* Pattern elements
*/
private final List<? extends ProcPatternElement> elements;
// Performance optimiza... |
package cuong.ptit.androidvn.loadimage;
import java.lang.ref.SoftReference;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import android.graphics.Bitmap;
public class MemoryCache {
private Map<String, SoftReference<Bitmap>> cache=Collections.synchronizedMap(new HashMap<St... |
package cuong.ptit.androidvn.loadimage;
import java.io.File;
import android.content.Context;
public class FileCache {
private File cacheDir;
public FileCache(Context context){
//Find the dir to save cached images
if (android.os.Environment.getExternalStorageState().equals(andro... |
package cuong.ptit.androidvn.loadimage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Collections;
i... |
package cuong.ptit.androidvn.loadimage;
import java.io.InputStream;
import java.io.OutputStream;
public class Utils {
public static void CopyStream(InputStream is, OutputStream os)
{
final int buffer_size=1024;
try
{
byte[] bytes=new byte[buffer_size];
... |
package cuong.ptit.androidvn;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.List... |
package cuong.ptit.androidvn;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.List... |
package cuong.ptit.androidvn;
import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.... |
package cuong.ptit.androidvn;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.List... |
package cuong.ptit.androidvn.thread;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.Intent;
imp... |
package cuong.ptit.androidvn.viewcontent;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import android.content.Context;
import android.u... |
package cuong.ptit.androidvn.viewcontent;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.http.NameValuePair;
import org.json.JSONException;
import org.json.JSONObject;
import org.kefirsf.bb.BBProcessorFactory;
import org.kefirsf.b... |
package cuong.ptit.androidvn.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
import android.widget.ListAdapter;
import ... |
package cuong.ptit.androidvn.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.LinearInterpolator;
import android.... |
package cuong.ptit.androidvn.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.widget.AbsListView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import cuong.ptit.andoridvn.R;
/*
* Copyright (C) 2012 ... |
package cuong.ptit.androidvn.helper;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
public class ConnectionDetector {
private Context _context;
public ConnectionDetector(Context context){
this._context = context;
}
/... |
package cuong.ptit.androidvn.helper;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.util.Log;
/*
... |
package cuong.ptit.androidvn.helper;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import cuong.ptit.andoridvn.R;
public class AlertDialogManager {
/**
* Function to display simple Alert Dialog
* @param context - application context
* @param ... |
package cuong.ptit.androidvn.helper;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Toast;
/**
*
* @author LeCuong
*This is a class to create methods to toast
*/
public class SmartToast {
/**
* create a Long Toast
* @param... |
package cuong.ptit.androidvn.helper;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import or... |
package cuong.ptit.androidvn;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.jar.Attributes.Name;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSON... |
package cuong.ptit.androidvn;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import cuong.ptit.andoridvn.R;
import cuong.ptit.androidvn.viewcontent.ViewPost;
/*
* @auth... |
package com.example.nasa.parse;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParser... |
package com.example.nasa.feed;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import an... |
/** Automatically generated file. DO NOT MODIFY */
package com.example.nasa.feed;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package my.video.stream;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.content.Intent;
import android.widget.Toast;
import android.content.SharedPreferences;
import android.view.View;
public class streamActivity exten... |
package my.video.stream;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.v... |
package my.down.stream;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.widget.ImageView;
import android.util.*;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import java.io.InputStream;
import java.net.... |
/*
* Copyright (C) 2010 Zer0day.com
*
* 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... |
/*
* Copyright (C) 2010 Zer0day.com
*
* 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... |
/*
* Copyright (C) 2010 Zer0day.com
*
* 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... |
/*
* Copyright (C) 2010 Zer0day.com
*
* 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... |
/*
* Copyright (C) 2010 Zer0day.com
*
* 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... |
/*
* Copyright (C) 2010 Zer0day.com
*
* 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... |
/*
* Copyright (C) 2010 Zer0day.com
*
* 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... |
/*
* Copyright (C) 2010 Zer0day.com
*
* 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... |
/** Automatically generated file. DO NOT MODIFY */
package cz.ctu.guiproject.client;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package cz.ctu.guiproject.client.messaging;
import cz.ctu.guiproject.client.dtos.ResponseState;
public class InitResponse {
private ResponseState response;
private String[] jarUrls;
public ResponseState getResponse() {
return response;
}
public void setResponse(ResponseState response) {
this.response = r... |
package cz.ctu.guiproject.client.messaging;
public class PropagateUIUpdate {
private int networkId;
public int getNetworkId() {
return networkId;
}
public void setNetworkId(int networkId) {
this.networkId = networkId;
}
}
|
package cz.ctu.guiproject.client.messaging;
public class EventOccured {
private int networkId;
public int getNetworkId() {
return networkId;
}
public void setNetworkId(int networkId) {
this.networkId = networkId;
}
}
|
package cz.ctu.guiproject.client.messaging;
public class DisconnectRequest {
private int networkId;
public int getNetworkId() {
return networkId;
}
public void setNetworkId(int networkId) {
this.networkId = networkId;
}
}
|
package cz.ctu.guiproject.client.messaging;
public class UIRequest {
private int networkId;
public int getNetworkId() {
return networkId;
}
public void setNetworkId(int networkId) {
this.networkId = networkId;
}
}
|
package cz.ctu.guiproject.client.messaging;
public class InitRequest {
private String deviceName;
private String[] installedComponents;
private int networkId;
public String getDeviceName() {
return deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public Strin... |
package cz.ctu.guiproject.client.messaging;
public class UIResponse {
private int networkId;
public int getNetworkId() {
return networkId;
}
public void setNetworkId(int networkId) {
this.networkId = networkId;
}
}
|
package cz.ctu.guiproject.client.messaging;
public class ForceUIUpdate {
private int networkId;
private String viewId;
private String attrName;
private String attrValue;
public String getAttrName() {
return attrName;
}
public void setAttrName(String attrName) {
this.attrName = attrName;
}
... |
package cz.ctu.guiproject.client.messaging;
import cz.ctu.guiproject.client.dtos.ResponseState;
public class DisconnectResponse {
private int networkId;
private ResponseState response;
public int getNetworkId() {
return networkId;
}
public void setNetworkId(int networkId) {
this.networkId = networkId;
}... |
package cz.ctu.guiproject.client.dispatcher;
import guiproject.client.view.PropagateUIObserver;
import guiproject.client.view.ViewEventObserver;
public interface Dispatcher extends ViewEventObserver, PropagateUIObserver {
void setup();
void send(String message);
void disconnect();
} |
package cz.ctu.guiproject.client.dispatcher;
import static cz.ctu.guiproject.client.resources.constants.Constants.SAX_PREMATURE_END;
import static cz.ctu.guiproject.client.resources.constants.Constants.SERVER_DISCONNECT_RESPONSE;
import static cz.ctu.guiproject.client.resources.constants.Constants.SERVER_FORCE_UI_... |
package cz.ctu.guiproject.client.xml;
import guiproject.client.view.Event;
import java.io.IOException;
import java.io.StringWriter;
import java.util.List;
import org.xmlpull.v1.XmlSerializer;
import android.util.Log;
import android.util.Xml;
import cz.ctu.guiproject.client.messaging.DisconnectRequest;
... |
package cz.ctu.guiproject.client.xml;
import java.io.IOException;
import java.io.StringReader;
import java.util.LinkedList;
import java.util.List;
import java.util.StringTokenizer;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFa... |
package cz.ctu.guiproject.client.device;
public class AndroidDevice {
private static AndroidDevice instance;
private AndroidDevice() {
}
public static AndroidDevice getInstance() {
if (instance == null) {
instance = new AndroidDevice();
}
return instance;
}
public String getDevice... |
package cz.ctu.guiproject.client.formvalidation;
import android.widget.EditText;
public class EmptyStringValidator extends TextValidator {
public EmptyStringValidator(EditText editText) {
super(editText);
}
@Override
public boolean validate(EditText editText) {
if(ValidationService.isNotNull(edi... |
package cz.ctu.guiproject.client.formvalidation;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.validator.routines.InetAddressValidator;
import static cz.ctu.guiproject.client.resources.constants.Constants.*;
import android.widget.EditText;
public class ValidationService {
publi... |
package cz.ctu.guiproject.client.formvalidation;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
public class Form<T extends ViewGroup> {
private final ViewGroup viewGroup;
public Form(T vi... |
package cz.ctu.guiproject.client.formvalidation;
import android.widget.EditText;
public class IpValidator extends TextValidator {
public IpValidator(EditText editText) {
super(editText);
}
@Override
public boolean validate(EditText editText) {
if(ValidationService.isNotNull(editText) && Validati... |
package cz.ctu.guiproject.client.formvalidation;
import android.view.View;
import android.view.View.OnFocusChangeListener;
import android.widget.EditText;
public abstract class TextValidator implements OnFocusChangeListener {
private final EditText editText;
public TextValidator(EditText editText) {
th... |
package cz.ctu.guiproject.client.dtos;
public enum ResponseState {
ACCEPTED("true"), REJECTED("false");
private String responseCode;
private ResponseState(String code) {
responseCode = code;
}
public String getResponseCode() {
return responseCode;
}
public String getResponseName() {
return name().... |
package cz.ctu.guiproject.client.dtos;
public enum State {
DISCONNECTED("DISCONNECTED"),
AWAITING_CONNECTION("AWAITING_CONNECTION"),
CONNECTED("CONNECTED"),
AWAITING_UI("AWAITING_UI"),
READY("READY");
private String value;
private State(String value) {
this.value = value;
}
public St... |
package cz.ctu.guiproject.client.resources;
import android.app.Activity;
public class ActivityProvider {
private Activity activity;
private static ActivityProvider instance;
private ActivityProvider() {
}
public static ActivityProvider getInstance() {
if (instance == null) {
instance = new Ac... |
package cz.ctu.guiproject.client.resources.constants;
public class Time {
// specifies time[ms] between two unsuccessful connection attempts
public static final int RECONNECT_INTERVAL = 5000;
}
|
package cz.ctu.guiproject.client.resources.constants;
public class Logger {
public static final String TAG = "AndroidClientTAG";
}
|
package cz.ctu.guiproject.client.resources.constants;
public class Constants {
private Constants() {
}
// String constants
public static final String SERVER_INIT_RESPONSE = "init-response";
public static final String SERVER_DISCONNECT_RESPONSE = "disconnect-response";
public static final String SERVE... |
package cz.ctu.guiproject.client.resources;
import android.content.Context;
public class ContextProvider {
private Context context;
private static ContextProvider instance;
private ContextProvider() {
}
public static ContextProvider getInstance() {
if (instance == null) {
instance = new Con... |
package cz.ctu.guiproject.client.resources;
public class InstalledComponent {
private double version;
private String name;
public double getVersion() {
return version;
}
public void setVersion(double version) {
this.version = version;
}
public String getName() {
return name;
}
publ... |
package cz.ctu.guiproject.client.resources.utils;
import java.io.FileNotFoundException;
import android.util.Log;
import static cz.ctu.guiproject.client.resources.constants.Constants.*;
import static cz.ctu.guiproject.client.resources.constants.Logger.*;
import cz.ctu.guiproject.client.xml.XmlDecodeFactory;
im... |
package cz.ctu.guiproject.client.resources.utils;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import android.content.Context;
import android.util.Log;
impo... |
package cz.ctu.guiproject.client.manager;
public interface UIManager {
boolean initUI(String xml);
void forceUIUpdate(String xml);
} |
package cz.ctu.guiproject.client.manager;
import static cz.ctu.guiproject.client.resources.constants.Constants.ACTIVITY_ELEMENT;
import static cz.ctu.guiproject.client.resources.constants.Logger.TAG;
import java.io.IOException;
import java.io.StringReader;
import java.util.Deque;
import java.util.LinkedList;
... |
package cz.ctu.guiproject.client.manager;
import android.util.Log;
import cz.ctu.guiproject.client.dispatcher.Dispatcher;
import cz.ctu.guiproject.client.dtos.ResponseState;
import cz.ctu.guiproject.client.messaging.DisconnectRequest;
import cz.ctu.guiproject.client.messaging.DisconnectResponse;
import cz.ctu.g... |
package cz.ctu.guiproject.client.manager;
public interface ConnectionManager {
boolean initClient(String xml);
void forceDisconnect();
void disconnectClient(String xml);
} |
package cz.ctu.guiproject.client.manager;
import org.xml.sax.Attributes;
import android.view.View;
public interface JARManager {
void setActivity(String key, Attributes attributes);
// TODO mozny vznik problemu - pokazde volana nova instance
View getView(String key, Attributes attributes);
void set... |
package cz.ctu.guiproject.client.manager;
import static cz.ctu.guiproject.client.resources.constants.Constants.BUFFER_SIZE;
import static cz.ctu.guiproject.client.resources.constants.Constants.COMPONENTS_PATH;
import static cz.ctu.guiproject.client.resources.constants.Constants.DEX;
import static cz.ctu.guiprojec... |
package cz.ctu.guiproject.client;
import static cz.ctu.guiproject.client.resources.constants.Constants.CONNECTION_STATE;
import static cz.ctu.guiproject.client.resources.constants.Constants.CONNECT_LABEL;
import static cz.ctu.guiproject.client.resources.constants.Constants.DISCONNECT_LABEL;
import static cz.ctu.g... |
package cz.ctu.guiproject.client.networking.listener;
public interface ServerListener extends Runnable {
/**
* Performs all necessary cleanup during the closure phase.
*/
public void disconnect();
}
|
package cz.ctu.guiproject.client.networking.listener;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.net.Socket;
import java.util.logging.Level;
import java.util.logging.Logger;
import cz.ctu.guiproject.client.networking.ClientNetworkAgentImpl;
/**
* This class listens to the e... |
package cz.ctu.guiproject.client.networking;
/**
*
* @author tomas.buk
*/
public interface ClientNetworkAgent {
/**
* Current connection state of the client.
*/
enum State {
CONNECTED, DISCONNECTED;
}
void send(Object message);
/**
* Inserts new ClientObserver object into the ob... |
package cz.ctu.guiproject.client.networking;
/**
*
* @author tomas.buk
*/
public interface ClientNetworkObserver {
/**
* When the particular event occurs, all registered ClientObservers are
* notified.
*
* @param message
* New message event
*/
public void update(Object mes... |
package cz.ctu.guiproject.client.networking;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.ArrayList;
import android.util.Log;
import cz.ctu.guiproject.client.networking.listener.ServerListenerImpl;
import static... |
package com.example.android_vdesktop;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activi... |
package org.julianharty.speakingrepeatedly;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bui... |
package org.julianharty.ttsprobe;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
public class Probe extends Activity
{
/** Called when the activity is first created. */... |
package com.example.android.ui.test;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.