text
stringlengths
3
1.18M
/* * Copyright 2010 Google Inc. * * 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 agreed to i...
/* * Copyright 2010 Google Inc. * * 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 agreed to i...
/* * Copyright 2010 Google Inc. * * 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 agreed to i...
/* * Copyright 2010 Google Inc. * * 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 agreed to i...
/* * Copyright 2010 Google Inc. * * 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 agreed to i...
/* * Copyright 2010 Google Inc. * * 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 agreed to i...
/* * Copyright 2010 Google Inc. * * 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 agreed to i...
package com.sample.hellogradview; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; public class ImageAdapter extends BaseAdapter { private Context mContext; public...
package com.sample.hellogradview; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.GridView; import android.widget.Toast; public class HelloGridView extends Activity { /*...
package com.example.helloandroid; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedIn...
package com.SystemMonitor; public class StatisticTab { }
package com.SystemMonitor; public class DynamicTab { public String getMemoryload() { return null; } public String getCPUload() { return null; } public String getBatteryload() { return null; } public String getProcessinfo() { return null; } }
package com.SystemMonitor; import android.app.Activity; import android.os.Bundle; public class SystemMonitor extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContent...
package com.SystemMonitor; public class Control { }
package androidtest.action; public class ListActivity { }
package androidtest.action; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.ClientProtoco...
package androidtest.action; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.ImageView; public class MainActivity extends Activity{ ImageView logo; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState)...
package ua.at.tsvetkov.webservices; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import java.util.List; import org.apache.http.client.ResponseHandler; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.m...
package ua.at.tsvetkov.webservices; import ua.at.tsvetkov.application.AppConfig; import ua.at.tsvetkov.util.Log; /** * URI abstract constructor. * * @author Alexandr Tsvetkov 26.09.2013 */ public abstract class UrlsConstructor { private static String serverRoot = null; public static final String...
/** * Project : TAO Library * Created : 17 февр. 2014 г. * Author : Alexandr Tsvetkov */ package ua.at.tsvetkov.webservices.parsers; import android.os.Handler; import android.os.Message; /** * @author Alexandr Tsvetkov */ public abstract class AbstractWebHandler extends Handler { public stat...
package ua.at.tsvetkov.webservices.parsers; import java.io.IOException; import java.io.InputStream; import java.util.List; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.apache.http.message.BasicNameValuePair;...
package ua.at.tsvetkov.webservices.parsers; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.List; import org.apache.http.message.BasicNameValuePair; imp...
package ua.at.tsvetkov.webservices.parsers; import java.io.IOException; import java.io.InputStream; import org.json.JSONException; import ua.at.tsvetkov.file.IO; import ua.at.tsvetkov.util.Log; /** * The class for retrieve JSON data from web service and parsing this. * * @author Alexandr Tsvetkov 1...
package ua.at.tsvetkov.webservices.parsers; import java.io.IOException; import java.io.InputStream; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandle...
package ua.at.tsvetkov.webservices.parsers; import java.io.IOException; import java.io.InputStream; import java.util.List; import org.apache.http.message.BasicNameValuePair; import org.json.JSONException; import ua.at.tsvetkov.file.IO; import ua.at.tsvetkov.util.Log; /** * The class for retrieve JSON ...
package ua.at.tsvetkov.webservices.parsers; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import org.json.JSONException; import ua.at.tsvetkov.util.Log; public abstract class AbstractParserJSON { /** * Parse input stream. N...
package ua.at.tsvetkov.webservices.parsers; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import jav...
package ua.at.tsvetkov.webservices; import ua.at.tsvetkov.util.Log; public class UrlBuilder { private StringBuilder sb; private boolean isNotFirst; public UrlBuilder(String rootUrl) { sb = new StringBuilder(); sb.append(rootUrl); isNotFirst = false; } public static UrlBuilder builder(Stri...
package ua.at.tsvetkov.data.softandweekdatasets; import java.lang.ref.ReferenceQueue; import java.lang.ref.WeakReference; import java.util.HashSet; import java.util.Iterator; /** * A weak HashSet. An element stored in the WeakHashSet might be * garbage collected, if there is no strong reference to this ele...
/* * Copyright 2005 The Apache Software Foundation. * * 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 require...
package ua.at.tsvetkov.data.softandweekdatasets; import java.util.*; import java.lang.ref.*; public class SoftHashMap extends AbstractMap<Object, Object> { /** The internal HashMap that will hold the SoftReference. */ private final Map<Object, SoftValue> hash = new HashMap<Object, SoftValue>(); /** The n...
/* * Copyright 2009 Google Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. ...
/* * Copyright 2009 Google Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
package ua.at.tsvetkov.file; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import ua.at.tsvetkov.file.IO; import ua.at.tsvetkov.util.Log; import android.os.AsyncTask; import android.os.Handler; import android.widge...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/** * Project : TAO Library * Created : 14.10.2013 * Author : Alexandr Tsvetkov */ package ua.at.tsvetkov.file; /** * @author Alexandr Tsvetkov */ public abstract class IoCompleteListener { public abstract void complete(String fileName, boolean result); }
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/** * Project PersonalMediaDevice * */ package ua.at.tsvetkov.views; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.Timer; import java.util.TimerTask; import android.app.Activity; import android.content.Context; import android.util.AttributeSet; ...
/** * Project TAO Library * */ package ua.at.tsvetkov.views; import android.content.Context; import android.util.AttributeSet; import android.view.animation.LinearInterpolator; import android.widget.Scroller; import android.widget.TextView; /** * A TextView that scrolls it contents across the scree...
/* * HorizontalListView.java v1.5 * * * The MIT License * Copyright (c) 2011 Paul Soucy (paul@dev-smart.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without rest...
/** * =============================================================================== * Copyright (C) 2012 Alexandr Tsvetkov * Project: TAO Library * Package: ua.at.tsvetkov * File: TextViewChecker.java * =============================================================================== */ package ua.at....
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/** * Project : МойСПД * Created : 12.09.2013 * Author : Alexandr Tsvetkov */ package ua.at.tsvetkov.util; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; /** * Date string formatting. * * @author Alexandr Tsvetkov */ public class DateUtil { private s...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/** * */ package ua.at.tsvetkov.application; import android.content.Context; import android.content.pm.ApplicationInfo; import android.os.StrictMode; /** * Class wrapper for using StrictMode in all Android versions * @author Alexandr */ public class StrictModeWrapper { /** * Using in onCreat...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/** * */ package ua.at.tsvetkov.locale; import java.lang.reflect.Field; import ua.at.tsvetkov.util.Log; import android.content.Context; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; import android.view.Vi...
/** * =============================================================================== * Copyright (C) 2012 Vadim Lopatin * Project: TAO Library * Package: ua.at.tsvetkov.memory * File: VMRuntimeHack.java * =============================================================================== */ package ua.at...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
package ua.at.tsvetkov.net; import android.annotation.TargetApi; import android.os.Build; import java.net.InetAddress; import java.net.NetworkInterface; import java.util.Collections; import java.util.List; import org.apache.http.conn.util.InetAddressUtils; /** * // AndroidManifest.xml permissions * <u...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
package ua.at.tsvetkov.sensors; import android.view.GestureDetector; import android.view.GestureDetector.SimpleOnGestureListener; import android.view.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; /** * Simple swipe (left, right, top, bottom) listener. You must override cor...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/** * Project : TAO Library * Created : 25.09.2013 * Author : Alexandr Tsvetkov */ package ua.at.tsvetkov.ui; import ua.at.tsvetkov.application.AppConfig; import android.util.DisplayMetrics; /** * @author Alexandr Tsvetkov */ public class AppScreen { private static final int ORIGINAL_VIEW_WI...
package ua.at.tsvetkov.ui; /******************************************************************************* * Copyright (c) 2012 Pieter Pareit. * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Fou...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/* * Copyright (C) 2010 Tani Group * http://android-demo.blogspot.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 *...
/******************************************************************************* * Copyright (c) 2012 Alexandr Tsvetkov. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v2.0 * which accompanies this distribution, and is available ...
/** Automatically generated file. DO NOT MODIFY */ package drMadLap.android.talkyourday; public final class BuildConfig { public final static boolean DEBUG = true; }
package drMadLap.android.talkyourday; public class ContentData { public String DateTimeRecord; public String WeatherRecord; public String Issue0; public String Answer0; public String Issue1; public String Answer1; public String Issue2; public String Answer2; public ContentData( String Dat...
package drMadLap.android.talkyourday; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class TalkYourDayActivity ext...
package drMadLap.android.talkyourday; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; import android.content.Context; public class DailyViewItem extends LinearLayout { private TextView Day...
package drMadLap.android.talkyourday; import android.app.Application; public class TalkYourDay extends Application { }
package drMadLap.android.talkyourday; public class IssueData { public String Issue; public boolean RequiredUse; public IssueData() { } public IssueData(String issue, boolean isRequired) { this.Issue = issue; this.RequiredUse = isRequired; } }
package drMadLap.android.talkyourday; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.EditTex...
package drMadLap.android.talkyourday; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Locale; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQ...
/** Automatically generated file. DO NOT MODIFY */ package drMadLap.android.talkyourday; public final class BuildConfig { public final static boolean DEBUG = true; }
package drMadLap.android.talkyourday; import java.util.ArrayList; import java.util.List; import android.app.Application; public class IssueManager extends Application { private List<String> IssueList = new ArrayList<String>(); public IssueManager() { IssueList.add("What's Do Day"); IssueList.ad...
package drMadLap.android.talkyourday; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class TalkYourDayActivity ext...
/** Automatically generated file. DO NOT MODIFY */ package esgi.stationratp; public final class BuildConfig { public final static boolean DEBUG = true; }
package esgi.stationratp.interfaces; import java.util.ArrayList; import esgi.stationratp.model.Station; public interface IStation { public ArrayList<Station> getAllSation(); public Station getStationById(int id); public long addNewStation(Station station); public long updateStation(int id, Stat...
package esgi.stationratp.model; public class Station { private int Id; private String nom; private String ville; private float x; private float y; private String reseau; public int getId() { return Id; } public void setId(int id) { Id = id; } public String getNom() { return nom...