text stringlengths 3 1.18M |
|---|
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Random;
import org.junit.Before;
import org.junit.Test;
/**
* Oregon Trail JUnit tests.
*
* @author Daryl, Stefan, Jesten, Kurtis, Tom
*/
public class OregonTrailTest {
/** The random generator. */
Random rand = ne... |
/**
* The Class Clothes.
*/
public class Clothes extends Item {
/**
* Instantiates a new clothes.
*/
public Clothes() {
price = 10;
quantity = 0;
name = "Clothes";
weight = 5;
}
public Clothes(int quan) {
price = 10;
quantity = quan;
name = "Clothes";
weight = 5;
}
/* (non-Javadoc)
... |
/**
* The Class Shop.
*
* @author Four Guys and a Mann
* @version v1.2 11/9/11
*/
public class Shop
{
/** The my leader. */
Leader myLeader;
/** The players wagon. */
Wagon playerWagon;
/**
* Instantiates a new shop.
*/
public Shop()
{
}
/**
* Buy.
*
* @param i ... |
package RiverCrossingGame;
import java.awt.*;
import javax.swing.*;
import java.util.*;
/**
* The monsters in the game
* I worked with no one else on this assignment
*
* @author Thomas Cornish
* @version 1.0
*/
public class Monster extends Creature
{
private int dx, dy;
private Random ran... |
package RiverCrossingGame;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.ArrayList;
/**
* Controller class for the game
* I worked with no one else on this assignment
*
* @author Thomas Cornish
* @version 1.0
*/
public class Game
{
private Level level;
private Play... |
package RiverCrossingGame;
import java.awt.*;
import javax.swing.*;
import java.util.*;
import java.io.*;
/**
* The level in the game
* I worked with no one else on this assignment
*
* @author Thomas Cornish
* @version 1.0
*/
public class Level
{
private static Tile[][] level;
private in... |
package RiverCrossingGame;
import java.awt.*;
import javax.swing.*;
/**
* A gem in the game
* I worked with no one else on this assignment
*
* @author Thomas Cornish
* @version 1.0
*/
public class Gem
{
private int value;
/**
* Constructs a Gem with a value of 10
*/
pub... |
package RiverCrossingGame;
import java.awt.*;
import javax.swing.*;
/**
* Abstract class from which all tiles in the game extend
* I worked with no one else on this assignment
*
* @author Thomas Cornish
* @version 1.0
*/
public abstract class Tile
{
private int xLoc, yLoc;
/**
* Co... |
package RiverCrossingGame;
import java.awt.*;
import javax.swing.*;
import java.util.Random;
/**
* Abstract class Creature. The parent class for all creatures in the game
* I worked with no one else on this assignment
*
* @author Thomas Cornish
* @version 1.0
*/
public abstract class Creature
{
... |
package RiverCrossingGame;
import java.awt.*;
import javax.swing.*;
/**
* The player in the game
* I worked with no one else on this assignment
*
* @author Thomas Cornish
* @version 1.0
*/
public class Player extends Creature
{
private int score;
private Game game;
/**
*Create... |
package RiverCrossingGame;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
* Displays the level and the current status and score of the level
* I worked with no one else on this assignment
*
* @author Thomas Cornish
* @version 1.0
*/
public class LevelPanel extends JPanel
{
private Le... |
package RiverCrossingGame;
import java.awt.*;
import javax.swing.*;
/**
* A floor tile
* I worked with no one else on this assignment
*
* @author Thomas Cornish
* @version 1.0
*/
public class Floor extends Tile
{
private Gem itemHeld;
/**
* Constructs a new floor tile at the specifi... |
package RiverCrossingGame;
import java.awt.*;
import javax.swing.*;
/**
* A wall in the game
* I worked with no one else on this assignment
*
* @author Thomas Cornish
* @version 1.0
*/
public class Wall extends Tile
{
/**
* Constructs a new wall at the specified location
*
... |
/**
* The Class Item.
*/
public abstract class Item {
/** The quantity. */
int quantity;
/** The price. */
int price;
/** The name. */
String name;
/** The weight. */
int weight;
/**
* Gets the quantity.
*
* @return the quantity
*/
public int getQuantity() {
return quantity;
}
/**
... |
/**
* The Class Food.
*/
public class Food extends Item {
/**
* Instantiates a new food.
*/
public Food() {
price = 1;
quantity = 0;
name = "Food";
weight = 1;
}
public Food(int quan) {
price = 1;
quantity = quan;
... |
/**
* The Class Leader, which represents the main player of the game
*
* @author Four Guys and a Mann
* @version v1 10/10/11
*/
public class Leader extends Person {
/** The money the player has */
int money;
/** The my profession of the player */
private Profession myProfession;
... |
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.util.Enumeration;
import javax.swing.ButtonGroup;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import... |
/**
* The Enumerated type Profession, which represents the Profession of the Leader
*
* @author Four Guys and a Mann
* @version v1 10/10/11
*/
public enum Profession {
/** The Carpenter profession */
Carpenter (1200),
/** The Banker profession */
Banker (1500),
/** The Farmer pr... |
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
* This class provides the user with options.
*
* @author Kurtis Eveleigh
* @version 1.0
*/
public class huntingOptions extends JPanel
{
int t = 10; //The time left.
JLabel info = new JLabel("Click squirrels once and bison twice... |
/**
* The Class Tongue.
*/
public class Tongue extends Item {
/**
* Instantiates a new tongue.
*/
public Tongue() {
price = 10;
quantity = 0;
name = "Tongue";
weight = 20;
}
public Tongue(int quan) {
price = 10;
quantity = quan;
name = "Tongue";
weight = 20;
}
/*... |
/**
* The Class Oxen.
*/
public class Oxen extends Item {
/**
* Instantiates a new oxen.
*/
public Oxen() {
price = 20;
quantity = 0;
name = "Oxen";
weight = 50;
}
public Oxen(int quan) {
price = 20;
quantity = quan;
name = "Oxen";
weight = 50;
}
/* (non-Javadoc)... |
/**
* The Class Health, which represents the Health of a Person.
*
* @author Four Guys and a Mann
* @version v1 10/10/11
*/
public class Health {
/** The health. */
private int health;
/**
* Instantiates a new health object.
*
* @param initialHealth the initial health
*/
public He... |
import java.util.*;
public class randomEvent {
private int event;
private Random random = new Random();
public randomEvent(){};
public boolean Event(){
double yesOrNo = random.nextInt(4);
if (yesOrNo ==1){
return true;
} else {
return false;
}
}
public int generateEvent(){
/*... |
/**
* The Enumerated type Pace, which represents the Pace of the Wagon
*
* @author Four Guys and a Mann
* @version v1 10/10/11
*/
public enum Pace {
/** The Leisurely Pace*/
//goes 20 miles per turn
Leisurely(20),
/** The Steady Pace */
//goes 27 miles per turn
Steady(27),
... |
/**
* The Class Axle.
*/
public class Axle extends Item {
/**
* Instantiates a new axle.
*/
public Axle() {
price = 10;
quantity = 0;
name = "Axle";
weight = 10;
}
public Axle(int quan) {
price = 10;
quantity = quan;
name = "Axle";
weight = 10;
}
/* (non-Javadoc)... |
/**
* The Map class.
* This class keeps track of the player's location.
*
* @author Four Guys and a Mann
* @version v1.5 11/9/11
*/
public class Map {
/** The locations. */
Location[] locations = new Location[18];
/** The current location. */
int distanceMoved;
/** The... |
/**
* The Class Member, which is one of the other people on the Wagon
*
* @author Four Guys and a Mann
* @version v1 10/10/11
*/
public class Member extends Person {
/**
* Instantiates a new member.
*
* @param name the name
*/
public Member(String name) {
super... |
/**
* The Class Bullets.
*/
public class Bullets extends Item {
/**
* Instantiates a new bullets.
*/
public Bullets() {
price = 1;
quantity = 0;
name = "Bullets";
weight = 1;
}
public Bullets(int quan) {
price = 1;
quantity = quan;
name = "Bullets";
weight = 1;
}
... |
import java.util.ArrayList;
import java.util.Date;
/**
* The Class Wagon, which controls the pace and the rations of the game.
* This is one of the main classes of the game
*
* @author Four Guys and a Mann
* @version v1.0 10/10/11
*/
public class Wagon {
/** The current pace. */
private ... |
public class Rabbit extends Animal
{
/**
* The constructor for the rabbit.
* @param row The row where the rabbit is located.
* @param col The column where the rabbit is located.
*/
public Rabbit(int row, int col)
{
this.row = row;
this.col = col;
this.personalID = 1; //Allows for identifi... |
public class Bison extends Animal
{
/**
* The constructor for the bison.
* @param row The row where the bison is located.
* @param col The column where the bison is located.
*/
public Bison(int row, int col)
{
this.row = row;
this.col = col;
this.personalID = 2; //Allows for identificatio... |
import java.util.*;
/**
* The Class Inventory.
*
* @author Four Guys and a Mann
* @version v1.15 11/9/11
*/
public class Inventory {
/** The items. */
ArrayList<Item> items;
/** The current weight. */
int currentWeight;
/** The max weight. */
//the max weight may be chan... |
package com.ircgn.inl.forn6motiondetection;
import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.nio.ByteBuffer;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;... |
package com.ircgn.inl.forn6motiondetection;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
/**
* Class to start the activity at boot
* */
public class Start4n6ServiceAtBootReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context conte... |
package com.ircgn.inl.forn6motiondetection;
import java.io.DataOutputStream;
import java.io.IOException;
import com.ircgn.inl.forn6motiondetection.util.StreamGobbler;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
/... |
package com.ircgn.inl.forn6motiondetection;
import java.io.File;
import java.io.FilenameFilter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.ListIterator;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import andro... |
package com.ircgn.inl.forn6motiondetection.util;
import com.ircgn.inl.forn6motiondetection.Detection;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.provider.Telephony;
import android.telephony.SmsMessage;
import android.util.Log;
public class ... |
/*
* Copyright (C) 2012-2013 Jorrit "Chainfire" Jongma
*
* 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 com.ircgn.inl.forn6motiondetection.util;
import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.mail.Message;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import ... |
package com.ircgn.inl.forn6motiondetection.util;
import android.os.AsyncTask;
import android.util.Log;
public class SendMailOperation extends AsyncTask<Void, Void, String>
{
@Override
protected String doInBackground(Void... params)
{
try{GMailSender sender = new GMailSender("4n6france@gmail.com","4n6france");
... |
package com.provider;
/*
* 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
... |
/** Automatically generated file. DO NOT MODIFY */
package com.ircgn.inl.forn6motiondetection;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package service;
import com.example.friend.MainActivity;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.database.ContentObserver;
import android.database.Cursor;
import android.net.Uri;
import android.os.Handler;
import android.os.IBinder;
import ... |
package receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;
import android.util.Log;
import db.ServiceDatabase;
public class CallReceiver extends BroadcastReceiver {
@Override
public void onReceive... |
package receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.util.Log;
import db.ServiceDatabase;
public class SmsReceiver extends BroadcastReceiver {
@Override
p... |
package utils;
public class Common {
public static final String DATABASE_NAME = "keepfriend.db";
public static String refinePhone(String phone) {
return phone.replace("+84", "0").replaceAll("[^0-9+]", "");
}
}
|
package quickaction;
import com.example.friend.R;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;... |
package quickaction;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.WindowManager;
import android.view.View.OnTouchListener;
import android.widget.Pop... |
package quickaction;
import com.example.friend.R;
import android.view.View;
import android.view.ViewGroup;
import android.view.LayoutInflater;
import android.content.Context;
import android.widget.BaseAdapter;
import android.widget.TextView;
public class NewQAAdapter extends BaseAdapter {
private LayoutInflater mIn... |
package com.example.friend;
import quickaction.ActionItem;
import quickaction.QuickAction;
import service.SmsSendService;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view... |
package db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.readystatesoftware.sqliteasset.SQLiteAssetHelper;
public class ServiceDatabase extends SQLiteAssetHelper {
private static final int DATABASE_VERSION = 1;
public ServiceDatabase... |
package db;
import utils.Common;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import android.provider.ContactsContract;
import android.provider.ContactsCont... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package gestion;
/**
*
* @author kaibiibrahim
*/
public class Gestion {
/**
* @param args the command line arguments
... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package presentation;
import java.awt.Color;
import java.awt.EventQueue;
import java.beans.Beans;
import java.text.SimpleDateFormat;
i... |
package presentation;
import java.awt.Component;
import javax.swing.DefaultListCellRenderer;
import javax.swing.JList;
public class ProduitListCellRenderer extends DefaultListCellRenderer {
@Override
public Component getListCellRendererComponent(
JList list, Object value, int index, boole... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package presentation;
import java.awt.EventQueue;
import java.beans.Beans;
import java.util.ArrayList;
import java.util.Collection;
... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package presentation;
import entity.Commande;
import entity.LignCmd;
import entity.LignCmdPK;
import java.awt.Color;
import java.awt.C... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package presentation;
import java.awt.Color;
import java.awt.EventQueue;
import java.beans.Beans;
import java.util.ArrayList;
import j... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package presentation;
import java.awt.Component;
import java.awt.Dimension;
import java.beans.PropertyVetoException;
import java.util.... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package presentation;
import entity.Client;
import entity.Commande;
import entity.LignCmd;
import java.awt.Color;
import java.beans.Be... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package presentation;
import entity.Client;
import entity.Commande;
import java.awt.Color;
import java.awt.EventQueue;
import java.bea... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package presentation;
import java.awt.Color;
import java.awt.EventQueue;
import java.beans.Beans;
import java.util.ArrayList;
import j... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entity;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
impor... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entity;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistenc... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entity;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entity;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
impor... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entity;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistenc... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entity;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistenc... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entity;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
impor... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entity;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
impor... |
/*
* Copyright (c) 2008, 2012 Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
*
* This file is available and licensed under the following license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.foridev.gec.gui;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.Initializable;
/**
* FXML Controller class
*
* @author amine
*/
public class HomeController imple... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.foridev.gec.gui;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label... |
/*
* Copyright (c) 2008, 2012 Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
*
* This file is available and licensed under the following license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.foridev.gec.gui;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
/**
* FXML Controller class
*
* @author amine
*/
public ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.foridev.gec.gui;
import com.foridev.gec.dao.ActeDao;
import com.foridev.gec.model.Acte;
import java.net.URL;
import java.util.Date;
import java.util.List;
import java.util.ResourceBundle;
import ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.foridev.gec.gui;
import com.foridev.gec.model.User;
import com.foridev.gec.security.Authenticator;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Applica... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.foridev.gec.gui;
import com.foridev.gec.model.Acte;
import com.foridev.gec.dao.ActeDao;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.Initializa... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.foridev.gec.dao;
import com.foridev.gec.model.Acte;
/**
*
* @author amine
*/
public class Test{
public static void main(String args[]){
}
}
|
/*
*
*
*
*
*
*
*
*/
package com.foridev.gec.dao;
import com.foridev.gec.model.Acte;
import java.util.HashMap;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import org.hibernate.criterion.Order;
import org.hibernate.criterio... |
/*
* Copyright (c) 2008, 2012 Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
*
* This file is available and licensed under the following license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
package dk.ucn.datamatiker.henrik.bundtkage.earthcake.whereami;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.view.Menu;
import android.view.MenuItem;
import andr... |
package dk.ucn.datamatiker.henrik.bundtkage.earthcake.whereami;
import java.io.IOException;
import java.util.List;
import java.util.Locale;
import android.app.Activity;
import android.content.Context;
import android.location.Address;
import android.location.Criteria;
import android.location.Geocoder;
impor... |
/** Automatically generated file. DO NOT MODIFY */
package dk.ucn.datamatiker.henrik.bundtkage.earthcake.whereami;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
/*
* Copyright (C) 2013 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 app... |
/** Automatically generated file. DO NOT MODIFY */
package com.google.android.gms;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package com.mavinfinity.kidsanimales;
import com.mavinfinity.kidsanimales.util.SystemUiHider;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.view.MotionEvent;
import android.view.View;
/**
* ... |
package com.mavinfinity.kidsanimales.util;
import android.app.Activity;
import android.view.View;
import android.view.WindowManager;
/**
* A base implementation of {@link SystemUiHider}. Uses APIs available in all
* API levels to show and hide the status bar.
*/
public class SystemUiHiderBase extends Sys... |
package com.mavinfinity.kidsanimales.util;
import android.app.Activity;
import android.os.Build;
import android.view.View;
/**
* A utility class that helps with showing and hiding system UI such as the
* status bar and navigation/system bar. This class uses backward-compatibility
* techniques described in... |
package com.mavinfinity.kidsanimales.util;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.view.View;
import android.view.WindowManager;
/**
* An API 11+ implementation of {@link SystemUiHider}. Uses APIs available in
* Honeycomb and later (specifi... |
/** Automatically generated file. DO NOT MODIFY */
package com.mavinfinity.kidsanimales;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.*;
public interface EmoState extends Library
{
EmoState INSTANCE = (EmoState)
Native.loadLibrary("edk",
EmoState.class);
public enum EE_EmotivSuite_t {
EE_... |
import com.sun.jna.Pointer;
import com.sun.jna.ptr.*;
/** Simple example of JNA interface mapping and usage. */
public class EmoStateLog
{
public static void main(String[] args)
{
Pointer eEvent = Edk.INSTANCE.EE_EmoEngineEventCreate();
Pointer eState = Edk.INSTANCE.EE_EmoState... |
public enum EdkErrorCode {
EDK_OK (0x0000),
//! An internal error occurred
EDK_UNKNOWN_ERROR (0x0001),
//! The contents of the buffer supplied to EE_SetUserProfile aren't a valid, serialized EmoEngine profile.
EDK_INVALID_PROFILE_ARCHIVE (0x0101),
//! Returned from EE_EmoEngineEventGetUserI... |
import com.sun.jna.Library;
import com.sun.jna.Native;
public interface CustomerSecurity extends Library
{
CustomerSecurity INSTANCE = (CustomerSecurity)
Native.loadLibrary("CustomerSecurity",
CustomerSecurity.class);
double emotiv_func(double x);
} |
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing... |
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.*;
import com.sun.jna.NativeLong;
import com.sun.jna.Structure;
public interface Edk extends Library
{
Edk INSTANCE = (Edk)
Native.loadLibrary("edk",
Edk.class);
... |
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FilenameFilter;
import java.util.ArrayList;
import javax.swing.JFileChooser;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.IntByReference;
import com.sun.jna.ptr... |
package gui;
import javax.microedition.lcdui.*;
import logic.LogicHelper;
import logic.MainMidlet;
import logic.TempUserSettings;
/**
* screen as Form class with fields to change game settings
* @author Rekin
*
*/
public class MenuOptions extends Form implements CommandListener, ItemStateListener{
... |
package gui;
import java.util.Vector;
import javax.bluetooth.DataElement;
import javax.bluetooth.ServiceRecord;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.List;
import logic.Bluetoot... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.