text stringlengths 3 1.18M |
|---|
/*
* Copyright (C) 2010 Just Objects B.V.
*
* 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This prog... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
package sudoku;
import java.io.FileNotFoundException;
import java.io.IOException;
import sudoku.controller.SudokuController;
import sudoku.gui.ISudokuView;
import sudoku.gui.SudokuView;
import sudoku.model.ISudokuModel;
import sudoku.model.SudokuModel;
import sudoku.model.input.SudokuInput;
public class SudokuStart ... |
package sudoku.model;
public interface ISudokuCell {
int getValue();
void setValue(int value);
}
|
package sudoku.model;
public interface SudokuModelListener {
public void sudokuUpdated();
}
|
package sudoku.model;
public interface ISudokuModel {
/**
* Can be used to register a model listener
*
* @param l
* the listener to be added
*/
public void registerListener(SudokuModelListener l);
/**
* Gibt den Wert einer Zelle
*
* @param x
* X Koordinate (Spalte)
* @p... |
package sudoku.model.input;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import sudoku.model.ISudokuModel;
import sudoku.model.SudokuModel;
/**
* This class reads di... |
package sudoku.model;
import java.util.ArrayList;
import java.util.List;
public class SudokuModel implements ISudokuModel {
private static final int DEFAULT_SIZE = 9;
private int size;
private List<List<ISudokuCell>> feld;
private List<SudokuModelListener> listeners = new ArrayList<SudokuModelListener>();
pub... |
package sudoku.model;
public class SudokuCell implements ISudokuCell {
private int value;
@Override
public int getValue() {
return value;
}
public SudokuCell(int value) {
super();
this.value = value;
}
@Override
public void setValue(int value) {
this.value = value;
}
}
|
package sudoku.controller;
import sudoku.gui.ISudokuView;
import sudoku.model.ISudokuModel;
public class SudokuController {
private ISudokuModel model;
private ISudokuView view;
public SudokuController(ISudokuModel model, ISudokuView view) {
this.model = model;
this.view = view;
}
public void runGame() {
... |
package sudoku;
import java.io.FileNotFoundException;
import java.io.IOException;
import sudoku.controller.SudokuController;
import sudoku.gui.ISudokuView;
import sudoku.gui.SudokuView;
import sudoku.model.ISudokuModel;
import sudoku.model.SudokuModel;
import sudoku.model.input.SudokuInput;
public class Startup {
p... |
package sudoku.gui;
import java.io.PrintStream;
import java.util.Scanner;
import sudoku.model.ISudokuModel;
import sudoku.model.SudokuModelListener;
public class SudokuView implements ISudokuView, SudokuModelListener {
private ISudokuModel model;
private Scanner scanner = new Scanner(System.in);
@Override
publ... |
package sudoku.gui;
import sudoku.model.ISudokuModel;
import sudoku.model.SudokuModelListener;
public interface ISudokuView extends SudokuModelListener{
/**
* Die Methode erwartet eine Nutzereingabe und liefert diese zurueck.
*
* @return Eingabe vom Nutzer
*/
public String userInput();
/**
* Die Metho... |
package com.example.coffee_shop;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
public class MainActivity extends Activity {
private Ima... |
package com.example.coffee_shop;
import android.app.Activity;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;
public class TabHostAndroidActivity extends TabActivity {
/** Called when the activity is first c... |
/**
* State class handles a specific state for both player1 and player2
* @author jens & Jeppe
*/
public class State
{
public int spaceLeftY[] = new int[Common.XSIZE];
public VectorPosHandling VPS_Player1 = new VectorPosHandling();
public VectorPosHandling VPS_Player2 = new VectorPosHandling();
public int pos =... |
/**
*
* @author Kevin Tierney
* @version 28.2.2010
*
* @author Mai Ajspur
* @version 1.2.2007
*
*/
public interface IGameLogic {
public enum Winner {PLAYER1, PLAYER2, TIE, NOT_FINISHED}
/**
* Creates a new empty game board of the specified dimensions
* and indicates the ID of the player.
... |
/**
*
* @author Jenc, Jeppe
*
* Container class for a "Vector" which Holds the position of a coin
*/
public class VectorPos
{
public int xPos = 0;
public int yPos = 0;
/**
* Constructor
* @param x
* @param y
*/
public VectorPos(int x, int y)
{
xPos = x;
yPos = y;
}
@Override
/**
* Compare t... |
import java.util.Comparator;
/**
* VectorComparatorY
*
* Comparator for Y position of a Vector
* @author jenc, Jeppe
*
*/
public class VectorComparatorY implements Comparator<VectorPos>
{
public int compare(VectorPos o1, VectorPos o2)
{
VectorPos vp1 = (VectorPos) o1;
VectorPos vp2 = (Ve... |
import java.util.Vector;
/**
* @author Jens & Jeppe
*
* The groups implementation of the Gamelogic
* This file require other files as well to run.
*/
public class JensJeppe implements IGameLogic {
private int x = 0;
private int y = 0;
private int playerID;
private int dummy = -1;
private boolean firstPlayer, ... |
/**
* Singleton class, with all the common parameters and methods
* used in the other classes
*
* @author jenc, jeppe
*
*/
public class Common
{
public static boolean debug =false;
public static int NOVALUE = -1;
public static int numOfRecCalls = 0;
public static int endMoveSize = 3;
public static int PLAY... |
import java.util.Comparator;
/**
* VectorComparatorX
*
* Comparator for X position of a Vector
* @author jenc, Jeppe
*
*/
public class VectorComparatorX implements Comparator<VectorPos>
{
public int compare(VectorPos o1, VectorPos o2)
{
VectorPos vp1 = (VectorPos) o1;
VectorPos vp2 = (Ve... |
/**
*
* Parses command line parameters and initializes the connect four game.
*
* @author Kevin Tierney
* Code now follows standard Java conventions.
* @version 28.2.2010
*
*
* @author Mai Ajspur
* @version 1.2.2007
*
*/
import javax.swing.*;
import java.net.URLClassLoader;
import java.lang.reflect.*;
p... |
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
/**
* You do not have to change anything in this file.
* The game moves are executed through calls to the methods mouseClicked(MouseEvent e) and run().
*
* @author Mai Ajspur
* @version 1.2.2007
* */
public class FourConnectGUI extends JComponen... |
/**
* Implemententation of Min Max Algoritmn
* @author jenc, Jeppe
*
* TODO:
* add alpha, beta implementation (DONE)
*/
public class MinMaxAlg
{
private int player1 = Common.PLAYER1;
private int player2 = Common.PLAYER2;
private int action = 0;
private int alpha = Common.FSMALL;
private int beta = Common.F... |
import java.util.ArrayList;
import java.util.Collections;
/**
* class VectorPosHandling
*
* Includes a list of functions, to find the lengths of connected coins, and
* places for missing coins as well.
* @author jenc, jeppe
*
*/
public class VectorPosHandling
{
public ArrayList<VectorPos> list = new ArrayLi... |
import java.util.Vector;
public class OpeningMoves {
/**
* If the GameLogic is the starting player, this tests to see if it can beat
* the opponent with the opening moves.
*
* Similar if it is second player, it tests to avoid losing within the first
* moves.
*
* If a correct column is foun... |
package view;
import java.awt.Color;
import java.awt.Graphics;
import model.Spray;
public class SprayView implements Paintable{
private Spray s;
public SprayView(Spray spray){
s=spray;
}
@Override
public void paint(Graphics g) {
//Beállítjuk a színét cianra
g.setColor(Color.CYAN);
... |
package view;
import java.awt.Color;
import java.awt.Graphics;
import java.util.ArrayList;
import java.util.LinkedList;
import javax.swing.JPanel;
import controller.MainFrame;
import model.*;
public class View {
Game game;
public JPanel viewpanel;
LinkedList<Paintable> components;
public View... |
package view;
import java.awt.Color;
import java.awt.Graphics;
import model.AntLion;
public class AntLionView implements Paintable{
private AntLion al;
public AntLionView(AntLion a){
al=a;
}
@Override
public void paint(Graphics g) {
//Egy kitöltött naranccssárga kör kirajzolása az A... |
package view;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Polygon;
import model.LittleAnt;
public class LittleAntView implements Paintable {
private LittleAnt littleant;
private int prevlocx;
private int prevlocy;
public LittleAntView(LittleAnt lant){
littleant=lant;
... |
package view;
import java.awt.Graphics;
public interface Paintable {
public void paint(Graphics g);
public boolean alive();
}
|
package view;
import java.awt.Color;
import java.awt.Graphics;
import model.Food;
public class FoodView implements Paintable{
private Food f;
public FoodView(Food food){
f = food;
}
@Override
public void paint(Graphics g) {
//Beállítjuk a színét pirosra
g.setColor(Color.RED);
//Egy ... |
package view;
import java.awt.Color;
import java.awt.Graphics;
import model.Lake;
public class LakeView implements Paintable{
private Lake l;
public LakeView(Lake lake){
l=lake;
}
@Override
public void paint(Graphics g) {
//Beállítjuk a színét kékre
g.setColor(Color.BLUE);
//Egy k... |
package view;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Polygon;
import model.BigAnt;
public class BigAntView implements Paintable {
private BigAnt bigant;
BigAntView(BigAnt ba){
bigant=ba;
}
@Override
public void paint(Graphics g) {
int loc_x=(int)bigant.get_x(... |
package view;
import java.awt.Color;
import java.awt.Graphics;
import model.Rock;
public class RockView implements Paintable{
private Rock r;
public RockView(Rock rock){
r=rock;
}
@Override
public void paint(Graphics g) {
//Beállítjuk a színét sötétszürkére
g.setColor(Color.DARK_GR... |
package view;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Polygon;
import model.HedgeHog;
public class HedgehogView implements Paintable {
private HedgeHog hedgehog;
public HedgehogView(HedgeHog ho){
hedgehog=ho;
}
@Override
public void paint(Graphics g) {
int... |
package view;
import java.awt.Color;
import java.awt.Graphics;
import model.AntOdor;
public class AntOdorView implements Paintable {
private AntOdor antodor;
AntOdorView(AntOdor ao){
antodor=ao;
}
@Override
public void paint(Graphics g) {
int loc_x=(int)antodor.get_x();
int loc_y=(... |
package view;
import java.awt.Color;
import java.awt.Graphics;
import model.AntKillerSpray;
import model.Spray;
public class AntKillerSprayView implements Paintable{
private Spray s;
public AntKillerSprayView(AntKillerSpray spray){
s=spray;
}
@Override
public void paint(Graphics g) {
... |
package view;
import java.awt.Color;
import java.awt.Graphics;
import model.AntHill;
public class AntHillView implements Paintable{
private AntHill ah;
public AntHillView(AntHill a){
ah=a;
}
@Override
public void paint(Graphics g) {
//Beállítjuk a színét barnára
g.setColor(new Colo... |
package view;
import java.awt.Color;
import java.awt.Graphics;
import model.AntKillerSpray;
import model.AntOdorKillerSpray;
import model.Spray;
public class AntOdorKillerSprayView implements Paintable{
private Spray s;
public AntOdorKillerSprayView(AntOdorKillerSpray spray){
s=spray;
}
... |
package controller;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.image... |
package model;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import view.View;
//jatek osztaly
public class Game {
public Map currentMap; //az adott palya
publi... |
package model;
import java.util.ArrayList;
//hangyaszag irto spray a spraybol szarmazva
public class AntOdorKillerSpray extends Spray {
// alapkonstruktor megkapja a gamet
public AntOdorKillerSpray(Game pgame) {
super();
game = pgame;
range = 15;
capacity = 20;
}
// sprayt hasznal
public void useSpray(... |
package model;
import java.util.ArrayList;
//hangya osztaly game objectbol szarmaztatva
public abstract class Ant extends GameObject{
protected double dir_x;
protected double dir_y;
protected double dir;
protected int capacity;
protected int foodcarried;
protected boolean goinghome;
protected Ma... |
package model;
//kis hangyak osztalya
public class LittleAnt extends Ant {
public LittleAnt(Game currgame){
super(currgame);
//1 kajat bir el a hatan
this.capacity=1;
this.type="LittleAnt";
//5-os sebesseggel megy
this.speed=4;
}
}
|
package model;
//a palyan talalhato statikus elemek absztrakt ososztalya
public abstract class MapElement {
//adott elem koordinatai
protected int loc_x;
protected int loc_y;
//adott elem tipusa
protected String type;
//adott elem "hatokore"
protected float range;
protected int id;
//adott t... |
package model;
//hangyasza a gameobjectbol szarmaztatva
public class AntOdor extends GameObject{
protected float range;
protected int ownerID;
protected boolean isAlive=true;
//alapkonstruktor
AntOdor(Game currgame){
super(currgame,"AntOdor");
range=10.0f;
}
//szag felszivodasa
public boole... |
package model;
import java.util.ArrayList;
//hangyaszsun tipusu objektumok osztalya
public class HedgeHog extends GameObject{
//alszik-e a sun
private boolean isActive;
//mennyi hangyat evett meg
public int antsEaten;
//mennyi hangya bele a gyomraba
private int capacity;
//iranyvektor x koord.
... |
package model;
import java.io.IOException;
public class Timing {
private Game game;
public Timing(Game pgame){
game=pgame;
}
//egy utem telik a jatekban
//minden dinamikus objektum mozgatasa
public void tick() throws IOException {
//az idot leptetjuk
game.currentMap.daytime++;
game.isGa... |
package model;
//hangyaleso a mapelementbol szarmaztatva
public class AntLion extends MapElement{
protected boolean isAlive;
//konstuktor
public AntLion(int x, int y, String type, float range) {
super(x, y, type, range);
isAlive = true;
}
//alapkonstruktor
public AntLion(){
super();
isAl... |
package model;
public abstract class Obstacle extends MapElement {
public Obstacle(int x, int y, String type, float range) {
super(x, y, type, range);
}
public Obstacle(){
super();
}
public Obstacle(String name,int id,int x,int y){
super(name,id,x,y);
}
public void draw(){}
pu... |
package model;
//nagyhangya hangyabol szarmaztatva
public class BigAnt extends Ant {
//konstruktor
public BigAnt(Game currgame){
super(currgame);
//2 kajat bir el a hatan
this.capacity=2;
this.type="BigAnt";
//10-es sebessegel megy
this.speed=4;
}
}
|
package model;
//a hangya boj osztaly mapelementbol szarmaztatva
public class AntHill extends MapElement {
protected boolean isAlive;
//anthill konstruktora
public AntHill(int x, int y, String type, float range) {
super(x, y, type, range);
isAlive = true;
}
//alapkonstruktor
public AntHill(){... |
package model;
import java.io.IOException;
//a sprayk ososztalya
public abstract class Spray {
public int capacity;
float range;
Game game;
double loc_x;
double loc_y;
public abstract void useSpray(double x,double y) throws IOException;
//alapkonstuktor
public Spray(){
}
//a spray adott helyre ... |
package model;
//gameobject foosztaly
public class GameObject {
protected int ID;
//adott gameobject x;y koordinatai
protected double loc_x;
protected double loc_y;
//adott gameobject altipusa
protected String type;
protected Game game;
//alapkonstruktor
public GameObject(Game currgame, Stri... |
package model;
//kaja a mapelementbol szarmaztatva
public class Food extends MapElement{
protected int capacity;
protected int maxcapacity;
protected float odor_range;
protected boolean isAlive;
//konstruktor
public Food(int x, int y, String type, float range) {
super(x, y, type, range);
isAl... |
package model;
import java.io.IOException;
import java.util.ArrayList;
//palyat, ill. az azon talalhato statikus elemeket tarolo osztaly
public class Map {
//statikus elemek listaja(kaja, akadalyok, hangyaboly, hangyaleso)
public ArrayList<MapElement> mapelements;
//este van-e
private boolean isNight;
... |
package model;
import java.util.ArrayList;
//hangyaolo spray a spraybol szarmaztatva
public class AntKillerSpray extends Spray {
// alapkonstruktor megkapja a game-t
public AntKillerSpray(Game pgame) {
super();
game = pgame;
range = 15;
capacity = 20;
}
// sprayt hasznal, ker egy hangyat es megnezi hogy... |
package model;
//gameobjektumokat hoz letre
public class GameObjectFactory {
Game game;
static int id;
//a bemeno parameter fuggvenyeben objektumokat hoz letre
public GameObjectFactory(Game pgame){
game=pgame;
id=1;
}
//a teszteleshez letre kell hoznunk szagokat
//a string tomb tartalmazza a ... |
package model;
//palyat es az azon talalhato statikus elemeket legyarto singleton osztaly
public class MapFactory {
private static int id;
//Map legyartasa
public Map createMap(int level){
id=0;
return new Map();
}
//egyes MapElement-ek legyartasa
public MapElement createMapElement(... |
package model;
//Lake tipusu akadalyok osztalya
public class Lake extends Obstacle {
protected boolean isAlive;
public Lake(int x, int y, String type, float range) {
super(x, y, type, range);
isAlive = true;
}
public Lake(){
super();
isAlive = true;
}
public Lake(int id,int x,int y... |
package model;
import java.util.ArrayList;
//ko akadaly az akadalybol szarmaztatva
public class Rock extends Obstacle {
boolean isAlive;
// konstruktor
public Rock(int x, int y, String type, float ran) {
super(x, y, type, ran);
range = 10;
isAlive = true;
}
// alapkonstruktor
pub... |
/*
* The MIT License
*
* Copyright (c) 2011, Centrum Systems Pty Ltd
*
* 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 restriction, including without limitation the righ... |
/*
* The MIT License
*
* Copyright (c) 2011, Centrum Systems Pty Ltd
*
* 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 restriction, including without limitation the righ... |
/*
* The MIT License
*
* Copyright (c) 2011, Centrum Systems Pty Ltd
*
* 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 restriction, including without limitation the righ... |
package au.com.centrumsystems.hudson.plugin.buildpipeline;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.logging.Logger;
/**
* @author Centrum Systems
*
* Representation of the projects and their related buil... |
/*
* The MIT License
*
* Copyright (c) 2011, Centrumsystems Pty Ltd
*
* 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 restriction, including without limitation the right... |
package au.com.centrumsystems.hudson.plugin.buildpipeline;
import hudson.model.AbstractBuild;
import hudson.model.AbstractProject;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.kohsuke.stapler.bind.JavaScriptMethod;
/**
* @author Centrum Systems
*
... |
package au.com.centrumsystems.hudson.plugin.buildpipeline;
/**
* Build not found
*
* @author marcin
*
*/
public class BuildNotFoundException extends RuntimeException {
/**
* serialVersionUID
*/
private static final long serialVersionUID = 1L;
/**
* constructor
*
* @param ... |
package au.com.centrumsystems.hudson.plugin.buildpipeline;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
/**
* Message resource bundle utility
*
* @author Unknown
*/
public final class Strings {
/**
* bundle name
*/
private static final String BUNDLE_... |
/*
* The MIT License
*
* Copyright (c) 2011, Centrum Systems Pty Ltd
*
* 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 restriction, including without limitation the righ... |
/*
* The MIT License
*
* Copyright (c) 2011, Centrum Systems Pty Ltd
*
* 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 restriction, including without limitation the righ... |
package au.com.centrumsystems.hudson.plugin.buildpipeline;
import hudson.model.AbstractBuild;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import org.kohsuke.stapler.bind.JavaScriptMethod;
/**
* @author Centrum Systems
*
* Representation of a ... |
/*
* The MIT License
*
* Copyright (c) 2011, Centrum Systems Pty Ltd
*
* 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 restriction, including without limitation the righ... |
////////////////////////////////////////////////////////////////////////////////
//
// ADOBE SYSTEMS INCORPORATED
// Copyright 2012 Adobe Systems Incorporated
// All Rights Reserved.
//
// NOTICE: Adobe permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement ac... |
////////////////////////////////////////////////////////////////////////////////
//
// ADOBE SYSTEMS INCORPORATED
// Copyright 2012 Adobe Systems Incorporated
// All Rights Reserved.
//
// NOTICE: Adobe permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement ac... |
// Copyright 2012 Google Inc. All Rights Reserved.
package com.example.android.notepad;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
/**
* Service for the DriveSyncAdapter.
*/
public class DriveSyncService extends Service {
private static final Object sSyncAdapterLock = ... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 appli... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 appli... |
// Copyright 2012 Google Inc. All Rights Reserved.
package com.example.android.notepad;
import android.app.Activity;
import android.app.LoaderManager;
import android.app.ProgressDialog;
import android.content.ContentValues;
import android.content.CursorLoader;
import android.content.Loader;
import android.database.Cu... |
// Copyright 2012 Google Inc. All Rights Reserved.
package com.example.android.notepad;
import android.accounts.Account;
import android.content.AbstractThreadedSyncAdapter;
import android.content.ContentProviderClient;
import android.content.Context;
import android.content.SyncResult;
import android.os.Bundle;
/**
... |
// Copyright 2012 Google Inc. All Rights Reserved.
package com.example.android.notepad;
import com.google.android.gms.auth.GoogleAuthUtil;
import com.google.android.gms.common.AccountPicker;
import com.google.api.client.googleapis.extensions.android.accounts.GoogleAccountManager;
import android.accounts.Account;
imp... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 appli... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 appli... |
// Copyright 2012 Google Inc. All Rights Reserved.
package com.example.android.notepad;
import com.google.android.gms.auth.UserRecoverableAuthException;
import com.google.api.client.extensions.android.http.AndroidHttp;
import com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential;
import... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 appli... |
/*
* Copyright (c) 2012 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 in ... |
/*
* Copyright (c) 2012 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 in ... |
/*
* Copyright (c) 2012 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 in ... |
/*
* Copyright (c) 2012 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 in ... |
/*
* Copyright (c) 2012 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 in ... |
/*
* Copyright (c) 2012 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 in ... |
/*
* Copyright (c) 2012 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 in ... |
/*
* Copyright (c) 2012 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 in ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.