code
stringlengths
3
1.18M
language
stringclasses
1 value
/* * Copyright (C) 2008 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 applicab...
Java
/* * Copyright (C) 2008 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...
Java
/* * Copyright (C) 2008 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...
Java
/* * Copyright (C) 2008 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...
Java
/* * Copyright (C) 2008 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 applicab...
Java
package org.pocketworkstation.pckeyboard; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; import android.view.inputmethod.InputMethodManager; public class NotificationReceiver extends BroadcastReceiver { static final String TAG = "PCKe...
Java
/* * Copyright (C) 2010 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 applicab...
Java
/* * Copyright (C) 2008 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 applicab...
Java
package org.pocketworkstation.pckeyboard; import java.util.HashMap; import java.util.Locale; import java.util.Map; import android.content.SharedPreferences; import android.content.res.Resources; import android.util.Log; /** * Global current settings for the keyboard. * * <p> * Yes, globals are evil. But the per...
Java
/* * Copyright (C) 2009 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 ...
Java
/* * Copyright (C) 2010 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...
Java
package org.pocketworkstation.pckeyboard; import java.util.regex.Matcher; import java.util.regex.Pattern; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; /** * Variant of SeekBarPreference that stores values as string preferences. * * This is for compatibi...
Java
/* * Copyright (C) 2008 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 applicab...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 2011 Darren Salt * * Licensed under the Apache License, Version 2.0 (the "Licence"); you may * not use this file except in compliance with the Licence. You may obtain * a copy of the Licence at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/* * Copyright (C) 2008 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 applicab...
Java
/* * Copyright (C) 2008-2009 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 ag...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 2010 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...
Java
/* * Copyright (C) 2010 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...
Java
package org.pocketworkstation.pckeyboard; import java.util.Locale; import android.content.Context; import android.content.res.TypedArray; import android.preference.DialogPreference; import android.util.AttributeSet; import android.view.View; import android.widget.SeekBar; import android.widget.TextView; /** * SeekB...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 2008 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 applicab...
Java
/* * Copyright (C) 2008 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 applicab...
Java
/* * Copyright (C) 2008 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...
Java
/** * */ package org.pocketworkstation.pckeyboard; import android.content.Context; import android.preference.ListPreference; import android.util.AttributeSet; import android.util.Log; public class AutoSummaryListPreference extends ListPreference { private static final String TAG = "HK/AutoSummaryListPreference"...
Java
/* * Copyright (C) 2009 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...
Java
package org.pocketworkstation.pckeyboard; import android.content.Context; import android.preference.EditTextPreference; import android.util.AttributeSet; public class AutoSummaryEditTextPreference extends EditTextPreference { public AutoSummaryEditTextPreference(Context context) { super(context); } ...
Java
/* * Copyright (C) 2008 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...
Java
/* * Copyright (C) 2008 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...
Java
/* * Copyright (C) 2008 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 applicab...
Java
/* * Copyright (C) 2008 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 applicab...
Java
/* * Copyright (C) 2009 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 2011 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 applicab...
Java
/* * Copyright (C) 2008-2009 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 agree...
Java
/* * Copyright (C) 2011 Darren Salt * * Licensed under the Apache License, Version 2.0 (the "Licence"); you may * not use this file except in compliance with the Licence. You may obtain * a copy of the Licence at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/* * Copyright (C) 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 ...
Java
package org.pocketworkstation.pckeyboard; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.xmlpull.v1.XmlPullParserException; import android.content.BroadcastReceiver; import android.content.Context; ...
Java
/* * Copyright (C) 2008 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...
Java
/* * Copyright (C) 2009 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 ...
Java
/* * Copyright (C) 2009 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 ...
Java
/* * Copyright (C) 2009 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 ...
Java
/* * Copyright (C) 2009 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 ...
Java
/* * Copyright (C) 2008 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 ...
Java
/* * Copyright (C) 2009 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 ...
Java
/* * Copyright (C) 2008-2009 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 ag...
Java
package com.ashesi.cs.mhealth; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.net.HttpURLConnection; import java.net.URL; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpEntity;...
Java
package com.ashesi.cs.mhealth; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Locale; import com.ashesi.cs.mhealth.data.CHO; import com.ashesi.cs.mhealth.data.CHOs; import com.ashesi.cs.mhealth.data.Communities; import com.ashesi.cs.mhealth.data.Co...
Java
package com.ashesi.cs.mhealth; import java.util.ArrayList; import java.util.Calendar; import java.util.Locale; import com.ashesi.cs.mhealth.data.CommunityMember; import com.ashesi.cs.mhealth.data.OPDCaseRecords; import com.ashesi.cs.mhealth.data.R; import com.ashesi.cs.mhealth.data.R.id; import co...
Java
package com.ashesi.cs.mhealth; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.net.HttpURLConnection; import java.text.SimpleDateFormat; import java.util.Calendar; import org.json.JSONObject; import com.ashesi.cs.mhealth.data.CHOs; import com.ashesi.cs.mh...
Java
package com.ashesi.cs.mhealth.data; import com.ashesi.cs.mhealth.DataClass; import android.content.ContentValues; import android.content.Context; import android.database.sqlite.SQLiteDatabase; public class CHPSZones extends DataClass { public static final String TABLE_CHPS_ZONES="chps_zones"; public stat...
Java
package com.ashesi.cs.mhealth.data; public class Community { private int id; private String communityName; private int subdistrictId; private String latitude; private String longitude; private int household; private int population; public Community(int id, String communityName){ this.id=id; ...
Java
package com.ashesi.cs.mhealth.data; public class CHO { private String fullname; private int id; private int subdistrictId; private String subdistrictName; public CHO(int id, String fullname,int subdistrictId, String subdistrictName){ this.id=id; this.fullname=fullname; this.subdistrictId=subdis...
Java
package com.ashesi.cs.mhealth.data; public class HealthPromotion { private String date; private String venue; private String topic; private String method; private String target_audience; private String number_of_audience; private String remarks; private String month; private String latitude; priv...
Java
package com.ashesi.cs.mhealth.data; public class OPDCase { private int id; private String opdCaseName; private int category; public OPDCase(){ } public OPDCase(int id, String opdCaseName){ this.id=id; this.opdCaseName=opdCaseName; } public OPDCase(int id, String opdCaseName, int categ...
Java
package com.ashesi.cs.mhealth.data; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.Locale; import org.json.JSONArray; import org.json.JSONObject; import com.ashesi.cs.mhealth.DataClass; import android.content.ContentValues...
Java
package com.ashesi.cs.mhealth.data; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Locale; import org.json.JSONObject; public class CommunityMember { private int id; private int communityId; private String fullname; private String birthdate; private String gender; ...
Java
package com.ashesi.cs.mhealth.data; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Locale; import android.content.Context; import android.content.res.Resources; import android.util.Log; import android.view.View; import android.view.ViewGroup; imp...
Java
package com.ashesi.cs.mhealth.data; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONObject; import com.ashesi.cs.mhealth.DataClass; import android.content.ContentValues; import android.content.Context; import android.database.sqlite.SQLiteDatabase; public class CHOs extend...
Java
package com.ashesi.cs.mhealth.data; import java.net.HttpURLConnection; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONObject; import com.ashesi.cs.mhealth.DataClass; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import ...
Java
package com.ashesi.cs.mhealth.data; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import android.content.ContentValues; import android.content.Context; import com.ashesi.cs.mhealth.DataClass; /** * Reads and writes vaccination record of community member to a table * @a...
Java
package com.ashesi.cs.mhealth.data; import java.net.HttpURLConnection; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONObject; import android.content.ContentValues; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import com.ashesi.cs.mhealth.Data...
Java
package com.ashesi.cs.mhealth.data; import java.net.HttpURLConnection; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONObject; import com.ashesi.cs.mhealth.DataClass; import android.content.ContentValues; import android.content.Context; import android.database.sqlite.SQLiteDat...
Java
package com.ashesi.cs.mhealth.data; import android.app.AlertDialog; import android.app.Service; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.location.Location; import android.location.LocationListener; import android.location.LocationMan...
Java
package com.ashesi.cs.mhealth.data; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; public class DataVerson { static String[] columns={"version"}; static int getDataVersion(SQLiteDatabase db,String dataname){ try { Cursor cursor=db.query("dataversion", columns, "d...
Java
package com.ashesi.cs.mhealth.data; import java.text.SimpleDateFormat; import java.util.Locale; /** * represents a single vaccination record * @author Aelaf Dafla * */ public class VaccineRecord { private int vaccineRecordId; private int communityMemberId; private int vaccineId; private String v...
Java
package com.ashesi.cs.mhealth.data; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Locale; import org.json.JSONArray; import org.json.JSONObject; import com.ashesi.cs.mhealth.DataClass; import android.content.ContentValues; import android.cont...
Java
package com.ashesi.cs.mhealth.data; import com.ashesi.cs.mhealth.DataClass; import android.content.ContentValues; import android.content.Context; import android.database.sqlite.SQLiteDatabase; public class HealthPromotions extends DataClass { public static final String REC_DATE="date"; public stati...
Java
package com.ashesi.cs.mhealth.data; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Locale; public class Vaccine { private int vaccineId; private String vaccineName; private int schedule; public Vaccine(){ } public Vaccine(int vaccineId...
Java
package com.ashesi.cs.mhealth.data; import java.util.ArrayList; import com.ashesi.cs.mhealth.DataClass; import android.database.Cursor; public class OPDCaseReportRecord { public int ageRange; public int month; public int year; public String gender; ArrayList<String> list; public OPDCaseReportR...
Java
package com.ashesi.cs.mhealth.data; import java.util.ArrayList; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.TextView; public class CommunityMemberAdapter extends BaseAdapte...
Java
package com.ashesi.cs.mhealth.data.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 Syste...
Java
package com.ashesi.cs.mhealth.data.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 <...
Java
package com.ashesi.cs.mhealth.data.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 (specifica...
Java
package com.ashesi.cs.mhealth.data; import java.text.SimpleDateFormat; import java.util.Locale; import org.json.JSONObject; public class OPDCaseRecord { private int recNo; private int communityMemberId; private int opdCaseId; private String recDate; private String fullname; private String opdCas...
Java
package com.ashesi.cs.mhealth; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.net.HttpURLConnection; import java.net.URL; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpEntity;...
Java
package com.ashesi.cs.mhealth; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.List; import com.ashesi.cs.mhealth.DataClass; import com.ashesi.cs.mhealth.MainActivity; import com.ashesi.cs.mhealth.data.GPSTracker; import com.ashesi.cs.mhealth.data.HealthPromo...
Java
package com.ashesi.cs.mhealth; import java.util.ArrayList; import com.ashesi.cs.mhealth.data.CHO; import com.ashesi.cs.mhealth.data.CHOs; import com.ashesi.cs.mhealth.data.Communities; import com.ashesi.cs.mhealth.data.Community; import com.ashesi.cs.mhealth.data.CommunityMember; import com.ashesi.cs.mhealth...
Java
package com.ashesi.cs.mhealth; import java.util.ArrayList; import com.ashesi.cs.mhealth.data.OPDCase; import com.ashesi.cs.mhealth.data.OPDCases; import com.ashesi.cs.mhealth.data.R; import com.ashesi.cs.mhealth.data.R.id; import com.ashesi.cs.mhealth.data.R.layout; import com.ashesi.cs.mhealth.data.R.menu; ...
Java
package com.ashesi.cs.mhealth; import android.annotation.TargetApi; import android.content.Context; import android.content.SharedPreferences; import android.content.res.Configuration; import android.media.Ringtone; import android.media.RingtoneManager; import android.net.Uri; import android.os.Build; import ...
Java
package com.ashesi.cs.mhealth; import com.ashesi.cs.mhealth.data.R; import android.app.AlertDialog; import android.app.Dialog; import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.view.LayoutInflater; public class DialogDataSynch extends DialogFragment { @Override pub...
Java
package com.ashesi.cs.mhealth; import com.ashesi.cs.mhealth.data.GPSTracker; import com.ashesi.cs.mhealth.data.R; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.AdapterView.On...
Java
package com.ashesi.cs.mhealth; import java.util.ArrayList; import com.ashesi.cs.mhealth.data.CHO; import com.ashesi.cs.mhealth.data.CHOs; import com.ashesi.cs.mhealth.data.R; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.util.Log; import android.view.C...
Java
package com.ashesi.cs.mhealth.knowledge; import org.json.JSONException; import org.json.JSONObject; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; /** * represents one category record * @author Aelaf Dafla * */ public class Categor...
Java
package com.ashesi.cs.mhealth.knowledge; public class JSONOPDCases { public JSONOPDCases(){ } }
Java
package com.ashesi.cs.mhealth.knowledge; import org.json.JSONArray; import org.json.JSONObject; import android.util.Log; public class JSONCategories { private JSONArray jsonCategories; private int version; private String strError; public JSONCategories(){ } public JSONCategories(JS...
Java
package com.ashesi.cs.mhealth.knowledge; import java.util.ArrayList; import org.json.JSONObject; import com.ashesi.cs.mhealth.DataClass; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.uti...
Java
package universe.constellation.orion.viewer; import android.test.ActivityInstrumentationTestCase2; /** * This is a simple framework for a test of an Application. See * {@link android.test.ApplicationTestCase ApplicationTestCase} for more information on * how to write and extend Application tests. * <p/> * To ru...
Java
package com.artifex.mupdfdemo; import android.content.Context; import android.graphics.Point; import android.graphics.PointF; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; public class MuPDFReflowAdapter extends BaseAdapter { private final Context mContext; private fina...
Java
package com.artifex.mupdfdemo; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.util.DisplayMetrics; import android.view.MotionEvent; import android.view.ScaleGestureDetector; import android.view.View; public class MuPDFReaderView exten...
Java
package com.artifex.mupdfdemo; public class LinkInfoRemote extends LinkInfo { final public String fileSpec; final public int pageNumber; final public boolean newWindow; public LinkInfoRemote(float l, float t, float r, float b, String f, int p, boolean n) { super(l, t, r, b); fileSpec = f; pageNumber = p; ...
Java
package com.artifex.mupdfdemo; import android.graphics.RectF; public class SearchTaskResult { public final String txt; public final int pageNumber; public final RectF searchBoxes[]; static private SearchTaskResult singleton; public SearchTaskResult(String _txt, int _pageNumber, RectF _searchBoxes[]) { txt =...
Java
package com.artifex.mupdfdemo; public class ChoosePDFItem { enum Type { PARENT, DIR, DOC } final public Type type; final public String name; public ChoosePDFItem (Type t, String n) { type = t; name = n; } }
Java
package com.artifex.mupdfdemo; import java.util.ArrayList; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.PointF; import android.graphics.RectF; import universe.constellation.orion.viewer.Common; import universe.constellation.orion.viewer...
Java
//package com.artifex.mupdfdemo; // //import android.app.AlertDialog; //import android.app.ProgressDialog; //import android.content.Context; //import android.content.DialogInterface; //import android.graphics.RectF; //import android.os.Handler; // //class ProgressDialogX extends ProgressDialog { // public ProgressDialo...
Java
package com.artifex.mupdfdemo; abstract public class LinkInfoVisitor { public abstract void visitInternal(LinkInfoInternal li); public abstract void visitExternal(LinkInfoExternal li); public abstract void visitRemote(LinkInfoRemote li); }
Java