blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
410
content_id
stringlengths
40
40
detected_licenses
sequencelengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
131 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
32 values
content
stringlengths
3
9.45M
authors
sequencelengths
1
1
author_id
stringlengths
0
313
3df1d4a5dd6f6fe510a88e6f3740b6cc7ce7ab2d
a402617b932293f0e89ef8eceffb562b0e6300c2
/IDOL/src/main/java/com/topcoder/hp/idol/ondemand/Tasks/AddTextToIndexTask.java
b3d7f05e8afa13f13dc38ed0440bb773afdb4e4c
[]
no_license
Hirshfeld/android_topcoder_hp_ondemand
f3765cc890c9aa89248cf914f3013f261a9d6bb3
e9b1fc2a6998805b41007f021903cab26c9e1bab
refs/heads/master
2022-05-29T19:54:19.911999
2016-03-11T17:24:52
2016-03-11T17:24:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,266
java
package com.topcoder.hp.idol.ondemand.Tasks; import android.content.Context; import android.os.AsyncTask; import com.topcoder.hp.idol.ondemand.RestEntites.AddTextToIndexResponse; import com.topcoder.hp.idol.ondemand.RestEntites.TextDocument; import com.topcoder.hp.idol.ondemand.Helpers.Utilities; import com.topcoder.hp.idol.ondemand.Interfaces.OnAddTextComplete; import com.topcoder.hp.idol.ondemand.RestUtils.HTTPMethods; import com.topcoder.hp.idol.ondemand.RestUtils.RestConsts; import com.topcoder.hp.idol.ondemand.RestUtils.URLHelper; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.json.JSONException; import org.json.JSONObject; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URL; public class AddTextToIndexTask extends AsyncTask<String, String, AddTextToIndexResponse> { private OnAddTextComplete _onAddTextComplete = null; private String _indexName = null; private TextDocument _textDocument = null; private Context _context = null; public AddTextToIndexTask(Context context, String indexName, TextDocument textDocument, OnAddTextComplete onAddTextComplete) { _context = context; _indexName = indexName; _textDocument = textDocument; _onAddTextComplete = onAddTextComplete; this.execute(); } private static AddTextToIndexResponse AddTextToIndexResponseFromJSON(String result) throws JSONException { Utilities.WriteLogcat("AddTextToIndexResponseFromJSON"); AddTextToIndexResponse addTextToIndexResponse = null; try { if (result != null) { try { JSONObject resultObject = new JSONObject(result); addTextToIndexResponse = new AddTextToIndexResponse(resultObject); //new Gson().fromJson(resultObject.toString(), AddTextToIndexResponse.class); } catch (Exception e) { Utilities.HandleError("AddTextToIndexResponseFromJSON - No message found"); return null; } } else { Utilities.HandleError("AddTextToIndexResponseFromJSON - Result is NULL"); } } catch (Exception e) { Utilities.HandleException(e); } return addTextToIndexResponse; } @Override protected AddTextToIndexResponse doInBackground(String... args) { InputStream inputStream = null; AddTextToIndexResponse result = null; try { if (HTTPMethods.CheckIfIndexExistByStatus(_context, _indexName)) { URL url = URLHelper.PutAddTextToIndex(_context, _indexName, _textDocument); HttpGet httpRequest = new HttpGet(url.toURI()); HttpClient httpclient = HTTPMethods.getSSLIgnorateHttpClient(); //new DefaultHttpClient(); HttpResponse response = (HttpResponse) httpclient.execute(httpRequest); if (response.getStatusLine().toString().contains(RestConsts.RESPONSE_STATUS_OKAY)) { HttpEntity entity = response.getEntity(); inputStream = entity.getContent(); BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"), 8); StringBuilder theStringBuilder = new StringBuilder(); String line = null; while ((line = reader.readLine()) != null) { theStringBuilder.append(line + "\n"); } result = AddTextToIndexResponseFromJSON(theStringBuilder.toString()); } else { Utilities.HandleError("AddTextToIndexResponse Failed to add text to index, status: [" + response.getStatusLine().toString() + "] URL is: [" + url + "]"); try { HttpEntity entity = response.getEntity(); inputStream = entity.getContent(); BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"), 8); StringBuilder theStringBuilder = new StringBuilder(); String line = null; while ((line = reader.readLine()) != null) { theStringBuilder.append(line + "\n"); } Utilities.WriteLogcat("Response entity: [" + theStringBuilder.toString() + "]"); } catch (Exception e) { } return null; } } else { Utilities.WriteLogcat("Index [" + _indexName + "] already exist."); } } catch (Exception e) { Utilities.HandleException(e); } return result; } protected void onPostExecute(AddTextToIndexResponse result) { try { if (_onAddTextComplete != null) { _onAddTextComplete.OnAddTextComplete(result); } } catch (Exception e) { Utilities.HandleException(e); } } }
c2228189350a60a733b0ee70021fc9ec42222446
111184dd5abbff178edd0d3ca9c07156f5699c54
/app/src/main/java/com/example/encrypt/RSA.java
83d9510202bc89cf159d88a84d49b7a18ad613ee
[]
no_license
Rachit2323/Encrypt-App
9a831981da2e024a096938cdf2f220081072425f
a32ea1d7d97cf3b97ed2fe028ebfdfc99902fc5a
refs/heads/master
2023-06-21T04:15:24.261167
2021-08-01T12:34:48
2021-08-01T12:34:48
391,622,061
0
0
null
null
null
null
UTF-8
Java
false
false
5,574
java
package com.example.encrypt; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.speech.RecognizerIntent; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import java.math.BigInteger; import java.security.Key; import java.security.KeyFactory; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.NoSuchAlgorithmException; import java.security.PrivateKey; import java.security.PublicKey; import java.security.SecureRandom; import java.security.spec.KeySpec; import java.security.spec.PKCS8EncodedKeySpec; import java.security.spec.X509EncodedKeySpec; import java.util.ArrayList; import java.util.Locale; import java.util.Random; import javax.crypto.Cipher; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.PrivateKey; import java.security.PublicKey; import java.util.Base64; import javax.crypto.Cipher; public class RSA extends AppCompatActivity { String temp; TextView output; EditText input; Button enc,dec,clear; String tosend=""; private PrivateKey privateKey; private PublicKey publicKey; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_rsa); output=(TextView) findViewById(R.id.output_text); input=(EditText) findViewById(R.id.input_text); enc=(Button) findViewById(R.id.encrypt); dec=(Button) findViewById(R.id.decrypt); clear=(Button) findViewById(R.id.clear_button); getSupportActionBar().setDisplayHomeAsUpEnabled(true); // generate a new public/private key pair to test with (note. you should only do this once and keep them!) KeyPairGenerator generator = null; try { generator = KeyPairGenerator.getInstance("RSA"); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } generator.initialize(2048); KeyPair pair = generator.generateKeyPair(); privateKey = pair.getPrivate(); publicKey = pair.getPublic(); enc.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { temp=input.getText().toString(); String encrypted = null; try { encrypted = encrypt(temp); } catch (Exception e) { e.printStackTrace(); } // Log.d("NIKHIL", "encrypt key:" +encrypted); output.setText(encrypted); tosend=encrypted; } }); dec.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { temp=input.getText().toString(); String decrypted = null; try { decrypted = decrypt(temp); } catch (Exception e) { e.printStackTrace(); } // Log.d("NIKHIL", "encrypt key:" +decrypted); output.setText(decrypted); tosend=decrypted; } }); clear.setOnClickListener( new View.OnClickListener() { @Override public void onClick(View view) { try{ input.setText(" "); output.setText(""); // Toast.makeText( this,"Cleared Successfully!!!",Toast.LENGTH_SHORT).show(); } catch (Exception e) { e.printStackTrace(); } } }); } public String encrypt(String message) throws Exception{ byte[] messageToBytes = message.getBytes(); Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); cipher.init(Cipher.ENCRYPT_MODE,publicKey); byte[] encryptedBytes = cipher.doFinal(messageToBytes); return encode(encryptedBytes); } private String encode(byte[] data){ String data2 = null; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { data2 = Base64.getEncoder().encodeToString(data); } return data2; } public String decrypt(String encryptedMessage) throws Exception{ byte[] encryptedBytes = decode(encryptedMessage); Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); cipher.init(Cipher.DECRYPT_MODE,privateKey); byte[] decryptedMessage = cipher.doFinal(encryptedBytes); return new String(decryptedMessage,"UTF8"); } private byte[] decode(String data){ byte [] data1 = new byte[0]; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { data1= Base64.getDecoder().decode(data); } return data1; } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch(requestCode) { case 1001: if(resultCode==RESULT_OK&&data!=null) { ArrayList<String> res=data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS); input.setText(res.get(0)); } break; } } }
ca6cd3f7d228ccd771fcbba8bfa8551876df6eee
5ac45ae119cdc021dbbfe4908ccc3671b7e0a5bd
/src/camera/VisualizzatoreCamera.java
612eff42c3288ace80d6cf8c253924e302fac57f
[]
no_license
marcus9522/MyHotel
cf3af7e9edc66e2fdeb3d4f5b42baf51509ffc65
1d454ff48cd6f83db27bd9a97bd8a42328ed3b2d
refs/heads/master
2021-01-12T14:26:18.488417
2017-02-01T10:58:24
2017-02-01T10:58:24
70,061,787
0
0
null
null
null
null
UTF-8
Java
false
false
4,414
java
package camera; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Collection; import java.util.LinkedList; import connessione.DriverManagerConnectionPool; public class VisualizzatoreCamera implements VisualizzatoreCameraModel { private static final String TABLE_NAME = "camera"; @Override public synchronized CameraBean getCamera(int numerocamera) throws SQLException { // Metodo che restituisce le informazioni di una camera identificata // tramite il suo ID Connection connection = null; PreparedStatement preparedStatement = null; CameraBean bean = new CameraBean(); String selectSQL = "SELECT * FROM " + VisualizzatoreCamera.TABLE_NAME + " WHERE NUMEROCAMERA = ? "; try { connection = DriverManagerConnectionPool.getConnection(); preparedStatement = connection.prepareStatement(selectSQL); preparedStatement.setInt(1, numerocamera); ResultSet rs = preparedStatement.executeQuery(); while (rs.next()) { bean.setNumeroCamera(rs.getInt("NUMEROCAMERA")); bean.setPrezzo(rs.getDouble("PREZZO")); bean.setDescrizione(rs.getString("DESCRIZIONE")); bean.setTipologia(rs.getString("TIPOLOGIA")); bean.setImmagine(rs.getString("IMMAGINE")); } } finally { try { if (preparedStatement != null) preparedStatement.close(); } finally { DriverManagerConnectionPool.releaseConnection(connection); } } return bean; } @Override public synchronized Collection<CameraBean> getCamere() throws SQLException { // Metodo che restituisce le informazioni su tutte le camere presente // all'interno del database Connection connection = null; PreparedStatement preparedStatement = null; Collection<CameraBean> camere = new LinkedList<CameraBean>(); String selectSQL = "SELECT * FROM " + VisualizzatoreCamera.TABLE_NAME; try { connection = DriverManagerConnectionPool.getConnection(); preparedStatement = connection.prepareStatement(selectSQL); ResultSet rs = preparedStatement.executeQuery(); while (rs.next()) { CameraBean bean = new CameraBean(); bean.setNumeroCamera(rs.getInt("NUMEROCAMERA")); bean.setPrezzo(rs.getDouble("PREZZO")); bean.setDescrizione(rs.getString("DESCRIZIONE")); bean.setTipologia(rs.getString("TIPOLOGIA")); bean.setImmagine(rs.getString("IMMAGINE")); camere.add(bean); } } finally { try { if (preparedStatement != null) preparedStatement.close(); } finally { DriverManagerConnectionPool.releaseConnection(connection); } } return camere; } @Override public synchronized Collection<CameraBean> filtraCamere(double min, double max, String tipologia, String order) throws SQLException { // Metodo che restituisce le camere che soddisfano i parametri inseriti Connection connection = null; PreparedStatement preparedStatement = null; boolean first = true; Collection<CameraBean> camere = new LinkedList<CameraBean>(); String selectSQL = "SELECT * FROM " + VisualizzatoreCamera.TABLE_NAME; if (min != 0) { if (first == true) { selectSQL += " WHERE "; first = false; } else selectSQL += " AND "; selectSQL += " PREZZO>= " + min; } if (max != 0) { if (first == true) { selectSQL += " WHERE "; first = false; } else selectSQL += " AND "; selectSQL += " PREZZO<= " + max; } if (tipologia.equals("Tutte") == false) { if (first == true) { selectSQL += " WHERE "; first = false; } else selectSQL += " AND "; selectSQL += "TIPOLOGIA='"+ tipologia +"'"; } if (order != null && !order.equals("")) { selectSQL += " ORDER BY " + order; } try { connection = DriverManagerConnectionPool.getConnection(); preparedStatement = connection.prepareStatement(selectSQL); ResultSet rs = preparedStatement.executeQuery(); while (rs.next()) { CameraBean bean = new CameraBean(); bean.setNumeroCamera(rs.getInt("NUMEROCAMERA")); bean.setPrezzo(rs.getDouble("PREZZO")); bean.setDescrizione(rs.getString("DESCRIZIONE")); bean.setTipologia(rs.getString("TIPOLOGIA")); bean.setImmagine(rs.getString("IMMAGINE")); camere.add(bean); } } finally { try { if (preparedStatement != null) preparedStatement.close(); } finally { DriverManagerConnectionPool.releaseConnection(connection); } } return camere; } }
17cab0f0d814635d5517af27454022077b634041
5b00408a94ed963655c199ec2be831cae17d1262
/ksportal/src/main/java/com/kamitsoft/client/core/login/popuplogin/LoginPopupView.java
022bca068983bf43e4357d1e3dfec6c2f556d63b
[]
no_license
IssacThe/19push
2c3202e7e43ec78ee570779a8566e7c56b229e7c
a5b3368bcfdef9f80cedf16eb8958946b1d60d50
HEAD
2016-09-05T19:13:55.289149
2013-07-01T15:12:05
2013-07-01T15:12:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,928
java
package com.kamitsoft.client.core.login.popuplogin; import com.google.gwt.event.dom.client.ChangeEvent; import com.google.gwt.event.dom.client.ChangeHandler; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.HasClickHandlers; import com.google.gwt.event.dom.client.KeyDownHandler; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.HasText; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.PasswordTextBox; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.Widget; import com.google.inject.Inject; import com.google.web.bindery.event.shared.EventBus; import com.gwtplatform.mvp.client.PopupViewImpl; import com.kamitsoft.client.i18n.MainDictionary; import com.kamitsoft.shared.constants.LoginConstants; public class LoginPopupView extends PopupViewImpl implements LoginPopupPresenter.Display { private final Widget widget; public interface Binder extends UiBinder<Widget, LoginPopupView> {} @UiField PasswordTextBox textFieldPassword; @UiField TextBox textFieldUsername; @UiField Label username; @UiField Label password; @UiField Button connect; @UiField Button cancel; @UiField Label loginmessage; private MainDictionary dictionary; @Inject public LoginPopupView(final Binder binder, EventBus eventBus,MainDictionary dictionary) { super(eventBus); widget = binder.createAndBindUi(this); this.dictionary= dictionary; username.setText(dictionary.userName()+":"); password.setText(dictionary.password()+":"); cancel.addClickHandler(new ClickHandler(){ @Override public void onClick(ClickEvent event) { textFieldPassword.setText(""); textFieldUsername.setText(""); loginmessage.setVisible(false); } }); textFieldUsername.addChangeHandler(new ChangeHandler(){ @Override public void onChange(ChangeEvent event) { loginmessage.setVisible(false); } }); textFieldPassword.addChangeHandler(new ChangeHandler(){ @Override public void onChange(ChangeEvent event) { loginmessage.setVisible(false); } }); } @Override public void clear(){ textFieldPassword.setText(""); loginmessage.setVisible(true); loginmessage.setText(dictionary.timeout()); } @Override public Widget asWidget() { return widget; } @Override public HasText getPassword(){ return this.textFieldPassword; } @Override public HasText getUsername(){ return this.textFieldUsername; } @Override public HasClickHandlers getConnectClick(){ return connect; } @Override public void setLoginMessage(int msgCode){ switch(msgCode){ case LoginConstants.CREDENTIAL_INCORRECT:loginmessage.setText(dictionary.invalidUserNameOrPassword()); break; case LoginConstants.USERID_TO_SMALL:loginmessage.setText(dictionary.userIDTooShort()); break; case LoginConstants.PASSWORD_TO_SMALL:loginmessage.setText(dictionary.passwordTooShort()); break; } loginmessage.setVisible(true); } @Override public void addKeyHandler(KeyDownHandler keyDownHandler){ textFieldUsername.addKeyDownHandler(keyDownHandler); textFieldPassword.addKeyDownHandler(keyDownHandler); } }
54b7ed033d18160a120c167301538ccf870e2348
885e24c87e9f4f673f4659264b6e639100a95f0a
/java/MineMineNoMi3/events/EventsExtras.java
4e755b33f04ba7ffe8c2691662aab64f727ccca0
[]
no_license
hk00560/MineMineNoMi3
4758e91bb13a37e16590c06a32a85bbb4ccd8b7a
6d5f5d0a1c79d2e0a0016056d662aa9d62a5e1a2
refs/heads/master
2021-05-09T14:07:44.932643
2017-05-08T12:21:36
2017-05-08T12:21:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,359
java
package MineMineNoMi3.events; import MineMineNoMi3.Values; import MineMineNoMi3.capability.EntityCapability.IEntityCapability; import MineMineNoMi3.lists.IDs; import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.util.math.BlockPos; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent.Phase; import net.minecraftforge.fml.common.gameevent.TickEvent.PlayerTickEvent; public class EventsExtras { @SubscribeEvent public void onPlayerTick(PlayerTickEvent event) { EntityPlayer player = event.player; IEntityCapability props = player.getCapability(Values.ENTITY_CAPABILITIES, null); ScaledResolution sr = new ScaledResolution(Minecraft.getMinecraft()); if (event.phase == Phase.START) { if(player != null && player instanceof EntityPlayer) { if((player.isInsideOfMaterial(Material.WATER) || (player.isWet() && player.worldObj.getBlockState(new BlockPos((int)player.posX, (int)player.posY - 3, (int)player.posZ)) == Blocks.WATER.getDefaultState())) && !player.capabilities.isCreativeMode) { if (!props.getUsedFruit().equals("N/A")) player.motionY -= 5; if(props.getRace().equals(IDs.ID_RACE_FISHMAN) && props.getUsedFruit().equals("N/A")) { player.setAir(300); if ((player.motionX >= 5.0D) || (player.motionZ >= 5.0D)) { player.motionX /= 1.2D; player.motionZ /= 1.2D; } else { player.motionX *= 1.2D; player.motionZ *= 1.2D; } } } if(props.isBlind()) { int t = props.getBlindTime(); if(t > 0) { t--; //WyRenderHelper.instance().drawColorOnScreen(0, 0, 0, 255, 0, 0, sr.getScaledWidth(), sr.getScaledHeight()); } else props.setBlind(0); } if(!player.capabilities.isCreativeMode) { /*if(Config.allowLogiaFly_actual && (props.getUsedFruit().equals("sunasuna") || props.getUsedFruit().equals("mokumoku") || props.getUsedFruit().equals("meramera"))) player.capabilities.allowFlying = true; else player.capabilities.allowFlying = false;*/ } } } } }
be5a53f4508dd712fcbb16b2fa10e6ee8df33309
a1c6faff9665125fa8ec1efb7ac405bba12b1a3e
/bot/willbot/Map.java
515a73f7ef36252bb7c6c141586a183586cfb363
[]
no_license
WillFlame14/will-bot
1e588538d8242019569e3b15ee6d84c53a2e5733
06f82632630995702a8ad1ac31dfb5a3681c163e
refs/heads/master
2021-06-11T02:51:15.149992
2019-09-15T21:55:50
2019-09-15T21:55:50
128,209,853
0
2
null
2018-09-14T03:30:24
2018-04-05T13:25:21
Java
UTF-8
Java
false
false
4,720
java
package bot.willbot; import java.util.*; public class Map{ char[][] grid; HashMap<Character, Player> players; HashMap<Player, Character> playerValues; static int HEIGHT = 15, WIDTH = 15; public Map() { grid = new char[HEIGHT][WIDTH]; players = new HashMap<>(); playerValues = new HashMap<>(); } public String toString() { String s = "```"; for(int i = 0; i < HEIGHT; i++) { s += "\n"; for(int j = 0; j < WIDTH; j++) { s += grid[i][j] + " "; } } return s + "```"; } public Map duplicate() { Map duplicate = new Map(); for(int i = 0; i < HEIGHT; i++) { for(int j = 0; j < WIDTH; j++) { duplicate.grid[i][j] = grid[i][j]; } } return duplicate; } public void setCharacter(Player p, char s) { players.put(s, p); playerValues.put(p, s); } public Pair getLocation(char s) { //RETURNS COMP COORDINATES for(int i = 0; i < HEIGHT; i++) { for(int j = 0; j < WIDTH; j++) { if(grid[i][j] == s) { return new Pair(i, j); } } } return new Pair(-1, -1); } public boolean setLocation(char s, Pair p) { //TAKES COMP COORDINATES if(grid[p.x][p.y] == '.') { Pair oldLocation = getLocation(s); grid[oldLocation.x][oldLocation.y] = '.'; grid[p.x][p.y] = s; return true; } return false; } public int getDistance(Player p, Player e) { //no adjustment needed since distances are relative Pair pp = getLocation(playerValues.get(p)); Pair ee = getLocation(playerValues.get(e)); return Math.abs(pp.x - ee.x) + Math.abs(pp.y - ee.y); } public int getDistance(Player p, Pair e) { //no adjustment needed since distances are relative - this compares player to location Pair pp = getLocation(playerValues.get(p)); return Math.abs(pp.x - e.x) + Math.abs(pp.y - e.y); } public boolean removePlayer(Player p) { Pair location = getLocation(playerValues.get(p)); if(location.x == -1 && location.y == -1) { return false; } grid[location.x][location.y] = '.'; return true; } public Map fill() { //randomly fill a map for(int i = 0; i < Map.HEIGHT; i++) { for(int j = 0; j < Map.WIDTH; j++) { int rng = (int)(Math.random() * 100) + 1; //1 to 100 if(rng <= 13) { grid[i][j] = '#'; } else { grid[i][j] = '.'; } } } int y1 = (int)(Math.random() * Map.HEIGHT), x1 = (int)(Math.random() * Map.WIDTH); grid[y1][x1] = 'A'; //characters int rng1 = (int)(Math.random() * 5) - 2, rng2 = (int)(Math.random() * 5) - 2; //randomness of p2, should be near p1 if(rng1 == 0 && rng2 == 0) { rng1 = 1; rng2 = 2; } if(y1 + rng1 >= Map.HEIGHT) { rng1 -= Map.HEIGHT; } else if(y1 + rng1 <= 0) { rng1 += Map.HEIGHT; } if(x1 + rng2 >= Map.WIDTH) { rng2 -= Map.WIDTH; } else if(x1 + rng2 <= 0) { rng2 += Map.WIDTH; } grid[y1 + rng1][x1 + rng2] = 'B'; while(true) { int y2 = (int)(Math.random() * Map.HEIGHT), x2 = (int)(Math.random() * Map.WIDTH), y3 = (int)(Math.random() * Map.HEIGHT), x3 = (int)(Math.random() * Map.WIDTH); if(grid[y2][x2] == 'A' || grid[y2][x2] == 'B' || grid[y3][x3] == 'A' || grid[y3][x3] == 'B' || (y2 == y3 && x2 == x3)) { continue; } grid[y2][x2] = '1'; grid[y3][x3] = '2'; break; } return this; } } class Pair { int x, y; public Pair(int a, int b) { x = a; y = b; } public Pair toCartesian() { int oldx = x; x = y + 1; y = Map.HEIGHT - oldx; return new Pair(x, y); } public Pair toComp() { int oldx = x; x = Map.HEIGHT - y; y = oldx - 1; return new Pair(x, y); } public String toString() { return "(" + x + ", " + y + ")"; } }
ed06d68eddcdda97d408c8ef2afcd93c9dd82ca2
982511a4b2b5071a115a667ea0cb1902279905d0
/src/main/java/com/sample/productapidata/order/ProductOrderController.java
20e418eafa149588b0da7dad990ac61121268370
[]
no_license
aalluri24/product-api-data
89d3324259cf84af2571dd7dc5800001f1b4528d
0459af9e83f2d059e4f4783f7f7e0ceef3035fe7
refs/heads/main
2023-08-16T21:48:39.531581
2021-10-09T23:51:05
2021-10-09T23:51:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,296
java
package com.sample.productapidata.order; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.ArrayList; import java.util.List; @RestController @RequestMapping("/productOrders") public class ProductOrderController { //ConcurrentHashMap<String, Order> productOrders = new ConcurrentHashMap<>(); @Autowired private ProductOrderRepository productOrderRepository; @PostMapping("/order") public void addOrder(@RequestBody ProductOrder productOrder) { //productOrders.put(order.getId(), order); productOrderRepository.save(productOrder); } @GetMapping public List<ProductOrder> getAllOrders() { //return new ArrayList<Order>(productOrders.values()); List<ProductOrder> productOrders = new ArrayList<>(); productOrderRepository.findAll() .forEach(productOrders::add); return productOrders; } @PutMapping("/order/{id}") public void updateItem(@PathVariable String id, @RequestBody ProductOrder productOrder) { productOrderRepository.save(productOrder); } @DeleteMapping("/order/{id}") public void deleteItem(@PathVariable String id) { productOrderRepository.deleteById(id); } }
6d6101dcb8ab848c6fad09ca53681399e0fc2d98
e9650be5bc69d77d46fd8c23ba6e413da560c921
/src/test/java/day3_locators2/GetAttributeValue.java
0a94410667e567bca20dfaef7f821ad38aed50e8
[]
no_license
Techopath/Selenium
6f57008ec7f69661ce63b75d73e02e91ddc173c5
218505ecfeb480633d16ac40df4dadac5a1ba697
refs/heads/master
2023-05-24T17:20:00.366434
2020-04-07T22:04:37
2020-04-07T22:04:37
244,774,467
0
0
null
2023-05-09T18:45:28
2020-03-04T00:49:16
Java
UTF-8
Java
false
false
2,477
java
package day3_locators2; import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class GetAttributeValue { public static void main(String[] args) throws InterruptedException { WebDriverManager.chromedriver().setup(); WebDriver driver = new ChromeDriver(); driver.get("https://practice.cybertekschool.com/login"); /*<button id="details-button" class="secondary-button small-link"> Advanced </button> */ Thread.sleep(3000); WebElement advanced = driver.findElement(By.id("details-button")); advanced.click(); /* <a href="#" id="proceed-link" class="small-link">Proceed to practice.cybertekschool.com (unsafe)</a> */ Thread.sleep(3000); WebElement link = driver.findElement(By.id("proceed-link")); link.click(); //driver.manage().window().fullscreen(); // i want to get the value of type attribute // type ="text" getAttribute("attribute name"); //locate username box WebElement username = driver.findElement(By.name("username")); //<input type="text" name="username"> String valueOfType = username.getAttribute("type"); System.out.println("valueOfType = " + valueOfType); /*<input type="password" name="password">*/ // type="password" -> type is attribute and password is value of attribute. WebElement password = driver.findElement(By.name("password")); String valueOfType_password = password.getAttribute("type"); System.out.println("valueOfType_password = " + valueOfType_password); /* <button class="btn btn-primary" type="submit" id="wooden_spoon">Login</button> class, type, id => are all attributes and the text inside quotation mark are their values. */ WebElement login = driver.findElement(By.id("wooden_spoon")); System.out.println("login.getAttribute(\"class\") = " + login.getAttribute("class")); String valueOfType_login = login.getAttribute("class"); System.out.println("valueOfType_login = " + valueOfType_login); //getText() vs getAttribute(); /* getText() -> converts the webElement into string getAttribute() -> returns the value of attribute. */ } }
a2f5a7e4a593ce44d6e0f4f5cb590fb144147ede
710e7578efd6c5c29197d0595c7da1f34d42405d
/app/src/main/java/ca/cours5b5/Paul2/exceptions/ErreurSerialisation.java
28ed5381e9df95d22bea06de0ecff4e17c77fd94
[]
no_license
SapphireSpark/1633549
b72220addd61e607f99aab68d443f0e5e119f156
b32a8e3fbb5bf50404ce8e037704311e6d116d18
refs/heads/master
2020-03-27T03:51:04.796719
2018-12-06T20:44:43
2018-12-06T20:44:43
145,893,631
0
0
null
null
null
null
UTF-8
Java
false
false
182
java
package ca.cours5b5.Paul2.exceptions; public class ErreurSerialisation extends RuntimeException { public ErreurSerialisation(String message){ super(message); } }
655b45d37741a64be8ee45023bf7d68c0aa3ae66
0dc398b74cff4387e6eb40046e92ff622d86c0fd
/src/main/java/com/bazarnazar/cassandramapings/util/Tuple.java
067d15069395dc606da59bd121785b4c96e079f3
[]
no_license
bazar-nazar/cassandraMappings
930e98f5f04ef2bdcdec7925d7ce02c25a479ef7
a1d68a22549bbac74cac97aec5820840ececeafc
refs/heads/master
2020-12-24T06:57:41.821427
2016-05-31T03:17:07
2016-05-31T03:17:07
59,806,757
0
0
null
2016-05-31T01:26:39
2016-05-27T05:31:36
Java
UTF-8
Java
false
false
833
java
package com.bazarnazar.cassandramapings.util; /** * Created by Bazar on 26.05.16. */ public class Tuple<T, U> { public T _1; public U _2; public Tuple(T _1, U _2) { this._1 = _1; this._2 = _2; } @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Tuple)) return false; Tuple tuple = (Tuple) o; if (_1 != null ? !_1.equals(tuple._1) : tuple._1 != null) return false; if (_2 != null ? !_2.equals(tuple._2) : tuple._2 != null) return false; return true; } @Override public int hashCode() { int result = _1 != null ? _1.hashCode() : 0; result = 31 * result + (_2 != null ? _2.hashCode() : 0); return result; } }
badec5a00e8d8d48974da533d7bf14a4131ba9a0
7c4b0f13e636337831faf1ab04636d495cdd2331
/c2c-mall/java/service/diandian-business-service/src/main/java/com/diandian/dubbo/business/service/impl/member/MemberExchangeHistoryLogServiceImpl.java
eff2333c61115c7e3d04ee1a93d43370d280e228
[]
no_license
little6/c2c-mall
93255c1e3ed32b29439af7577af085f4bd47a8e7
fc0dacdfed23c3223aca1b8fd5cb9129b92b347f
refs/heads/master
2022-11-18T06:19:22.177651
2020-07-20T08:58:17
2020-07-20T08:58:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,640
java
package com.diandian.dubbo.business.service.impl.member; import cn.hutool.core.util.ObjectUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.diandian.dubbo.business.mapper.member.MemberExchangeHistoryLogMapper; import com.diandian.dubbo.facade.dto.PageResult; import com.diandian.dubbo.facade.dto.PageWrapper; import com.diandian.dubbo.facade.dto.member.MemberExchangeHistoryLogDTO; import com.diandian.dubbo.facade.model.member.MemberExchangeHistoryLogModel; import com.diandian.dubbo.facade.service.member.MemberExchangeHistoryLogService; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; /** * 商户会员兑换券变动台账表 * * @author wbc * @date 2019/03/04 */ @Service("memberExchangeHistoryLogService") @Slf4j public class MemberExchangeHistoryLogServiceImpl implements MemberExchangeHistoryLogService { @Autowired private MemberExchangeHistoryLogMapper memberExchangeHistoryLogMapper; @Override public boolean save(MemberExchangeHistoryLogModel exchangeHistoryLogModel) { int insert = memberExchangeHistoryLogMapper.insert(exchangeHistoryLogModel); return true; } @Override public MemberExchangeHistoryLogDTO getExchangeHistoryNum(Map<String, Object> params) { return memberExchangeHistoryLogMapper.getExchangeHistoryNum(params); } @Override public List<MemberExchangeHistoryLogModel> listMemberInfo(Map<String, Object> params) { return memberExchangeHistoryLogMapper.listMemberInfo(params); } @Override public PageResult listPage(Map<String, Object> params){ Page<MemberExchangeHistoryLogModel> page = new PageWrapper<MemberExchangeHistoryLogModel>(params).getPage(); QueryWrapper<MemberExchangeHistoryLogModel> qw = new QueryWrapper<>(); Object merchantId = params.get("merchantId"); Object memberId = params.get("memberId"); if(ObjectUtil.isNotNull(merchantId)){ qw.eq("merchant_id", Long.valueOf(merchantId.toString())); } if(ObjectUtil.isNotNull(memberId)){ qw.eq("member_id", Long.valueOf(memberId.toString())); } qw.orderByDesc("id"); IPage<MemberExchangeHistoryLogModel> iPage = memberExchangeHistoryLogMapper.selectPage(page, qw); return new PageResult(iPage); } }
cedacea23c62c1655c55e94db43e47a48801ffea
900fe63ee7c6c0ba3af6cf054631046dfc222b64
/src/main/java/com/github/terefang/jldap/sasl/client/ClientFactory.java
65125b0bc8a67cfb3f21f22424c0103729ae6e7b
[ "OLDAP-2.8", "OLDAP-2.0.1" ]
permissive
terefang/jldap
f29b78cbeabff3d3c975392d7cf884debd9cfc1d
c2c75a872a8ea89d25bf42a538a94c0c0d843d0b
refs/heads/master
2022-12-07T07:17:57.260242
2020-09-01T10:11:57
2020-09-01T10:11:57
291,960,764
0
0
null
null
null
null
UTF-8
Java
false
false
11,966
java
/* ************************************************************************** * $OpenLDAP$ * * Copyright (C) 2003 Novell, Inc. All Rights Reserved. * * THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND * TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT * TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS * AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE" * IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION * OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP * PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT * THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY. ******************************************************************************/ package com.github.terefang.jldap.sasl.client; import com.github.terefang.jldap.sasl.Sasl; import com.github.terefang.jldap.sasl.SaslClient; import com.github.terefang.jldap.sasl.SaslClientFactory; import com.github.terefang.jldap.sasl.SaslException; import java.util.*; /** * Implements a ClientFactory class for all the saslClients in this package */ public class ClientFactory extends Object implements SaslClientFactory { public ClientFactory() { } /** * Creates a SaslClient using the parameters supplied * * @param mechanisms The non-null list of mechanism names to try. Each is * the IANA-registered name of a SASL mechanism (e.g. "GSSAPI", "CRAM-MD5") * * @param authorizationId The possibly null protocol-dependent * identification to be used for authorization. If * null or empty, the server derives an authorization * ID from the client's authentication credentials. * When the SASL authentication completes * successfully, the specified entity is granted * access. * * @param protocol The non-null string name of the protocol for which * the authentication is being performed (e.g. "ldap") * * @param serverName The non-null fully qualified host name of the server * to authenticate to * * @param props The possibly null set of properties used to select * the SASL mechanism and to configure the * authentication exchange of the selected mechanism. * See the Sasl class for a list of standard properties. * Other, possibly mechanism-specific, properties can * be included. Properties not relevant to the selected * mechanism are ignored. * * @param cbh The possibly null callback handler to used by the * SASL mechanisms to get further information from the * application/library to complete the authentication. * For example, a SASL mechanism might require the * authentication ID, password and realm from the * caller. The authentication ID is requested by using * a NameCallback. The password is requested by using * a PasswordCallback. The realm is requested by using * a RealmChoiceCallback if there is a list of realms * to choose from, and by using a RealmCallback if the * realm must be entered. * * @return A possibly null SaslClient created using the * parameters supplied. If null, this factory cannot * produce a SaslClient using the parameters supplied. * * @exception SaslException If a SaslClient instance cannot be created * because of an error */ public SaslClient createSaslClient( String[] mechanisms, String authorizationId, String protocol, String serverName, Map props, javax.security.auth.callback.CallbackHandler cbh) throws SaslException { SaslClient client=null; int i; if (props == null) props = new HashMap(); if (props.get(Sasl.QOP) == null) props.put(Sasl.QOP, "auth"); if (props.get(Sasl.STRENGTH) == null) props.put(Sasl.STRENGTH, "high,medium,low"); if (props.get(Sasl.SERVER_AUTH) == null) props.put(Sasl.SERVER_AUTH, "false"); for (i=0, client=null; (i<mechanisms.length) && (client==null); i++) { if ("DIGEST-MD5".equals(mechanisms[i])) { client = DigestMD5SaslClient.getClient(authorizationId, protocol, serverName, props, cbh); } else if ("EXTERNAL".equals(mechanisms[i])) { client = ExternalSaslClient.getClient(authorizationId, protocol, serverName, props, cbh); } } return client; } /** * Returns an array of names of mechanisms that match the specified * mechanism selection policies * * @param props The possibly null set of properties used to specify the * security policy of the SASL mechanisms. For example, if * props contains the Sasl.POLICY_NOPLAINTEXT property with * the value "true", then the factory must not return any * SASL mechanisms that are susceptible to simple plain * passive attacks. Non-policy related properties, if * present in props, are ignored. * * QOP ("com.novell.security.sasl.qop") * * A comma-separated, ordered list of quality-of-protection * values that the client or server is willing to support. A * qop value is one of * * "auth" authentication only * * "auth-int" authentication plus integrity protection * * "auth-conf" authentication plus integrity and * confidentiality protection * * * The order of the list specifies the preference order of * the client or server. If this property is absent, the * default qop is "auth". * * STRENGTH ("com.novell.security.sasl.strength") * * A comma-separated, ordered list of cipher strength values * that the client or server is willing to support. A * strength value is one of * * "low" * * "medium" * * "high" * * The order of the list specifies the preference order of * the client or server. An implementation SHOULD allow * configuration of the meaning of these values. * * An application MAY use the Java Cryptography Extension * (JCE) with JCE-aware mechanisms to control the selection * of cipher suites that match the strength values. * * If this property is absent, the default strength is * "high,medium,low". * * SERVER_AUTH ("com.novell.security.sasl.server.authentication") * * "true" if server must authenticate to client; default * "false" * * MAX_BUFFER ("com.novell.security.sasl.maxbuffer") * * Maximum size of receive buffer in bytes of * SaslClient/SaslServer; the default is defined by the * mechanism. The property value is the string * representation of an integer. * * CLIENT_PKGS ("com.novell.security.sasl.client.pkgs") * * A |-separated list of package names to use when locating * a SaslClientFactory. Each package MUST contain a class * named ClientFactory that implements the SaslClientFactory * interface. * * SERVER_PKGS ("com.novell.security.sasl.server.pkgs") * * A |-separated list of package names to use when locating * a SaslServerFactory. Each package MUST contain a class * named ServerFactory that implements the SaslServerFactory * interface. * * RAW_SEND_SIZE ("com.novell.security.sasl.rawsendsize") * * Maximum size of the raw send buffer in bytes of * SaslClient/SaslServer. The property value is the string * representation of an integer and is negotiated between * the client and server during the authentication exchange. * * The following properties are for defining a security policy for a * server or client. Absence of the property is interpreted as "false". * * POLICY_NOPLAINTEXT ("com.novell.security.sasl.policy.noplaintext") * * "true" if mechanisms susceptible to simple * plain passive attacks (e.g. "PLAIN") are * not permitted * * "false" if such mechanisms are permitted * * POLICY_NOACTIVE ("com.novell.security.sasl.policy.noactive") * * "true" if mechanisms susceptible to active * (non-dictionary) attacks are not * permitted * * "false" if such mechanisms are permitted. * * POLICY_NODICTIONARY ("com.novell.security.sasl.policy.nodictionary") * * "true" if mechanisms susceptible to passive * dictionary attacks are not permitted * * "false" if such mechanisms are permitted * * POLICY_NOANONYMOUS ("com.novell.security.sasl.policy.noanonymous") * * "true" if mechanisms that accept anonymous * login are not permitted * * "false" if such mechanisms are permitted * * POLICY_FORWARD_SECRECY ("com.novell.security.sasl.policy.forward") * * Forward secrecy means that breaking into one session will not * automatically provide information for breaking into future sessions. * * "true" if mechanisms that implement forward * secrecy between sessions are required * * "false" if such mechanisms are not required * * POLICY_PASS_CREDENTIALS ("com.novell.security.sasl.policy.credentials") * * "true" if mechanisms that pass client * credentials are required * * "false" if such mechanisms are not required * * @return A non-null array containing IANA-registered SASL mechanism * names */ public String[] getMechanismNames( Map props) { String[] mechanisms = {"DIGEST-MD5","EXTERNAL"}; return mechanisms; } }
58252f1efff01e33a3a915486853782231d64d54
2ab955dede47adbe2ed2a683809691a908281c84
/FileSystemProjectStudents/ejbModule/edu/uwec/cs/wagnerpj/filesystem/hierarchy/FileSystemObject.java
bc37c3fcdf8d0271ded3bad6c1ef416e96d4a2a3
[]
no_license
johnskie/FileSystem
ac07369c4f5dff15368fd078bc1a4301e589b4ca
b9b24b09181a2dc71889735f3513293830f14a4a
refs/heads/master
2021-01-14T09:55:07.453510
2014-05-09T19:08:33
2014-05-09T19:09:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,120
java
/* * class FileSystemObject - abstract composite class for each general file system object * * Created - Paul J. Wagner, 4/10/2013 * Modified - Paul J. Wagner, 4/24/2014 - additional comments */ package edu.uwec.cs.wagnerpj.filesystem.hierarchy; import edu.uwec.cs.wagnerpj.filesystem.utilities.PrintHelper; public abstract class FileSystemObject { // data private String name; // file system object name protected int size; // file system object size protected PrintHelper printHelper = new PrintHelper(); // print helper for file system display // methods // constructors // -- default constructor public FileSystemObject() { this("default", 0); } // -- all-arg constructor public FileSystemObject(String name, int size) { this.setName(name); this.size = size; } // other methods // -- display() - generate display string from file system traversal public abstract String display(int level); public String getName() { return name; } public void setName(String name) { this.name = name; } } // end - class FileSystemObject
2a29eb02c8041125bf266d6b9931687bb1dda93b
92640d339f3c515c868e8ee871896cca7f9d5a4c
/app/src/main/java/com/qf/day02_xutils/demo03/PostActivity.java
e9bd164a52ee8924a21fe013d4a0abc1637c4abe
[]
no_license
lzq2006/Day02_Xutils
79d44444ba3d6fd484fc8530fab21e1f3e534f2b
8846441a47aed55aa2bccecc0814cc5e2d3919c1
refs/heads/master
2021-01-20T13:34:27.690035
2017-02-21T14:52:46
2017-02-21T14:52:46
82,690,812
0
0
null
null
null
null
UTF-8
Java
false
false
1,548
java
package com.qf.day02_xutils.demo03; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; import com.qf.day02_xutils.R; import org.xutils.common.Callback; import org.xutils.http.RequestParams; import org.xutils.view.annotation.ContentView; import org.xutils.view.annotation.ViewInject; import org.xutils.x; @ContentView(value = R.layout.activity_post) public class PostActivity extends AppCompatActivity { @ViewInject(value = R.id.my_tv) private TextView mTv; private String url = "http://218.244.149.129:9010/api/companylist.php"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); x.view().inject(this); initData(); } private void initData() { //声明请求参数 RequestParams params = new RequestParams(url); //?industryid=100 params.addParameter("industryid","100"); params.setMultipart(true);//使用Multipart表单上传文件 x.http().post(params, new Callback.CommonCallback<String>() { @Override public void onSuccess(String result) { mTv.setText(result); } @Override public void onError(Throwable ex, boolean isOnCallback) { } @Override public void onCancelled(CancelledException cex) { } @Override public void onFinished() { } }); } }
5bb277a997211dddfe8cba38576aa02a72184638
a6d7aa4d166313cbe4108a2d3781d9c9facd4d3d
/commoncore/src/main/java/tech/com/commoncore/utils/ImageGetterUtils.java
752d62f236e58e86a9dae046493529b583d31198
[]
no_license
965310001/HuaRunQiHuo
dceff368c8192a58168e64af740bba89d7e028a0
3b9d56ef381300a9810f8cf5662d3f5d165b46bb
refs/heads/master
2020-06-15T20:29:37.598794
2019-08-07T09:23:14
2019-08-07T09:23:14
195,384,441
0
0
null
null
null
null
UTF-8
Java
false
false
3,674
java
package tech.com.commoncore.utils; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.text.Html; import android.util.Log; import android.util.Size; import android.widget.TextView; import com.bumptech.glide.Glide; import com.bumptech.glide.request.target.SimpleTarget; import com.bumptech.glide.request.transition.Transition; import java.util.logging.Logger; import tech.com.commoncore.utils.SizeUtil; public class ImageGetterUtils { public static MyImageGetter getImageGetter(Context context, TextView textView) { MyImageGetter myImageGetter = new MyImageGetter(context, textView); return myImageGetter; } public static class MyImageGetter implements Html.ImageGetter { private URLDrawable urlDrawable = null; private TextView textView; private Context context; public MyImageGetter(Context context, TextView textView) { this.textView = textView; this.context = context; } @Override public Drawable getDrawable(final String source) { urlDrawable = new URLDrawable(); Glide.with(context).asBitmap().load(source).into(new SimpleTarget<Bitmap>() { @Override public void onResourceReady(@NonNull Bitmap resource, @Nullable Transition<? super Bitmap> transition) { urlDrawable.bitmap = changeBitmapSize(resource); // urlDrawable.bitmap = resource; Logger.getLogger("加载的图片,Width:\" + resource.getWidth() + \",Height:\" + resource.getHeight()"); urlDrawable.setBounds(0, 0, resource.getWidth(), changeBitmapSize(resource).getHeight()); textView.invalidate(); textView.setText(textView.getText());//不加这句显示不出来图片,原因不详 } }); return urlDrawable; } public class URLDrawable extends BitmapDrawable { public Bitmap bitmap; @Override public void draw(Canvas canvas) { super.draw(canvas); if (bitmap != null) { canvas.drawBitmap(bitmap, 0, 0, getPaint()); } } } private Bitmap changeBitmapSize(Bitmap bitmap) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); Log.e("width", "width:" + width); Log.e("height", "height:" + height); int newWidth = bitmap.getWidth(); int newHeight = bitmap.getHeight(); //设置想要的大小 //计算压缩的比率 float scaleWidth = ((float) newWidth) / width; float scaleHeight = ((float) newHeight) / height; //获取想要缩放的matrix Matrix matrix = new Matrix(); if(newWidth>SizeUtil.getScreenWidth()){ float s=(float)SizeUtil.getScreenWidth()/(float)newWidth; matrix.postScale(s, s); }else{ matrix.postScale(scaleWidth, scaleHeight); } //获取新的bitmap bitmap = Bitmap.createBitmap(bitmap, 0, 0, width, height, matrix, true); Log.e("newWidth", "newWidth" + bitmap.getWidth()); Log.e("newHeight", "newHeight" + bitmap.getHeight()); return bitmap; } } }
8f8ad3bae51d477d8cd0574da53a022af324300c
b4a4069797b10e962845236f19b8142b80d74298
/src/com/hiveit/pe/sf/salessystem/model/bean/userBean.java
42c2f46079440459faa17d3ac047270d2918326f
[]
no_license
jcisneros24/SalesSystem
f7b40b4e29f3d4c125f16a5300d3a5aa056defc7
af9405c64222125bbce94c5f3f860f84c8006c35
refs/heads/master
2020-06-27T10:18:53.117804
2016-12-02T22:56:15
2016-12-02T22:56:15
74,525,352
0
0
null
null
null
null
UTF-8
Java
false
false
813
java
package com.hiveit.pe.sf.salessystem.model.bean; public class userBean { private int iduser; private String coduser; private String user; private String password; private String codtipouser; public String getCoduser() { return coduser; } public void setCoduser(String coduser) { this.coduser = coduser; } public String getUser() { return user; } public void setUser(String user) { this.user = user; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getCodtipouser() { return codtipouser; } public void setCodtipouser(String codtipouser) { this.codtipouser = codtipouser; } public int getIduser() { return iduser; } public void setIduser(int iduser) { this.iduser = iduser; } }
19e3cf410708e78cc7de7f40f88d191f06bf8451
6f3a1c5a71e12cb3cc1bfbc0ab74b8fca9d87285
/app/src/main/java/com/zavum/timekeep/containers/containerInterfaces/ObjectContainer.java
b4ca5aaaea64586be92cd7cabd2bb63ea9c4cc1a
[]
no_license
Zavum/TimeKeep
1e1ecb598c49e38ab31fdb66b80674ab4caf8595
ea451b7a369f6e5c160a82e9a1551e33afa534ec
refs/heads/master
2021-07-16T14:39:18.178126
2017-10-21T22:59:22
2017-10-21T22:59:22
107,821,875
0
0
null
null
null
null
UTF-8
Java
false
false
282
java
package com.zavum.timekeep.containers.containerInterfaces; import java.util.Iterator; /** * Created by dakfu on 7/16/2017. */ public interface ObjectContainer { public void addItem(Object object); public void removeItem(Object object); public Iterator getIter(); }
603e999955b92a43023bff359234718d7b988ede
89e2d7e2c37fc45199d8c10dfec0c87c87533af2
/newrelic-agent/src/main/java/com/newrelic/agent/stats/ResponseTimeStatsImpl.java
57d5d811fda007170d18cad88584a05ec980bc2e
[ "Apache-2.0" ]
permissive
tspring/newrelic-java-agent
ca75f46b62be5c4b8958ae4231d9143dfb019fd1
cf4e3bf6d961ad78a6ae02ce9d8cb1d86ed3ece0
refs/heads/main
2023-08-07T04:26:34.775345
2021-09-30T01:12:49
2021-09-30T01:12:49
413,182,842
0
0
Apache-2.0
2021-10-03T19:56:34
2021-10-03T19:56:34
null
UTF-8
Java
false
false
4,959
java
/* * * * Copyright 2020 New Relic Corporation. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * */ package com.newrelic.agent.stats; import java.util.concurrent.TimeUnit; import com.newrelic.agent.util.TimeConversion; /** * This class is not thread-safe. */ public class ResponseTimeStatsImpl extends AbstractStats implements ResponseTimeStats { private static final long NANOSECONDS_PER_SECOND_SQUARED = TimeConversion.NANOSECONDS_PER_SECOND * TimeConversion.NANOSECONDS_PER_SECOND; private long total; private long totalExclusive; private long minValue; private long maxValue; private double sumOfSquares; protected ResponseTimeStatsImpl() { super(); } @Override public Object clone() throws CloneNotSupportedException { ResponseTimeStatsImpl newStats = new ResponseTimeStatsImpl(); newStats.count = count; newStats.total = total; newStats.totalExclusive = totalExclusive; newStats.minValue = minValue; newStats.maxValue = maxValue; newStats.sumOfSquares = sumOfSquares; return newStats; } @Override public void recordResponseTime(long responseTime, TimeUnit timeUnit) { long responseTimeInNanos = TimeUnit.NANOSECONDS.convert(responseTime, timeUnit); recordResponseTimeInNanos(responseTimeInNanos, responseTimeInNanos); } @Override public void recordResponseTime(long responseTime, long exclusiveTime, TimeUnit timeUnit) { long responseTimeInNanos = TimeUnit.NANOSECONDS.convert(responseTime, timeUnit); long exclusiveTimeInNanos = TimeUnit.NANOSECONDS.convert(exclusiveTime, timeUnit); recordResponseTimeInNanos(responseTimeInNanos, exclusiveTimeInNanos); } @Override public void recordResponseTimeInNanos(long responseTime) { recordResponseTimeInNanos(responseTime, responseTime); } @Override public void recordResponseTimeInNanos(long responseTime, long exclusiveTime) { double responseTimeAsDouble = responseTime; responseTimeAsDouble *= responseTimeAsDouble; sumOfSquares += responseTimeAsDouble; if (count > 0) { minValue = Math.min(responseTime, minValue); } else { minValue = responseTime; } count++; total += responseTime; maxValue = Math.max(responseTime, maxValue); totalExclusive += exclusiveTime; } @Override public boolean hasData() { return count > 0 || total > 0 || totalExclusive > 0; } @Override public void reset() { count = 0; total = totalExclusive = minValue = maxValue = 0; sumOfSquares = 0; } @Override public float getTotal() { return (float) total / TimeConversion.NANOSECONDS_PER_SECOND; } @Override public float getTotalExclusiveTime() { return (float) totalExclusive / TimeConversion.NANOSECONDS_PER_SECOND; } @Override public float getMaxCallTime() { return (float) maxValue / TimeConversion.NANOSECONDS_PER_SECOND; } @Override public float getMinCallTime() { return (float) minValue / TimeConversion.NANOSECONDS_PER_SECOND; } @Override public double getSumOfSquares() { return sumOfSquares / NANOSECONDS_PER_SECOND_SQUARED; } @Override public final void merge(StatsBase statsObj) { if (statsObj instanceof ResponseTimeStatsImpl) { ResponseTimeStatsImpl stats = (ResponseTimeStatsImpl) statsObj; if (stats.count > 0) { if (count > 0) { minValue = Math.min(minValue, stats.minValue); } else { minValue = stats.minValue; } } count += stats.count; total += stats.total; totalExclusive += stats.totalExclusive; maxValue = Math.max(maxValue, stats.maxValue); sumOfSquares += stats.sumOfSquares; } } @Override public void recordResponseTime(int count, long totalTime, long minTime, long maxTime, TimeUnit unit) { long totalTimeInNanos = TimeUnit.NANOSECONDS.convert(totalTime, unit); this.count = count; this.total = totalTimeInNanos; this.totalExclusive = totalTimeInNanos; this.minValue = TimeUnit.NANOSECONDS.convert(minTime, unit); this.maxValue = TimeUnit.NANOSECONDS.convert(maxTime, unit); double totalTimeInNanosAsDouble = totalTimeInNanos; totalTimeInNanosAsDouble *= totalTimeInNanosAsDouble; sumOfSquares += totalTimeInNanosAsDouble; } @Override public String toString() { return "ResponseTimeStatsImpl [total=" + total + ", totalExclusive=" + totalExclusive + ", minValue=" + minValue + ", maxValue=" + maxValue + ", sumOfSquares=" + sumOfSquares + "]"; } }
479c0cdc3edbe041f7b31cd25a4e18f2a4aa7ca0
f3f6feda8b152c5eca3f33523ed9ba693a7b7f0d
/HackerrankHandson/src/day3_5/Solution.java
2a6cf1b4da6c8fb8d4aaa1fa2bd81359705c4817
[]
no_license
25samyu/CDEHackerrank
c8065c2d1a418c123a73945d684d3b97aa82be99
31a8aaf9f5ef30602c54b6520cbe3651499079da
refs/heads/main
2023-02-28T16:56:53.445338
2021-02-11T12:13:27
2021-02-11T12:13:27
338,019,231
0
0
null
null
null
null
UTF-8
Java
false
false
3,337
java
package day3_5; import java.io.*; import java.math.*; import java.text.*; import java.util.*; import java.util.regex.*; public class Solution { /* * Complete the runningMedian function below. */ public static void addNumber(int number, PriorityQueue<Integer> lowers,PriorityQueue<Integer> highers){ if(lowers.size()==0||number<lowers.peek()){ lowers.add(number); } else{ highers.add(number); } } public static void rebalance(PriorityQueue<Integer> lowers,PriorityQueue<Integer> highers){ PriorityQueue<Integer> biggerHeap = lowers.size()>highers.size()?lowers:highers; PriorityQueue<Integer> smallerHeap = lowers.size()>highers.size()?highers:lowers; if(biggerHeap.size()-smallerHeap.size()>=2){ smallerHeap.add(biggerHeap.poll()); } } public static double getMedian(PriorityQueue<Integer> lowers,PriorityQueue<Integer> highers){ PriorityQueue<Integer> biggerHeap = lowers.size()>highers.size()?lowers:highers; PriorityQueue<Integer> smallerHeap = lowers.size()>highers.size()?highers:lowers; if(biggerHeap.size()==smallerHeap.size()){ return ((double)(biggerHeap.peek()+smallerHeap.peek()))/2; } else{ return biggerHeap.peek(); } } static double[] runningMedian(int[] a) { /* * Write your code here. */ PriorityQueue<Integer> lowers = new PriorityQueue<Integer>( new Comparator<Integer>(){ public int compare(Integer a, Integer b){ return -1*a.compareTo(b); } } ); PriorityQueue<Integer> highers = new PriorityQueue<Integer>(); double[] medians = new double[a.length]; for(int i=0;i<a.length;i++){ int number = a[i]; addNumber(number,lowers,highers); rebalance(lowers,highers); medians[i] = getMedian(lowers,highers); } return medians; } private static final Scanner scanner = new Scanner(System.in); public static void main(String[] args) throws IOException { BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH"))); int aCount = Integer.parseInt(scanner.nextLine().trim()); int[] a = new int[aCount]; for (int aItr = 0; aItr < aCount; aItr++) { int aItem = Integer.parseInt(scanner.nextLine().trim()); a[aItr] = aItem; } double[] result = runningMedian(a); for (int resultItr = 0; resultItr < result.length; resultItr++) { bufferedWriter.write(String.valueOf(result[resultItr])); if (resultItr != result.length - 1) { bufferedWriter.write("\n"); } } bufferedWriter.newLine(); bufferedWriter.close(); } }
5ce3ce9fdd92b04c22524e0c067b8e3b91369b24
ca891b1e05f48b328ed6c59ac7127090c1b469aa
/src/com/bjsxt/yanbing/dao/impl/SaleDaoImpl.java
71123bcae733d16964531a26af34b1b9d0989bf4
[ "MIT" ]
permissive
Icyfighting/Company-Purchase-Sale-Stock-Management-System
77729916871f172b50df74547d7e4b8c441b4a8d
49b4c038cca2218f7cf6b24ed80f46ec9648f6b6
refs/heads/master
2020-04-11T13:57:10.308410
2018-12-16T19:01:21
2018-12-16T19:01:21
161,835,691
0
0
null
null
null
null
UTF-8
Java
false
false
7,298
java
package com.bjsxt.yanbing.dao.impl; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import com.bjsxt.pojo.Product; import com.bjsxt.pojo.Sale; import com.bjsxt.yanbing.dao.SaleDao; public class SaleDaoImpl extends BaseDao implements SaleDao { @Override public boolean insSale(Sale sale) { String sql = "insert into t_sale values (default,?,?,?,?,?,?,?,?,?)"; Object[] params = {sale.getClientId(), sale.getSdate(), sale.getOperator(), sale.getBrokerage(), sale.getSettlement(), sale.getProductId(), sale.getPrice(), sale.getNumber(), sale.getActualIncome()}; return update(sql, params); } @Override public List<Sale> selByDate(int start, int size, String startDate, String endDate) { /* * System.out.println("saleDao:" + startDate.toString()); String d1 = * "'2018-02-02'"; DateFormat dFormat = new SimpleDateFormat(); String * d2 = dFormat.format(new Date()); */ String sql = "select s.id,c.name clientName,s.sdate,s.operator,s.brokerage,s.settlement,p.name productName,s.price,s.number,s.actual_income actualIncome from t_sale s left join t_client c on s.client_id=c.id left join t_product p on s.product_id=p.id " + " where sdate >= ? and sdate <= ? limit ?,?"; System.out.println("startDate:" + startDate); System.out.println("endDate:" + endDate); return query(Sale.class, sql, startDate, endDate, start, size); } @Override public int selCountByDate(String startDate, String endDate) { String sql = "select count(*) from t_sale where sdate >= ? and ?"; return queryCount(sql, startDate, endDate); } @Override public List<Sale> selById(int start, int size, int id, int operator, String sDate, String eDate) { List<Sale> list = new ArrayList<>(); List<Sale> temp = new ArrayList<>();// 防止list返回出现null的情况,使得返回pagination中没有rows,造成页面无法刷新 String sql1 = "select s.id,c.name clientName,s.sdate,s.operator,s.brokerage,s.settlement,p.name productName,s.price,s.number,s.actual_income actualIncome from t_sale s left join t_client c on s.client_id=c.id left join t_product p on s.product_id=p.id where s.id>? and sdate >= ? and sdate <= ? limit ?,?"; String sql2 = "select s.id,c.name clientName,s.sdate,s.operator,s.brokerage,s.settlement,p.name productName,s.price,s.number,s.actual_income actualIncome from t_sale s left join t_client c on s.client_id=c.id left join t_product p on s.product_id=p.id where s.id=? and sdate >= ? and sdate <= ? limit ?,?"; String sql3 = "select s.id,c.name clientName,s.sdate,s.operator,s.brokerage,s.settlement,p.name productName,s.price,s.number,s.actual_income actualIncome from t_sale s left join t_client c on s.client_id=c.id left join t_product p on s.product_id=p.id where s.id<? and sdate >= ? and sdate <= ? limit ?,?"; if (operator == 1) { temp = query(Sale.class, sql1, id, sDate, eDate, start, size); } else if (operator == 2) { temp = query(Sale.class, sql2, id, sDate, eDate, start, size); } else if (operator == 3) { temp = query(Sale.class, sql3, id, sDate, eDate, start, size); } if (temp != null) { list = temp; } return list; } @Override public int selCountById(int id, int operator, String sDate, String eDate) { int count = 0; String sql1 = "select count(*) from t_sale where id>? and sdate >= ? and sdate <= ?"; String sql2 = "select count(*) from t_sale where id=? and sdate >= ? and sdate <= ?"; String sql3 = "select count(*) from t_sale where id<? and sdate >= ? and sdate <= ?"; if (operator == 1) { count = queryCount(sql1, id, sDate, eDate); } else if (operator == 2) { count = queryCount(sql2, id, sDate, eDate); } else if (operator == 3) { count = queryCount(sql3, id, sDate, eDate); } return count; } @Override public List<Sale> selByProName(int start, int size, String value, int operator, String sDate, String eDate) { List<Sale> list = new ArrayList<>(); List<Sale> temp = new ArrayList<>(); String sql1 = "select s.id,c.name clientName,s.sdate,s.operator,s.brokerage,s.settlement,p.name productName,s.price,s.number,s.actual_income actualIncome from t_sale s left join t_client c on s.client_id=c.id left join t_product p on s.product_id=p.id where p.name like '%" + value + "%' and sdate >= ? and sdate <= ? limit ?,?"; String sql2 = "select s.id,c.name clientName,s.sdate,s.operator,s.brokerage,s.settlement,p.name productName,s.price,s.number,s.actual_income actualIncome from t_sale s left join t_client c on s.client_id=c.id left join t_product p on s.product_id=p.id where p.name =? and sdate >= ? and sdate <= ? limit ?,?"; if (operator == 1 || operator == 3) { temp = query(Sale.class, sql1, sDate, eDate, start, size); } else if (operator == 2) { temp = query(Sale.class, sql2, value, sDate, eDate, start, size); } if (temp != null) { list = temp; } return list; } @Override public int selCountByProName(String value, int operator, String sDate, String eDate) { int count = 0; String sql1 = "select count(*) from t_sale s left join t_product p on s.product_id=p.id where p.name like'%" + value + "%' and sdate >= ? and sdate <= ?"; String sql2 = "select count(*) from t_sale s left join t_product p on s.product_id=p.id where p.name =? and sdate >= ? and sdate <= ?"; if (operator == 1 || operator == 3) { count = queryCount(sql1, sDate, eDate); } else if (operator == 2) { count = queryCount(sql2, value, sDate, eDate); } return count; } @Override public List<Sale> selByCltName(int start, int size, String value, int operator, String sDate, String eDate) { List<Sale> list = new ArrayList<>(); List<Sale> temp = new ArrayList<>(); String sql1 = "select s.id,c.name clientName,s.sdate,s.operator,s.brokerage,s.settlement,p.name productName,s.price,s.number,s.actual_income actualIncome from t_sale s left join t_client c on s.client_id=c.id left join t_product p on s.product_id=p.id where c.name like '%" + value + "%' and sdate >= ? and sdate <= ? limit ?,?"; String sql2 = "select s.id,c.name clientName,s.sdate,s.operator,s.brokerage,s.settlement,p.name productName,s.price,s.number,s.actual_income actualIncome from t_sale s left join t_client c on s.client_id=c.id left join t_product p on s.product_id=p.id where c.name =? and sdate >= ? and sdate <= ? limit ?,?"; if (operator == 1 || operator == 3) { temp = query(Sale.class, sql1, sDate, eDate, start, size); } else if (operator == 2) { temp = query(Sale.class, sql2, value, sDate, eDate, start, size); } if (temp != null) { list = temp; } return list; } @Override public int selCountByCltName(String value, int operator, String sDate, String eDate) { int count = 0; String sql1 = "select count(*) from t_sale s left join t_client c on s.client_id=c.id where c.name like'%" + value + "%' and sdate >= ? and sdate <= ?"; String sql2 = "select count(*) from t_sale s left join t_client c on s.client_id=c.id where c.name =? and sdate >= ? and sdate <= ?"; if (operator == 1 || operator == 3) { count = queryCount(sql1, sDate, eDate); } else if (operator == 2) { count = queryCount(sql2, value, sDate, eDate); } return count; } }
a141a09e1c45dad555dd67863e2a11024b6fc965
3cd269fed476af587847e895f9fa4ef1af1c6f73
/src/com/goods/process/GoodsProcess.java
b8d55dd34388b6fefc395e864033625890b96bff
[]
no_license
xzzhuo/GoodsShow
ae9dc18436123d8e370707e3dce1e91965ac7afe
7f1a925b00f3ca600b66db1f93af68f646bfd9ec
refs/heads/master
2021-01-12T12:12:36.455524
2016-11-27T15:00:04
2016-11-27T15:00:04
72,351,988
0
0
null
null
null
null
UTF-8
Java
false
false
18,269
java
package com.goods.process; import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Random; import com.goods.application.GoodsConfig; import com.goods.constant.MyConstant; import com.goods.data.AccountData; import com.goods.data.AccountType; import com.goods.data.SystemData; import com.goods.table.AccountTable; import exhi.net.log.NetLog; import exhi.net.netty.NetFile; public class GoodsProcess extends BaseProcess { protected final static String ACCOUNT_UUID = "account_uuid"; protected final static String ITEM_ID = "item_id"; protected final static String FAILED = "failed"; protected final static String SUCCESS = "OK"; protected final static String COOKIE_ACCOUNT = MyConstant.COOKIE_ACCOUNT; protected final static String COOKIE_CODE = MyConstant.COOKIE_CODE; // protected final static String COOKIE_LANGUAGE = MyConstant.COOKIE_LANGUAGE; protected final static String FORMAT_RETURN = "{\"result\":\"%s\",\"message\":\"%s\",\"uri\":\"%s\"}"; protected AccountData mCurrentAccount = null; @Override public void onProcess(String client, String path, Map<String, String> request) { try { File templateFile = new File(path); String act = ""; super.initProcess(client, path, request); this.initDatabase(); /* String lan = this.getCookie(COOKIE_LANGUAGE); if (lan != null) { super.setCurrentLanguage(lan); } */ String newAct = this.checkAccount(client, request); if (!newAct.isEmpty()) { act = newAct; } else { if (request.containsKey("act")) { act = request.get("act"); request.remove("act"); } if (act.isEmpty()) { act = "main"; } } NetLog.debug(client, "act=" + act); if (mCurrentAccount != null) { String name = mCurrentAccount.getName(); name = (name==null?null:(name.isEmpty()?null:name)); // this.setCookie(COOKIE_LANGUAGE, this.mCurrentAccount.getLanguage()); super.setCurrentLanguage(this.mCurrentAccount.getLanguage()); mWebUtil.assign("isManager", mCurrentAccount.isManager()); mWebUtil.assign("current_account", mCurrentAccount.getAccount()); mWebUtil.assign("current_name", name); } this.doProcess(client, path, templateFile, act, request); } catch(ShowErrorException ex) { NetLog.error(client, ex.getMessage()); this.die(ex.getMessage()); } catch(NullPointerException ex) { if (ex.getStackTrace().length > 0) { StackTraceElement stack = ex.getStackTrace()[0]; NetLog.error(client, "Null pointer: " + stack.toString()); } else { NetLog.error(client, ex.getMessage()); } this.die(ex.getMessage()); } catch(Exception ex) { NetLog.error(client, ex.getMessage()); this.die(ex.getMessage()); } } private String checkAccount(String client, Map<String, String> request) { String act = ""; if (request.containsKey("act")) { act = request.get("act"); } List<String> mIgnoreAct = new ArrayList<String>(); mIgnoreAct.add(MyConstant.COMMAND_MENU_LOGIN); // show login UI mIgnoreAct.add(MyConstant.COMMAND_MENU_SIGN_OUT); // quit mIgnoreAct.add(MyConstant.COMMAND_MENU_SIGN_UP); mIgnoreAct.add(MyConstant.COMMAND_ACT_SIGN_UP); if (!mIgnoreAct.contains(act)) { boolean checkResult = false; String account = ""; AccountTable accountTable = new AccountTable(); if (act.equalsIgnoreCase(MyConstant.COMMAND_ACT_SIGN_IN)) { String password = ""; if (request.containsKey("account")) { account = request.get("account"); } if (request.containsKey("password")) { password = request.get("password"); } String errorJson = ""; checkResult = accountTable.isExist(account); if (checkResult) { checkResult = accountTable.checkAccount(account, password); if (checkResult) { NetLog.info(client, "Check account password success"); accountTable.updateRandCode(account, password); mCurrentAccount = accountTable.queryAccount(account); this.setCookie(COOKIE_ACCOUNT, mCurrentAccount.getAccount()); this.setCookie(COOKIE_CODE, mCurrentAccount.getCode(), 36000); errorJson = this.MakeJsonReturn("OK", this.getCurLangMap().get("lang_err_success")); } else { NetLog.warning(client, "Check account password failed"); errorJson = this.MakeJsonReturn("failed_password", this.getCurLangMap().get("lang_err_invalid_password")); } } else { NetLog.warning(client, "Account is not exist"); errorJson = this.MakeJsonReturn("failed_account", this.getCurLangMap().get("lang_err_account_not_exist")); } this.print(errorJson); } else { String code = ""; if (this.getCookie(COOKIE_ACCOUNT) != null) { account = this.getCookie(COOKIE_ACCOUNT); } if (this.getCookie(COOKIE_CODE) != null) { code = this.getCookie(COOKIE_CODE); } checkResult = accountTable.checkCode(account, code); if (checkResult) { mCurrentAccount = accountTable.queryAccount(account); NetLog.info(client, "Check account code success"); } else { NetLog.warning(client, "Check account code failed"); act = MyConstant.COMMAND_ACT_LOGIN; } } } return act; } private void initDatabase() throws ShowErrorException { // check system version } @Override protected boolean doProcess(String client, String path, File tempFile, String act, Map<String, String> request) throws ShowErrorException { if (act.equals("main")) { mWebUtil.display(tempFile.getName()); } else if (act.equals(MyConstant.COMMAND_MENU_LOGIN)) { // Show the login UI mWebUtil.assign("title", super.getCurLangMap().get("lang_sign_in")); mWebUtil.display(tempFile.getName()); } // user login else if (act.equals(MyConstant.COMMAND_ACT_LOGIN)) { this.location(String.format("login.html?act=%s", MyConstant.COMMAND_MENU_LOGIN)); } // show main page else if (act.equals(MyConstant.COMMAND_ACT_SIGN_IN)) { // do noting // login success and show first page // mWebUtil.assign("title", super.getCurLangMap().get("lang_main_guid")); // mWebUtil.display(tempFile.getName()); } else if (act.equals(MyConstant.COMMAND_MENU_SIGN_OUT)) { this.deleteCookie(COOKIE_CODE); this.location(String.format("login.html?act=%s", MyConstant.COMMAND_MENU_LOGIN)); } else if (act.equals(MyConstant.COMMAND_MENU_SHOW_SYSTEM_INFO)) { SystemData systemData = new SystemData(); mWebUtil.assign("title", super.getCurLangMap().get("lang_system_information")); mWebUtil.assign("data", systemData); mWebUtil.display(tempFile.getName()); } else if (act.equals(MyConstant.COMMAND_MENU_MAIN_PAGE)) { mWebUtil.assign("title", super.getCurLangMap().get("lang_main_page")); mWebUtil.display(tempFile.getName()); } else if (act.equals(MyConstant.COMMAND_MENU_SIGN_UP)) { this.mWebUtil.assign("account_type_normal", AccountType.NORMAL.name()); this.mWebUtil.assign("title", this.getCurLangMap().get("lang_sign_up")); this.mWebUtil.display(tempFile.getName()); } else if (act.equals(MyConstant.COMMAND_ACT_SIGN_UP)) { CheckRequestResult checkValue = super.checkRequestMap(new ICheckRequest(){ @Override public CheckRequestResult checkRequest(BaseProcess process, Map<String, String> request, String client) { CheckRequestResult result = new CheckRequestResult(); result.result = false; if (!request.containsKey("type")) { NetLog.error(client, "request data error"); result.json_return = MakeJsonReturn(FAILED, process.getCurLangMap().get("lang_err_request_data")); return result; } String type = request.get("type"); if (!type.equals(AccountType.NORMAL.name())) { NetLog.error(client, "request data error"); result.json_return = MakeJsonReturn(FAILED, process.getCurLangMap().get("lang_err_request_data")); return result; } List<String> keys = new ArrayList<String>(); keys.add("account"); keys.add("password"); if (!BaseProcess.checkRequestMap(request, keys)) { NetLog.error(client, "request data error"); result.json_return = MakeJsonReturn(FAILED, process.getCurLangMap().get("lang_err_request_data")); return result; } result.result = true; return result; } }, this, request, client); String retValue = ""; if (checkValue.result) { String account = request.get("account"); String password = request.get("password"); String type = request.get("type"); AccountType accountType = AccountType.NORMAL; try { accountType = AccountType.valueOf(type); } catch(Exception ex) { // skip it } AccountTable accountTable = new AccountTable(); if (!accountTable.isExist(account)) { AccountData newAccount = null; newAccount = accountTable.insertNewAccount(account, password, accountType); if (newAccount != null) { retValue = MakeJsonReturn(SUCCESS, super.getCurLangMap().get("lang_err_success")); } else { NetLog.error(client, "add new account failed"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_add_new_account")); } } else { NetLog.error(client, "account has exist"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_account_has_exist")); } } else { retValue = checkValue.json_return; } this.print(retValue); } //////////////////////////////////////////////////////////////////////////////// // Account manage else if (act.equals(MyConstant.COMMAND_MENU_SHOW_ACCOUNT_LIST)) { if (this.mCurrentAccount.isManager()) { AccountTable accountTable = new AccountTable(); List<Map<String, Object>> accountList = accountTable.query(new String[]{"id","account","name","type","signdate"}); mWebUtil.assign("list", accountList); } else { throw new ShowErrorException(super.getCurLangMap().get("lang_err_not_access")); } mWebUtil.assign("title", super.getCurLangMap().get("lang_account_manage")); mWebUtil.display(tempFile.getName()); } else if (act.equals(MyConstant.COMMAND_MENU_ADD_ACCOUNT)) { // just only can add 'ADMIN' and 'NORMAL' user mWebUtil.assign("title", super.getCurLangMap().get("lang_account_add")); AccountType[] typeList = null; if (this.mCurrentAccount.getType().equalsIgnoreCase(AccountType.SUPER_ADMIN.name())) { typeList = new AccountType[]{AccountType.ADMIN, AccountType.NORMAL}; } else if (this.mCurrentAccount.getType().equalsIgnoreCase(AccountType.ADMIN.name())) { typeList = new AccountType[]{AccountType.NORMAL}; } else { throw new ShowErrorException(super.getCurLangMap().get("lang_err_not_access")); } mWebUtil.assign("list", typeList); mWebUtil.display(tempFile.getName()); } else if (act.equals(MyConstant.COMMAND_ACT_ADD_ACCOUNT)) { String retValue = ""; if (this.mCurrentAccount.isManager()) { if (request.containsKey("account") && request.containsKey("password") && request.containsKey("type")) { String account = request.get("account"); String password = request.get("password"); AccountType type = AccountType.NORMAL; try { type = AccountType.valueOf(request.get("type")); } catch(Exception e) { NetLog.error(client, e.getMessage()); } AccountTable accountTable = new AccountTable(); if (!accountTable.isExist(account)) { AccountData newAccount = accountTable.insertNewAccount( account, password, type, GoodsConfig.instance().getLangTypeName()); if (newAccount != null) { retValue = MakeJsonReturn(SUCCESS, super.getCurLangMap().get("lang_err_success")); } else { NetLog.error(client, "add new account failed"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_add_new_account")); } } else { NetLog.error(client, "account has exist"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_account_has_exist")); } } else { NetLog.error(client, "request data error"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_request_data")); } } else { NetLog.error(client, "access error"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_not_access")); } this.print(retValue); } else if (act.equals(MyConstant.COMMAND_MENU_CHANGE_PASSWORD)) { mWebUtil.assign("title", super.getCurLangMap().get("lang_account_change_password")); mWebUtil.assign("current_account", this.mCurrentAccount.getAccount()); mWebUtil.display(tempFile.getName()); } else if (act.equals(MyConstant.COMMAND_ACT_CHANGE_PASSWORD)) { String retValue = ""; if (request.containsKey("account") && request.containsKey("password") && request.containsKey("new_password")) { String account = request.get("account"); String password = request.get("password"); String newPassword = request.get("new_password"); if (account.equals(this.mCurrentAccount.getAccount())) { AccountTable accountTable = new AccountTable(); if (accountTable.isExist(account)) { if (accountTable.checkAccount(account, password)) { AccountData newAccount = accountTable.updatePassword(account, password, newPassword); if (newAccount != null) { retValue = MakeJsonReturn(SUCCESS, super.getCurLangMap().get("lang_err_success")); } else { NetLog.error(client, "update password failed"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_update_password")); } } else { NetLog.error(client, "account verify failed"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_account_verify")); } } else { NetLog.error(client, "account not exist"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_account_not_exist")); } } else { NetLog.error(client, "account expire"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_account_expire")); } } else { NetLog.error(client, "request data error"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_request_data")); } this.print(retValue); } else if (act.equals(MyConstant.COMMAND_ACT_ACCOUNT_DELETE)) { String retValue = ""; if (this.mCurrentAccount.isManager()) { AccountTable accountTable = new AccountTable(); String account = ""; if (request.containsKey("account")) { account = request.get("account"); } AccountData accountData = accountTable.queryAccount(account); if (accountData==null) { NetLog.error(client, "account not exist"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_account_not_exist")); this.print(retValue); } else if (accountData.getAccount().equals(this.mCurrentAccount.getAccount()) || accountData.getType().equals(AccountType.SUPER_ADMIN.name()) || accountData.getType().equals(this.mCurrentAccount.getType())) { NetLog.error(client, "access error"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_not_access")); this.print(retValue); } else { if (accountTable.deleteAccount(account)) { String location = String.format("account_list.html?act=menu_show_account_list&rand=%s", (new Random()).nextInt(1000000)); this.location(location); } else { NetLog.error(client, "delete account failed"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_delete_account")); this.print(retValue); } } } else { NetLog.error(client, "access error"); retValue = MakeJsonReturn(FAILED, super.getCurLangMap().get("lang_err_not_access")); this.print(retValue); } } else if (act.equals("act_upload_file")) { // file_name=user_photo String fileName = request.get("file_name"); NetLog.error("File1", fileName); if (fileName == null || fileName.isEmpty()) { NetLog.error("File2", "Upload error"); } else { NetLog.error("File3", fileName); NetFile netfile = this.getFile(fileName); if (netfile == null) { NetLog.error("File4", "Upload error"); } else { NetLog.error("File5", netfile.tmp_name); } } this.print("act_upload_file"); } // test jquery form else if (act.equals("act_upload_file1")) { // file_name=user_photo String fileName = request.get("file_name"); NetLog.error("File1", fileName); if (fileName == null || fileName.isEmpty()) { NetLog.error("File2", "Upload error"); } else { NetLog.error("File3", fileName); NetFile netfile = this.getFile(fileName); if (netfile == null) { NetLog.error("File4", "Upload error"); } else { NetLog.error("File5", netfile.tmp_name); } } this.print("act_upload_file"); } //////////////////////////////////////////////////////////////////////////////// else { NetLog.error(client, "Not iplement: act = " + act); this.print("Not implement"); } return true; } ////////////////////////////////////////////////////////////////////////////// protected String makeJsonReturn(String result, String message, String location) { // FORMAT_RETURN = "{\"result\":\"%s\",\"message\":\"%s\",\"uri\":\"%s\"}"; return String.format(FORMAT_RETURN, result, message, location); } protected String MakeJsonReturn(String result, String message) { return makeJsonReturn(result, message, ""); } }
91841c630084b5792ccbaf0fd24b74d1b709ffcf
4c609ad7f0d0c186cfb63791d02ffe7473e0a3f4
/src/main/java/com/airline/service/model/BookingFee__.java
1e5c3d7042b942258feac0e2ae1865e9103ec3a7
[]
no_license
ravidevops03/AirlineServices
e6383ac2240c6cd75b12bd2186dcae97e1149d2b
6c530555ba1b94ed29e6dc0d2d7fae1aeab77e4f
refs/heads/master
2022-06-25T19:35:21.992579
2019-10-09T01:46:20
2019-10-09T01:46:20
213,792,596
0
0
null
2022-06-17T01:55:16
2019-10-09T01:31:05
Java
UTF-8
Java
false
false
469
java
package com.airline.service.model; import java.util.HashMap; import java.util.Map; public class BookingFee__ { private String currency; private Double amount; public String getCurrency() { return currency; } public void setCurrency(String currency) { this.currency = currency; } public Double getAmount() { return amount; } public void setAmount(Double amount) { this.amount = amount; } }
a6bef413c6c915cb4a15a791285b26e8d5640898
881ec42c677f2d954fdc2317ad582c88fb87c752
/stsworkspace/JavaWebIntro/src/com/skilldistillery/javaweb/solutions/labs/InventoryServlet.java
3153ed480a12e52259275a60bd8c5bae1c5666d5
[]
no_license
stoprefresh/archive
f51119220fbcb4bccc82306c0483903502f1859e
0bde3917fb9cb7e002d3abb18088fee9df4371ec
refs/heads/master
2022-12-21T20:33:08.251833
2019-10-17T14:13:10
2019-10-17T14:13:10
215,808,299
0
0
null
2022-12-16T09:52:36
2019-10-17T14:08:48
Java
UTF-8
Java
false
false
1,326
java
package com.skilldistillery.javaweb.solutions.labs; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class InventoryServlet extends HttpServlet { private List<String> inventory; // initializer block { inventory = new ArrayList<>(); inventory.add("Socks"); inventory.add("Bananas"); inventory.add("Cats"); } @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { PrintWriter pw = resp.getWriter(); pw.println("<html>"); pw.println("<head><title>Inventory</title></head>"); pw.println(" <body>"); pw.println("<hr>"); // Add a header to the output stream for Inventory. pw.println(" <h1>Inventory</h1>"); // Add the products to inventory as an unordered list. pw.println("<ul>"); for (String s : inventory) { pw.println("<li>"); pw.println(s); pw.println("</li>"); } pw.println("</ul>"); pw.println("<hr>"); pw.println("</body>"); pw.println("</html>"); pw.close(); } }
1c6801d921283ece001543289a25e3ce0a49291c
2609f17f9358a56c5b9b701a283db7ea55cbc343
/src/test/java/com/json/readCovidDatAllCountries.java
f129de685575e7669087b8b28de8567a6a7e5621
[]
no_license
osmnndm/Api_Short
143b004249cd01382bc34e555c0505d8ec98d10b
bd3a642483ec77341a2a08784aa6db315430ec63
refs/heads/main
2023-02-14T13:39:41.138625
2021-01-11T02:10:58
2021-01-11T02:10:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,742
java
package com.json; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; import java.util.Scanner; public class readCovidDatAllCountries { public static void main(String[] args) throws IOException, ParseException { // Data Provided URL url = new URL("https://api.covid19api.com/summary"); // Make Connection HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("GET"); conn.connect(); // Get Response Code int responseCode = conn.getResponseCode(); // If response code is not successful terminate the Java Code if (responseCode != 200) { System.out.println("Web Service Response Code: " + responseCode); System.exit(0); } // Read data from Web Service StringBuilder inline = new StringBuilder(); Scanner scanner = new Scanner(url.openStream()); // Get Data line by one while (scanner.hasNext()) inline.append(scanner.nextLine()); //Using the JSON simple library parse the string into a json object JSONParser parse = new JSONParser(); JSONObject data_obj = (JSONObject) parse.parse(inline.toString()); JSONArray countries = (JSONArray) data_obj.get("Countries"); for (Object o : countries) { JSONObject country = (JSONObject) o; System.out.printf("%-35s : %,15d %n",country.get("Country"),(Long) country.get("TotalConfirmed")); } scanner.close(); } }
[ "mehmetemmidev@gmail" ]
mehmetemmidev@gmail
deaea7854896f55897cb2d411ce32568ea0a01dd
0ea7aca9e13cd6a56a225ab2a21fc47ee90a5917
/app/src/main/java/com/vladimirpetrovski/outfit7apps/presenter/main/AppsAdapter.java
aff90382cbba5289abe8b0f8c1361d1ba31e2205
[]
no_license
vladimirpetrovski/Outfit7Apps
87516207840d088640b429ac6598fa3e50540ddb
7871f169a1a08c9e1fd703cb55ef75b0219ff34d
refs/heads/master
2020-03-22T18:16:56.848273
2018-07-10T15:32:57
2018-07-10T15:32:57
139,057,573
0
0
null
null
null
null
UTF-8
Java
false
false
2,679
java
package com.vladimirpetrovski.outfit7apps.presenter.main; import android.content.pm.PackageManager; import android.graphics.drawable.Drawable; import android.support.annotation.NonNull; import android.support.v7.recyclerview.extensions.ListAdapter; import android.support.v7.util.DiffUtil; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import butterknife.BindView; import butterknife.ButterKnife; import com.vladimirpetrovski.outfit7apps.R; import com.vladimirpetrovski.outfit7apps.data.App; import com.vladimirpetrovski.outfit7apps.presenter.main.AppsAdapter.AppViewHolder; public class AppsAdapter extends ListAdapter<App, AppViewHolder> { private static final String TAG = AppsAdapter.class.getSimpleName(); private OnAppClickListener listener; AppsAdapter(OnAppClickListener listener) { super(new ItemCallback()); this.listener = listener; } @NonNull @Override public AppViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { return new AppViewHolder( LayoutInflater.from(parent.getContext()) .inflate(R.layout.item_app, parent, false)); } @Override public void onBindViewHolder(@NonNull AppViewHolder holder, int position) { final App item = getItem(position); holder.itemView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { listener.onAppClick(item); } }); holder.itemTitle.setText(item.getName()); try { Drawable icon = holder.itemView.getContext().getPackageManager() .getApplicationIcon(item.getPackageName()); holder.itemIcon.setImageDrawable(icon); } catch (PackageManager.NameNotFoundException e) { Log.e(TAG, e.getMessage()); } } static class AppViewHolder extends RecyclerView.ViewHolder { @BindView(R.id.item_icon) ImageView itemIcon; @BindView(R.id.item_title) TextView itemTitle; AppViewHolder(View itemView) { super(itemView); ButterKnife.bind(this, itemView); } } static class ItemCallback extends DiffUtil.ItemCallback<App> { @Override public boolean areItemsTheSame(App oldItem, App newItem) { return oldItem.getPackageName().equals(newItem.getPackageName()); } @Override public boolean areContentsTheSame(App oldItem, App newItem) { return oldItem.equals(newItem); } } public interface OnAppClickListener { void onAppClick(App app); } }
ff31a1e2bcd2d89e6233497fdd1891d692bf6e6f
5d206b97f1c7584182dc3ca7afc8a02fe4d50879
/src/h/vrp/stochasticsavings/GetInstanceDetails.java
683ea7e1f34b98f8f5febb421e754871f2709e21
[]
no_license
larkery/vrp-sa
9014fbba5998c125b2fd43bcf6209511c5c551c7
f7a798bb2dbcd6427f4b834f66f003159274573d
refs/heads/master
2016-09-06T11:17:41.886485
2012-05-09T17:26:06
2012-05-09T17:26:06
4,274,223
5
1
null
null
null
null
UTF-8
Java
false
false
4,422
java
package h.vrp.stochasticsavings; import h.options.DoubleParser; import h.options.InvalidArgumentException; import h.options.InvalidOptionException; import h.options.Options; import h.options.vrp.InstanceOption; import h.vrp.model.Instance; import h.vrp.model.Route; import h.vrp.model.Solution; import h.vrp.model.evaluation.DeltaEvaluator; import h.vrp.solcons.ExtendedSavingsCalculator; import h.vrp.solcons.SavingsConstructor; import java.util.List; import java.util.Map; public class GetInstanceDetails { /** * @param args */ public static void main(String[] args) { GetInstanceDetails me = new GetInstanceDetails(); Options options = new Options("--"); InstanceOption.addTo(options); options.addOption("lambda", new DoubleParser(1)); options.addOption("mu", new DoubleParser(1)); options.addOption("nu", new DoubleParser(1)); try { options.parse(args); } catch (InvalidOptionException e) { e.printStackTrace(); } catch (InvalidArgumentException e) { e.printStackTrace(); } Instance instance = options.getOption(InstanceOption.DEFAULT_OPTION); instance.setUsingHardConstraints(true); CSVBuilder fields = me.new CSVBuilder(); fields.add(instance); fields.add(instance.getPoints().size()); fields.add(instance.getCapacity()); fields.add(instance.getMaxLength()); fields.add(instance.getMeanVertexDemand()); fields.add(instance.getMeanEdgeLength()); Solution solution = new SavingsConstructor().createSolution(instance); DeltaEvaluator de = new DeltaEvaluator(instance, solution); //get constraint tightness numbers Map<String, List<Float>> slackness = de.getSlacknesses(); fields.add("cw"); for (Map.Entry<String, List<Float>> e : slackness.entrySet()) { fields.add(e.getKey()); float T = 0; for (float f : e.getValue()) { T += f; } T /= e.getValue().size(); fields.add(T); } float lambda = ((Double)options.getOption("lambda")).floatValue(); float mu = ((Double)options.getOption("mu")).floatValue(); float nu = ((Double)options.getOption("nu")).floatValue(); Solution esolution = new SavingsConstructor(new ExtendedSavingsCalculator(lambda, mu, nu)).createSolution(instance); de = new DeltaEvaluator(instance, esolution); Map<String, List<Float>> slackness2 = de.getSlacknesses(); fields.add("altinel"); for (Map.Entry<String, List<Float>> e : slackness2.entrySet()) { fields.add(e.getKey()); float T = 0; for (float f : e.getValue()) { T += f; } T /= e.getValue().size(); fields.add(T); } //check the pair differences int[] differences = new int[instance.getPoints().size()]; for (int i = 1; i<instance.getPoints().size(); i++) { for (int j = 1; j<i; j++) { if (j == i) continue; if (solution.routeContaining(i) == solution.routeContaining(j)) { if (esolution.routeContaining(i) != esolution.routeContaining(j)) { differences[i]++; } } } } int mc = 0; for (int i = 1; i<differences.length; i++) { if (differences[i] > solution.get(solution.routeContaining(i)).size()/2) { // System.err.println("Vertex " + i + " kinda moved"); mc++; // } else if (differences[i] > 0) { // System.err.println("Vertex " + i + " has " + differences[i]); } else { // System.err.println("Vertex " + i + " has not lost any neighbours"); } } // System.err.println(mc + " moved vertices total (" + ((double) 100 * mc / (differences.length - 1) ) + "%)"); fields.add(mc); fields.add(stringify(solution)); fields.add(stringify(esolution)); System.out.println(fields.toString()); } static String stringify(Solution sol) { StringBuffer sb = new StringBuffer(); for (Route route : sol) { if (route.size() == 1) continue; sb.append("("); for (int i = 0; i<route.size(); i++) { sb.append(route.get(i) + " "); } sb.append(") "); } return sb.toString(); } class CSVBuilder { private StringBuilder sb; public CSVBuilder() { this.sb = new StringBuilder(); } public void add(Object o) { add(o.toString()); } public void add(int x) { add("" + x); } public void add(float meanVertexDemand) { add(""+ meanVertexDemand); } public void add(double d) { add("" + d); } public void add(String s) { if (sb.length() > 0) sb.append(", "); sb.append(s); } public String toString() { return sb.toString(); } } }
45e36bcb763d864c8dc57676ec06cef4b556e3b4
9d0619b29d2f271b67cc83a24350a579002eacaa
/src/main/java/kr/co/service/MemberServiceImpl.java
b61b488bfc9fa0ca6e311d11558cae55d351aa10
[]
no_license
equle/spring-board
d8a76d586f8c69357fda01f09bc7cb2cbba785cc
d3f800c24e4bfa8962cf71b2b926c8826fd644c3
refs/heads/master
2022-12-08T04:07:03.139793
2020-08-18T23:50:14
2020-08-18T23:50:14
288,588,520
0
0
null
null
null
null
UTF-8
Java
false
false
452
java
package kr.co.service; import javax.inject.Inject; import org.springframework.stereotype.Service; import kr.co.dao.MemberDAO; import kr.co.vo.MemberVO; @Service public class MemberServiceImpl implements MemberService { @Inject MemberDAO dao; @Override public void join(MemberVO vo) throws Exception { dao.join(vo); } @Override public MemberVO login(MemberVO vo) throws Exception { return dao.login(vo); } }
da7e3ea06c799c2a69a300d2c3325575356ea098
29b877a7d19d74986e05a902543605517b6449c3
/Api-v2/src/main/java/pl/kurs/restapi/RestapiApplication.java
86a8102c6d3c20bf540a72d2b7cb0d39a2bb9a4d
[]
no_license
ddavid09/bhl6-smart-home
aea6b5509dd2174799c4542a8613dd2b75a58bda
69fde499fdf1cb135d19ed8883667f2d6732d7d6
refs/heads/main
2023-04-08T16:17:25.605900
2021-04-10T13:30:16
2021-04-10T13:30:16
356,307,172
0
0
null
null
null
null
UTF-8
Java
false
false
310
java
package pl.kurs.restapi; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class RestapiApplication { public static void main(String[] args) { SpringApplication.run(RestapiApplication.class, args); } }
c715cb9d1050e20ecc216f836ebb6a6609b412c6
8b418ff2061c19d0a274f48e3ae1894d48c9cf1c
/src/main/java/com/ltsllc/miranda/servlet/session/SessionResultObject.java
83598b078b70eca3dd76c8c6e3ebe93ad8fe21c7
[]
no_license
ClarkHobbie/mirandaClient
e7b15b40e9c6acdaa04df24bedc9289f39f34896
ec72ab73f090d7dc1a0384067f84d61267bb977d
refs/heads/master
2021-01-23T12:32:05.713287
2017-06-13T20:15:52
2017-06-13T20:15:52
93,165,311
0
0
null
null
null
null
UTF-8
Java
false
false
985
java
/* * Copyright 2017 Long Term Software LLC * * 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 writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.ltsllc.miranda.servlet.session; import com.ltsllc.miranda.servlet.objects.ResultObject; /** * Created by Clark on 4/15/2017. */ public class SessionResultObject extends ResultObject { private String session; public String getSession() { return session; } public void setSession(String session) { this.session = session; } }
6fc77515c60a47d93849372aa9c52dcf852395d4
4ca66f616ebd8c999f5917059cc21321e35ba851
/src/minecraft/net/minecraft/client/gui/GuiScreenOptionsSounds.java
bee4a331b4bad7e36da73cbaac988678ba8a9d7c
[]
no_license
MobbyGFX96/Jupiter
1c66c872b4944654c1554f6e3821a63332f5f2cb
c5ee2e16019fc57f5a7f3ecf4a78e9e64ab40221
refs/heads/master
2016-09-10T17:05:11.977792
2014-07-21T09:24:02
2014-07-21T09:24:02
22,002,806
5
0
null
null
null
null
UTF-8
Java
false
false
6,506
java
package net.minecraft.client.gui; import net.minecraft.client.Minecraft; import net.minecraft.client.audio.PositionedSoundRecord; import net.minecraft.client.audio.SoundCategory; import net.minecraft.client.audio.SoundHandler; import net.minecraft.client.resources.I18n; import net.minecraft.client.settings.GameSettings; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; public class GuiScreenOptionsSounds extends GuiScreen { private static final String __OBFID = "CL_00000716"; private final GuiScreen field_146505_f; private final GameSettings field_146506_g; protected String field_146507_a = "Options"; private String field_146508_h; public GuiScreenOptionsSounds(GuiScreen p_i45025_1_, GameSettings p_i45025_2_) { this.field_146505_f = p_i45025_1_; this.field_146506_g = p_i45025_2_; } public void initGui() { byte var1 = 0; this.field_146507_a = I18n.format("options.sounds.title", new Object[0]); this.field_146508_h = I18n.format("options.off", new Object[0]); this.buttonList.add(new GuiScreenOptionsSounds.Button(SoundCategory.MASTER.getCategoryId(), this.width / 2 - 155 + var1 % 2 * 160, this.height / 6 - 12 + 24 * (var1 >> 1), SoundCategory.MASTER, true)); int var6 = var1 + 2; SoundCategory[] var2 = SoundCategory.values(); int var3 = var2.length; for (int var4 = 0; var4 < var3; ++var4) { SoundCategory var5 = var2[var4]; if (var5 != SoundCategory.MASTER) { this.buttonList.add(new GuiScreenOptionsSounds.Button(var5.getCategoryId(), this.width / 2 - 155 + var6 % 2 * 160, this.height / 6 - 12 + 24 * (var6 >> 1), var5, false)); ++var6; } } this.buttonList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, I18n.format("gui.done", new Object[0]))); } protected void actionPerformed(GuiButton p_146284_1_) { if (p_146284_1_.enabled) { if (p_146284_1_.id == 200) { this.mc.gameSettings.saveOptions(); this.mc.displayGuiScreen(this.field_146505_f); } } } public void drawScreen(int p_73863_1_, int p_73863_2_, float p_73863_3_) { this.drawDefaultBackground(); this.drawCenteredString(this.fontRendererObj, this.field_146507_a, this.width / 2, 15, 16777215); super.drawScreen(p_73863_1_, p_73863_2_, p_73863_3_); } protected String func_146504_a(SoundCategory p_146504_1_) { float var2 = this.field_146506_g.getSoundLevel(p_146504_1_); return var2 == 0.0F ? this.field_146508_h : (int) (var2 * 100.0F) + "%"; } class Button extends GuiButton { private static final String __OBFID = "CL_00000717"; private final SoundCategory field_146153_r; private final String field_146152_s; public float field_146156_o = 1.0F; public boolean field_146155_p; public Button(int p_i45024_2_, int p_i45024_3_, int p_i45024_4_, SoundCategory p_i45024_5_, boolean p_i45024_6_) { super(p_i45024_2_, p_i45024_3_, p_i45024_4_, p_i45024_6_ ? 310 : 150, 20, ""); this.field_146153_r = p_i45024_5_; this.field_146152_s = I18n.format("soundCategory." + p_i45024_5_.getCategoryName(), new Object[0]); this.displayString = this.field_146152_s + ": " + GuiScreenOptionsSounds.this.func_146504_a(p_i45024_5_); this.field_146156_o = GuiScreenOptionsSounds.this.field_146506_g.getSoundLevel(p_i45024_5_); } public int getHoverState(boolean p_146114_1_) { return 0; } protected void mouseDragged(Minecraft p_146119_1_, int p_146119_2_, int p_146119_3_) { if (this.field_146125_m) { if (this.field_146155_p) { this.field_146156_o = (float) (p_146119_2_ - (this.x + 4)) / (float) (this.width - 8); if (this.field_146156_o < 0.0F) { this.field_146156_o = 0.0F; } if (this.field_146156_o > 1.0F) { this.field_146156_o = 1.0F; } p_146119_1_.gameSettings.setSoundLevel(this.field_146153_r, this.field_146156_o); p_146119_1_.gameSettings.saveOptions(); this.displayString = this.field_146152_s + ": " + GuiScreenOptionsSounds.this.func_146504_a(this.field_146153_r); } GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); this.drawTexturedModalRect(this.x + (int) (this.field_146156_o * (float) (this.width - 8)), this.y, 0, 66, 4, 20); this.drawTexturedModalRect(this.x + (int) (this.field_146156_o * (float) (this.width - 8)) + 4, this.y, 196, 66, 4, 20); } } public boolean mousePressed(Minecraft p_146116_1_, int p_146116_2_, int p_146116_3_) { if (super.mousePressed(p_146116_1_, p_146116_2_, p_146116_3_)) { this.field_146156_o = (float) (p_146116_2_ - (this.x + 4)) / (float) (this.width - 8); if (this.field_146156_o < 0.0F) { this.field_146156_o = 0.0F; } if (this.field_146156_o > 1.0F) { this.field_146156_o = 1.0F; } p_146116_1_.gameSettings.setSoundLevel(this.field_146153_r, this.field_146156_o); p_146116_1_.gameSettings.saveOptions(); this.displayString = this.field_146152_s + ": " + GuiScreenOptionsSounds.this.func_146504_a(this.field_146153_r); this.field_146155_p = true; return true; } else { return false; } } public void func_146113_a(SoundHandler p_146113_1_) { } public void mouseReleased(int p_146118_1_, int p_146118_2_) { if (this.field_146155_p) { if (this.field_146153_r == SoundCategory.MASTER) { float var10000 = 1.0F; } else { GuiScreenOptionsSounds.this.field_146506_g.getSoundLevel(this.field_146153_r); } GuiScreenOptionsSounds.this.mc.getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F)); } this.field_146155_p = false; } } }
8cd01b673adfda31702b7973b50997b6ff43ae77
1f8cf68f69d335fa3b604f9d1a8c2a0697888fec
/userAuthentication/src/main/java/com/stackroute/UserAuthenticationApplication.java
c3c71d6274d365ad901c55df797b41a9782ef4bc
[]
no_license
Silent-listener/stackroute-Product
dcff66b5aaa0845a4be95f812a79fe5b54750d78
a213e5858fdb264d34c571afe3373f489ff6f27e
refs/heads/master
2020-04-11T00:17:39.251451
2018-12-11T19:31:42
2018-12-11T19:31:42
161,382,313
0
0
null
null
null
null
UTF-8
Java
false
false
972
java
package com.stackroute; import com.stackroute.config.JwtFilter; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.cloud.netflix.eureka.EnableEurekaClient; import org.springframework.context.annotation.Bean; import org.springframework.data.jpa.repository.config.EnableJpaRepositories; @EnableEurekaClient @EnableJpaRepositories() @SpringBootApplication public class UserAuthenticationApplication { @Bean public FilterRegistrationBean jwtFilter() { final FilterRegistrationBean registrationBean = new FilterRegistrationBean(); registrationBean.setFilter(new JwtFilter()); registrationBean.addUrlPatterns("/secure/*"); return registrationBean; } public static void main(String[] args) { SpringApplication.run(UserAuthenticationApplication.class, args); } }
77e2b832b01f24d348ffc4d0a4189bdb4c37f38e
61dd793ccdde17a2b9ad9f1a0b05334dd6a95cf2
/ztb-biz/src/main/java/com/xdcplus/xdcweb/biz/common/pojo/entity/BidSpecialist.java
6df2fb12a5a10dbb5c8e51b8ee8df05246dabaca
[]
no_license
438972218/ztb
9476943061bf6d9f738455653ff8d31be426e121
dc617020971fcae6dbe38d1e2730d6690d0cf5ad
refs/heads/main
2023-06-24T22:17:01.081468
2021-07-30T03:53:32
2021-07-30T03:53:32
390,922,129
0
0
null
null
null
null
UTF-8
Java
false
false
1,743
java
package com.xdcplus.xdcweb.biz.common.pojo.entity; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.extension.activerecord.Model; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.Serializable; /** * 专家(BidSpecialist)表实体类 * * @author Fish.Fei * @since 2021-07-26 17:08:29 */ @Data @ApiModel(description = "") @SuppressWarnings("serial") @TableName("scm_bid_specialist") public class BidSpecialist implements Serializable { private static final long serialVersionUID = -57694834967218938L; @ApiModelProperty("信息主键") private Long id; @ApiModelProperty("招标单id") private Long bidSheetId; @ApiModelProperty("组类型") private String groupType; @ApiModelProperty("用户id") private Long userId; @ApiModelProperty("专家子账户") private String specialistSubAccount; @ApiModelProperty("专家姓名") private String specialistName; @ApiModelProperty("专家来源") private String specialistSource; @ApiModelProperty("专家组长") private Integer specialistGroupLeader; @ApiModelProperty("创建人") private String createdUser; @ApiModelProperty("创建时间") private Long createdTime; @ApiModelProperty("修改人") private String updatedUser; @ApiModelProperty("修改时间") private Long updatedTime; @ApiModelProperty("描述") private String description; @ApiModelProperty("版本号") private Integer version; @ApiModelProperty("是否已经逻辑删除(0:未删除 1:已删除)") private Integer deleted; }
fa2cfe37efe23e275b97034051915a4437cb26da
eb71f3f8d0a0bd25b61261a317642603a5a805c1
/src/main/java/com/intellivat/domain/invoice/taxationresult/TaxationResult.java
a54ce027e5c8c4327970bcac3b654d8d03c0bea1
[]
no_license
drosowski/webviz
6285672215aee8cdc09eed1555866749564f442c
04d07d9aaf87413c6dbace69c1bdd796e1b5d2bb
refs/heads/master
2020-03-28T14:25:10.487190
2018-09-12T13:30:27
2018-09-12T13:30:27
148,485,211
0
0
null
null
null
null
UTF-8
Java
false
false
1,898
java
package com.intellivat.domain.invoice.taxationresult; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.intellivat.domain.invoice.schema.PreTaxInvoice; import com.intellivat.domain.masterdata.SnapshotToken; import com.intellivat.domain.message.Message; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; @JsonTypeInfo( use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class" ) public class TaxationResult { private final List<Message> messages; private final PreTaxInvoice preTaxInvoice; private final List<PostTaxInvoice> postTaxInvoices; private final SnapshotToken snapshotToken; @JsonCreator public TaxationResult( @JsonProperty( "preTaxInvoice" ) PreTaxInvoice preTaxInvoice, @JsonProperty( "postTaxInvoices" ) List<PostTaxInvoice> postTaxInvoices, @JsonProperty( "messages" ) List<Message> messages, @JsonProperty( "snapshotToken" ) SnapshotToken snapshotToken ) { this.preTaxInvoice = preTaxInvoice; this.postTaxInvoices = postTaxInvoices; this.messages = messages.stream().sorted( Message.MESSAGE_COMPARATOR ).collect( Collectors.toList() ); this.snapshotToken = snapshotToken; } @JsonTypeInfo( use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class" ) public Optional<PreTaxInvoice> getPreTaxInvoice() { return Optional.ofNullable( preTaxInvoice ); } public List<PostTaxInvoice> getPostTaxInvoices() { return postTaxInvoices; } public SnapshotToken getSnapshotToken() { return snapshotToken; } public List<Message> getMessages() { return messages; } }
a3d05773ad574a95dec16b6b9b68e5eeeb453d93
895b2680c38941aef87ad9a97d0de6588ceba314
/esnManagement/src/main/java/com/emt/model/SanityScenarioInfo.java
097d4a0b8f549dc10e95460b56438df5c016bc2c
[]
no_license
rohipedia/ESN-Merged-Code
303c018f09ed40ef35a1a0a119992aa07321b2a9
c279ebbc657d8efc4e42e535dd273d6a0c720a90
refs/heads/master
2020-03-22T03:19:47.195339
2018-08-06T15:45:48
2018-08-06T15:45:48
139,425,584
0
0
null
null
null
null
UTF-8
Java
false
false
2,684
java
package com.emt.model; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.Lob; import javax.persistence.OneToOne; import javax.persistence.Table; @Entity @Table(name = "tblSanityScenarioInfo") public class SanityScenarioInfo { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int sanityScenarioId; @Column(length = 100) private String scenario; @Lob @Column private String scenarioDetails; @Column(length = 50) private String assignee; @Column(length = 10) private String status; @Column(length = 1000)//journeyId : (nVarchar(1000)) private String journeyId; private Long transactionNo; @Column(length = 1000) private String comments; @OneToOne(cascade = CascadeType.ALL) @JoinColumn(name = "environment") private EnvInfo environment; // private String environment; public EnvInfo getEnvironment() { return environment; } public void setEnvironment(EnvInfo environment) { this.environment = environment; } public int getSanityScenarioId() { return sanityScenarioId; } public void setSanityScenarioId(int sanityScenarioId) { this.sanityScenarioId = sanityScenarioId; } public String getScenario() { return scenario; } public void setScenario(String scenario) { this.scenario = scenario; } public String getScenarioDetails() { return scenarioDetails; } public void setScenarioDetails(String scenarioDetails) { this.scenarioDetails = scenarioDetails; } public String getAssignee() { return assignee; } public void setAssignee(String assignee) { this.assignee = assignee; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public String getJourneyId() { return journeyId; } public void setJourneyId(String journeyId) { this.journeyId = journeyId; } public Long getTransactionNo() { return transactionNo; } public void setTransactionNo(Long transactionNo) { this.transactionNo = transactionNo; } public String getComments() { return comments; } public void setComments(String comments) { this.comments = comments; } @Override public String toString() { return "SanityScenarioInfo [sanityScenarioId=" + sanityScenarioId + ", scenario=" + scenario + ", scenario_details=" + scenarioDetails + ", assignee=" + assignee + ", status=" + status + ", journeyId=" + journeyId + ", transactionNo=" + transactionNo + ", comments=" + comments + "]"; } }
a7ec762feab8cda0a1236a9bfacf9f6c5bec0c65
a4c51b6edd7612829b40bca736ff28b6f5f91d56
/src/com/caorenhao/wbcrawler/conf/ConfigSingleton.java
039cb6aa60c5c4e315e79387246731edd467ed3f
[]
no_license
caorenhao/SinaWeiboCrawler
de3a91d165b8a2b0038fd00528fdcf5a7cb4cc54
7d9bc5ecad40480d7e61099ae0f10ea0cf58d29c
refs/heads/master
2020-12-07T02:19:28.687369
2015-05-27T02:37:20
2015-05-27T02:37:20
35,233,506
8
9
null
null
null
null
UTF-8
Java
false
false
3,727
java
package com.caorenhao.wbcrawler.conf; import java.util.HashMap; import java.util.Map; import org.apache.commons.logging.Log; import com.caorenhao.util.LoggerConfig; import com.caorenhao.util.SourceCodeSyncUtil; /** * 获得各个配置文件的示例 * @author vernkin * */ public final class ConfigSingleton { private static ConfigSingleton instance = new ConfigSingleton(); public static ConfigSingleton getInstance() { return instance; } public static WBCrawlerConfig getWBCrawlerConfig() throws Exception { return instance.getConfig(WBCrawlerConfig.class); } /** 配置单元 */ private static class ConfigUnit { public JDomConfig config; public Class<? extends JDomConfig> configClass; /** 配置文件上一次长度 */ private long lastLength; /** 配置文件上一次校验码 */ private String lastChecknum; /** * 初始化配置文件 * @param clazz 第一次调用不能为空,第二次以后为空使用上一次记录 */ public JDomConfig initConfig(Class<? extends JDomConfig> clazz) throws Exception { if(clazz == null) { clazz = configClass; } else { configClass = clazz; } config = clazz.newInstance(); config.loadDefaultConfigFile(); lastLength = config.getConfigFile().length(); lastChecknum = SourceCodeSyncUtil.getMD5(config.getConfigFile()); return config; } /** * 是否配置文件已经改变 * @return */ public boolean isConfigChanged() throws Exception { if(config == null) return false; if( config.getConfigFile().length() != lastLength ) return true; String curChecksum = SourceCodeSyncUtil.getMD5(config.getConfigFile()); return (lastChecknum == null || lastChecknum.equals(curChecksum) ); } /** * 配置文件改变的时候触发监听器 */ public void onConfigChange() throws Exception { initConfig(null); } public String toString() { StringBuilder sb = new StringBuilder(256); if(configClass == null) { sb.append("[Empty Config]"); } else { sb.append("Config[").append(configClass.getCanonicalName()). append(", File: ").append(config.getConfigFile()).append("]"); } return sb.toString(); } } private final Log LOGGER = LoggerConfig.getLog(getClass()); /** * 配置类map */ private Map<Class<? extends JDomConfig>, ConfigUnit> configMap = new HashMap<Class<? extends JDomConfig>, ConfigUnit>(); private ConfigSingleton() { } /** * 获取配置文件 * @param clazz 配置文件类 * @return clazz指定的配置文件 * @throws Exception */ @SuppressWarnings("unchecked") public synchronized <T extends JDomConfig> T getConfig(Class<T> clazz) throws Exception { ConfigUnit cu = getConfigUnit(clazz); if(cu.config == null) { LOGGER.info("Load Configuration " + clazz.getCanonicalName()); return (T)cu.initConfig(clazz); } return (T)cu.config; } /** * 尝试获取新的配置文件 * @param clazz 配置文件类 * @return 如果配置文件没有修改, 返回null。否则新的对象 * @throws Exception */ @SuppressWarnings("unchecked") public synchronized <T extends JDomConfig> T getNewConfig(Class<T> clazz) throws Exception { ConfigUnit cu = getConfigUnit(clazz); if(cu.config == null) { return null; } if(cu.isConfigChanged() == false) return null; LOGGER.info("Load Configuration Latest " + clazz.getCanonicalName()); cu.onConfigChange(); return (T)cu.config; } private synchronized ConfigUnit getConfigUnit(Class<? extends JDomConfig> clazz) { ConfigUnit ret = configMap.get(clazz); if( ret == null ) { ret = new ConfigUnit(); configMap.put(clazz, ret); } return ret; } }
ae7bc6576bb377d58e5b8550df91f1d7e2f51aee
6e3ee03c08b69890739b1de38e3dc3a79e38c5e2
/src/fr/groupeultima/org/Commands/GM.java
5513e2c31cfef2359758cd1a2da10d9f6de35e98
[]
no_license
LIVENVARANE/UltimaUtil
2b23a5959773721670edcd35470a2579cfa6d790
e2ca9a950417b55f302e5cdb547ba47f3bc2ec20
refs/heads/master
2023-02-06T03:12:41.965682
2020-12-26T21:47:31
2020-12-26T21:47:31
324,640,029
0
0
null
null
null
null
UTF-8
Java
false
false
5,027
java
package fr.groupeultima.org.Commands; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.GameMode; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; public class GM implements CommandExecutor { public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(label.equalsIgnoreCase("gmc")) { if(sender instanceof Player) { if(args.length == 0) { ((Player) sender).getPlayer().setGameMode(GameMode.CREATIVE); sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.GREEN + "Switching to creative mode."); } else if(args.length == 1) { Player player = Bukkit.getPlayerExact(args[0]); if(player != null) { player.setGameMode(GameMode.CREATIVE); sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.GREEN + "Switching player \"" + ChatColor.BOLD + "" + args[0] + ChatColor.RESET + "" + ChatColor.GREEN + "\" to creative mode."); } else { sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.RED + "Player \"" + args[0] + "\" is not online. Please use a connected player name."); } } else { sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.RED + "Too many arguments. Please use \"/" + label + " [player/nothing]\"."); } } else { sender.sendMessage(ChatColor.RED + "[UltimaUtil] Console cannot execute \"/" + label + "\" command."); } } else if(label.equalsIgnoreCase("gms")) { if(sender instanceof Player) { if(args.length == 0) { ((Player) sender).getPlayer().setGameMode(GameMode.SURVIVAL); sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.GREEN + "Switching to survival mode."); } else if(args.length == 1) { Player player = Bukkit.getPlayerExact(args[0]); if(player != null) { player.setGameMode(GameMode.SURVIVAL); sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.GREEN + "Switching player \"" + ChatColor.BOLD + "" + args[0] + ChatColor.RESET + "" + ChatColor.GREEN + "\" to survival mode."); } else { sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.RED + "Player \"" + args[0] + "\" is not online. Please use a connected player name."); } } else { sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.RED + "Too many arguments. Please use \"/" + label + " [player/nothing]\"."); } } else { sender.sendMessage(ChatColor.RED + "[UltimaUtil] Console cannot execute \"/" + label + "\" command."); } } else if(label.equalsIgnoreCase("gma")) { if(sender instanceof Player) { if(args.length == 0) { ((Player) sender).getPlayer().setGameMode(GameMode.ADVENTURE); sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.GREEN + "Switching to adventure mode."); } else if(args.length == 1) { Player player = Bukkit.getPlayerExact(args[0]); if(player != null) { player.setGameMode(GameMode.ADVENTURE); sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.GREEN + "Switching player \"" + ChatColor.BOLD + "" + args[0] + ChatColor.RESET + "" + ChatColor.GREEN + "\" to adventure mode."); } else { sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.RED + "Player \"" + args[0] + "\" is not online. Please use a connected player name."); } } else { sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.RED + "Too many arguments. Please use \"/" + label + " [player/nothing]\"."); } } else { sender.sendMessage(ChatColor.RED + "[UltimaUtil] Console cannot execute \"/" + label + "\" command."); } } else if(label.equalsIgnoreCase("gmsp")) { if(sender instanceof Player) { if(args.length == 0) { ((Player) sender).getPlayer().setGameMode(GameMode.SPECTATOR); sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.GREEN + "Switching to spectator mode."); } else if(args.length == 1) { Player player = Bukkit.getPlayerExact(args[0]); if(player != null) { player.setGameMode(GameMode.SPECTATOR); sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.GREEN + "Switching player \"" + ChatColor.BOLD + "" + args[0] + ChatColor.RESET + "" + ChatColor.GREEN + "\" to spectator mode."); } else { sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.RED + "Player \"" + args[0] + "\" is not online. Please use a connected player name."); } } else { sender.sendMessage(ChatColor.DARK_AQUA + "[UltimaUtil] " + ChatColor.RED + "Too many arguments. Please use \"/" + label + " [player/nothing]\"."); } } else { sender.sendMessage(ChatColor.RED + "[UltimaUtil] Console cannot execute \"/" + label + "\" command."); } } return false; } }
f01da6470c40437139f6814c8fd9830a183930ae
4cad035d066a4a6fa50aad8b2a899eba37b00c8b
/src/main/java/co/edu/usbcali/viajes/app/service/TipoIdentificacionService.java
280a7b3516b63512ba0261159acf53b341ec2bf7
[]
no_license
Eskelgun/Empresariales
bc43a372c3c55dfb3209105c6026155a23984d33
d53dbeb1bfb3c74aa20eec20ec85c6bf954cc1fb
refs/heads/main
2023-04-12T12:00:53.195490
2021-05-15T14:31:40
2021-05-15T14:31:40
359,228,815
0
0
null
null
null
null
UTF-8
Java
false
false
1,851
java
package co.edu.usbcali.viajes.app.service; import java.util.List; import java.util.Optional; import co.edu.usbcali.viajes.app.domain.TipoIdentificacion; public interface TipoIdentificacionService { /* METODOS */ /* CONSULTAR */ /** * Permite ver toda la lista de los tipo de identificación. * * @return List<TipoIdentificacion> * @throws Exception */ public List<TipoIdentificacion> consultarTipoIdentificaciones() throws Exception; /** * Permite ver toda la lista de los tipo de identificación ordenados por nombre. * * @return List<TipoIdentificacion>s * @throws Exception */ public List<TipoIdentificacion> consultarTipoIdentificacionesOrdByNombre() throws Exception; /* BUSCAR */ /** * Busca un único tipo identificacion. * * @param IdTipoIdentificacion * @return Optional<TipoIdentificacion> * @throws Exception */ public Optional<TipoIdentificacion> buscarTipoIdentificacionPorId(int IdTipoIdentificacion) throws Exception; /* GUARDAR */ /** * Guardar un tipo de identificacion * * @param tipoIdenti * @throws Exception */ public void guardarTipoIdentificacion(TipoIdentificacion tipoIdenti) throws Exception; /* ELIMINAR */ /** * Elimina un tipo de identificacion * * @param tipoIdenti * @throws Exception */ public void eliminarTipoIdentificacion(TipoIdentificacion tipoIdenti) throws Exception; /* ACTUALIZAR */ /** * Actualiza los datos de un tipo de identificación * * @param tipoIdenti * @throws Exception */ public void actualizarTipoIdentificacion(TipoIdentificacion tipoIdenti) throws Exception; /* QUERY METODOS */ /** * Permite ver toda la lista de los codigos iguales. * * @param codigo * @return List<TipoIdentificacion> */ public List<TipoIdentificacion> findByCodigo(String codigo) throws Exception; }// END
10474f9b9a7b06b154cf425664c683aa5f7e9da0
efc20a74919065186945e0aa04abc140cdc38d85
/dream-spark/src/main/java/com/sdw/dream/spark/App.java
701dd9178a26f69f22e626b9e42b89dfcada6be3
[]
no_license
shiyufeng03/dream
e433340d92c03c41fbe4c9aee23405bc36e7a1c0
944154795d3bef64481cbcdb42949eb359ab887e
refs/heads/master
2020-04-06T07:00:40.310161
2016-09-02T10:03:30
2016-09-02T10:03:30
57,206,499
0
0
null
null
null
null
UTF-8
Java
false
false
182
java
package com.sdw.dream.spark; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
35e9077636b89103ad6ee68b82269b02d4d89bf2
3e9dd3298b85ab9b081117eb9c88032715ce13cf
/focWebServer/src/com/foc/web/modules/fab/FabTableDefinition_Form.java
89ff4d7fd2cfd065d20441fff5f3237812de8142
[ "Apache-2.0" ]
permissive
focframework/framework
d0a151755f14a04b4a72a562b22f6bad83fe8836
6d07b694e7713d27b95f0ca69e2ec3c056969054
refs/heads/master
2020-05-30T16:48:32.505610
2019-05-30T07:38:36
2019-05-30T07:38:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
942
java
package com.foc.web.modules.fab; import com.fab.FabStatic; import com.fab.model.table.TableDefinition; import com.foc.Globals; import com.foc.desc.FocDesc; import com.foc.vaadin.gui.layouts.validationLayout.FVValidationLayout; import com.foc.vaadin.gui.xmlForm.FocXMLLayout; @SuppressWarnings("serial") public class FabTableDefinition_Form extends FocXMLLayout { @Override public boolean validationCheckData(FVValidationLayout validationLayout) { boolean validation = super.validationCheckData(validationLayout); TableDefinition tableDef = (TableDefinition) getFocData(); if(tableDef != null){ tableDef.adjustIFocDescDeclaration(); FocDesc focDescToAdapt = Globals.getApp().getFocDescByName(tableDef.getName()); if(focDescToAdapt != null){ focDescToAdapt.adaptTableAlone(); } } FabStatic.refreshAllTableFieldChoices(); return validation; } }
3949a514b4598bcfaa0cc00031bf9c393fb3d482
ea3e6dc9bdde50671b0464056239c73a3c51d095
/src/com/company/state/abuse/RunningState.java
8c2a5e524d65f4643a20c289bd12758ad1c7903b
[]
no_license
Anatame/DesignPatternImplementations
1b3082fd5cf54764cb2e1f1569abe93b2408ead1
2acf01437cdc165c9200bee8a11ace6e0e4a475f
refs/heads/master
2023-08-05T11:28:38.775452
2021-09-30T09:06:34
2021-09-30T09:06:34
411,995,183
2
0
null
null
null
null
UTF-8
Java
false
false
353
java
package com.company.state.abuse; public class RunningState implements State{ private Stopwatch stopwatch; public RunningState(Stopwatch stopwatch) { this.stopwatch = stopwatch; } @Override public void clicK() { stopwatch.setCurrentState(new StoppedState(stopwatch)); System.out.println("Stopped"); } }
dfa390e2e599406ec5df6c3491e01b9bfeb4a726
411b504ecf93677be1fe8b1e7b88d2d0156a0d51
/src/org/llava/impl/runtime/CodeLambda.java
7e6eb7a0fb882f1f11ea153e9de208b6097bd796
[ "CC-BY-4.0", "CC-BY-2.0" ]
permissive
alandipert/llava
36c86245209bba35641b84a3f29e4637c1d9833b
c15b9503d8494d33e9cd3b55dae073e9277d19ab
refs/heads/master
2016-09-05T20:04:43.447057
2015-07-01T05:04:29
2015-07-01T05:04:29
38,349,774
0
0
null
null
null
null
UTF-8
Java
false
false
1,439
java
/* Copyright (c) 1997 - 2004 Harold Carr This work is licensed under the Creative Commons Attribution License. To view a copy of this license, visit http://creativecommons.org/licenses/by/2.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. ------------------------------------------------------------------------------ */ /** * Created : 1999 Dec 23 (Thu) 18:22:20 by Harold Carr. * Last Modified : 2004 Dec 08 (Wed) 10:25:35 by Harold Carr. */ package org.llava.impl.runtime; import org.llava.F; import org.llava.runtime.ActivationFrame; import org.llava.runtime.Engine; public class CodeLambda extends Code { private int numRequired; private boolean isDotted; private Code codeSequence; public CodeLambda () { } private CodeLambda (Object source, int numRequired, boolean isDotted, Code codeSequence) { super(source); this.numRequired = numRequired; this.isDotted = isDotted; this.codeSequence = codeSequence; } public CodeLambda newCodeLambda (Object source, int numRequired, boolean isDotted, Code codeSequence) { return new CodeLambda(source, numRequired, isDotted, codeSequence); } public Object run (ActivationFrame frame, Engine engine) { return F.newLambda(numRequired, isDotted, codeSequence, frame); } } // End of file.
[ "empty" ]
empty
9dd5fb4dc922c4da0556c24e2d1cee309172f946
8df0553905ff0503e705c29e37a7fe588e7e332d
/hljweblibrary/src/main/java/com/example/suncloud/hljweblibrary/views/widgets/CommonWebBar.java
56d86a49d92769dd88435b1bd132f1344bf069e4
[]
no_license
Catfeeds/myWorkspace
9cd0af10597af9d28f8d8189ca0245894d270feb
3c0932e626e72301613334fd19c5432494f198d2
refs/heads/master
2020-04-11T12:19:27.141598
2018-04-04T08:14:31
2018-04-04T08:14:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,769
java
package com.example.suncloud.hljweblibrary.views.widgets; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.widget.TextView; import com.example.suncloud.hljweblibrary.R; /** * Created by wangtao on 2017/1/19. */ public class CommonWebBar extends WebBar { private View btnShare; private TextView tvTitle; private TextView tvCloseHint; private int closeEnableCount; private WebViewBarInterface webViewBarInterface; private WebViewBarClickListener clickListener; private TextView tvOkText; public CommonWebBar(Context context) { super(context); } public CommonWebBar(Context context, AttributeSet attrs) { super(context, attrs); } public CommonWebBar(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } @Override public void initLayout() { View view = inflate(getContext(), R.layout.web_bar_common___web, this); btnShare = view.findViewById(R.id.btn_share); tvTitle = (TextView) view.findViewById(R.id.tv_title); tvOkText = (TextView) view.findViewById(R.id.tv_ok_text); tvCloseHint = (TextView) view.findViewById(R.id.tv_close_hint); view.findViewById(R.id.back_layout) .setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { if (clickListener != null) { clickListener.onBackPressed(); } } }); btnShare.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { if (clickListener != null) { clickListener.onSharePressed(); } } }); tvOkText.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { if (clickListener != null){ clickListener.onOkButtonPressed(); } } }); } @Override public WebViewBarInterface getInterface() { if (webViewBarInterface == null) { webViewBarInterface = new WebViewBarInterface() { @Override public void setTitle(String title) { tvTitle.setText(title); } @Override public void setCloseEnable(boolean enable) { closeEnableCount++; tvCloseHint.setVisibility(enable && closeEnableCount > 1 ? VISIBLE : GONE); } @Override public void setShareEnable(boolean enable) { btnShare.setVisibility(enable ? VISIBLE : GONE); } @Override public void setOkButtonEnable( boolean enable, int textColor, String text, int textSize) { if (enable) { tvOkText.setVisibility(VISIBLE); tvOkText.setText(text); tvOkText.setTextColor(textColor); tvOkText.setTextSize(textSize); btnShare.setVisibility(GONE); }else { tvOkText.setVisibility(GONE); } } }; } return webViewBarInterface; } @Override public void setBarClickListener(WebViewBarClickListener clickListener) { this.clickListener = clickListener; } }
23031f45bf202c07bf1cfd39bd4a670c98dc5a7e
4699df8f9a56ec0b09e36d6089761a6d8c8ae147
/api/bundles/org.jboss.tools.rsp.api/src/main/java/org/jboss/tools/rsp/api/dao/DeployableReference.java
ec116745e06f0a1373018d1132bbcd05b7d218f2
[]
no_license
adietish/rsp-server
7286e042490100b5fad8accc4962b67f44332e96
38eb5fb0c445b96ae2468041b12eac6079bddc2c
refs/heads/master
2020-03-27T08:34:51.490734
2018-12-14T12:20:36
2018-12-14T12:20:36
146,269,085
0
0
null
2019-05-14T15:27:42
2018-08-27T08:27:43
Java
UTF-8
Java
false
false
1,594
java
/******************************************************************************* * Copyright (c) 2018 Red Hat, Inc. Distributed under license by Red Hat, Inc. * All rights reserved. This program is made available under the terms of the * Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html * * Contributors: Red Hat, Inc. ******************************************************************************/ package org.jboss.tools.rsp.api.dao; import org.jboss.tools.rsp.api.dao.util.EqualsUtility; public class DeployableReference { private String label; private String path; public DeployableReference() { } public DeployableReference(String label, String path) { this.label = label; this.path = path; } public String getLabel() { return label; } public void setLabel(String label) { this.label = label; } public String getPath() { return path; } public void setPath(String path) { this.path = path; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((label == null) ? 0 : label.hashCode()); result = prime * result + ((path == null) ? 0 : path.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; DeployableReference other = (DeployableReference) obj; return EqualsUtility.areEqual(label, other.label) && EqualsUtility.areEqual(path, other.path); } }
9bac8ca20075ce5b0aae8b0b3ee2f84dd6ccb3d5
aa79ad754da27ce2a99cccb96950cf71835cc682
/gmq-example/src/main/java/com/gome/rocketmq/dao/base/BaseDao.java
1aca80d05b42818dbca23217dfcaea13045e43a2
[ "Apache-2.0" ]
permissive
wang-shun/cloudmq
986d2a9d0db69bf0d4017c6da775223026938913
337e3bbc59932c54c0a4a5a835ce28111074a9d7
refs/heads/master
2020-04-02T06:42:30.415292
2017-02-21T08:11:21
2017-02-21T08:11:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,473
java
/* * Copyright (c) 2015 wish.com All rights reserved. * 本软件源代码版权归----所有,未经许可不得任意复制与传播. */ package com.gome.rocketmq.dao.base; import java.io.Serializable; import java.util.List; /** * dao基类<实体,主键> * @author ttx * @since 2015-06-16 * @param <T> 实体 * @param <KEY> 主键 */ public interface BaseDao<T,KEY extends Serializable> { /** * 添加对象 * @param t * @return 影响条数 */ @SuppressWarnings("unchecked") int insertEntry(T... t); /** * 添加对象并设置ID到对象上(需开启事务) * @param t * @return 影响条数 */ int insertEntryCreateId(T t); /** * 删除对象,主键 * @param key * @return 影响条数 */ @SuppressWarnings("unchecked") int deleteByKey(KEY... key); /** * 删除对象,条件 * @param condtion * @return 影响条数 */ int deleteByKey(T condtion); /** * 更新对象,条件主键ID * @param t * @return 影响条数 */ int updateByKey(T t); /** * 查询对象,条件主键 * @param key * @return */ T selectEntry(KEY key); /** * 查询对象,条件主键数组 * @param key * @return */ @SuppressWarnings("unchecked") List<T> selectEntryList(KEY... key); /** * 查询对象,只要不为NULL与空则为条件 * @param t * @return */ List<T> selectEntryList(T t); /** * 查询对象总数 * @param t * @return */ Integer selectEntryListCount(T t); }
d73c057e1b27b2794487121d0488d6a2c68a01b9
a0b19da2c0dc6fe016c1d73f7c13a44fd61c2f9f
/ydqj/src/test/java/com/dk/mp/ydqj/ExampleUnitTest.java
c63355821501c96320faf9a5ac95d8c28bb62f48
[]
no_license
lulingyu/Czwx
efe6b7b467e99a8af7796e9c24ccde55b533d0ac
9f4cad2d1233313793bb761ba95eaf9488716323
refs/heads/master
2021-01-23T18:44:20.385625
2017-09-14T09:15:35
2017-09-14T09:15:42
102,803,920
0
1
null
null
null
null
UTF-8
Java
false
false
392
java
package com.dk.mp.ydqj; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "github.163.yll" ]
github.163.yll
d0d54111f9b5291f37ef6eb441d354fdccb7eb67
796d44ee259fa35f5a9a5e96c24cfd2003cc07bf
/src/com/kamilu/kompozytor/entities/Song.java
8d7ed2368a79d3efbfaf1d085d9d5b86421c7db1
[]
no_license
Posejdon23/kompozytor
be6e3408ef5b1accc3c33527f8adc9cc32c2dc52
4892d957a2fecd864f39df49b05a50a32e21eaf0
refs/heads/master
2016-09-05T09:05:17.847873
2014-10-05T10:14:16
2014-10-05T10:16:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,640
java
package com.kamilu.kompozytor.entities; import java.util.ArrayList; import java.util.List; import com.google.appengine.api.datastore.Entity; import com.google.appengine.api.datastore.Key; import com.google.common.collect.ImmutableMap; import com.kamilu.kompozytor.DataStoreWrapper; @SuppressWarnings("serial") public class Song implements MusicObject { public static final String KIND = "Song"; public static final String NAME = "name"; public static final String AUTHOR = "author"; public static final String KEY = "Key"; private final Key key; private String name; private String author; private List<Voice> voices; private boolean markToRemove = false; public static final ImmutableMap<String, Class<?>> PROPERTIES = new ImmutableMap.Builder<String, Class<?>>() .put(KEY, Key.class)// .put(NAME, String.class)// .put(AUTHOR, String.class)// .build(); public Song(Entity song) { voices = new ArrayList<Voice>(); name = (String) song.getProperty(NAME); author = (String) song.getProperty(AUTHOR); markToRemove = (boolean) song.getProperty(TO_REMOVE); key = song.getKey(); if (!markToRemove) { loadVoices(); } } private void loadVoices() { List<Entity> voiceEntities = DataStoreWrapper.getChildren(Voice.KIND, Voice.SONG_ID, getKey()); for (Entity voiceEntity : voiceEntities) { Voice voice = new Voice(voiceEntity); if (!voice.isMarkedToRemove()) { voices.add(voice); } } } public void persist() { if (!markToRemove) { Entity song = new Entity(key); song.setProperty(NAME, name); song.setUnindexedProperty(Song.AUTHOR, author); song.setUnindexedProperty(TO_REMOVE, markToRemove); DataStoreWrapper.save(song); } else { DataStoreWrapper.delete(key); } for (Voice voice : voices) { voice.persist(); } } public boolean isMarkedToRemove() { return markToRemove; } public void markToRemove() { for (Voice voice : voices) { voice.markToRemove(); } markToRemove = true; Entity song = new Entity(key); song.setUnindexedProperty(TO_REMOVE, true); DataStoreWrapper.save(song); } public List<Voice> getVoices() { return voices; } public int getTactCount(int voiceIndex) { return voices.get(0).getTacts().size(); } public Voice getVoice(int index) { return voices.get(index); } public Key getKey() { return key; } public void addVoice(Voice voice) { voices.add(voice); } public String getName() { return name; } public String getAuthor() { return author; } public void setName(String name) { this.name = name; } public void setAuthor(String author) { this.author = author; } }
[ "Kamil@Komputer" ]
Kamil@Komputer
f922834a5688fa6b5bbbeeb70c1f7fa05a516ff2
696739ad3062b6db0560473c282a0b6c7a7918ab
/floating-action-button/app/src/androidTest/java/com/lakeel/altla/sample/floatingactionbutton/ApplicationTest.java
3e07722e20af585a9726794e68fc70d0ce30ebaa
[ "MIT" ]
permissive
lakeel-altla/samples-ui-android
c5832808ba2cf02d6fdbf23ec260a79da609198e
cc2632e90a4e361fa35596854527de4fe96a1815
refs/heads/master
2021-01-11T05:59:07.729007
2016-10-26T13:15:33
2016-10-26T13:15:33
72,004,133
0
0
null
null
null
null
UTF-8
Java
false
false
376
java
package com.lakeel.altla.sample.floatingactionbutton; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(Application.class); } }
b630ee3a6fd11269d30914941575f367dce4914e
aee13408c460e44f5b37f37f789b2fd587ef1500
/awsapi/src/com/cloud/bridge/service/core/s3/S3CreateBucketRequest.java
fb4947432939143bfaaa60df69d1791d83640aa6
[ "Apache-2.0" ]
permissive
claudiubelu/CloudStack
a6f7441cc0bcf8b9bc3ecb28a011d5e04a096d64
fab0ff7994a817992f7bc401030bc2bcfcfa7771
refs/heads/master
2021-05-26T22:19:00.135963
2012-08-06T12:32:51
2012-08-06T12:32:51
5,601,566
1
0
null
null
null
null
UTF-8
Java
false
false
1,689
java
/* * Copyright (C) 2011 Citrix Systems, Inc. All rights reserved. * * 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 writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.cloud.bridge.service.core.s3; /** * @author Kelven Yang */ public class S3CreateBucketRequest extends S3Request { protected String bucketName; protected S3CreateBucketConfiguration config; protected String cannedAccessPolicy; // -> REST only sets an acl with a simple keyword protected S3AccessControlList acl; public S3CreateBucketRequest() { super(); } public String getBucketName() { return bucketName; } public void setBucketName(String bucketName) { this.bucketName = bucketName; } public S3CreateBucketConfiguration getConfig() { return config; } public void setConfig(S3CreateBucketConfiguration config) { this.config = config; } public String getCannedAccess() { return cannedAccessPolicy; } public void setCannedAccess(String cannedAccessPolicy) { this.cannedAccessPolicy = cannedAccessPolicy; } public S3AccessControlList getAcl() { return acl; } public void setAcl(S3AccessControlList acl) { this.acl = acl; } }
118df2d71a9d95903b5fdb7edbfa6b274608c54a
84d83afdf8c6351907c1f239409b66c329a3843a
/multicloud/src/main/java/de/uniulm/omi/cloudiator/sword/multicloud/service/IdScopedByClouds.java
065fa778f730320a70f99c927f86da7350bc44fe
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cloudiator/sword
0bf8f9b6ff768d652d2c04f43f24ee164bba92c6
caf27f38a43adc5be274c6199a55b83941cf347f
refs/heads/master
2022-07-23T19:29:39.632135
2020-01-13T12:56:50
2020-01-13T12:56:50
27,387,842
2
3
Apache-2.0
2022-07-06T20:01:49
2014-12-01T16:19:58
Java
UTF-8
Java
false
false
1,115
java
/* * Copyright (c) 2014-2018 University of Ulm * * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. 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 writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package de.uniulm.omi.cloudiator.sword.multicloud.service; /** * Created by daniel on 19.01.17. */ public class IdScopedByClouds { public static IdScopedByCloud from(String scopedId) { return new TildeDelimitedIdScopedByCloudImpl(scopedId); } public static IdScopedByCloud from(String id, String cloudId) { return new TildeDelimitedIdScopedByCloudImpl(id, cloudId); } }
bc824d993244941ccf6db16b42bd95ffaa5d2771
c42531b0f0e976dd2b11528504e349d5501249ae
/Corrstown/MHSystems/caldroid/build/generated/source/r/androidTest/debug/com/caldroid/R.java
f26d7d82d817b3e8398de0906adb8f1e7b4cc2d6
[ "MIT" ]
permissive
Karan-nassa/MHSystems
4267cc6939de7a0ff5577c22b88081595446e09e
a0e20f40864137fff91784687eaf68e5ec3f842c
refs/heads/master
2021-08-20T05:59:06.864788
2017-11-28T08:02:39
2017-11-28T08:02:39
112,189,266
0
0
null
null
null
null
UTF-8
Java
false
false
5,986
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.caldroid; public final class R { public static final class attr { public static final int state_date_disabled = 0x7f01000a; public static final int state_date_prev_next_month = 0x7f01000b; public static final int state_date_selected = 0x7f010009; public static final int state_date_today = 0x7f010008; public static final int styleCaldroidGridView = 0x7f010000; public static final int styleCaldroidLeftArrow = 0x7f010001; public static final int styleCaldroidMonthName = 0x7f010002; public static final int styleCaldroidNormalCell = 0x7f010003; public static final int styleCaldroidRightArrow = 0x7f010004; public static final int styleCaldroidSquareCell = 0x7f010005; public static final int styleCaldroidViewLayout = 0x7f010006; public static final int styleCaldroidWeekdayView = 0x7f010007; } public static final class color { public static final int caldroidDDDDDD = 0x7f060000; public static final int caldroid_333 = 0x7f060001; public static final int caldroid_555 = 0x7f060002; public static final int caldroid_black = 0x7f060003; public static final int caldroid_darker_gray = 0x7f060004; public static final int caldroid_gray = 0x7f060005; public static final int caldroid_holo_blue_dark = 0x7f060006; public static final int caldroid_holo_blue_light = 0x7f060007; public static final int caldroid_light_red = 0x7f060008; public static final int caldroid_lighter_gray = 0x7f060009; public static final int caldroid_middle_gray = 0x7f06000a; public static final int caldroid_sky_blue = 0x7f06000b; public static final int caldroid_transparent = 0x7f06000c; public static final int caldroid_white = 0x7f06000d; public static final int caldroidb6d6a5 = 0x7f06000e; public static final int cell_text_color = 0x7f060011; public static final int cell_text_color_dark = 0x7f060012; public static final int colorBDB6AE = 0x7f06000f; public static final int colorD6D0C9 = 0x7f060010; } public static final class drawable { public static final int calendar_next_arrow = 0x7f020000; public static final int calendar_prev_arrow = 0x7f020001; public static final int cell_bg = 0x7f020002; public static final int cell_bg_dark = 0x7f020003; public static final int disable_cell = 0x7f020004; public static final int disabled_cell_dark = 0x7f020005; public static final int enable_cell = 0x7f020006; public static final int left_arrow = 0x7f020007; public static final int red_border = 0x7f020008; public static final int red_border_dark = 0x7f020009; public static final int red_border_gray_bg = 0x7f02000a; public static final int right_arrow = 0x7f02000b; } public static final class id { public static final int calendar_gridview = 0x7f080008; public static final int calendar_left_arrow = 0x7f080001; public static final int calendar_month_year_textview = 0x7f080002; public static final int calendar_right_arrow = 0x7f080003; public static final int calendar_title_view = 0x7f080000; public static final int calendar_tv = 0x7f080009; public static final int ivTeeCalendar = 0x7f080005; public static final int llCalendarView = 0x7f080004; public static final int months_infinite_pager = 0x7f080007; public static final int weekday_gridview = 0x7f080006; } public static final class layout { public static final int calendar_view = 0x7f040000; public static final int date_grid_fragment = 0x7f040001; public static final int normal_date_cell = 0x7f040002; public static final int square_date_cell = 0x7f040003; public static final int weekday_textview = 0x7f040004; } public static final class mipmap { public static final int ic_date_calendar = 0x7f030000; public static final int ic_date_nextmonth = 0x7f030001; public static final int ic_date_prevmonth = 0x7f030002; } public static final class string { public static final int app_name = 0x7f070000; } public static final class style { public static final int AppBaseTheme = 0x7f050000; public static final int CaldroidDefault = 0x7f050001; public static final int CaldroidDefaultArrowButton = 0x7f050002; public static final int CaldroidDefaultCalendarViewLayout = 0x7f050003; public static final int CaldroidDefaultCell = 0x7f050004; public static final int CaldroidDefaultDark = 0x7f050005; public static final int CaldroidDefaultDarkCalendarViewLayout = 0x7f050006; public static final int CaldroidDefaultDarkCell = 0x7f050007; public static final int CaldroidDefaultDarkGridView = 0x7f050008; public static final int CaldroidDefaultDarkMonthName = 0x7f050009; public static final int CaldroidDefaultDarkNormalCell = 0x7f05000a; public static final int CaldroidDefaultDarkSquareCell = 0x7f05000b; public static final int CaldroidDefaultGridView = 0x7f05000c; public static final int CaldroidDefaultLeftButton = 0x7f05000d; public static final int CaldroidDefaultMonthName = 0x7f05000e; public static final int CaldroidDefaultNormalCell = 0x7f05000f; public static final int CaldroidDefaultRightButton = 0x7f050010; public static final int CaldroidDefaultSquareCell = 0x7f050011; public static final int CaldroidDefaultWeekday = 0x7f050012; public static final int CourseNavDividers = 0x7f050013; } public static final class styleable { public static final int[] Cell = { 0x01010098, 0x010100d4 }; public static final int Cell_android_background = 1; public static final int Cell_android_textColor = 0; public static final int[] DateState = { 0x7f010008, 0x7f010009, 0x7f01000a, 0x7f01000b }; public static final int DateState_state_date_disabled = 2; public static final int DateState_state_date_prev_next_month = 3; public static final int DateState_state_date_selected = 1; public static final int DateState_state_date_today = 0; } }
8fc863d824113b944de221222e564a30ab034147
3a89653807ab02c1e032a97ca962029fd0774b0b
/notify_1.0/notify/src/com/app/notify/base/CustomTitleBar.java
e536922361541a9c37229a4def8f8ebbee77a6c2
[]
no_license
peterdocter/Notify_in_Univisity
9110d22befe6a0905e0b55371a64b46a7f69b7cc
e55ba73b20329b81f516ae1a5ff0ccf56d5b435a
refs/heads/master
2020-03-25T03:46:49.050738
2016-01-09T16:09:19
2016-01-09T16:09:19
null
0
0
null
null
null
null
GB18030
Java
false
false
1,293
java
package com.app.notify.base; import com.example.notify.R; import android.app.Activity; import android.view.KeyEvent; import android.view.View; import android.view.Window; import android.widget.Button; import android.widget.ImageButton; import android.widget.TextView; import android.widget.Toast; import android.view.View.OnClickListener; public class CustomTitleBar { private static Activity mActivity; /** * @see [自定义标题栏] * @param activity * @param title */ public static void getTitleBar(Activity activity,String title) { mActivity = activity; activity.requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); activity.setContentView(R.layout.custom_title); activity.getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title); TextView textView = (TextView) activity.findViewById(R.id.head_center_text); textView.setText(title); ImageButton titleBackBtn = (ImageButton) activity.findViewById(R.id.head_TitleBackBtn); titleBackBtn.setOnClickListener(new OnClickListener() { public void onClick(View v) { Toast.makeText(mActivity, "clicked", Toast.LENGTH_LONG); KeyEvent newEvent = new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK); mActivity.onKeyDown(KeyEvent.KEYCODE_BACK, newEvent); } }); } }
1e666c55c0717091e6b33e2cca8eb95a8465c791
f5c356dced410fa1a7ffe247ff7aa33ffd29831a
/app/src/main/java/com/example/fjnu/fdd/ui/MainActivity.java
843cd5907616d56e7dc1432140d47e9481ca5089
[]
no_license
fdd54/UI-lab3
6c762d993c5f3c28c07d7010005c7a99b8dd5a6f
cd0720dd2627d467ada7f6c4bee155dbe9bd31cf
refs/heads/master
2020-05-05T04:50:13.109971
2019-04-05T18:08:01
2019-04-05T18:08:01
179,726,664
0
0
null
null
null
null
UTF-8
Java
false
false
5,098
java
package com.example.fjnu.fdd.ui; import android.support.v7.app.AppCompatActivity; import android.support.v7.app.AlertDialog; import android.os.Bundle; import android.view.View; import android.view.Window; import android.widget.AdapterView; import android.widget.Button; import android.widget.EditText; import android.widget.ListView; import android.widget.SimpleAdapter; import android.widget.ArrayAdapter; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.widget.TextView; import android.widget.Toast; public class MainActivity extends AppCompatActivity { private String[] names=new String[]{"Lion","Tiger","Monkey","Dog","Cat","Elephant"}; private String[] says=new String[]{"hello","hello","hello","hello","hello","hello"}; private int[] imgIds=new int[]{R.drawable.lion,R.drawable.tiger,R.drawable.monkey,R.drawable.dog,R.drawable.cat,R.drawable.elephant}; private String dialogNmae; private EditText et1; private EditText et2; private Button b1; private Button b2; private TextView tv1; private ListView lv1; private int count=0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.actionmode); setTitle("ActionMode"); lv1=(ListView)findViewById(R.id.action_list); ArrayList<String> list = new ArrayList<String>(); list.add("One"); list.add("Two"); list.add("Three"); list.add("Four"); list.add("Five"); ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, list); lv1.setAdapter(adapter); this.registerForContextMenu(lv1); // tv1=(TextView)findViewById(R.id.test_text); /* setTitle("Alter_dialog"); b1=(Button) findViewById(R.id.cancle); b2 = (Button) findViewById(R.id.sign_in); b1.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){ dismissDialog(R.layout.dialog); } }); b2.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){ } }); /* setTitle("SimpleAdapter"); List<Map<String, Object>> listitem = new ArrayList<Map<String, Object>>(); for (int i = 0; i < names.length; i++) { Map<String, Object> showitem = new HashMap<String, Object>(); showitem.put("touxiang", imgIds[i]); showitem.put("name", names[i]); showitem.put("syas", says[i]); listitem.add(showitem); } SimpleAdapter myAdapter = new SimpleAdapter(getApplicationContext(), listitem, R.layout.list_item, new String[]{"touxiang", "name", "says"}, new int[]{R.id.header, R.id.name,R.id.desc}); ListView listView = (ListView) findViewById(R.id.list_test); listView.setAdapter(myAdapter); // 为ListView的列表项的单击事件绑定事件监听器 listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { // 第position项被单击时激发该方法 @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { System.out.println(names[position] + "被单击了"); } });*/ } public boolean onCreateOptionsMenu(Menu menu) { //导入菜单布局 // getMenuInflater().inflate(R.menu.ui_menu, menu); getMenuInflater().inflate(R.menu.action_menu, menu); return true; } public boolean onOptionsItemSelected(MenuItem item) { /* //创建菜单项的点击事件 switch (item.getItemId()) { case R.id.small_size: tv1.setTextSize(10); break; case R.id.middle_size: tv1.setTextSize(16); break; case R.id.big_size: tv1.setTextSize(20); break; case R.id.commom_menu: Toast.makeText(this, "显示Toast", Toast.LENGTH_SHORT).show(); break; case R.id.red: tv1.setTextColor(this.getResources().getColor(R.color.deepred)); break; case R.id.black: tv1.setTextColor(this.getResources().getColor(R.color.black)); break; default: break; }*/ switch (item.getItemId()) { case R.id.choose: count++; setTitle(count+" Select"); break; default: break; } return super.onOptionsItemSelected(item); } }
a2eeba7d69586e0ecd3acfee45304bafdfdbd06d
b68a0e75da7c9a394c3cf4f933bae5d0cce4deeb
/src/ejercicioJDBC/DAO/Agencia.java
5af47493e26b02f41b3362a732d9bea8bf9ccd88
[]
no_license
amadsaed/Ejercicios-mentoria-Java-BD
6531d51e8bc57be1aabf7fbf8376465bbc141f19
28d5fcbfcf4f1b3b8980840cb9e82144a529e5ae
refs/heads/master
2022-07-14T20:51:43.597094
2020-05-14T19:26:40
2020-05-14T19:26:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,115
java
package ejercicioJDBC.DAO; public class Agencia { private String nombre; private int nro_telefono; private String direccion; private String nombre_ciudad; public Agencia() { } public Agencia(String nombre, int nro_telefono, String direccion, String nombre_ciudad) { this.nombre = nombre; this.nro_telefono = nro_telefono; this.direccion = direccion; this.nombre_ciudad = nombre_ciudad; } public String getNombre() { return nombre; } public void setNombre(String nombre) { this.nombre = nombre; } public int getNro_telefono() { return nro_telefono; } public void setNro_telefono(int nro_telefono) { this.nro_telefono = nro_telefono; } public String getDireccion() { return direccion; } public void setDireccion(String direccion) { this.direccion = direccion; } public String getNombre_ciudad() { return nombre_ciudad; } public void setNombre_ciudad(String nombre_ciudad) { this.nombre_ciudad = nombre_ciudad; } }
74a7a4703cef922a517d1075183a4d336e3a48a1
c27cc98263ead40ccc1d0c9fbfdfbea5d9aa51ee
/onlineShop/src/main/java/ru/kpfu/itis/repository/UserService.java
5aae427598a0725e95feec58703505bd62f42d44
[]
no_license
i1yassss/onlineShop-1.1
51b02820112731413152b66a0687a5bb0df3d30a
423e649d2e73949d62c62572f64fb2cd9c8da702
refs/heads/master
2016-09-13T04:55:53.892948
2016-05-10T20:01:39
2016-05-10T20:01:39
58,481,288
0
0
null
null
null
null
UTF-8
Java
false
false
409
java
package ru.kpfu.itis.repository; import ru.kpfu.itis.model.User; import java.util.List; public interface UserService { boolean authorize(String name, String password); boolean deleteUser(Integer id); boolean edit(User u); User find(Integer id); List<User> findAll(); User findByName(String name); List<User> findByNames(String name); int Add(User u); }
d58332ed457876ca6c76186ea8c112285f05c225
4335de7f0f425e76f9f96441be4b5645770bbf21
/test-triaging/src/test/java/com/track/triaging/ProjectDetails.java
53e2f3d95abd469afc6f96bebe02a70061418ffa
[]
no_license
tejadandigunta/myrepo
de83823b263a346cd4812f8325871b7b0c01daca
27a108d152ac14594c2372785cd1a135d9da82f3
refs/heads/master
2020-06-21T22:12:43.796136
2020-01-21T11:52:11
2020-01-21T11:52:11
197,563,892
0
0
null
null
null
null
UTF-8
Java
false
false
475
java
package com.track.triaging; import java.util.ArrayList; import java.util.List; public class ProjectDetails { private String projectName; List<TestFailure> tests = new ArrayList<>(); public void setProjectName(String projectName) { this.projectName = projectName; } public String getProjectName() { return projectName; } public void addTestFailure(TestFailure test) { tests.add(test); } public List<TestFailure> getTestFailures(){ return tests; } }
aa278a278500a5a634381a30f31fa20b6db05f75
a9a80ff221b8fc64590d6c79e7725d7af2398fc7
/src/New.java
527cc90f1643096ef1cc6796395b0c329258d704
[]
no_license
Farhanalegal/AlgDat2020
c1a34d12a2941419fb843ec045205275ec3aa0dd
873f33f75f0b26c266b186b4f8f520332f4331cd
refs/heads/master
2022-12-02T13:22:32.041986
2020-08-24T14:35:14
2020-08-24T14:35:14
289,936,255
0
0
null
null
null
null
UTF-8
Java
false
false
402
java
public class New { public static void main(String[] args) { System.out.println("Hallo World"); System.out.println("Teller til ti"); for (int i = 1; i <= 10; ++i) { System.out.println(i); } System.out.println("Andre teller til femti"); for (int i = 11; i <50;++i){ System.out.println("Andra teller og sier " + i); } } }
b4f062f044a63b8bdd8224da677c14c2410a1a01
4efde615e62aeb70ff81a0689f98264ed4283bfd
/src/main/java/external/simulator/parts/TappedTransformerElm.java
2ecde6ccd24cb97dededd6fbbdc5dab6c77c850b
[]
no_license
winsock/ic-sim-mc
166b0bbf349ec0567db12d4875ed2047aa33be72
95ad21dc5c425b5a6b594c48bd8a9d2de9ce494e
refs/heads/master
2020-06-01T15:14:56.961204
2015-07-20T00:07:07
2015-07-20T00:07:07
32,712,296
1
0
null
null
null
null
UTF-8
Java
false
false
8,258
java
package external.simulator.parts; import external.simulator.CircuitElm; import external.simulator.EditInfo; import me.querol.andrew.ic.Gui.CircuitGUI; import org.lwjgl.util.Point; import java.awt.*; import java.util.StringTokenizer; public class TappedTransformerElm extends CircuitElm { private final double[] current; private final double[] curcount; private final double[] a; private final double[] curSourceValue; private final double[] voltdiff; private double inductance; private double ratio; private Point[] ptEnds; private Point[] ptCoil; private Point[] ptCore; public TappedTransformerElm(int xx, int yy) { super(xx, yy); inductance = 4; ratio = 1; noDiagonal = true; current = new double[4]; curcount = new double[4]; voltdiff = new double[3]; curSourceValue = new double[3]; a = new double[9]; } public TappedTransformerElm(int xa, int ya, int xb, int yb, int f, StringTokenizer st) { super(xa, ya, xb, yb, f); inductance = new Double(st.nextToken()); ratio = new Double(st.nextToken()); current = new double[4]; curcount = new double[4]; current[0] = new Double(st.nextToken()); current[1] = new Double(st.nextToken()); try { current[2] = new Double(st.nextToken()); } catch (Exception ignored) { } voltdiff = new double[3]; curSourceValue = new double[3]; noDiagonal = true; a = new double[9]; } public int getDumpType() { return 169; } protected String dump() { return super.dump() + " " + inductance + " " + ratio + " " + current[0] + " " + current[1] + " " + current[2]; } public void draw(CircuitGUI.ClientCircuitGui g, int mouseX, int mouseY, float partialTicks) { int i; for (i = 0; i != 5; i++) { drawThickLine(g, ptEnds[i], ptCoil[i], getVoltageColor(volts[i])); } for (i = 0; i != 4; i++) { if (i == 1) continue; drawCoil(g, i > 1 ? -6 : 6, ptCoil[i], ptCoil[i + 1], volts[i], volts[i + 1], getPowerColor(current[i] * (volts[i] - volts[i + 1]))); } Color color = (needsHighlight() ? selectColor : lightGrayColor); for (i = 0; i != 4; i += 2) { drawThickLine(g, ptCore[i], ptCore[i + 1], color); } // calc current of tap wire current[3] = current[1] - current[2]; for (i = 0; i != 4; i++) curcount[i] = updateDotCount(current[i], curcount[i]); // primary dots drawDots(g, ptEnds[0], ptCoil[0], curcount[0]); drawDots(g, ptCoil[0], ptCoil[1], curcount[0]); drawDots(g, ptCoil[1], ptEnds[1], curcount[0]); // secondary dots drawDots(g, ptEnds[2], ptCoil[2], curcount[1]); drawDots(g, ptCoil[2], ptCoil[3], curcount[1]); drawDots(g, ptCoil[3], ptEnds[3], curcount[3]); drawDots(g, ptCoil[3], ptCoil[4], curcount[2]); drawDots(g, ptCoil[4], ptEnds[4], curcount[2]); drawPosts(g, color); setBbox(ptEnds[0], ptEnds[4], 0); } protected void setPoints() { super.setPoints(); int hs = 32; ptEnds = newPointArray(5); ptCoil = newPointArray(5); ptCore = newPointArray(4); ptEnds[0] = point1; ptEnds[2] = point2; interpPoint(point1, point2, ptEnds[1], 0, -hs * 2); interpPoint(point1, point2, ptEnds[3], 1, -hs); interpPoint(point1, point2, ptEnds[4], 1, -hs * 2); double ce = .5 - 12 / dn; double cd = .5 - 2 / dn; int i; interpPoint(ptEnds[0], ptEnds[2], ptCoil[0], ce); interpPoint(ptEnds[0], ptEnds[2], ptCoil[1], ce, -hs * 2); interpPoint(ptEnds[0], ptEnds[2], ptCoil[2], 1 - ce); interpPoint(ptEnds[0], ptEnds[2], ptCoil[3], 1 - ce, -hs); interpPoint(ptEnds[0], ptEnds[2], ptCoil[4], 1 - ce, -hs * 2); for (i = 0; i != 2; i++) { int b = -hs * i * 2; interpPoint(ptEnds[0], ptEnds[2], ptCore[i], cd, b); interpPoint(ptEnds[0], ptEnds[2], ptCore[i + 2], 1 - cd, b); } } protected Point getPost(int n) { return ptEnds[n]; } protected int getPostCount() { return 5; } public void reset() { current[0] = current[1] = volts[0] = volts[1] = volts[2] = volts[3] = curcount[0] = curcount[1] = 0; } public void stamp() { // equations for transformer: // v1 = L1 di1/dt + M1 di2/dt + M1 di3/dt // v2 = M1 di1/dt + L2 di2/dt + M2 di3/dt // v3 = M1 di1/dt + M2 di2/dt + L2 di3/dt // we invert that to get: // di1/dt = a1 v1 + a2 v2 + a3 v3 // di2/dt = a4 v1 + a5 v2 + a6 v3 // di3/dt = a7 v1 + a8 v2 + a9 v3 // integrate di1/dt using trapezoidal approx and we get: // i1(t2) = i1(t1) + dt/2 (i1(t1) + i1(t2)) // = i1(t1) + a1 dt/2 v1(t1)+a2 dt/2 v2(t1)+a3 dt/2 v3(t3) + // a1 dt/2 v1(t2)+a2 dt/2 v2(t2)+a3 dt/2 v3(t3) // the norton equivalent of this for i1 is: // a. current source, I = i1(t1) + a1 dt/2 v1(t1) + a2 dt/2 v2(t1) // + a3 dt/2 v3(t1) // b. resistor, G = a1 dt/2 // c. current source controlled by voltage v2, G = a2 dt/2 // d. current source controlled by voltage v3, G = a3 dt/2 // and similarly for i2 // // first winding goes from node 0 to 1, second is from 2 to 3 to 4 double l1 = inductance; // second winding is split in half, so each part has half the turns; // we square the 1/2 to divide by 4 double l2 = inductance * ratio * ratio / 4; double cc = .99; //double m1 = .999*Math.sqrt(l1*l2); // mutual inductance between two halves of the second winding // is equal to self-inductance of either half (slightly less // because the coupling is not perfect) //double m2 = .999*l2; // load pre-inverted matrix a[0] = (1 + cc) / (l1 * (1 + cc - 2 * cc * cc)); a[1] = a[2] = a[3] = a[6] = 2 * cc / ((2 * cc * cc - cc - 1) * inductance * ratio); a[4] = a[8] = -4 * (1 + cc) / ((2 * cc * cc - cc - 1) * l1 * ratio * ratio); a[5] = a[7] = 4 * cc / ((2 * cc * cc - cc - 1) * l1 * ratio * ratio); int i; for (i = 0; i != 9; i++) a[i] *= sim.getTimeStep() / 2; sim.stampConductance(nodes[0], nodes[1], a[0]); sim.stampVCCurrentSource(nodes[0], nodes[1], nodes[2], nodes[3], a[1]); sim.stampVCCurrentSource(nodes[0], nodes[1], nodes[3], nodes[4], a[2]); sim.stampVCCurrentSource(nodes[2], nodes[3], nodes[0], nodes[1], a[3]); sim.stampConductance(nodes[2], nodes[3], a[4]); sim.stampVCCurrentSource(nodes[2], nodes[3], nodes[3], nodes[4], a[5]); sim.stampVCCurrentSource(nodes[3], nodes[4], nodes[0], nodes[1], a[6]); sim.stampVCCurrentSource(nodes[3], nodes[4], nodes[2], nodes[3], a[7]); sim.stampConductance(nodes[3], nodes[4], a[8]); for (i = 0; i != 5; i++) sim.stampRightSide(nodes[i]); } protected void startIteration() { voltdiff[0] = volts[0] - volts[1]; voltdiff[1] = volts[2] - volts[3]; voltdiff[2] = volts[3] - volts[4]; int i, j; for (i = 0; i != 3; i++) { curSourceValue[i] = current[i]; for (j = 0; j != 3; j++) curSourceValue[i] += a[i * 3 + j] * voltdiff[j]; } } public void doStep() { sim.stampCurrentSource(nodes[0], nodes[1], curSourceValue[0]); sim.stampCurrentSource(nodes[2], nodes[3], curSourceValue[1]); sim.stampCurrentSource(nodes[3], nodes[4], curSourceValue[2]); } protected void calculateCurrent() { voltdiff[0] = volts[0] - volts[1]; voltdiff[1] = volts[2] - volts[3]; voltdiff[2] = volts[3] - volts[4]; int i, j; for (i = 0; i != 3; i++) { current[i] = curSourceValue[i]; for (j = 0; j != 3; j++) current[i] += a[i * 3 + j] * voltdiff[j]; } } public void getInfo(String arr[]) { arr[0] = "transformer"; arr[1] = "L = " + getUnitText(inductance, "H"); arr[2] = "Ratio = " + ratio; //arr[3] = "I1 = " + getCurrentText(current1); arr[3] = "Vd1 = " + getVoltageText(volts[0] - volts[2]); //arr[5] = "I2 = " + getCurrentText(current2); arr[4] = "Vd2 = " + getVoltageText(volts[1] - volts[3]); } protected boolean getConnection(int n1, int n2) { return comparePair(n1, n2, 0, 1) || comparePair(n1, n2, 2, 3) || comparePair(n1, n2, 3, 4) || comparePair(n1, n2, 2, 4); } public EditInfo getEditInfo(int n) { if (n == 0) return new EditInfo("Primary Inductance (H)", inductance, .01, 5); if (n == 1) return new EditInfo("Ratio", ratio, 1, 10).setDimensionless(); return null; } public void setEditValue(int n, EditInfo ei) { if (n == 0) inductance = ei.getValue(); if (n == 1) ratio = ei.getValue(); } @Override protected boolean isWire() { return false; } }
3c0fe8ddfadc6f1e58205cd9673ce37404a4dbaf
25fd816c9e98423211138406c78ea8c0efdc1ccb
/src/main/java/kr/or/ddit/member/repository/UserDaoI.java
8b80238cff1f251dee9d4e523c9f9ec4c1fe53f0
[]
no_license
sy5752/member
4bcbfcd80caebb47b35607a91d8cdc9063a5b88d
54cddec3ce419c1705668a8807340966930ad6aa
refs/heads/master
2023-04-15T06:27:38.920664
2021-04-20T08:24:41
2021-04-20T08:24:41
359,739,342
0
0
null
null
null
null
UTF-8
Java
false
false
973
java
package kr.or.ddit.member.repository; import java.util.List; import kr.or.ddit.member.model.PageVo; import kr.or.ddit.member.model.UserVo; public interface UserDaoI { // 전체 사용자 정보 조회 List<UserVo> selectAllUser(); //userid에 해당하는 사용자 한명의 정보 조회 UserVo selectUser(String userid); // 사용자 페이징 조회 List<UserVo> selectPagingUser(PageVo vo); // 사용자 전체 수 조회 int selectAllUserCnt(); List<UserVo> selectIdPagingUser(PageVo vo); int selectIdAllUserCnt(PageVo vo); List<UserVo> selectNmPagingUser (PageVo vo); int selectNmAllUserCnt (PageVo vo); List<UserVo> selectAlPagingUser (PageVo vo); int selectAlAllUserCnt (PageVo vo); // 사용자 정보 수정 int modifyUser(UserVo userVo); // 사용자 신규 등록 int registUser(UserVo userVo); // 사용자 삭제 int deleteUser(String userid); //아이디 중복 int idCheck(String userid); }
b56adc521034013305d4226b888d9f837d3f8ec0
570166dcba0b315fd7590b03c167acc120c04429
/app/src/main/java/org/geometerplus/zlibrary/core/image/ZLImageManager.java
613ff40af89a6b2420c61159a962e0a266b72e2f
[]
no_license
freddiezhao/ReadBookS
8d509ce89223563c7788643fca04be95bfe1d21b
6e7d706794e83339b7843c5b42c65c443ef95ffa
refs/heads/master
2020-03-25T13:17:20.081728
2017-12-20T00:14:20
2017-12-20T00:14:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,829
java
/* * Copyright (C) 2007-2014 Geometer Plus <[email protected]> * * 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 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ package org.geometerplus.zlibrary.core.image; public abstract class ZLImageManager { private static ZLImageManager ourInstance; public static ZLImageManager Instance() { return ourInstance; } protected ZLImageManager() { ourInstance = this; } public abstract ZLImageData getImageData(ZLImage image); protected final static class PalmImageHeader { public final int Width; public final int Height; public final int BytesPerRow; public final int Flags; public final byte BitsPerPixel; public final byte CompressionType; public PalmImageHeader(byte [] byteData) { Width = uShort(byteData, 0); Height = uShort(byteData, 2); BytesPerRow = uShort(byteData, 4); Flags = uShort(byteData, 6); BitsPerPixel = byteData[8]; CompressionType = (byte) (((Flags & 0x8000) != 0) ? byteData[13] : 0xFF); } } protected static int PalmImage8bitColormap[][] = { {255, 255, 255 }, { 255, 204, 255 }, { 255, 153, 255 }, { 255, 102, 255 }, { 255, 51, 255 }, { 255, 0, 255 }, { 255, 255, 204 }, { 255, 204, 204 }, { 255, 153, 204 }, { 255, 102, 204 }, { 255, 51, 204 }, { 255, 0, 204 }, { 255, 255, 153 }, { 255, 204, 153 }, { 255, 153, 153 }, { 255, 102, 153 }, { 255, 51, 153 }, { 255, 0, 153 }, { 204, 255, 255 }, { 204, 204, 255 }, { 204, 153, 255 }, { 204, 102, 255 }, { 204, 51, 255 }, { 204, 0, 255 }, { 204, 255, 204 }, { 204, 204, 204 }, { 204, 153, 204 }, { 204, 102, 204 }, { 204, 51, 204 }, { 204, 0, 204 }, { 204, 255, 153 }, { 204, 204, 153 }, { 204, 153, 153 }, { 204, 102, 153 }, { 204, 51, 153 }, { 204, 0, 153 }, { 153, 255, 255 }, { 153, 204, 255 }, { 153, 153, 255 }, { 153, 102, 255 }, { 153, 51, 255 }, { 153, 0, 255 }, { 153, 255, 204 }, { 153, 204, 204 }, { 153, 153, 204 }, { 153, 102, 204 }, { 153, 51, 204 }, { 153, 0, 204 }, { 153, 255, 153 }, { 153, 204, 153 }, { 153, 153, 153 }, { 153, 102, 153 }, { 153, 51, 153 }, { 153, 0, 153 }, { 102, 255, 255 }, { 102, 204, 255 }, { 102, 153, 255 }, { 102, 102, 255 }, { 102, 51, 255 }, { 102, 0, 255 }, { 102, 255, 204 }, { 102, 204, 204 }, { 102, 153, 204 }, { 102, 102, 204 }, { 102, 51, 204 }, { 102, 0, 204 }, { 102, 255, 153 }, { 102, 204, 153 }, { 102, 153, 153 }, { 102, 102, 153 }, { 102, 51, 153 }, { 102, 0, 153 }, { 51, 255, 255 }, { 51, 204, 255 }, { 51, 153, 255 }, { 51, 102, 255 }, { 51, 51, 255 }, { 51, 0, 255 }, { 51, 255, 204 }, { 51, 204, 204 }, { 51, 153, 204 }, { 51, 102, 204 }, { 51, 51, 204 }, { 51, 0, 204 }, { 51, 255, 153 }, { 51, 204, 153 }, { 51, 153, 153 }, { 51, 102, 153 }, { 51, 51, 153 }, { 51, 0, 153 }, { 0, 255, 255 }, { 0, 204, 255 }, { 0, 153, 255 }, { 0, 102, 255 }, { 0, 51, 255 }, { 0, 0, 255 }, { 0, 255, 204 }, { 0, 204, 204 }, { 0, 153, 204 }, { 0, 102, 204 }, { 0, 51, 204 }, { 0, 0, 204 }, { 0, 255, 153 }, { 0, 204, 153 }, { 0, 153, 153 }, { 0, 102, 153 }, { 0, 51, 153 }, { 0, 0, 153 }, { 255, 255, 102 }, { 255, 204, 102 }, { 255, 153, 102 }, { 255, 102, 102 }, { 255, 51, 102 }, { 255, 0, 102 }, { 255, 255, 51 }, { 255, 204, 51 }, { 255, 153, 51 }, { 255, 102, 51 }, { 255, 51, 51 }, { 255, 0, 51 }, { 255, 255, 0 }, { 255, 204, 0 }, { 255, 153, 0 }, { 255, 102, 0 }, { 255, 51, 0 }, { 255, 0, 0 }, { 204, 255, 102 }, { 204, 204, 102 }, { 204, 153, 102 }, { 204, 102, 102 }, { 204, 51, 102 }, { 204, 0, 102 }, { 204, 255, 51 }, { 204, 204, 51 }, { 204, 153, 51 }, { 204, 102, 51 }, { 204, 51, 51 }, { 204, 0, 51 }, { 204, 255, 0 }, { 204, 204, 0 }, { 204, 153, 0 }, { 204, 102, 0 }, { 204, 51, 0 }, { 204, 0, 0 }, { 153, 255, 102 }, { 153, 204, 102 }, { 153, 153, 102 }, { 153, 102, 102 }, { 153, 51, 102 }, { 153, 0, 102 }, { 153, 255, 51 }, { 153, 204, 51 }, { 153, 153, 51 }, { 153, 102, 51 }, { 153, 51, 51 }, { 153, 0, 51 }, { 153, 255, 0 }, { 153, 204, 0 }, { 153, 153, 0 }, { 153, 102, 0 }, { 153, 51, 0 }, { 153, 0, 0 }, { 102, 255, 102 }, { 102, 204, 102 }, { 102, 153, 102 }, { 102, 102, 102 }, { 102, 51, 102 }, { 102, 0, 102 }, { 102, 255, 51 }, { 102, 204, 51 }, { 102, 153, 51 }, { 102, 102, 51 }, { 102, 51, 51 }, { 102, 0, 51 }, { 102, 255, 0 }, { 102, 204, 0 }, { 102, 153, 0 }, { 102, 102, 0 }, { 102, 51, 0 }, { 102, 0, 0 }, { 51, 255, 102 }, { 51, 204, 102 }, { 51, 153, 102 }, { 51, 102, 102 }, { 51, 51, 102 }, { 51, 0, 102 }, { 51, 255, 51 }, { 51, 204, 51 }, { 51, 153, 51 }, { 51, 102, 51 }, { 51, 51, 51 }, { 51, 0, 51 }, { 51, 255, 0 }, { 51, 204, 0 }, { 51, 153, 0 }, { 51, 102, 0 }, { 51, 51, 0 }, { 51, 0, 0 }, { 0, 255, 102 }, { 0, 204, 102 }, { 0, 153, 102 }, { 0, 102, 102 }, { 0, 51, 102 }, { 0, 0, 102 }, { 0, 255, 51 }, { 0, 204, 51 }, { 0, 153, 51 }, { 0, 102, 51 }, { 0, 51, 51 }, { 0, 0, 51 }, { 0, 255, 0 }, { 0, 204, 0 }, { 0, 153, 0 }, { 0, 102, 0 }, { 0, 51, 0 }, { 17, 17, 17 }, { 34, 34, 34 }, { 68, 68, 68 }, { 85, 85, 85 }, { 119, 119, 119 }, { 136, 136, 136 }, { 170, 170, 170 }, { 187, 187, 187 }, { 221, 221, 221 }, { 238, 238, 238 }, { 192, 192, 192 }, { 128, 0, 0 }, { 128, 0, 128 }, { 0, 128, 0 }, { 0, 128, 128 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 }, { 0, 0, 0 } }; private static int uShort(byte [] byteData, int offset) { return ((byteData[offset] & 0xFF) << 8) + (byteData[offset + 1] & 0xFF); } }
9a520ac2c8efdbf256b78ff95f35efa7ada34c3f
8352cde03241651d48c57226c33e0c41eabf3a16
/TreeImp.java
b45fcd789eaf6aa94173bb0729ae395d2a08a86e
[]
no_license
nisha1992/Java
fd15fc2a13ff52a7fb919b015e845a9fdc1a832a
bc9402f5df8cf474618f3b045216d897a12596a8
refs/heads/master
2016-09-06T08:35:51.874746
2015-03-10T05:29:58
2015-03-10T05:29:58
10,614,412
0
0
null
null
null
null
UTF-8
Java
false
false
5,850
java
import java.io.*; import java.util.*; class Node { int data; public Node left,right; Node() {} Node(int d) { data=d; left=null; right=null; } } public class TreeImp { static Node root=null,temp=null; public void insert() throws IOException //insert { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int num,n; System.out.println("Enter the no. of nodes:"); n=Integer.parseInt(br.readLine()); for(int i=0;i<n;i++) { System.out.println("enter the no. to insert"); num=Integer.parseInt(br.readLine()); insertRec(num); } } public void insertRec(int num) //insert by recursion { if(root==null) { root=new Node(num); temp=root; } else { if(temp.data > num) { if(temp.left!=null) { temp=temp.left; insertRec(num); } else { temp.left=new Node(num); System.out.println("left="+temp.left.data); } } else if(temp.data < num) { if(temp.right!=null) { temp=temp.right; insertRec(num); } else { temp.right=new Node(num); System.out.println("right="+temp.right.data); } } } } public void inOrder() //inorder traverse { printInOrder(root); } public void postOrder() //postorder traverse { printPostOrder(root); } public void preOrder() //preorder traverse { printPreOrder(root); } public void printInOrder(Node temp) //print inorder { if (temp == null) { return; } printInOrder(temp.left); System.out.println(" Traversed " + temp.data); printInOrder(temp.right); } public void printPreOrder(Node temp) //preorder traversal { if (temp != null) { System.out.println(" Traversed " + temp.data); printPreOrder(temp.left); printPreOrder(temp.right); } } public void printPostOrder(Node temp) //postorder traversal { if (temp != null) { printPostOrder(temp.left); printPostOrder(temp.right); System.out.println(" Traversed " + temp.data); } } public void depth() //depth { findDepth(root); } public int findDepth(Node temp) //find depth { int depth=0,ldepth,rdepth; if(temp==null) { return depth; } ldepth=findDepth(temp.left); rdepth=findDepth(temp.right); if(ldepth>rdepth) return ldepth+1; else return rdepth+1; } public int printLevelOrder() //level order traversal { Node temp=root; int level=1; MyQueue<Node> q=new MyQueue(); if(temp==null) return 0; else { q.insert(temp); q.insert(null); while(q.size()!=0) { temp=q.delete(); if(temp!=null) { System.out.print("Level:"+level); System.out.println("\t"+temp.data); } if(temp==null) { if(q.size()!=0) { q.insert(null); level++; System.out.println(); } } else { if(temp.left!=null) q.insert(temp.left); if(temp.right!=null) q.insert(temp.right); } } } return level; } public void min() //min { findMin(root); } public void max() //max { findMax(root); } public Node findMin(Node temp) //find minimum { if(temp==null) { System.out.println("empty tree"); return null; } else if(temp.left==null) { System.out.println("min="+temp.data); return temp; } else { return findMin(temp.left); } } public Node findMax(Node temp) //find maximum { if(temp==null) { System.out.println("empty tree"); return null; } else if(temp.right==null) { System.out.println("max="+temp.data); return temp; } else { return findMax(temp.right); } } /*public Node Search(Node temp,int element) //search { if(temp==null) return null; if(temp.data == element) { System.out.println("Found"); return temp; } else if(element < temp.data) return Search(temp.left,element); else return Search(temp.right,element); } public void countLeaf(Node temp) //count leaf nodes { MyQueue<Node> q=new MyQueue(); int count=0; if(temp!=null) { q.insert(temp); } while(q.size()!=0) { Node m=(Node) q.delete(); if(m.left!=null) q.insert(m.left); if(m.right!=null) q.insert(m.right); if(m.left==null && m.right==null) count++; } System.out.println("No. of leaf nodes="+count); } public Node delete(Node temp,int e) //delete { Node t; if(temp==null) return null; else if(temp.data > e) temp.left=delete(temp.left,e); else if(temp.data < e) temp.right=delete(temp.right,e); else if(temp.left==null && temp.right==null) { temp=null; } else { if(temp.left!=null && temp.right!=null) { t=findMax(temp.left); temp.data=t.data; temp.left=delete(temp.left,temp.data); } else { t=temp; if(temp.left==null) { temp=temp.right; t.right=null; } if(temp.right==null) { temp=temp.left; t.left=null; } } } return temp; }*/ public static void main(String arg[]) throws IOException { //Node root=null; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int op,num; while(true) { System.out.println("1.Insert \n 2.Inorder traversal\n 3.preorder traversal\n 4.postorder traversal\n5.level traversal\n6.count leaf nodes \n 7.depth\n8.Search\n9.Delete\n10.find minimum\n11.find maximum\n12.identical\n"); System.out.println("enter the option"); op=Integer.parseInt(br.readLine()); switch(op) { case 1: /*System.out.println("enter the no. to insert"); num=Integer.parseInt(br.readLine()); if(root==null) root=new Node(num);*/ TreeImp t=new TreeImp(); t.insert(); break; case 2: TreeImp t1=new TreeImp(); t1.inOrder(); break; case 3: TreeImp t2=new TreeImp(); t2.preOrder(); break; case 4: TreeImp t3=new TreeImp(); t3.postOrder(); break; case 5: TreeImp t4=new TreeImp(); t4.printLevelOrder(); break; /*case 6: TreeImp t5=new TreeImp(); t5.countLeaf(root); break;*/ case 7: TreeImp t6=new TreeImp(); System.out.println("depth="+(t6.findDepth(root)-1)); break; /*case 8: System.out.println("enter the no. to search"); num=Integer.parseInt(br.readLine()); TreeImp t7=new TreeImp(); t7.Search(root,num); break; case 9: System.out.println("enter the no. to delete"); num=Integer.parseInt(br.readLine()); TreeImp t8=new TreeImp(); t8.delete(root,num); break; case 10: TreeImp t9=new TreeImp(); t9.findMin(root); break; case 11: TreeImp t10=new TreeImp(); t10.findMax(root); break;*/ default:System.exit(0); } } } }
[ "nisha@nisha-HP-G62-Notebook-PC.(none)" ]
nisha@nisha-HP-G62-Notebook-PC.(none)
6390a6bb41be7113fdcc09bb000a643b73380803
f17c1baf994870cf5eab02d881810ea2dad1238f
/src/main/java/br/com/ampla/marca/config/security/jwt/handler/UnauthorizedHandler.java
f60a5333c8ddc511df486eeabdb4760ea0a0cde3
[]
no_license
alanldb/ampla-api
9fa791018715c292a06b62a8066f62da870fe8db
f6aaa13cd628f2303f0888576a7ecc10738732cb
refs/heads/master
2023-04-06T05:24:08.363627
2021-04-17T20:48:35
2021-04-17T20:48:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,068
java
package br.com.ampla.marca.config.security.jwt.handler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframework.security.core.AuthenticationException; import org.springframework.security.web.AuthenticationEntryPoint; import org.springframework.stereotype.Component; import br.com.ampla.marca.config.security.jwt.ServletUtil; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; @Component public class UnauthorizedHandler implements AuthenticationEntryPoint { private static Logger logger = LoggerFactory.getLogger(UnauthorizedHandler.class); @Override public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException { logger.warn("UnauthorizedHandler, exception: " + authException); String json = ServletUtil.getJson("error", "Não autorizado."); ServletUtil.write(response, HttpStatus.FORBIDDEN, json); } }
b975f554a0399783f4170a1414f7c8eefd944895
5a763078c061d11cd5c835d373c149b0070dde25
/app/src/test/java/au/edu/myscribble/rssreader/ExampleUnitTest.java
2034daeb88fbb55216fd79073d6412e64728e6e1
[]
no_license
sinamrt/Rss
1623c5dafd275f7b3dbc48952dd6e212ca8368b8
9b09418d29bf81d2dc6b860fe82fd30f93cf463d
refs/heads/master
2020-08-29T10:48:41.556835
2019-10-28T09:22:40
2019-10-28T09:22:40
218,009,624
0
0
null
null
null
null
UTF-8
Java
false
false
388
java
package au.edu.myscribble.rssreader; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() { assertEquals(4, 2 + 2); } }
aeae73a859c7cc31d657a391a665af26541edc79
65742b14939ec7da9e88edab411b1e342a7e4d31
/app/src/main/java/com/nanyixuan/zzyl_andorid/view/activity/GardenTicketActivity.java
3ff17816585584700da9391e3c6137c106133b67
[]
no_license
GavinDon/zzyl_android
8d38a88139b3bf9c135aec381750b51a2081d49c
7cb2759a0c33b4738aa204030b38977ebc4fbe59
refs/heads/master
2021-09-23T17:51:03.002544
2018-09-26T01:51:35
2018-09-26T01:51:35
105,295,992
0
0
null
null
null
null
UTF-8
Java
false
false
12,152
java
package com.nanyixuan.zzyl_andorid.view.activity; import android.graphics.Color; import android.graphics.Paint; import android.os.Bundle; import android.support.v7.widget.AppCompatCheckBox; import android.support.v7.widget.AppCompatEditText; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.text.SpannableString; import android.text.Spanned; import android.text.style.ForegroundColorSpan; import android.view.View; import android.widget.TextView; import com.blankj.utilcode.util.LogUtils; import com.blankj.utilcode.util.SPUtils; import com.blankj.utilcode.util.ToastUtils; import com.facebook.drawee.view.SimpleDraweeView; import com.nanyixuan.zzyl_andorid.R; import com.nanyixuan.zzyl_andorid.api.Constant; import com.nanyixuan.zzyl_andorid.api.newapi.MySubscriber; import com.nanyixuan.zzyl_andorid.api.newapi.RetrofitHelper; import com.nanyixuan.zzyl_andorid.api.newapi.SubCallback; import com.nanyixuan.zzyl_andorid.base.BaseActivity; import com.nanyixuan.zzyl_andorid.bean.DataBean; import com.nanyixuan.zzyl_andorid.bean.LoginBean; import com.nanyixuan.zzyl_andorid.bean.OrderBean; import com.nanyixuan.zzyl_andorid.bean.RespCommon; import com.nanyixuan.zzyl_andorid.bean.SaleTicketBean; import com.nanyixuan.zzyl_andorid.utils.JsonUtil; import com.nanyixuan.zzyl_andorid.utils.MyTools; import com.nanyixuan.zzyl_andorid.utils.ValidateUtil; import com.nanyixuan.zzyl_andorid.view.adapter.RecyclerAdapter; import com.nanyixuan.zzyl_andorid.widgets.SimpleDialog; import com.nanyixuan.zzyl_andorid.widgets.SubmitButton; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import butterknife.BindColor; import butterknife.BindView; import butterknife.OnClick; import butterknife.OnFocusChange; import butterknife.OnTextChanged; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.schedulers.Schedulers; import static com.nanyixuan.zzyl_andorid.R.id.tv_ticket_money; import static com.nanyixuan.zzyl_andorid.R.id.tv_ticket_paymoney; import static com.nanyixuan.zzyl_andorid.utils.JsonUtil.fromJson; /** * description:网上购票 * Created by liNan on 2017/7/26 10:40 */ public class GardenTicketActivity extends BaseActivity { @BindView(R.id.checkBox) AppCompatCheckBox checkBox; //购票条款checkBox @BindView(R.id.submitBtn) SubmitButton mSubmitButton; //购票按钮 @BindView(R.id.etIdCard) AppCompatEditText etIdCard; //身份证号editText @BindView(R.id.etAgainIdCard) AppCompatEditText etAgainIdCard; //再次输入身份证号editText @BindView(R.id.card01) SimpleDraweeView ticketDrawView; @BindView(tv_ticket_paymoney) TextView tvyMoney; @BindView(tv_ticket_money) TextView tvMoney;//优惠价 @BindView(R.id.tv_underline_money) TextView underLineMoney; //原价 @BindView(R.id.tv_ticket_userTime) TextView tvUserTime; //票使用时间 @BindView(R.id.garden_intro) RecyclerView mRecyclerView; @BindView(R.id.tv_ticket_name) TextView tvTicketName; private RecyclerAdapter mAdapter; private List<DataBean> dataBeanList; private DataBean dataBean; @BindColor(R.color.lightGreen) int lightGreen; private SaleTicketBean.ListBean ticketInfoBean; private String idcard; private String strLoginInfo; private LoginBean mLoginBean; @Override protected int setLayout() { return R.layout.activity_garden_ticket; } @Override protected void initView(Bundle savedInstanceState) { Bundle bundle = getIntent().getExtras(); ticketInfoBean = bundle.getParcelable("ticketInfo"); mSubmitButton.setBackgroundColor(Color.GRAY); mSubmitButton.setTag(false); //若勾选同意购票条款则设置Tag为true setTitle("售票"); String s = "我已阅读并同意《购票条款》"; SpannableString spannableString = new SpannableString(s); spannableString.setSpan(new ForegroundColorSpan(lightGreen), 7, s.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); //从起始下标到终了下标,包括起始下标 checkBox.setText(spannableString); initRecycler(); if (ticketInfoBean != null) { ticketDrawView.setImageURI(ticketInfoBean.getImgurltwo()); tvTicketName.setText(ticketInfoBean.getTicketname()); tvyMoney.setText("优惠支付:¥" + ticketInfoBean.getXprice()); tvMoney.setText("¥" + ticketInfoBean.getXprice()); underLineMoney.getPaint().setFlags(Paint. STRIKE_THRU_TEXT_FLAG|Paint.ANTI_ALIAS_FLAG); underLineMoney.setText("¥" + ticketInfoBean.getYprice()); tvUserTime.setText(ticketInfoBean.getExplain()); } } /** * 使用rv来展示购票须知等 */ private void initRecycler() { dataBeanList = new ArrayList<>(); String parentContent[] = {"购买须知:", "温馨提示:","购票条款:"}; String childContent[] = {getResources().getString(R.string.buy_notice), getResources().getString(R.string.prompt),getResources().getString(R.string.buy_clause)}; for (int i = 0; i < parentContent.length; i++) { dataBean = new DataBean(); dataBean.setID(i + ""); dataBean.setType(0); dataBean.setParentLeftTxt(parentContent[i]); // 一级内容 dataBean.setChildLeftTxt(childContent[i]); // 展开内容 dataBean.setChildBean(dataBean); dataBeanList.add(dataBean); } mRecyclerView.setLayoutManager(new LinearLayoutManager(this)); mAdapter = new RecyclerAdapter(this, dataBeanList); mRecyclerView.setAdapter(mAdapter); //滚动监听 mAdapter.setOnScrollListener(new RecyclerAdapter.OnScrollListener() { @Override public void scrollTo(int pos) { mRecyclerView.scrollToPosition(pos); } }); } @Override protected void onResume() { super.onResume(); strLoginInfo = SPUtils.getInstance().getString(Constant.SP_USER_INFO); mLoginBean = JsonUtil.fromJson(strLoginInfo, LoginBean.class); } /** * 点击事件 * * @param v */ @OnClick({R.id.checkBox, R.id.submitBtn}) public void onclick(View v) { switch (v.getId()) { case R.id.checkBox: if (!checkBox.isChecked()) { mSubmitButton.setTag(false); mSubmitButton.setBackgroundColor(Color.GRAY); } else { mSubmitButton.setTag(true); mSubmitButton.restoreBackGround(); } break; case R.id.submitBtn: boolean isLogin = SPUtils.getInstance().getBoolean(Constant.SP_LOGIN); //判断是否已经登陆 if (!isLogin) { gotoActivity(LoginActivity.class); return; } //只有已经勾选了阅读条款才可进行下一步购票 if ((Boolean) mSubmitButton.getTag()) { idCardValidate(); } else { ToastUtils.showShort("您还未同意我们的购票条款"); } break; } } /** * 监听输入号码完成之后是否是有效的证件号码 */ @OnTextChanged(value = {R.id.etIdCard, R.id.etAgainIdCard}, callback = OnTextChanged.Callback.TEXT_CHANGED) void onTextChanged(CharSequence s, int start, int before, int count) { if (s.length() == 15 || s.length() == 18) { if (etIdCard.isFocused()) { ValidateUtil.maybeIsIdentityCard(etIdCard); } else { ValidateUtil.maybeIsIdentityCard(etAgainIdCard); } } } /** * 监听焦点的变化来判断身份证号码长度是否正确 * * @param view * @param hasFocus */ @OnFocusChange(value = {R.id.etIdCard, R.id.etAgainIdCard}) void OnFocusChange(View view, boolean hasFocus) { if (!hasFocus) { if (!etIdCard.hasFocus()) { if ((etIdCard.getEditableText().toString().trim().length() != 15) && etIdCard.getEditableText().toString().trim().length() != 18) { etIdCard.setError("身份证位数错误"); } } else if (!etAgainIdCard.hasFocus()) { if ((etAgainIdCard.getText().toString().trim().length() != 15) && etAgainIdCard.getText().toString().trim().length() != 18) { etAgainIdCard.setError("身份证位数错误"); } } } } /** * 购票之前本地的校验 */ private void idCardValidate() { boolean first = ValidateUtil.isIdentityCard(etIdCard); boolean second = ValidateUtil.isIdentityCard(etAgainIdCard); if (first && second) { if (etIdCard.getText().toString().equalsIgnoreCase(etAgainIdCard.getText().toString())) { final SimpleDialog mSimpleDialog = new SimpleDialog(this); mSimpleDialog.setContentText(ticketInfoBean.getExplain()) .showCancelButton(true) .setConfirmClickListener(new SimpleDialog.OnSweetClickListener() { @Override public void onClick(SimpleDialog simpleDialog) { idcard = etIdCard.getText().toString(); generateOrder(); mSimpleDialog.dismiss(); } }).setCancelClickListener(new SimpleDialog.OnSweetClickListener() { @Override public void onClick(SimpleDialog simpleDialog) { mSimpleDialog.dismiss(); } }); } else { ToastUtils.showShort("两次输入不一致"); } } else { ToastUtils.showShort("身份证号码格式有误"); } } /** * 生成订单 */ private void generateOrder() { HashMap<String, String> params = new HashMap<>(); params.put("userId", mLoginBean.getUser().getUsername() + ""); params.put("ticketTypeId", ticketInfoBean.getTicketsystemid()); params.put("ticketTypeName", ticketInfoBean.getTicketname()); params.put("ticketCount", "1"); params.put("ticketId", String.valueOf(ticketInfoBean.getId())); params.put("identityCode", idcard); //身份证号码 params.put("isLimited", ticketInfoBean.getIs_limited()); // 是否限流 LogUtils.i(MyTools.jointURL("", params)); RetrofitHelper.getInstance().creat().getOrder(params) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(new MySubscriber<>(this, true, new SubCallback<RespCommon>() { @Override public void onNext(RespCommon tBaseData) throws IOException { if (tBaseData.getRetCode().equals("0")) { OrderBean orderBean = fromJson(tBaseData.getRetData(), OrderBean.class); if (null != orderBean) { Bundle bundle = new Bundle(); bundle.putString("page", "0"); bundle.putParcelable("orderBean", orderBean); gotoActivity(PayActivity.class, true, bundle); } } else { ToastUtils.showShort(tBaseData.getRetData() + ""); } } @Override public void onError(String msg) { ToastUtils.showShort(msg); } })); } }
e55858bf9c9324bcae107ef08e9d0ed0488aacb9
57d4222f6b40296a3d2a0dba8a16ec81f692f86d
/src/test/java/tests/AlfaBankArchivedDepositsTest.java
2698c732b3bc5b9c437e1fa0d557253d6b557e9d
[]
no_license
afatkhutdinova/qa_quru_lessons
a4807c64d8f56688fc64f2a1ca5ee4b6c241e2b9
ac6e7e2dd1245237dd753aaf1c9cdff4bce16a63
refs/heads/master
2023-01-23T20:21:03.881134
2020-11-30T14:43:31
2020-11-30T14:43:31
313,088,804
0
0
null
null
null
null
UTF-8
Java
false
false
689
java
package tests; import org.junit.jupiter.api.Test; import static com.codeborne.selenide.CollectionCondition.size; import static com.codeborne.selenide.Condition.visible; import static com.codeborne.selenide.Selectors.byAttribute; import static com.codeborne.selenide.Selectors.byText; import static com.codeborne.selenide.Selenide.$$; import static com.codeborne.selenide.Selenide.open; public class AlfaBankArchivedDepositsTest { @Test void archivedDepositsSizeTest() { open("https://alfabank.ru/make-money/archive/"); $$(byText("Депозиты")).find(visible).click(); $$(byAttribute("data-widget-name", "CatalogCard")).shouldHave(size(5)); } }
a7ffbad715a9016dc586e591b4d9432dbd467077
74e9bb8c7b0e31889def44370bd825cf3575942d
/mobile/src/main/java/com/transition/scorekeeper/mobile/view/adapter/BaseAdapter.java
f8f131ec34eaea505d93623eda007af73b6eeeb0
[]
no_license
desarrollo-cooperativo/scorekeeper
6abde0b60350a73bb4aaf5f6f2d93928ffa9d2ae
6a78566042a2b10a194f78e2f64fbe4d39e81223
refs/heads/master
2021-01-12T23:33:14.468038
2016-10-15T18:11:53
2016-10-15T18:11:53
65,245,451
1
1
null
null
null
null
UTF-8
Java
false
false
1,471
java
package com.transition.scorekeeper.mobile.view.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.View; import com.transition.scorekeeper.mobile.view.component.common.RecyclerItemClickListener; import java.util.ArrayList; import java.util.List; /** * @author diego.rotondale * @since 14/05/16 */ public abstract class BaseAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { protected Context context; protected List<Object> mDataSet = new ArrayList<>(); public RecyclerView.OnItemTouchListener getListener() { return new RecyclerItemClickListener(context, new RecyclerItemClickListener.OnItemClickListener() { @Override public void onItemClick(View view, int position) { } }); } @Override public int getItemCount() { return mDataSet.size(); } public void add(Object object) { mDataSet.add(0, object); notifyItemInserted(mDataSet.indexOf(object)); } public void addAll(List<? extends Object> objects) { mDataSet.addAll(0, objects); notifyItemRangeInserted(0, objects.size()); } public void updateItem(Object object) { if (mDataSet.contains(object)) { int indexOf = mDataSet.indexOf(object); mDataSet.remove(indexOf); mDataSet.add(indexOf, object); notifyItemChanged(indexOf); } } }
64fa30271eece815dcfcb429355c63ea808ac65e
bb91e666314090a7a0e892d5473e2ed1f728f370
/src/Event/events/exhaust_1.java
af388bc185555fa702221470bebe541166970324
[]
no_license
kokkkkk/HKDSE
bb71476b397eb4c712aadbe28018c02f178e26c2
210fb6587aaa8cc35d5848b2e230275cf9a22d64
refs/heads/master
2021-07-15T11:37:31.253580
2020-07-24T18:03:37
2020-07-24T18:03:37
193,537,145
1
0
null
2020-07-24T17:57:05
2019-06-24T16:02:46
Java
UTF-8
Java
false
false
478
java
package Event.events; import Basic.initial; import Event.eventInterface; public class exhaust_1 implements eventInterface{ @Override public String getname() { return "exhaust_1"; } @Override public int getid() { return 4; } @Override public void result(int i) { switch(i){ case 0: initial.exhaust = false; initial.energyUseupDay = 0; break; case 1: break; } } @Override public String pictureName() { return "event_1.png"; } }
3c17f8c1d59a881cb2b5a4d457510900a897b1aa
2ab03c4f54dbbb057beb3a0349b9256343b648e2
/JavaOOPAdvanced/RecycleStation_Old/src/main/java/app/waste_disposal/engines/Engine.java
cc32df8c19d67ae9620929847ee5ee4fbe19ed08
[ "MIT" ]
permissive
tabria/Java
8ef04c0ec5d5072d4e7bf15e372e7c2b600a1cea
9bfc733510b660bc3f46579a1cc98ff17fb955dd
refs/heads/master
2021-05-05T11:50:05.175943
2018-03-07T06:53:54
2018-03-07T06:53:54
104,714,168
0
1
null
null
null
null
UTF-8
Java
false
false
3,426
java
package app.waste_disposal.engines; import app.waste_disposal.annotations.Disposable; import app.waste_disposal.contracts.*; import app.waste_disposal.enums.WasteList; import app.waste_disposal.factories.DisposalStrategyFactory; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.lang.annotation.Annotation; import java.lang.reflect.InvocationTargetException; import java.util.Collections; import java.util.HashMap; import java.util.Map; public class Engine implements Runnable { private static final String WASTE_PATH = "app.waste_disposal.models.wastes."; private static final String EXIT_COMMAND = "TimeToRecycle"; private static final double START_ENERGY = 0; private static final double START_CAPITAL = 0; private double energy; private double capital; private GarbageProcessor garbageProcessor; private Interpreter interpreter; private Manageble manageble; public Engine(GarbageProcessor garbageProcessor, Interpreter interpreter) { this.energy = START_ENERGY; this.capital = START_CAPITAL; this.garbageProcessor = garbageProcessor; this.interpreter = interpreter; this.manageble = null; } public double getEnergy() { return this.energy; } public double getCapital() { return this.capital; } public GarbageProcessor getGarbageProcessor() { return this.garbageProcessor; } public Manageble getManageble() { return this.manageble; } @Override public void run() { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); this.fillStrategyHolder(); while(true){ String line = reader.readLine(); if (EXIT_COMMAND.equals(line)) { break; } Executable command = this.interpreter.makeCommand(line, this); System.out.println(command.execute()); } } catch (ClassNotFoundException | NoSuchMethodException | InstantiationException | InvocationTargetException | IllegalAccessException | IOException | NoSuchFieldException e) { e.printStackTrace(); } } private void fillStrategyHolder() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException, NoSuchFieldException { for (WasteList waste:WasteList.values()) { String wasteType = waste.toString(); GarbageDisposalStrategy garbageStrategy = DisposalStrategyFactory.create(wasteType); Annotation[] strategyAnnotations = Class.forName(WASTE_PATH + wasteType).getDeclaredAnnotations(); Class disposableAnnotation = null; outerLoop: for (Annotation annotation : strategyAnnotations ) { Annotation[] annotations = annotation.annotationType().getAnnotations(); for (Annotation ano:annotations) { if(Disposable.class == ano.annotationType()){ disposableAnnotation = annotation.annotationType(); break outerLoop; } } } this.garbageProcessor.getStrategyHolder().addStrategy(disposableAnnotation, garbageStrategy); } } }
a313e6a02ef971c04326a65599c22cc00e0192bb
b36b72614e730dbff63671aa256137d8922d9b05
/MobileHealth_beta/gen/com/bbcc/mobilehealth/R.java
1994694d902bfdacbd7b0f2f92b65b700f7fc526
[]
no_license
lxsyz/Mobilehealth
a5e4e9ed388761bd8213c8da42abadd0c1b04659
7d6dfc1c75e15ada8ae6af80b44747793fd77b55
refs/heads/master
2021-01-10T07:42:52.344883
2016-03-23T02:24:35
2016-03-23T02:24:35
54,168,501
1
0
null
null
null
null
UTF-8
Java
false
false
236,108
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.bbcc.mobilehealth; public final class R { public static final class anim { public static final int abc_fade_in=0x7f040000; public static final int abc_fade_out=0x7f040001; public static final int abc_slide_in_bottom=0x7f040002; public static final int abc_slide_in_top=0x7f040003; public static final int abc_slide_out_bottom=0x7f040004; public static final int abc_slide_out_top=0x7f040005; public static final int zoom_in=0x7f040006; public static final int zoom_out=0x7f040007; } public static final class attr { /** Custom divider drawable to use for elements in the action bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarDivider=0x7f01000b; /** Custom item state list drawable background for action bar items. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarItemBackground=0x7f01000c; /** Size of the Action Bar, including the contextual bar used to present Action Modes. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int actionBarSize=0x7f01000a; /** Reference to a theme that should be used to inflate widgets and layouts destined for the action bar. Most of the time this will be a reference to the current theme, but when the action bar has a significantly different contrast profile than the rest of the activity the difference can become important. If this is set to @null the current theme will be used. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarSplitStyle=0x7f010008; /** Reference to a style for the Action Bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarStyle=0x7f010007; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarTabBarStyle=0x7f010004; /** Default style for tabs within an action bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarTabStyle=0x7f010003; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarTabTextStyle=0x7f010005; /** Reference to a theme that should be used to inflate widgets and layouts destined for the action bar. Most of the time this will be a reference to the current theme, but when the action bar has a significantly different contrast profile than the rest of the activity the difference can become important. If this is set to @null the current theme will be used. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionBarWidgetTheme=0x7f010009; /** Default action button style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionButtonStyle=0x7f010012; /** Default ActionBar dropdown style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionDropDownStyle=0x7f010043; /** An optional layout to be used as an action view. See {@link android.view.MenuItem#setActionView(android.view.View)} for more info. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionLayout=0x7f01004a; /** TextAppearance style that will be applied to text that appears within action menu items. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionMenuTextAppearance=0x7f01000d; /** Color for text that appears within action menu items. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". */ public static final int actionMenuTextColor=0x7f01000e; /** Background drawable to use for action mode UI <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeBackground=0x7f010038; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeCloseButtonStyle=0x7f010037; /** Drawable to use for the close action mode button <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeCloseDrawable=0x7f01003a; /** Drawable to use for the Copy action button in Contextual Action Bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeCopyDrawable=0x7f01003c; /** Drawable to use for the Cut action button in Contextual Action Bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeCutDrawable=0x7f01003b; /** Drawable to use for the Find action button in WebView selection action modes <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeFindDrawable=0x7f010040; /** Drawable to use for the Paste action button in Contextual Action Bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModePasteDrawable=0x7f01003d; /** PopupWindow style to use for action modes when showing as a window overlay. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModePopupWindowStyle=0x7f010042; /** Drawable to use for the Select all action button in Contextual Action Bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeSelectAllDrawable=0x7f01003e; /** Drawable to use for the Share action button in WebView selection action modes <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeShareDrawable=0x7f01003f; /** Background drawable to use for action mode UI in the lower split bar <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeSplitBackground=0x7f010039; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeStyle=0x7f010036; /** Drawable to use for the Web Search action button in WebView selection action modes <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionModeWebSearchDrawable=0x7f010041; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int actionOverflowButtonStyle=0x7f010006; /** The name of an optional ActionProvider class to instantiate an action view and perform operations such as default action for that menu item. See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)} for more info. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int actionProviderClass=0x7f01004c; /** The name of an optional View class to instantiate and use as an action view. See {@link android.view.MenuItem#setActionView(android.view.View)} for more info. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int actionViewClass=0x7f01004b; /** Default ActivityChooserView style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int activityChooserViewStyle=0x7f010068; /** Specifies a background drawable for the action bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int background=0x7f01002b; /** Specifies a background drawable for the bottom component of a split action bar. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". */ public static final int backgroundSplit=0x7f01002d; /** Specifies a background drawable for a second stacked row of the action bar. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". */ public static final int backgroundStacked=0x7f01002c; /** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int bottomLineColor=0x7f01007c; /** A style that may be applied to Buttons placed within a LinearLayout with the style buttonBarStyle to form a button bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int buttonBarButtonStyle=0x7f010014; /** A style that may be applied to horizontal LinearLayouts to form a button bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int buttonBarStyle=0x7f010013; /** <p>Must be an integer value, such as "<code>100</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int circleBackground=0x7f01006a; /** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int color=0x7f010071; /** Specifies a layout for custom navigation. Overrides navigationMode. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int customNavigationLayout=0x7f01002e; /** Whether this spinner should mark child views as enabled/disabled when the spinner itself is enabled/disabled. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int disableChildrenWhenDisabled=0x7f010050; /** Options affecting how the action bar is displayed. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr> <tr><td><code>showHome</code></td><td>0x2</td><td></td></tr> <tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr> <tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr> <tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr> <tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr> </table> */ public static final int displayOptions=0x7f010024; /** Specifies the drawable used for item dividers. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int divider=0x7f01002a; /** A drawable that may be used as a horizontal divider between visual elements. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int dividerHorizontal=0x7f010017; /** Size of padding on either end of a divider. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int dividerPadding=0x7f010052; /** A drawable that may be used as a vertical divider between visual elements. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int dividerVertical=0x7f010016; /** ListPopupWindow comaptibility <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int dropDownListViewStyle=0x7f01001d; /** The preferred item height for dropdown lists. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int dropdownListPreferredItemHeight=0x7f010044; /** The drawable to show in the button for expanding the activities overflow popup. <strong>Note:</strong> Clients would like to set this drawable as a clue about the action the chosen activity will perform. For example, if share activity is to be chosen the drawable should give a clue that sharing is to be performed. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int expandActivityOverflowButtonDrawable=0x7f010067; /** <p>Must be one of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>East</code></td><td>0</td><td></td></tr> <tr><td><code>South</code></td><td>90</td><td></td></tr> <tr><td><code>West</code></td><td>180</td><td></td></tr> <tr><td><code>North</code></td><td>270</td><td></td></tr> </table> */ public static final int firstChildPosition=0x7f01006b; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int firstLineAndSecondLineSpace=0x7f01007e; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int height=0x7f010022; /** Specifies a drawable to use for the 'home as up' indicator. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int homeAsUpIndicator=0x7f01000f; /** Specifies a layout to use for the "home" section of the action bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int homeLayout=0x7f01002f; /** Specifies the drawable used for the application icon. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int icon=0x7f010028; /** The default state of the SearchView. If true, it will be iconified when not in use and expanded when clicked. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int iconifiedByDefault=0x7f010056; /** Specifies a style resource to use for an indeterminate progress spinner. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int indeterminateProgressStyle=0x7f010031; /** The maximal number of items initially shown in the activity list. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int initialActivityCount=0x7f010066; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int isEnable=0x7f010081; /** Specifies whether the theme is light, otherwise it is dark. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int isLightTheme=0x7f010055; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int isRotating=0x7f01006d; /** <p>Must be an integer value, such as "<code>100</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int itemNumber=0x7f01007a; /** Specifies padding that should be applied to the left and right sides of system-provided items in the bar. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int itemPadding=0x7f010033; /** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int lineColor=0x7f01007b; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int lineHeight=0x7f01007d; /** Drawable used as a background for selected list items. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int listChoiceBackgroundIndicator=0x7f010048; /** <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int listPopupWindowStyle=0x7f01001e; /** The preferred list item height. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int listPreferredItemHeight=0x7f010018; /** A larger, more robust list item height. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int listPreferredItemHeightLarge=0x7f01001a; /** A smaller, sleeker list item height. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int listPreferredItemHeightSmall=0x7f010019; /** The preferred padding along the left edge of list items. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int listPreferredItemPaddingLeft=0x7f01001b; /** The preferred padding along the right edge of list items. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int listPreferredItemPaddingRight=0x7f01001c; /** Specifies the drawable used for the application logo. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int logo=0x7f010029; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int maskHight=0x7f01007f; /** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int name=0x7f01006e; /** The type of navigation to use. <p>Must be one of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr> <tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr> <tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr> </table> */ public static final int navigationMode=0x7f010023; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int noEmpty=0x7f010080; /** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int normalTextColor=0x7f010075; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int normalTextSize=0x7f010076; /** Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int paddingEnd=0x7f010035; /** Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int paddingStart=0x7f010034; /** Default Panel Menu style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int panelMenuListTheme=0x7f010047; /** Default Panel Menu width. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int panelMenuListWidth=0x7f010046; /** Default PopupMenu style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int popupMenuStyle=0x7f010045; /** Reference to a layout to use for displaying a prompt in the dropdown for spinnerMode="dropdown". This layout must contain a TextView with the id {@code @android:id/text1} to be populated with the prompt text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int popupPromptView=0x7f01004f; /** Specifies the horizontal padding on either end for an embedded progress bar. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int progressBarPadding=0x7f010032; /** Specifies a style resource to use for an embedded progress bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int progressBarStyle=0x7f010030; /** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int progress_background_color=0x7f010073; /** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int progress_color=0x7f010074; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int progressbar_width=0x7f010072; /** The prompt to display when the spinner's dialog is shown. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int prompt=0x7f01004d; /** An optional query hint string to be displayed in the empty query field. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int queryHint=0x7f010057; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int rotateToCenter=0x7f01006c; /** SearchView dropdown background <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchDropdownBackground=0x7f010058; /** The list item height for search results. @hide <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int searchResultListItemHeight=0x7f010061; /** SearchView AutoCompleteTextView style <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewAutoCompleteTextView=0x7f010065; /** SearchView close button icon <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewCloseIcon=0x7f010059; /** SearchView query refinement icon <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewEditQuery=0x7f01005d; /** SearchView query refinement icon background <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewEditQueryBackground=0x7f01005e; /** SearchView Go button icon <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewGoIcon=0x7f01005a; /** SearchView Search icon <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewSearchIcon=0x7f01005b; /** SearchView text field background for the left section <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewTextField=0x7f01005f; /** SearchView text field background for the right section <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewTextFieldRight=0x7f010060; /** SearchView Voice button icon <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int searchViewVoiceIcon=0x7f01005c; /** A style that may be applied to buttons or other selectable items that should react to pressed and focus states, but that do not have a clear visual border along the edges. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int selectableItemBackground=0x7f010015; /** <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int selectedTextColor=0x7f010077; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int selectedTextSize=0x7f010078; /** How this item should display in the Action Bar, if present. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead. Mutually exclusive with "ifRoom" and "always". </td></tr> <tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined by the system. Favor this option over "always" where possible. Mutually exclusive with "never" and "always". </td></tr> <tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override the system's limits of how much stuff to put there. This may make your action bar look bad on some screens. In most cases you should use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr> <tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text label with it even if it has an icon representation. </td></tr> <tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu item. When expanded, the action view takes over a larger segment of its container. </td></tr> </table> */ public static final int showAsAction=0x7f010049; /** Setting for which dividers to show. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>none</code></td><td>0</td><td></td></tr> <tr><td><code>beginning</code></td><td>1</td><td></td></tr> <tr><td><code>middle</code></td><td>2</td><td></td></tr> <tr><td><code>end</code></td><td>4</td><td></td></tr> </table> */ public static final int showDividers=0x7f010051; /** Default Spinner style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int spinnerDropDownItemStyle=0x7f010054; /** Display mode for spinner options. <p>Must be one of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr> <tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown anchored to the spinner widget itself. </td></tr> </table> */ public static final int spinnerMode=0x7f01004e; /** Default Spinner style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int spinnerStyle=0x7f010053; /** Specifies subtitle text used for navigationMode="normal" <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int subtitle=0x7f010025; /** Specifies a style to use for subtitle text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int subtitleTextStyle=0x7f010027; /** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int text=0x7f01006f; /** Present the text in ALL CAPS. This may use a small-caps form when available. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a boolean value, either "<code>true</code>" or "<code>false</code>". */ public static final int textAllCaps=0x7f010069; /** Text color, typeface, size, and style for the text inside of a popup menu. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int textAppearanceLargePopupMenu=0x7f010010; /** The preferred TextAppearance for the primary text of list items. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int textAppearanceListItem=0x7f01001f; /** The preferred TextAppearance for the primary text of small list items. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int textAppearanceListItemSmall=0x7f010020; /** Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int textAppearanceSearchResultSubtitle=0x7f010063; /** Text color, typeface, size, and style for system search result title. Defaults to primary inverse text color. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int textAppearanceSearchResultTitle=0x7f010062; /** Text color, typeface, size, and style for small text inside of a popup menu. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int textAppearanceSmallPopupMenu=0x7f010011; /** Text color for urls in search suggestions, used by things like global search <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". */ public static final int textColorSearchUrl=0x7f010064; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int text_size=0x7f010070; /** <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int title=0x7f010021; /** Specifies a style to use for title text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". */ public static final int titleTextStyle=0x7f010026; /** <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int unitHight=0x7f010079; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int windowActionBar=0x7f010000; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int windowActionBarOverlay=0x7f010001; /** <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. */ public static final int windowSplitActionBar=0x7f010002; } public static final class bool { public static final int abc_action_bar_embed_tabs_pre_jb=0x7f070000; public static final int abc_action_bar_expanded_action_views_exclusive=0x7f070001; /** Whether action menu items should be displayed in ALLCAPS or not. Defaults to true. If this is not appropriate for specific locales it should be disabled in that locale's resources. */ public static final int abc_config_actionMenuItemAllCaps=0x7f070005; /** Whether action menu items should obey the "withText" showAsAction flag. This may be set to false for situations where space is extremely limited. Whether action menu items should obey the "withText" showAsAction. This may be set to false for situations where space is extremely limited. */ public static final int abc_config_allowActionMenuItemTextWithIcon=0x7f070004; public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f070003; public static final int abc_split_action_bar_is_narrow=0x7f070002; } public static final class color { public static final int F7F7F7=0x7f08001b; public static final int abc_search_url_text_holo=0x7f0800bb; public static final int abc_search_url_text_normal=0x7f080000; public static final int abc_search_url_text_pressed=0x7f080002; public static final int abc_search_url_text_selected=0x7f080001; public static final int act_action_history_backg=0x7f080005; public static final int act_action_history_title=0x7f080004; public static final int action_text_blue=0x7f08000f; public static final int action_text_green=0x7f08000e; public static final int action_text_orange=0x7f08000d; public static final int albumback=0x7f080021; /** 蜜色 */ public static final int aliceblue=0x7f080055; /** 亚麻色 */ public static final int antiquewhite=0x7f08004b; /** 中灰兰色 */ public static final int aqua=0x7f0800ab; /** 粟色 */ public static final int aquamarine=0x7f08008c; /** 沙褐色 */ public static final int azure=0x7f080053; /** 烟白色 */ public static final int beige=0x7f080050; /** 浅玫瑰色 */ public static final int bisque=0x7f080036; /** 海军色 */ public static final int black=0x7f0800ba; public static final int black2=0x7f080018; public static final int black_overlay=0x7f08001d; /** 番木色 */ public static final int blanchedalmond=0x7f080034; /** 暗绿色 */ public static final int blue=0x7f0800b6; /** 暗红色 */ public static final int blueviolet=0x7f080084; /** 暗灰色 */ public static final int brown=0x7f080079; /** 亮青色 */ public static final int burlywood=0x7f08005d; /** 菊兰色 */ public static final int cadetblue=0x7f08009a; /** 碧绿色 */ public static final int chartreuse=0x7f08008d; /** 茶色 */ public static final int chocolate=0x7f080068; public static final int color1=0x7f080010; public static final int color2=0x7f080011; public static final int color3=0x7f080012; public static final int color4=0x7f080013; public static final int color5=0x7f080014; /** 暗桔黄色 */ public static final int coral=0x7f080040; /** 中绿色 */ public static final int cornflowerblue=0x7f080099; /** 柠檬绸色 */ public static final int cornsilk=0x7f080030; /** 淡灰色 */ public static final int crimson=0x7f080060; /** 浅绿色 */ public static final int cyan=0x7f0800ac; /** 中兰色 */ public static final int darkblue=0x7f0800b8; /** 深天蓝色 */ public static final int darkcyan=0x7f0800b2; /** 中粉紫色 */ public static final int darkgoldenrod=0x7f080070; /** 亮蓝色 */ public static final int darkgray=0x7f080077; /** 绿色 */ public static final int darkgreen=0x7f0800b5; /** 暗灰色 */ public static final int darkgrey=0x7f080078; /** 银色 */ public static final int darkkhaki=0x7f08006d; /** 重褐色 */ public static final int darkmagenta=0x7f080082; /** 军兰色 */ public static final int darkolivegreen=0x7f08009b; /** 亮肉色 */ public static final int darkorange=0x7f08003f; /** 赭色 */ public static final int darkorchid=0x7f08007b; /** 暗洋红 */ public static final int darkred=0x7f080083; /** 紫罗兰色 */ public static final int darksalmon=0x7f08005a; /** 亮绿色 */ public static final int darkseagreen=0x7f080080; /** 中绿宝石 */ public static final int darkslateblue=0x7f08009e; /** 橙绿色 */ public static final int darkslategray=0x7f0800a4; /** 暗瓦灰色 */ public static final int darkslategrey=0x7f0800a5; /** 中春绿色 */ public static final int darkturquoise=0x7f0800b0; /** 苍绿色 */ public static final int darkviolet=0x7f08007d; public static final int datecolor=0x7f080028; public static final int dedede=0x7f080019; /** 红橙色 */ public static final int deeppink=0x7f080044; /** 暗宝石绿 */ public static final int deepskyblue=0x7f0800b1; public static final int deepsleep=0x7f080025; public static final int dfdfdf=0x7f08001a; /** 石蓝色 */ public static final int dimgray=0x7f080096; /** 暗灰色 */ public static final int dimgrey=0x7f080097; /** 亮海蓝色 */ public static final int dodgerblue=0x7f0800a9; public static final int editText=0x7f080020; /** 暗金黄色 */ public static final int firebrick=0x7f080071; /** 雪白色 */ public static final int floralwhite=0x7f08002e; /** 海绿色 */ public static final int forestgreen=0x7f0800a7; /** 深粉红色 */ public static final int fuchsia=0x7f080045; /** 洋李色 */ public static final int gainsboro=0x7f08005f; /** 鲜肉色 */ public static final int ghostwhite=0x7f08004d; /** 桃色 */ public static final int gold=0x7f08003a; /** 苍紫罗兰色 */ public static final int goldenrod=0x7f080062; /** 天蓝色 */ public static final int gray=0x7f080087; public static final int gray_text=0x7f080015; /** 水鸭色 */ public static final int green=0x7f0800b4; /** 苍宝石绿 */ public static final int greenyellow=0x7f080075; /** 灰色 */ public static final int grey=0x7f080088; public static final int halfAlpha=0x7f080017; public static final int headColor=0x7f08001f; public static final int heartrate_curve=0x7f080006; /** 天蓝色 */ public static final int honeydew=0x7f080054; /** 珊瑚色 */ public static final int hotpink=0x7f080041; /** 秘鲁色 */ public static final int indianred=0x7f08006a; /** 暗橄榄绿 */ public static final int indigo=0x7f08009c; /** 白色 */ public static final int ivory=0x7f08002a; /** 艾利斯兰 */ public static final int khaki=0x7f080056; /** 暗肉色 */ public static final int lavender=0x7f08005b; /** 海贝色 */ public static final int lavenderblush=0x7f080032; /** 黄绿色 */ public static final int lawngreen=0x7f08008e; /** 花白色 */ public static final int lemonchiffon=0x7f08002f; /** 黄绿色 */ public static final int lightblue=0x7f080076; /** 黄褐色 */ public static final int lightcoral=0x7f080057; /** 淡紫色 */ public static final int lightcyan=0x7f08005c; /** 老花色 */ public static final int lightgoldenrodyellow=0x7f080049; /** 蓟色 */ public static final int lightgray=0x7f080065; /** 中紫色 */ public static final int lightgreen=0x7f08007f; /** 亮灰色 */ public static final int lightgrey=0x7f080066; /** 粉红色 */ public static final int lightpink=0x7f08003c; /** 橙色 */ public static final int lightsalmon=0x7f08003e; /** 森林绿 */ public static final int lightseagreen=0x7f0800a8; /** 紫罗兰蓝色 */ public static final int lightskyblue=0x7f080085; /** 中暗蓝色 */ public static final int lightslategray=0x7f080090; /** 亮蓝灰 */ public static final int lightslategrey=0x7f080091; /** 粉蓝色 */ public static final int lightsteelblue=0x7f080073; /** 象牙色 */ public static final int lightyellow=0x7f08002b; /** 春绿色 */ public static final int lime=0x7f0800ae; /** 中海蓝 */ public static final int limegreen=0x7f0800a3; /** 亮金黄色 */ public static final int linen=0x7f08004a; public static final int listViewColor=0x7f08001e; /** 紫红色 */ public static final int magenta=0x7f080046; public static final int main_color=0x7f080007; public static final int main_color2=0x7f080009; public static final int main_item_color=0x7f080008; /** 紫色 */ public static final int maroon=0x7f08008b; /** 暗灰色 */ public static final int mediumaquamarine=0x7f080098; /** 蓝色 */ public static final int mediumblue=0x7f0800b7; /** 褐玫瑰红 */ public static final int mediumorchid=0x7f08006f; /** 暗紫罗兰色 */ public static final int mediumpurple=0x7f08007e; /** 青绿色 */ public static final int mediumseagreen=0x7f0800a2; /** 草绿色 */ public static final int mediumslateblue=0x7f08008f; /** 酸橙色 */ public static final int mediumspringgreen=0x7f0800af; /** 靛青色 */ public static final int mediumturquoise=0x7f08009d; /** 印第安红 */ public static final int mediumvioletred=0x7f08006b; /** 闪兰色 */ public static final int midnightblue=0x7f0800aa; /** 幽灵白 */ public static final int mintcream=0x7f08004e; /** 白杏色 */ public static final int mistyrose=0x7f080035; /** 桔黄色 */ public static final int moccasin=0x7f080037; public static final int my_lightgray=0x7f08000b; /** 鹿皮色 */ public static final int navajowhite=0x7f080038; /** 暗蓝色 */ public static final int navy=0x7f0800b9; public static final int none_color=0x7f080022; /** 红色 */ public static final int oldlace=0x7f080048; /** 灰色 */ public static final int olive=0x7f080089; /** 灰石色 */ public static final int olivedrab=0x7f080094; /** 亮粉红色 */ public static final int orange=0x7f08003d; /** 西红柿色 */ public static final int orangered=0x7f080043; /** 金麒麟色 */ public static final int orchid=0x7f080063; /** 亮珊瑚色 */ public static final int palegoldenrod=0x7f080058; /** 暗紫色 */ public static final int palegreen=0x7f08007c; /** 亮钢兰色 */ public static final int paleturquoise=0x7f080074; /** 暗深红色 */ public static final int palevioletred=0x7f080061; /** 淡紫红 */ public static final int papayawhip=0x7f080033; public static final int pay=0x7f080024; /** 纳瓦白 */ public static final int peachpuff=0x7f080039; /** 巧可力色 */ public static final int peru=0x7f080069; /** 金色 */ public static final int pink=0x7f08003b; public static final int plugin_camera_black=0x7f080023; /** 实木色 */ public static final int plum=0x7f08005e; /** 火砖色 */ public static final int powderblue=0x7f080072; /** 橄榄色 */ public static final int purple=0x7f08008a; public static final int qiansleep=0x7f080026; /** 红紫色 */ public static final int red=0x7f080047; /** 暗黄褐色 */ public static final int rosybrown=0x7f08006e; /** 钢兰色 */ public static final int royalblue=0x7f0800a0; /** 暗海兰色 */ public static final int saddlebrown=0x7f080081; /** 古董白 */ public static final int salmon=0x7f08004c; /** 浅黄色 */ public static final int sandybrown=0x7f080052; /** 暗瓦灰色 */ public static final int seagreen=0x7f0800a6; /** 米绸色 */ public static final int seashell=0x7f080031; /** 褐色 */ public static final int sienna=0x7f08007a; /** 中紫罗兰色 */ public static final int silver=0x7f08006c; /** 亮天蓝色 */ public static final int skyblue=0x7f080086; /** 深绿褐色 */ public static final int slateblue=0x7f080095; /** 亮蓝灰 */ public static final int slategray=0x7f080092; /** 灰石色 */ public static final int slategrey=0x7f080093; public static final int sleep_bg=0x7f08001c; public static final int sleep_title_bg=0x7f080027; /** 黄色 */ public static final int snow=0x7f08002d; /** 青色 */ public static final int springgreen=0x7f0800ad; /** 暗灰蓝色 */ public static final int steelblue=0x7f08009f; /** 亮灰色 */ public static final int tan=0x7f080067; /** 暗青色 */ public static final int teal=0x7f0800b3; /** 淡紫色 */ public static final int thistle=0x7f080064; public static final int time_bg=0x7f080016; public static final int timecolor=0x7f080029; /** 热粉红色 */ public static final int tomato=0x7f080042; public static final int transparent=0x7f08000c; /** 皇家蓝 */ public static final int turquoise=0x7f0800a1; public static final int view_color=0x7f080003; /** 苍麒麟色 */ public static final int violet=0x7f080059; /** 米色 */ public static final int wheat=0x7f080051; public static final int white=0x7f08000a; /** 薄荷色 */ public static final int whitesmoke=0x7f08004f; /** 亮黄色 */ public static final int yellow=0x7f08002c; } public static final class dimen { /** Default height of an action bar. Default height of an action bar. Default height of an action bar. Default height of an action bar. Default height of an action bar. */ public static final int abc_action_bar_default_height=0x7f090002; /** Vertical padding around action bar icons. Vertical padding around action bar icons. Vertical padding around action bar icons. Vertical padding around action bar icons. Vertical padding around action bar icons. */ public static final int abc_action_bar_icon_vertical_padding=0x7f090003; /** Maximum height for a stacked tab bar as part of an action bar */ public static final int abc_action_bar_stacked_max_height=0x7f090009; /** Maximum width for a stacked action bar tab. This prevents action bar tabs from becoming too wide on a wide screen when only a few are present. */ public static final int abc_action_bar_stacked_tab_max_width=0x7f090001; /** Bottom margin for action bar subtitles Bottom margin for action bar subtitles Bottom margin for action bar subtitles Bottom margin for action bar subtitles Bottom margin for action bar subtitles */ public static final int abc_action_bar_subtitle_bottom_margin=0x7f090007; /** Text size for action bar subtitles Text size for action bar subtitles Text size for action bar subtitles Text size for action bar subtitles Text size for action bar subtitles */ public static final int abc_action_bar_subtitle_text_size=0x7f090005; /** Top margin for action bar subtitles Top margin for action bar subtitles Top margin for action bar subtitles Top margin for action bar subtitles Top margin for action bar subtitles */ public static final int abc_action_bar_subtitle_top_margin=0x7f090006; /** Text size for action bar titles Text size for action bar titles Text size for action bar titles Text size for action bar titles Text size for action bar titles */ public static final int abc_action_bar_title_text_size=0x7f090004; /** Minimum width for an action button in the menu area of an action bar Minimum width for an action button in the menu area of an action bar Minimum width for an action button in the menu area of an action bar */ public static final int abc_action_button_min_width=0x7f090008; /** The maximum width we would prefer dialogs to be. 0 if there is no maximum (let them grow as large as the screen). Actual values are specified for -large and -xlarge configurations. see comment in values/config.xml see comment in values/config.xml */ public static final int abc_config_prefDialogWidth=0x7f090000; /** Width of the icon in a dropdown list */ public static final int abc_dropdownitem_icon_width=0x7f09000f; /** Text padding for dropdown items */ public static final int abc_dropdownitem_text_padding_left=0x7f09000d; public static final int abc_dropdownitem_text_padding_right=0x7f09000e; public static final int abc_panel_menu_list_width=0x7f09000a; /** Preferred width of the search view. */ public static final int abc_search_view_preferred_width=0x7f09000c; /** Minimum width of the search view text entry area. Minimum width of the search view text entry area. Minimum width of the search view text entry area. Minimum width of the search view text entry area. */ public static final int abc_search_view_text_min_width=0x7f09000b; /** Default screen margins, per the Android Design guidelines. Example customization of dimensions originally defined in res/values/dimens.xml (such as screen margins) for screens with more than 820dp of available width. This would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). */ public static final int activity_horizontal_margin=0x7f090010; public static final int activity_vertical_margin=0x7f090011; } public static final class drawable { public static final int abc_ab_bottom_solid_dark_holo=0x7f020000; public static final int abc_ab_bottom_solid_light_holo=0x7f020001; public static final int abc_ab_bottom_transparent_dark_holo=0x7f020002; public static final int abc_ab_bottom_transparent_light_holo=0x7f020003; public static final int abc_ab_share_pack_holo_dark=0x7f020004; public static final int abc_ab_share_pack_holo_light=0x7f020005; public static final int abc_ab_solid_dark_holo=0x7f020006; public static final int abc_ab_solid_light_holo=0x7f020007; public static final int abc_ab_stacked_solid_dark_holo=0x7f020008; public static final int abc_ab_stacked_solid_light_holo=0x7f020009; public static final int abc_ab_stacked_transparent_dark_holo=0x7f02000a; public static final int abc_ab_stacked_transparent_light_holo=0x7f02000b; public static final int abc_ab_transparent_dark_holo=0x7f02000c; public static final int abc_ab_transparent_light_holo=0x7f02000d; public static final int abc_cab_background_bottom_holo_dark=0x7f02000e; public static final int abc_cab_background_bottom_holo_light=0x7f02000f; public static final int abc_cab_background_top_holo_dark=0x7f020010; public static final int abc_cab_background_top_holo_light=0x7f020011; public static final int abc_ic_ab_back_holo_dark=0x7f020012; public static final int abc_ic_ab_back_holo_light=0x7f020013; public static final int abc_ic_cab_done_holo_dark=0x7f020014; public static final int abc_ic_cab_done_holo_light=0x7f020015; public static final int abc_ic_clear=0x7f020016; public static final int abc_ic_clear_disabled=0x7f020017; public static final int abc_ic_clear_holo_light=0x7f020018; public static final int abc_ic_clear_normal=0x7f020019; public static final int abc_ic_clear_search_api_disabled_holo_light=0x7f02001a; public static final int abc_ic_clear_search_api_holo_light=0x7f02001b; public static final int abc_ic_commit_search_api_holo_dark=0x7f02001c; public static final int abc_ic_commit_search_api_holo_light=0x7f02001d; public static final int abc_ic_go=0x7f02001e; public static final int abc_ic_go_search_api_holo_light=0x7f02001f; public static final int abc_ic_menu_moreoverflow_normal_holo_dark=0x7f020020; public static final int abc_ic_menu_moreoverflow_normal_holo_light=0x7f020021; public static final int abc_ic_menu_share_holo_dark=0x7f020022; public static final int abc_ic_menu_share_holo_light=0x7f020023; public static final int abc_ic_search=0x7f020024; public static final int abc_ic_search_api_holo_light=0x7f020025; public static final int abc_ic_voice_search=0x7f020026; public static final int abc_ic_voice_search_api_holo_light=0x7f020027; public static final int abc_item_background_holo_dark=0x7f020028; public static final int abc_item_background_holo_light=0x7f020029; public static final int abc_list_divider_holo_dark=0x7f02002a; public static final int abc_list_divider_holo_light=0x7f02002b; public static final int abc_list_focused_holo=0x7f02002c; public static final int abc_list_longpressed_holo=0x7f02002d; public static final int abc_list_pressed_holo_dark=0x7f02002e; public static final int abc_list_pressed_holo_light=0x7f02002f; public static final int abc_list_selector_background_transition_holo_dark=0x7f020030; public static final int abc_list_selector_background_transition_holo_light=0x7f020031; public static final int abc_list_selector_disabled_holo_dark=0x7f020032; public static final int abc_list_selector_disabled_holo_light=0x7f020033; public static final int abc_list_selector_holo_dark=0x7f020034; public static final int abc_list_selector_holo_light=0x7f020035; public static final int abc_menu_dropdown_panel_holo_dark=0x7f020036; public static final int abc_menu_dropdown_panel_holo_light=0x7f020037; public static final int abc_menu_hardkey_panel_holo_dark=0x7f020038; public static final int abc_menu_hardkey_panel_holo_light=0x7f020039; public static final int abc_search_dropdown_dark=0x7f02003a; public static final int abc_search_dropdown_light=0x7f02003b; public static final int abc_spinner_ab_default_holo_dark=0x7f02003c; public static final int abc_spinner_ab_default_holo_light=0x7f02003d; public static final int abc_spinner_ab_disabled_holo_dark=0x7f02003e; public static final int abc_spinner_ab_disabled_holo_light=0x7f02003f; public static final int abc_spinner_ab_focused_holo_dark=0x7f020040; public static final int abc_spinner_ab_focused_holo_light=0x7f020041; public static final int abc_spinner_ab_holo_dark=0x7f020042; public static final int abc_spinner_ab_holo_light=0x7f020043; public static final int abc_spinner_ab_pressed_holo_dark=0x7f020044; public static final int abc_spinner_ab_pressed_holo_light=0x7f020045; public static final int abc_tab_indicator_ab_holo=0x7f020046; public static final int abc_tab_selected_focused_holo=0x7f020047; public static final int abc_tab_selected_holo=0x7f020048; public static final int abc_tab_selected_pressed_holo=0x7f020049; public static final int abc_tab_unselected_pressed_holo=0x7f02004a; public static final int abc_textfield_search_default_holo_dark=0x7f02004b; public static final int abc_textfield_search_default_holo_light=0x7f02004c; public static final int abc_textfield_search_right_default_holo_dark=0x7f02004d; public static final int abc_textfield_search_right_default_holo_light=0x7f02004e; public static final int abc_textfield_search_right_selected_holo_dark=0x7f02004f; public static final int abc_textfield_search_right_selected_holo_light=0x7f020050; public static final int abc_textfield_search_selected_holo_dark=0x7f020051; public static final int abc_textfield_search_selected_holo_light=0x7f020052; public static final int abc_textfield_searchview_holo_dark=0x7f020053; public static final int abc_textfield_searchview_holo_light=0x7f020054; public static final int abc_textfield_searchview_right_holo_dark=0x7f020055; public static final int abc_textfield_searchview_right_holo_light=0x7f020056; public static final int account_icon=0x7f020057; public static final int action=0x7f020058; public static final int action_pause=0x7f020059; public static final int action_start=0x7f02005a; public static final int all_bound=0x7f02005b; public static final int app_icon=0x7f02005c; public static final int arrow_back=0x7f02005d; public static final int arrow_r=0x7f02005e; public static final int background=0x7f02005f; public static final int boder=0x7f020060; public static final int bt_corners_bg=0x7f020061; public static final int btn_left_selector=0x7f020062; public static final int btn_post_no=0x7f020063; public static final int btn_post_normal=0x7f020064; public static final int btn_post_pressed=0x7f020065; public static final int btn_post_selector=0x7f020066; public static final int btn_right_normal=0x7f020067; public static final int btn_right_pressed=0x7f020068; public static final int btn_style_one_focused=0x7f020069; public static final int btn_style_one_normal=0x7f02006a; public static final int btn_style_one_pressed=0x7f02006b; public static final int button_bg=0x7f02006c; public static final int button_selector=0x7f02006d; public static final int choose_date=0x7f02006e; public static final int corners_bg=0x7f02006f; public static final int count_bg=0x7f020070; public static final int delete_selector=0x7f020071; public static final int dialog_background=0x7f020072; public static final int edit2=0x7f020073; public static final int edit_indicator=0x7f020074; public static final int hearhrate_cancel=0x7f020075; public static final int heartrate=0x7f020076; public static final int heartrate_circle=0x7f020077; public static final int homebg2=0x7f020078; public static final int homepage_item_excaption=0x7f020079; public static final int homepage_item_heartrate1=0x7f02007a; public static final int homepage_item_personal=0x7f02007b; public static final int homepage_item_record=0x7f02007c; public static final int homeviewpage1=0x7f02007d; public static final int homeviewpage2=0x7f02007e; public static final int homeviewpage3=0x7f02007f; public static final int ic_action=0x7f020080; public static final int ic_action_about=0x7f020081; public static final int ic_action_refresh=0x7f020082; public static final int ic_data_record=0x7f020083; public static final int ic_exception=0x7f020084; public static final int ic_health_knowledge=0x7f020085; public static final int ic_health_plan=0x7f020086; public static final int ic_heartrate=0x7f020087; public static final int ic_menu_allfriends=0x7f020088; public static final int ic_menu_invite=0x7f020089; public static final int ic_person_data=0x7f02008a; public static final int ic_position=0x7f02008b; public static final int ic_setting=0x7f02008c; public static final int icon_email=0x7f02008d; public static final int icon_user=0x7f02008e; public static final int item_selector=0x7f02008f; public static final int layout_bg=0x7f020090; public static final int link_background=0x7f020091; public static final int link_background1=0x7f020092; public static final int login_edit_normal=0x7f020093; public static final int login_edit_pressed=0x7f020094; public static final int plan_bg=0x7f020095; public static final int position=0x7f020096; public static final int sanjiao=0x7f020097; public static final int search_clear_normal=0x7f020098; public static final int search_clear_pressed=0x7f020099; public static final int sign_inbg2=0x7f02009a; public static final int sign_upbg=0x7f02009b; public static final int sleep=0x7f02009c; public static final int state_bg=0x7f02009d; public static final int tab_backgroud=0x7f02009e; public static final int yuanjiao=0x7f02009f; public static final int yuanjiao2=0x7f0200a0; public static final int yuanjiao3=0x7f0200a1; } public static final class id { public static final int East=0x7f060018; public static final int North=0x7f06001b; public static final int South=0x7f060019; public static final int West=0x7f06001a; public static final int act_action_histery_calorie=0x7f06004b; public static final int act_action_histery_consumed=0x7f06004c; public static final int act_action_histery_kilometer=0x7f06004a; public static final int act_action_histery_step=0x7f060049; public static final int action_aims=0x7f060071; public static final int action_bar=0x7f06001e; public static final int action_bar_activity_content=0x7f060015; public static final int action_bar_container=0x7f06001d; public static final int action_bar_overlay_layout=0x7f060021; public static final int action_bar_root=0x7f06001c; public static final int action_bar_subtitle=0x7f060025; public static final int action_bar_title=0x7f060024; public static final int action_circleprogressbar=0x7f060072; public static final int action_context_bar=0x7f06001f; public static final int action_item_activetime=0x7f060077; public static final int action_item_calorie=0x7f060076; public static final int action_item_kilometer=0x7f060078; public static final int action_menu_divider=0x7f060016; public static final int action_menu_presenter=0x7f060017; public static final int action_mode_bar=0x7f060033; public static final int action_mode_bar_stub=0x7f060032; public static final int action_mode_close_button=0x7f060026; public static final int action_plan=0x7f060073; public static final int action_settings=0x7f06010a; public static final int action_todaystep=0x7f060070; public static final int action_view_pause=0x7f060075; public static final int action_view_start=0x7f060074; public static final int activity_chooser_view_content=0x7f060027; public static final int address=0x7f0600b0; public static final int age=0x7f0600a3; public static final int always=0x7f06000b; public static final int beginning=0x7f060011; public static final int birth_text=0x7f060102; public static final int bluetooth_dialog_cancel=0x7f06005c; public static final int bluetooth_dialog_ok=0x7f06005b; public static final int bt_left=0x7f060046; public static final int bt_out=0x7f06005a; public static final int bt_right=0x7f060047; public static final int calendar_view=0x7f06005d; public static final int cancel=0x7f0600ee; public static final int capability_fragment_menu_refresh=0x7f060109; public static final int changePwd=0x7f060059; public static final int checkbox=0x7f06002f; public static final int choose_date=0x7f0600bf; public static final int city_text=0x7f060105; public static final int collapseActionView=0x7f06000d; public static final int confirm=0x7f060061; public static final int contact=0x7f0600ab; public static final int data=0x7f060108; public static final int data_back=0x7f060062; public static final int date_picker=0x7f060064; public static final int day=0x7f0600ed; public static final int ddi_about=0x7f06006d; public static final int ddi_background=0x7f060068; public static final int ddi_connect=0x7f06006a; public static final int ddi_connectedstate=0x7f06006c; public static final int ddi_name=0x7f060069; public static final int ddi_save=0x7f06006b; public static final int deep_values_btn=0x7f0600de; public static final int deepsleep=0x7f0600c5; public static final int deepsleeptext=0x7f0600c4; public static final int default_activity_button=0x7f06002a; public static final int df_discover=0x7f060079; public static final int df_discovering=0x7f06007a; public static final int df_list=0x7f06007b; public static final int dialog=0x7f06000e; public static final int disableHome=0x7f060008; public static final int dropdown=0x7f06000f; public static final int e_mail=0x7f0600a9; public static final int edit_birthday_name=0x7f060101; public static final int edit_birthday_textview=0x7f060103; public static final int edit_city_name=0x7f060104; public static final int edit_city_textview=0x7f060106; public static final int edit_ed=0x7f06004e; public static final int edit_height_name=0x7f0600fb; public static final int edit_height_textview=0x7f0600fd; public static final int edit_name_textview=0x7f0600f2; public static final int edit_province_name=0x7f0600f6; public static final int edit_province_textview=0x7f0600f7; public static final int edit_query=0x7f06003a; public static final int edit_sex_name=0x7f0600f3; public static final int edit_sex_textview=0x7f0600f5; public static final int edit_tv=0x7f06004d; public static final int edit_userinfo=0x7f06004f; public static final int edit_userinfo_name=0x7f0600f0; public static final int edit_weight_name=0x7f0600fe; public static final int edit_weight_textview=0x7f060100; public static final int edit_work_name=0x7f0600f8; public static final int edit_work_textview=0x7f0600fa; public static final int end=0x7f060013; public static final int excp_back=0x7f06006e; public static final int expand_activities_button=0x7f060028; public static final int expanded_menu=0x7f06002e; public static final int findpassword_email=0x7f0600d4; public static final int frag_heartrate_layout=0x7f06007c; public static final int health_plan=0x7f06008e; public static final int heartrate_circle_cancelview=0x7f060084; public static final int heartrate_circle_drawchart=0x7f060081; public static final int heartrate_circle_main=0x7f060082; public static final int heartrate_circle_processview=0x7f060080; public static final int heartrate_circle_textview=0x7f060083; public static final int heartrate_show_text=0x7f06007f; public static final int heartrate_title_textview=0x7f06007d; public static final int height=0x7f06009f; public static final int height_text=0x7f0600fc; public static final int high=0x7f060091; public static final int home=0x7f060014; public static final int homeAsUp=0x7f060005; public static final int homepage_item1=0x7f060086; public static final int homepage_item2=0x7f060088; public static final int homepage_item3=0x7f060089; public static final int homepage_item4=0x7f06008a; public static final int homepage_item5=0x7f06008b; public static final int homepage_viewpager=0x7f060085; public static final int icon=0x7f06002c; public static final int id_bottom=0x7f060093; public static final int id_gallery=0x7f0600c1; public static final int id_indicator_home=0x7f060094; public static final int id_indicator_one=0x7f060095; public static final int id_indicator_three=0x7f060097; public static final int id_indicator_two=0x7f060096; public static final int id_viewpager=0x7f060092; public static final int ifRoom=0x7f06000a; public static final int image=0x7f060029; public static final int in_bt_findpasswordbyemail=0x7f0600d5; public static final int in_close=0x7f0600d0; public static final int in_forget_password=0x7f0600d1; public static final int in_layout_findpasswordbyemail=0x7f0600d3; public static final int in_password=0x7f0600cf; public static final int in_sign_in=0x7f0600d6; public static final int in_sign_up=0x7f0600d7; public static final int in_spinner=0x7f0600d2; public static final int in_username=0x7f0600ce; public static final int infor_edit=0x7f06009b; public static final int infor_ll_facus=0x7f06009c; public static final int infor_save=0x7f0600ac; public static final int latitude=0x7f0600af; public static final int left_icon=0x7f060035; public static final int listMode=0x7f060001; public static final int listView1=0x7f060063; public static final int listViewException=0x7f06006f; public static final int list_item=0x7f06002b; public static final int listview=0x7f0600c0; public static final int login=0x7f060087; public static final int longitude=0x7f0600ae; public static final int low=0x7f060090; public static final int middle=0x7f060012; public static final int month=0x7f0600ec; public static final int myview=0x7f06008f; public static final int name=0x7f06009d; public static final int name_text=0x7f0600f1; public static final int never=0x7f060009; public static final int new_password=0x7f06005f; public static final int none=0x7f060010; public static final int normal=0x7f060000; public static final int pager=0x7f060065; public static final int perWeekStepsChart=0x7f060048; public static final int person_back=0x7f060099; public static final int person_username=0x7f06009a; public static final int picker_title=0x7f0600ea; public static final int plan_back=0x7f06008d; public static final int position_start=0x7f0600ad; public static final int position_stop=0x7f0600b1; public static final int progressBar=0x7f060066; public static final int progress_circular=0x7f060038; public static final int progress_horizontal=0x7f060039; public static final int pwd=0x7f06005e; public static final int qian_values_btn=0x7f0600dd; public static final int qianshuiText=0x7f0600c6; public static final int qiansleep=0x7f0600c7; public static final int qingxingText=0x7f0600cc; public static final int qingxingTime=0x7f0600cd; public static final int radio=0x7f060031; public static final int radio0=0x7f0600a6; public static final int radio1=0x7f0600a7; public static final int radioGroup1=0x7f0600a4; public static final int right_container=0x7f060036; public static final int right_icon=0x7f060037; public static final int rushuiText=0x7f0600c8; public static final int rushuiTime=0x7f0600c9; public static final int sanjiao=0x7f0600df; public static final int search_badge=0x7f06003c; public static final int search_bar=0x7f06003b; public static final int search_button=0x7f06003d; public static final int search_close_btn=0x7f060042; public static final int search_edit_frame=0x7f06003e; public static final int search_go_btn=0x7f060044; public static final int search_mag_icon=0x7f06003f; public static final int search_plate=0x7f060040; public static final int search_src_text=0x7f060041; public static final int search_voice_btn=0x7f060045; public static final int section_label=0x7f06008c; public static final int setting_back=0x7f0600b2; public static final int setting_delete=0x7f0600be; public static final int setting_imageView1=0x7f0600b4; public static final int setting_imageView2=0x7f0600b6; public static final int setting_imageView3=0x7f0600b8; public static final int setting_imageView4=0x7f0600ba; public static final int setting_imageView5=0x7f0600bc; public static final int setting_toggleButton1=0x7f0600b3; public static final int setting_toggleButton2=0x7f0600b5; public static final int setting_toggleButton3=0x7f0600b7; public static final int setting_toggleButton4=0x7f0600b9; public static final int setting_toggleButton5=0x7f0600bb; public static final int setting_upload=0x7f0600bd; public static final int sex_text=0x7f0600f4; public static final int shortcut=0x7f060030; public static final int showCustom=0x7f060007; public static final int showHome=0x7f060004; public static final int showTitle=0x7f060006; public static final int sleepTime=0x7f0600c3; public static final int sleepTimeText=0x7f0600c2; public static final int split_action_bar=0x7f060020; public static final int spread_pie_chart=0x7f0600e3; public static final int sta_back=0x7f0600e1; public static final int sta_calendarView=0x7f0600e2; public static final int sta_downCount=0x7f0600e8; public static final int sta_runCount=0x7f0600e7; public static final int sta_sitCount=0x7f0600e5; public static final int sta_stepCount=0x7f0600e4; public static final int sta_upCount=0x7f0600e9; public static final int sta_walkCount=0x7f0600e6; public static final int submit_area=0x7f060043; public static final int sure_new_password=0x7f060060; public static final int tabMode=0x7f060002; public static final int text=0x7f060107; public static final int textView=0x7f060067; public static final int textView1=0x7f060098; public static final int textView11=0x7f0600aa; public static final int textView2=0x7f0600a0; public static final int textView3=0x7f06009e; public static final int textView4=0x7f0600a8; public static final int textView5=0x7f0600a2; public static final int textView7=0x7f0600a5; public static final int textview=0x7f0600e0; public static final int title=0x7f06002d; public static final int title_container=0x7f060034; public static final int top_action_bar=0x7f060022; public static final int up=0x7f060023; public static final int up_confirm_password=0x7f0600db; public static final int up_name=0x7f0600d9; public static final int up_password=0x7f0600da; public static final int up_sign_up=0x7f0600dc; public static final int up_username=0x7f0600d8; public static final int upload=0x7f06007e; public static final int useLogo=0x7f060003; public static final int userinfo_birthday=0x7f060057; public static final int userinfo_city=0x7f060052; public static final int userinfo_height=0x7f060055; public static final int userinfo_name=0x7f060050; public static final int userinfo_phonenum=0x7f060058; public static final int userinfo_province=0x7f060051; public static final int userinfo_sex=0x7f060053; public static final int userinfo_title_textview=0x7f0600ef; public static final int userinfo_weight=0x7f060056; public static final int userinfo_work=0x7f060054; public static final int weight=0x7f0600a1; public static final int weight_text=0x7f0600ff; public static final int withText=0x7f06000c; public static final int work_text=0x7f0600f9; public static final int xinglaiText=0x7f0600ca; public static final int xinglaiTime=0x7f0600cb; public static final int year=0x7f0600eb; } public static final class integer { /** The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. The maximum number of action buttons that should be permitted within an action bar/action mode. This will be used to determine how many showAsAction="ifRoom" items can fit. "always" items can override this. */ public static final int abc_max_action_buttons=0x7f0a0000; } public static final class layout { public static final int abc_action_bar_decor=0x7f030000; public static final int abc_action_bar_decor_include=0x7f030001; public static final int abc_action_bar_decor_overlay=0x7f030002; public static final int abc_action_bar_home=0x7f030003; public static final int abc_action_bar_tab=0x7f030004; public static final int abc_action_bar_tabbar=0x7f030005; public static final int abc_action_bar_title_item=0x7f030006; public static final int abc_action_bar_view_list_nav_layout=0x7f030007; public static final int abc_action_menu_item_layout=0x7f030008; public static final int abc_action_menu_layout=0x7f030009; public static final int abc_action_mode_bar=0x7f03000a; public static final int abc_action_mode_close_item=0x7f03000b; public static final int abc_activity_chooser_view=0x7f03000c; public static final int abc_activity_chooser_view_include=0x7f03000d; public static final int abc_activity_chooser_view_list_item=0x7f03000e; public static final int abc_expanded_menu_layout=0x7f03000f; public static final int abc_list_menu_item_checkbox=0x7f030010; public static final int abc_list_menu_item_icon=0x7f030011; public static final int abc_list_menu_item_layout=0x7f030012; public static final int abc_list_menu_item_radio=0x7f030013; public static final int abc_popup_menu_item_layout=0x7f030014; public static final int abc_screen=0x7f030015; public static final int abc_search_dropdown_item_icons_2line=0x7f030016; public static final int abc_search_view=0x7f030017; public static final int act_actionhistory=0x7f030018; public static final int act_actionhistory_item=0x7f030019; public static final int activity_edit=0x7f03001a; public static final int activity_user=0x7f03001b; public static final int bluetooth_dialog=0x7f03001c; public static final int calendar_dialog=0x7f03001d; public static final int changepwd=0x7f03001e; public static final int custom_title=0x7f03001f; public static final int data_record=0x7f030020; public static final int date_dialog=0x7f030021; public static final int device_details_activity=0x7f030022; public static final int dialog=0x7f030023; public static final int discover_activity=0x7f030024; public static final int discovered_device_item=0x7f030025; public static final int exception_record=0x7f030026; public static final int frag_action=0x7f030027; public static final int frag_action_item=0x7f030028; public static final int frag_discover=0x7f030029; public static final int frag_heartrate=0x7f03002a; public static final int frag_heartrate_centeritem=0x7f03002b; public static final int frag_homepage=0x7f03002c; public static final int frag_homepage_item=0x7f03002d; public static final int fragment_main=0x7f03002e; public static final int health_plan=0x7f03002f; public static final int heartrate_show=0x7f030030; public static final int listview_item=0x7f030031; public static final int main=0x7f030032; public static final int more=0x7f030033; public static final int my_information=0x7f030034; public static final int position=0x7f030035; public static final int setting=0x7f030036; public static final int shuimian=0x7f030037; public static final int sign_in=0x7f030038; public static final int sign_up=0x7f030039; public static final int sleep_listviewitem=0x7f03003a; public static final int statistics=0x7f03003b; public static final int support_simple_spinner_dropdown_item=0x7f03003c; public static final int time_picker=0x7f03003d; public static final int user_info=0x7f03003e; public static final int user_list=0x7f03003f; public static final int viewpage_imageview=0x7f030040; } public static final class menu { public static final int capability_fragment_menu=0x7f0d0000; public static final int device_details=0x7f0d0001; public static final int main=0x7f0d0002; } public static final class raw { public static final int display_cfg_echo_default=0x7f050000; public static final int display_cfg_rflkt_default=0x7f050001; } public static final class string { /** Content description for the action bar "home" affordance. [CHAR LIMIT=NONE] */ public static final int abc_action_bar_home_description=0x7f0b0001; /** Content description for the action bar "up" affordance. [CHAR LIMIT=NONE] */ public static final int abc_action_bar_up_description=0x7f0b0002; /** Content description for the action menu overflow button. [CHAR LIMIT=NONE] */ public static final int abc_action_menu_overflow_description=0x7f0b0003; /** Label for the "Done" button on the far left of action mode toolbars. */ public static final int abc_action_mode_done=0x7f0b0000; /** Title for a button to expand the list of activities in ActivityChooserView [CHAR LIMIT=25] */ public static final int abc_activity_chooser_view_see_all=0x7f0b000a; /** ActivityChooserView - accessibility support Description of the shwoing of a popup window with activities to choose from. [CHAR LIMIT=NONE] */ public static final int abc_activitychooserview_choose_application=0x7f0b0009; /** SearchView accessibility description for clear button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_clear=0x7f0b0006; /** SearchView accessibility description for search text field [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_query=0x7f0b0005; /** SearchView accessibility description for search button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_search=0x7f0b0004; /** SearchView accessibility description for submit button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_submit=0x7f0b0007; /** SearchView accessibility description for voice button [CHAR LIMIT=NONE] */ public static final int abc_searchview_description_voice=0x7f0b0008; /** Description of the choose target button in a ShareActionProvider (share UI). [CHAR LIMIT=NONE] */ public static final int abc_shareactionprovider_share_with=0x7f0b000c; /** Description of a share target (both in the list of such or the default share button) in a ShareActionProvider (share UI). [CHAR LIMIT=NONE] */ public static final int abc_shareactionprovider_share_with_application=0x7f0b000b; public static final int action_add=0x7f0b0015; public static final int action_search=0x7f0b0016; public static final int action_settings=0x7f0b000e; public static final int app_name=0x7f0b000d; public static final int contentDescription=0x7f0b0020; public static final int me_data_record=0x7f0b0011; public static final int me_excption=0x7f0b0010; public static final int me_health_knowledge=0x7f0b0012; public static final int me_health_plan=0x7f0b000f; public static final int me_person_data=0x7f0b0013; public static final int menu_addfriend=0x7f0b0019; public static final int menu_feedback=0x7f0b0018; public static final int menu_group_chat=0x7f0b0017; public static final int menu_scan=0x7f0b001b; public static final int start_app=0x7f0b0014; public static final int tab_action=0x7f0b001c; public static final int tab_heartrate=0x7f0b001d; public static final int tab_me=0x7f0b001a; public static final int tab_more=0x7f0b001f; public static final int tab_position=0x7f0b001e; } public static final class style { /** Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. */ public static final int AppBaseTheme=0x7f0c007f; public static final int AppCompat=0x7f0c0081; /** Application theme. All customizations that are NOT specific to a particular API-level can go here. */ public static final int AppTheme=0x7f0c0080; /** Mimic text appearance in select_dialog_item.xml */ public static final int TextAppearance_AppCompat_Base_CompactMenu_Dialog=0x7f0c0061; public static final int TextAppearance_AppCompat_Base_SearchResult=0x7f0c0069; public static final int TextAppearance_AppCompat_Base_SearchResult_Subtitle=0x7f0c006b; /** Search View result styles */ public static final int TextAppearance_AppCompat_Base_SearchResult_Title=0x7f0c006a; public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Large=0x7f0c0065; public static final int TextAppearance_AppCompat_Base_Widget_PopupMenu_Small=0x7f0c0066; public static final int TextAppearance_AppCompat_Light_Base_SearchResult=0x7f0c006c; public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Subtitle=0x7f0c006e; /** TextAppearance.Holo.Light.SearchResult.* are private so we extend from the default versions instead (which are exactly the same). */ public static final int TextAppearance_AppCompat_Light_Base_SearchResult_Title=0x7f0c006d; public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Large=0x7f0c0067; public static final int TextAppearance_AppCompat_Light_Base_Widget_PopupMenu_Small=0x7f0c0068; public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0c0033; public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0c0032; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0c002e; public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0c002f; public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0c0031; public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0c0030; public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0c001a; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0c0006; public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0c0008; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0c0005; public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0c0007; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0c001e; public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0c0020; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0c001d; public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0c001f; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Menu=0x7f0c0052; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle=0x7f0c0054; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Subtitle_Inverse=0x7f0c0056; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title=0x7f0c0053; public static final int TextAppearance_AppCompat_Widget_Base_ActionBar_Title_Inverse=0x7f0c0055; public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle=0x7f0c004f; public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Subtitle_Inverse=0x7f0c0051; public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title=0x7f0c004e; public static final int TextAppearance_AppCompat_Widget_Base_ActionMode_Title_Inverse=0x7f0c0050; public static final int TextAppearance_AppCompat_Widget_Base_DropDownItem=0x7f0c005f; public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0c0021; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0c002c; public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0c002d; public static final int TextAppearance_Widget_AppCompat_Base_ExpandedMenu_Item=0x7f0c0060; public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0c0028; /** Themes in the "Theme.AppCompat" family will contain an action bar by default. If Holo themes are available on the current platform version they will be used. A limited Holo-styled action bar will be provided on platform versions older than 3.0. (API 11) These theme declarations contain any version-independent specification. Items that need to vary based on platform version should be defined in the corresponding "Theme.Base" theme. Platform-independent theme providing an action bar in a dark-themed activity. */ public static final int Theme_AppCompat=0x7f0c0073; /** Menu/item attributes */ public static final int Theme_AppCompat_Base_CompactMenu=0x7f0c007d; public static final int Theme_AppCompat_Base_CompactMenu_Dialog=0x7f0c007e; /** Menu/item attributes */ public static final int Theme_AppCompat_CompactMenu=0x7f0c0076; public static final int Theme_AppCompat_CompactMenu_Dialog=0x7f0c0077; /** Platform-independent theme providing an action bar in a light-themed activity. */ public static final int Theme_AppCompat_Light=0x7f0c0074; /** Platform-independent theme providing an action bar in a dark-themed activity. */ public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0c0075; /** Base platform-dependent theme */ public static final int Theme_Base=0x7f0c0078; /** Base platform-dependent theme providing an action bar in a dark-themed activity. Base platform-dependent theme providing an action bar in a dark-themed activity. */ public static final int Theme_Base_AppCompat=0x7f0c007a; /** Base platform-dependent theme providing an action bar in a light-themed activity. Base platform-dependent theme providing an action bar in a light-themed activity. */ public static final int Theme_Base_AppCompat_Light=0x7f0c007b; /** Base platform-dependent theme providing a dark action bar in a light-themed activity. Base platform-dependent theme providing a dark action bar in a light-themed activity. */ public static final int Theme_Base_AppCompat_Light_DarkActionBar=0x7f0c007c; /** Base platform-dependent theme providing a light-themed activity. */ public static final int Theme_Base_Light=0x7f0c0079; /** Styles in here can be extended for customisation in your application. Each utilises one of the Base styles. If Holo themes are available on the current platform version they will be used instead of the compat styles. */ public static final int Widget_AppCompat_ActionBar=0x7f0c0000; public static final int Widget_AppCompat_ActionBar_Solid=0x7f0c0002; public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0c0011; public static final int Widget_AppCompat_ActionBar_TabText=0x7f0c0017; public static final int Widget_AppCompat_ActionBar_TabView=0x7f0c0014; public static final int Widget_AppCompat_ActionButton=0x7f0c000b; public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0c000d; public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0c000f; public static final int Widget_AppCompat_ActionMode=0x7f0c001b; public static final int Widget_AppCompat_ActivityChooserView=0x7f0c0036; public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0c0034; public static final int Widget_AppCompat_Base_ActionBar=0x7f0c0038; public static final int Widget_AppCompat_Base_ActionBar_Solid=0x7f0c003a; public static final int Widget_AppCompat_Base_ActionBar_TabBar=0x7f0c0043; public static final int Widget_AppCompat_Base_ActionBar_TabText=0x7f0c0049; public static final int Widget_AppCompat_Base_ActionBar_TabView=0x7f0c0046; /** Action Button Styles */ public static final int Widget_AppCompat_Base_ActionButton=0x7f0c003d; public static final int Widget_AppCompat_Base_ActionButton_CloseMode=0x7f0c003f; public static final int Widget_AppCompat_Base_ActionButton_Overflow=0x7f0c0041; public static final int Widget_AppCompat_Base_ActionMode=0x7f0c004c; public static final int Widget_AppCompat_Base_ActivityChooserView=0x7f0c0071; /** AutoCompleteTextView styles (for SearchView) */ public static final int Widget_AppCompat_Base_AutoCompleteTextView=0x7f0c006f; public static final int Widget_AppCompat_Base_DropDownItem_Spinner=0x7f0c005b; /** Spinner Widgets */ public static final int Widget_AppCompat_Base_ListView_DropDown=0x7f0c005d; public static final int Widget_AppCompat_Base_ListView_Menu=0x7f0c0062; /** Popup Menu */ public static final int Widget_AppCompat_Base_PopupMenu=0x7f0c0063; public static final int Widget_AppCompat_Base_ProgressBar=0x7f0c0058; /** Progress Bar */ public static final int Widget_AppCompat_Base_ProgressBar_Horizontal=0x7f0c0057; /** Action Bar Spinner Widgets */ public static final int Widget_AppCompat_Base_Spinner=0x7f0c0059; public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0c0024; public static final int Widget_AppCompat_Light_ActionBar=0x7f0c0001; public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0c0003; public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0c0004; public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0c0012; public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0c0013; public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0c0018; public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0c0019; public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0c0015; public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0c0016; public static final int Widget_AppCompat_Light_ActionButton=0x7f0c000c; public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0c000e; public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0c0010; public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0c001c; public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0c0037; public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0c0035; public static final int Widget_AppCompat_Light_Base_ActionBar=0x7f0c0039; public static final int Widget_AppCompat_Light_Base_ActionBar_Solid=0x7f0c003b; public static final int Widget_AppCompat_Light_Base_ActionBar_Solid_Inverse=0x7f0c003c; public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar=0x7f0c0044; public static final int Widget_AppCompat_Light_Base_ActionBar_TabBar_Inverse=0x7f0c0045; public static final int Widget_AppCompat_Light_Base_ActionBar_TabText=0x7f0c004a; public static final int Widget_AppCompat_Light_Base_ActionBar_TabText_Inverse=0x7f0c004b; public static final int Widget_AppCompat_Light_Base_ActionBar_TabView=0x7f0c0047; public static final int Widget_AppCompat_Light_Base_ActionBar_TabView_Inverse=0x7f0c0048; public static final int Widget_AppCompat_Light_Base_ActionButton=0x7f0c003e; public static final int Widget_AppCompat_Light_Base_ActionButton_CloseMode=0x7f0c0040; public static final int Widget_AppCompat_Light_Base_ActionButton_Overflow=0x7f0c0042; public static final int Widget_AppCompat_Light_Base_ActionMode_Inverse=0x7f0c004d; public static final int Widget_AppCompat_Light_Base_ActivityChooserView=0x7f0c0072; public static final int Widget_AppCompat_Light_Base_AutoCompleteTextView=0x7f0c0070; public static final int Widget_AppCompat_Light_Base_DropDownItem_Spinner=0x7f0c005c; public static final int Widget_AppCompat_Light_Base_ListView_DropDown=0x7f0c005e; public static final int Widget_AppCompat_Light_Base_PopupMenu=0x7f0c0064; public static final int Widget_AppCompat_Light_Base_Spinner=0x7f0c005a; public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0c0025; public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0c0027; public static final int Widget_AppCompat_Light_PopupMenu=0x7f0c002a; public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0c0023; public static final int Widget_AppCompat_ListView_DropDown=0x7f0c0026; public static final int Widget_AppCompat_ListView_Menu=0x7f0c002b; public static final int Widget_AppCompat_PopupMenu=0x7f0c0029; public static final int Widget_AppCompat_ProgressBar=0x7f0c000a; public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0c0009; public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0c0022; public static final int act_action_item_textview=0x7f0c008c; public static final int act_action_item_textview2=0x7f0c008d; public static final int action_item_textview=0x7f0c0086; public static final int action_item_textview2=0x7f0c0087; public static final int anotherShowstyle=0x7f0c0090; public static final int blue_tooth_dialog_select=0x7f0c0082; public static final int dialog=0x7f0c0092; public static final int dialog_style=0x7f0c0083; public static final int editstyle=0x7f0c008e; public static final int homepage_item_textview1=0x7f0c0084; public static final int homepage_item_textview2=0x7f0c0085; public static final int showstyle=0x7f0c008f; public static final int sleepData=0x7f0c008a; public static final int sleepDataDown=0x7f0c008b; public static final int sleepText=0x7f0c0088; public static final int sleepTextDown=0x7f0c0089; public static final int wheelViewStyle=0x7f0c0091; } public static final class styleable { /** ============================================ Attributes used to style the Action Bar. These should be set on your theme; the default actionBarStyle will propagate them to the correct elements as needed. Please Note: when overriding attributes for an ActionBar style you must specify each attribute twice: once with the "android:" namespace prefix and once without. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActionBar_background com.bbcc.mobilehealth:background}</code></td><td> Specifies a background drawable for the action bar.</td></tr> <tr><td><code>{@link #ActionBar_backgroundSplit com.bbcc.mobilehealth:backgroundSplit}</code></td><td> Specifies a background drawable for the bottom component of a split action bar.</td></tr> <tr><td><code>{@link #ActionBar_backgroundStacked com.bbcc.mobilehealth:backgroundStacked}</code></td><td> Specifies a background drawable for a second stacked row of the action bar.</td></tr> <tr><td><code>{@link #ActionBar_customNavigationLayout com.bbcc.mobilehealth:customNavigationLayout}</code></td><td> Specifies a layout for custom navigation.</td></tr> <tr><td><code>{@link #ActionBar_displayOptions com.bbcc.mobilehealth:displayOptions}</code></td><td> Options affecting how the action bar is displayed.</td></tr> <tr><td><code>{@link #ActionBar_divider com.bbcc.mobilehealth:divider}</code></td><td> Specifies the drawable used for item dividers.</td></tr> <tr><td><code>{@link #ActionBar_height com.bbcc.mobilehealth:height}</code></td><td> Specifies a fixed height.</td></tr> <tr><td><code>{@link #ActionBar_homeLayout com.bbcc.mobilehealth:homeLayout}</code></td><td> Specifies a layout to use for the "home" section of the action bar.</td></tr> <tr><td><code>{@link #ActionBar_icon com.bbcc.mobilehealth:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr> <tr><td><code>{@link #ActionBar_indeterminateProgressStyle com.bbcc.mobilehealth:indeterminateProgressStyle}</code></td><td> Specifies a style resource to use for an indeterminate progress spinner.</td></tr> <tr><td><code>{@link #ActionBar_itemPadding com.bbcc.mobilehealth:itemPadding}</code></td><td> Specifies padding that should be applied to the left and right sides of system-provided items in the bar.</td></tr> <tr><td><code>{@link #ActionBar_logo com.bbcc.mobilehealth:logo}</code></td><td> Specifies the drawable used for the application logo.</td></tr> <tr><td><code>{@link #ActionBar_navigationMode com.bbcc.mobilehealth:navigationMode}</code></td><td> The type of navigation to use.</td></tr> <tr><td><code>{@link #ActionBar_progressBarPadding com.bbcc.mobilehealth:progressBarPadding}</code></td><td> Specifies the horizontal padding on either end for an embedded progress bar.</td></tr> <tr><td><code>{@link #ActionBar_progressBarStyle com.bbcc.mobilehealth:progressBarStyle}</code></td><td> Specifies a style resource to use for an embedded progress bar.</td></tr> <tr><td><code>{@link #ActionBar_subtitle com.bbcc.mobilehealth:subtitle}</code></td><td> Specifies subtitle text used for navigationMode="normal" </td></tr> <tr><td><code>{@link #ActionBar_subtitleTextStyle com.bbcc.mobilehealth:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr> <tr><td><code>{@link #ActionBar_title com.bbcc.mobilehealth:title}</code></td><td> Specifies title text used for navigationMode="normal" </td></tr> <tr><td><code>{@link #ActionBar_titleTextStyle com.bbcc.mobilehealth:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr> </table> @see #ActionBar_background @see #ActionBar_backgroundSplit @see #ActionBar_backgroundStacked @see #ActionBar_customNavigationLayout @see #ActionBar_displayOptions @see #ActionBar_divider @see #ActionBar_height @see #ActionBar_homeLayout @see #ActionBar_icon @see #ActionBar_indeterminateProgressStyle @see #ActionBar_itemPadding @see #ActionBar_logo @see #ActionBar_navigationMode @see #ActionBar_progressBarPadding @see #ActionBar_progressBarStyle @see #ActionBar_subtitle @see #ActionBar_subtitleTextStyle @see #ActionBar_title @see #ActionBar_titleTextStyle */ public static final int[] ActionBar = { 0x7f010021, 0x7f010022, 0x7f010023, 0x7f010024, 0x7f010025, 0x7f010026, 0x7f010027, 0x7f010028, 0x7f010029, 0x7f01002a, 0x7f01002b, 0x7f01002c, 0x7f01002d, 0x7f01002e, 0x7f01002f, 0x7f010030, 0x7f010031, 0x7f010032, 0x7f010033 }; /** <p> @attr description Specifies a background drawable for the action bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:background */ public static final int ActionBar_background = 10; /** <p> @attr description Specifies a background drawable for the bottom component of a split action bar. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:backgroundSplit */ public static final int ActionBar_backgroundSplit = 12; /** <p> @attr description Specifies a background drawable for a second stacked row of the action bar. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:backgroundStacked */ public static final int ActionBar_backgroundStacked = 11; /** <p> @attr description Specifies a layout for custom navigation. Overrides navigationMode. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:customNavigationLayout */ public static final int ActionBar_customNavigationLayout = 13; /** <p> @attr description Options affecting how the action bar is displayed. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>useLogo</code></td><td>0x1</td><td></td></tr> <tr><td><code>showHome</code></td><td>0x2</td><td></td></tr> <tr><td><code>homeAsUp</code></td><td>0x4</td><td></td></tr> <tr><td><code>showTitle</code></td><td>0x8</td><td></td></tr> <tr><td><code>showCustom</code></td><td>0x10</td><td></td></tr> <tr><td><code>disableHome</code></td><td>0x20</td><td></td></tr> </table> <p>This is a private symbol. @attr name com.bbcc.mobilehealth:displayOptions */ public static final int ActionBar_displayOptions = 3; /** <p> @attr description Specifies the drawable used for item dividers. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:divider */ public static final int ActionBar_divider = 9; /** <p> @attr description Specifies a fixed height. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:height */ public static final int ActionBar_height = 1; /** <p> @attr description Specifies a layout to use for the "home" section of the action bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:homeLayout */ public static final int ActionBar_homeLayout = 14; /** <p> @attr description Specifies the drawable used for the application icon. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:icon */ public static final int ActionBar_icon = 7; /** <p> @attr description Specifies a style resource to use for an indeterminate progress spinner. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:indeterminateProgressStyle */ public static final int ActionBar_indeterminateProgressStyle = 16; /** <p> @attr description Specifies padding that should be applied to the left and right sides of system-provided items in the bar. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:itemPadding */ public static final int ActionBar_itemPadding = 18; /** <p> @attr description Specifies the drawable used for the application logo. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:logo */ public static final int ActionBar_logo = 8; /** <p> @attr description The type of navigation to use. <p>Must be one of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>normal</code></td><td>0</td><td> Normal static title text </td></tr> <tr><td><code>listMode</code></td><td>1</td><td> The action bar will use a selection list for navigation. </td></tr> <tr><td><code>tabMode</code></td><td>2</td><td> The action bar will use a series of horizontal tabs for navigation. </td></tr> </table> <p>This is a private symbol. @attr name com.bbcc.mobilehealth:navigationMode */ public static final int ActionBar_navigationMode = 2; /** <p> @attr description Specifies the horizontal padding on either end for an embedded progress bar. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:progressBarPadding */ public static final int ActionBar_progressBarPadding = 17; /** <p> @attr description Specifies a style resource to use for an embedded progress bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:progressBarStyle */ public static final int ActionBar_progressBarStyle = 15; /** <p> @attr description Specifies subtitle text used for navigationMode="normal" <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:subtitle */ public static final int ActionBar_subtitle = 4; /** <p> @attr description Specifies a style to use for subtitle text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:subtitleTextStyle */ public static final int ActionBar_subtitleTextStyle = 6; /** <p> @attr description Specifies title text used for navigationMode="normal" <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:title */ public static final int ActionBar_title = 0; /** <p> @attr description Specifies a style to use for title text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:titleTextStyle */ public static final int ActionBar_titleTextStyle = 5; /** Valid LayoutParams for views placed in the action bar as custom views. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActionBarLayout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr> </table> @see #ActionBarLayout_android_layout_gravity */ public static final int[] ActionBarLayout = { 0x010100b3 }; /** <p>This symbol is the offset where the {@link android.R.attr#layout_gravity} attribute's value can be found in the {@link #ActionBarLayout} array. @attr name android:layout_gravity */ public static final int ActionBarLayout_android_layout_gravity = 0; /** These attributes are meant to be specified and customized by the app. The system will read and apply them as needed. These attributes control properties of the activity window, such as whether an action bar should be present and whether it should overlay content. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActionBarWindow_windowActionBar com.bbcc.mobilehealth:windowActionBar}</code></td><td></td></tr> <tr><td><code>{@link #ActionBarWindow_windowActionBarOverlay com.bbcc.mobilehealth:windowActionBarOverlay}</code></td><td></td></tr> <tr><td><code>{@link #ActionBarWindow_windowSplitActionBar com.bbcc.mobilehealth:windowSplitActionBar}</code></td><td></td></tr> </table> @see #ActionBarWindow_windowActionBar @see #ActionBarWindow_windowActionBarOverlay @see #ActionBarWindow_windowSplitActionBar */ public static final int[] ActionBarWindow = { 0x7f010000, 0x7f010001, 0x7f010002 }; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#windowActionBar} attribute's value can be found in the {@link #ActionBarWindow} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:windowActionBar */ public static final int ActionBarWindow_windowActionBar = 0; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#windowActionBarOverlay} attribute's value can be found in the {@link #ActionBarWindow} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:windowActionBarOverlay */ public static final int ActionBarWindow_windowActionBarOverlay = 1; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#windowSplitActionBar} attribute's value can be found in the {@link #ActionBarWindow} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:windowSplitActionBar */ public static final int ActionBarWindow_windowSplitActionBar = 2; /** Attributes that can be used with a ActionMenuItemView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr> </table> @see #ActionMenuItemView_android_minWidth */ public static final int[] ActionMenuItemView = { 0x0101013f }; /** <p>This symbol is the offset where the {@link android.R.attr#minWidth} attribute's value can be found in the {@link #ActionMenuItemView} array. @attr name android:minWidth */ public static final int ActionMenuItemView_android_minWidth = 0; /** Size of padding on either end of a divider. */ public static final int[] ActionMenuView = { }; /** Attributes that can be used with a ActionMode. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActionMode_background com.bbcc.mobilehealth:background}</code></td><td> Specifies a background for the action mode bar.</td></tr> <tr><td><code>{@link #ActionMode_backgroundSplit com.bbcc.mobilehealth:backgroundSplit}</code></td><td> Specifies a background for the split action mode bar.</td></tr> <tr><td><code>{@link #ActionMode_height com.bbcc.mobilehealth:height}</code></td><td> Specifies a fixed height for the action mode bar.</td></tr> <tr><td><code>{@link #ActionMode_subtitleTextStyle com.bbcc.mobilehealth:subtitleTextStyle}</code></td><td> Specifies a style to use for subtitle text.</td></tr> <tr><td><code>{@link #ActionMode_titleTextStyle com.bbcc.mobilehealth:titleTextStyle}</code></td><td> Specifies a style to use for title text.</td></tr> </table> @see #ActionMode_background @see #ActionMode_backgroundSplit @see #ActionMode_height @see #ActionMode_subtitleTextStyle @see #ActionMode_titleTextStyle */ public static final int[] ActionMode = { 0x7f010022, 0x7f010026, 0x7f010027, 0x7f01002b, 0x7f01002d }; /** <p> @attr description Specifies a background for the action mode bar. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:background */ public static final int ActionMode_background = 3; /** <p> @attr description Specifies a background for the split action mode bar. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:backgroundSplit */ public static final int ActionMode_backgroundSplit = 4; /** <p> @attr description Specifies a fixed height for the action mode bar. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:height */ public static final int ActionMode_height = 0; /** <p> @attr description Specifies a style to use for subtitle text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:subtitleTextStyle */ public static final int ActionMode_subtitleTextStyle = 2; /** <p> @attr description Specifies a style to use for title text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:titleTextStyle */ public static final int ActionMode_titleTextStyle = 1; /** Attrbitutes for a ActivityChooserView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ActivityChooserView_expandActivityOverflowButtonDrawable com.bbcc.mobilehealth:expandActivityOverflowButtonDrawable}</code></td><td> The drawable to show in the button for expanding the activities overflow popup.</td></tr> <tr><td><code>{@link #ActivityChooserView_initialActivityCount com.bbcc.mobilehealth:initialActivityCount}</code></td><td> The maximal number of items initially shown in the activity list.</td></tr> </table> @see #ActivityChooserView_expandActivityOverflowButtonDrawable @see #ActivityChooserView_initialActivityCount */ public static final int[] ActivityChooserView = { 0x7f010066, 0x7f010067 }; /** <p> @attr description The drawable to show in the button for expanding the activities overflow popup. <strong>Note:</strong> Clients would like to set this drawable as a clue about the action the chosen activity will perform. For example, if share activity is to be chosen the drawable should give a clue that sharing is to be performed. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:expandActivityOverflowButtonDrawable */ public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; /** <p> @attr description The maximal number of items initially shown in the activity list. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:initialActivityCount */ public static final int ActivityChooserView_initialActivityCount = 0; /** Attributes that can be used with a ChangeIconColorWithText. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #ChangeIconColorWithText_color com.bbcc.mobilehealth:color}</code></td><td></td></tr> <tr><td><code>{@link #ChangeIconColorWithText_icon com.bbcc.mobilehealth:icon}</code></td><td> Specifies the drawable used for the application icon.</td></tr> <tr><td><code>{@link #ChangeIconColorWithText_text com.bbcc.mobilehealth:text}</code></td><td></td></tr> <tr><td><code>{@link #ChangeIconColorWithText_text_size com.bbcc.mobilehealth:text_size}</code></td><td></td></tr> </table> @see #ChangeIconColorWithText_color @see #ChangeIconColorWithText_icon @see #ChangeIconColorWithText_text @see #ChangeIconColorWithText_text_size */ public static final int[] ChangeIconColorWithText = { 0x7f010028, 0x7f01006f, 0x7f010070, 0x7f010071 }; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#color} attribute's value can be found in the {@link #ChangeIconColorWithText} array. <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:color */ public static final int ChangeIconColorWithText_color = 3; /** <p> @attr description Specifies the drawable used for the application icon. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:icon */ public static final int ChangeIconColorWithText_icon = 0; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#text} attribute's value can be found in the {@link #ChangeIconColorWithText} array. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:text */ public static final int ChangeIconColorWithText_text = 1; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#text_size} attribute's value can be found in the {@link #ChangeIconColorWithText} array. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:text_size */ public static final int ChangeIconColorWithText_text_size = 2; /** Attributes that can be used with a Circle. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #Circle_circleBackground com.bbcc.mobilehealth:circleBackground}</code></td><td></td></tr> <tr><td><code>{@link #Circle_firstChildPosition com.bbcc.mobilehealth:firstChildPosition}</code></td><td></td></tr> <tr><td><code>{@link #Circle_isRotating com.bbcc.mobilehealth:isRotating}</code></td><td></td></tr> <tr><td><code>{@link #Circle_rotateToCenter com.bbcc.mobilehealth:rotateToCenter}</code></td><td></td></tr> </table> @see #Circle_circleBackground @see #Circle_firstChildPosition @see #Circle_isRotating @see #Circle_rotateToCenter */ public static final int[] Circle = { 0x7f01006a, 0x7f01006b, 0x7f01006c, 0x7f01006d }; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#circleBackground} attribute's value can be found in the {@link #Circle} array. <p>Must be an integer value, such as "<code>100</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:circleBackground */ public static final int Circle_circleBackground = 0; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#firstChildPosition} attribute's value can be found in the {@link #Circle} array. <p>Must be one of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>East</code></td><td>0</td><td></td></tr> <tr><td><code>South</code></td><td>90</td><td></td></tr> <tr><td><code>West</code></td><td>180</td><td></td></tr> <tr><td><code>North</code></td><td>270</td><td></td></tr> </table> @attr name com.bbcc.mobilehealth:firstChildPosition */ public static final int Circle_firstChildPosition = 1; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#isRotating} attribute's value can be found in the {@link #Circle} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:isRotating */ public static final int Circle_isRotating = 3; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#rotateToCenter} attribute's value can be found in the {@link #Circle} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:rotateToCenter */ public static final int Circle_rotateToCenter = 2; /** Attributes that can be used with a CircleImageView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #CircleImageView_name com.bbcc.mobilehealth:name}</code></td><td></td></tr> </table> @see #CircleImageView_name */ public static final int[] CircleImageView = { 0x7f01006e }; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#name} attribute's value can be found in the {@link #CircleImageView} array. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:name */ public static final int CircleImageView_name = 0; /** Attributes that can be used with a CircleProgressBar. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #CircleProgressBar_progress_background_color com.bbcc.mobilehealth:progress_background_color}</code></td><td></td></tr> <tr><td><code>{@link #CircleProgressBar_progress_color com.bbcc.mobilehealth:progress_color}</code></td><td></td></tr> <tr><td><code>{@link #CircleProgressBar_progressbar_width com.bbcc.mobilehealth:progressbar_width}</code></td><td></td></tr> </table> @see #CircleProgressBar_progress_background_color @see #CircleProgressBar_progress_color @see #CircleProgressBar_progressbar_width */ public static final int[] CircleProgressBar = { 0x7f010072, 0x7f010073, 0x7f010074 }; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#progress_background_color} attribute's value can be found in the {@link #CircleProgressBar} array. <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:progress_background_color */ public static final int CircleProgressBar_progress_background_color = 1; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#progress_color} attribute's value can be found in the {@link #CircleProgressBar} array. <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:progress_color */ public static final int CircleProgressBar_progress_color = 2; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#progressbar_width} attribute's value can be found in the {@link #CircleProgressBar} array. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:progressbar_width */ public static final int CircleProgressBar_progressbar_width = 0; /** Attributes that can be used with a CompatTextView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #CompatTextView_textAllCaps com.bbcc.mobilehealth:textAllCaps}</code></td><td> Present the text in ALL CAPS.</td></tr> </table> @see #CompatTextView_textAllCaps */ public static final int[] CompatTextView = { 0x7f010069 }; /** <p> @attr description Present the text in ALL CAPS. This may use a small-caps form when available. <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>May be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:textAllCaps */ public static final int CompatTextView_textAllCaps = 0; /** Attributes that can be used with a LinearLayoutICS. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #LinearLayoutICS_divider com.bbcc.mobilehealth:divider}</code></td><td> Drawable to use as a vertical divider between buttons.</td></tr> <tr><td><code>{@link #LinearLayoutICS_dividerPadding com.bbcc.mobilehealth:dividerPadding}</code></td><td> Size of padding on either end of a divider.</td></tr> <tr><td><code>{@link #LinearLayoutICS_showDividers com.bbcc.mobilehealth:showDividers}</code></td><td> Setting for which dividers to show.</td></tr> </table> @see #LinearLayoutICS_divider @see #LinearLayoutICS_dividerPadding @see #LinearLayoutICS_showDividers */ public static final int[] LinearLayoutICS = { 0x7f01002a, 0x7f010051, 0x7f010052 }; /** <p> @attr description Drawable to use as a vertical divider between buttons. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:divider */ public static final int LinearLayoutICS_divider = 0; /** <p> @attr description Size of padding on either end of a divider. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:dividerPadding */ public static final int LinearLayoutICS_dividerPadding = 2; /** <p> @attr description Setting for which dividers to show. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>none</code></td><td>0</td><td></td></tr> <tr><td><code>beginning</code></td><td>1</td><td></td></tr> <tr><td><code>middle</code></td><td>2</td><td></td></tr> <tr><td><code>end</code></td><td>4</td><td></td></tr> </table> <p>This is a private symbol. @attr name com.bbcc.mobilehealth:showDividers */ public static final int LinearLayoutICS_showDividers = 1; /** Base attributes that are available to all groups. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #MenuGroup_android_checkableBehavior android:checkableBehavior}</code></td><td> Whether the items are capable of displaying a check mark.</td></tr> <tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td> Whether the items are enabled.</td></tr> <tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td> The ID of the group.</td></tr> <tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td> The category applied to all items within this group.</td></tr> <tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to all items within this group.</td></tr> <tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td> Whether the items are shown/visible.</td></tr> </table> @see #MenuGroup_android_checkableBehavior @see #MenuGroup_android_enabled @see #MenuGroup_android_id @see #MenuGroup_android_menuCategory @see #MenuGroup_android_orderInCategory @see #MenuGroup_android_visible */ public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }; /** <p> @attr description Whether the items are capable of displaying a check mark. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#checkableBehavior}. @attr name android:checkableBehavior */ public static final int MenuGroup_android_checkableBehavior = 5; /** <p> @attr description Whether the items are enabled. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#enabled}. @attr name android:enabled */ public static final int MenuGroup_android_enabled = 0; /** <p> @attr description The ID of the group. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#id}. @attr name android:id */ public static final int MenuGroup_android_id = 1; /** <p> @attr description The category applied to all items within this group. (This will be or'ed with the orderInCategory attribute.) <p>This corresponds to the global attribute resource symbol {@link android.R.attr#menuCategory}. @attr name android:menuCategory */ public static final int MenuGroup_android_menuCategory = 3; /** <p> @attr description The order within the category applied to all items within this group. (This will be or'ed with the category attribute.) <p>This corresponds to the global attribute resource symbol {@link android.R.attr#orderInCategory}. @attr name android:orderInCategory */ public static final int MenuGroup_android_orderInCategory = 4; /** <p> @attr description Whether the items are shown/visible. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#visible}. @attr name android:visible */ public static final int MenuGroup_android_visible = 2; /** Base attributes that are available to all Item objects. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #MenuItem_actionLayout com.bbcc.mobilehealth:actionLayout}</code></td><td> An optional layout to be used as an action view.</td></tr> <tr><td><code>{@link #MenuItem_actionProviderClass com.bbcc.mobilehealth:actionProviderClass}</code></td><td> The name of an optional ActionProvider class to instantiate an action view and perform operations such as default action for that menu item.</td></tr> <tr><td><code>{@link #MenuItem_actionViewClass com.bbcc.mobilehealth:actionViewClass}</code></td><td> The name of an optional View class to instantiate and use as an action view.</td></tr> <tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td> The alphabetic shortcut key.</td></tr> <tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td> Whether the item is capable of displaying a check mark.</td></tr> <tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td> Whether the item is checked.</td></tr> <tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td> Whether the item is enabled.</td></tr> <tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td> The icon associated with this item.</td></tr> <tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td> The ID of the item.</td></tr> <tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td> The category applied to the item.</td></tr> <tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td> The numeric shortcut key.</td></tr> <tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td> Name of a method on the Context used to inflate the menu that will be called when the item is clicked.</td></tr> <tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td> The order within the category applied to the item.</td></tr> <tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td> The title associated with the item.</td></tr> <tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td> The condensed title associated with the item.</td></tr> <tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td> Whether the item is shown/visible.</td></tr> <tr><td><code>{@link #MenuItem_showAsAction com.bbcc.mobilehealth:showAsAction}</code></td><td> How this item should display in the Action Bar, if present.</td></tr> </table> @see #MenuItem_actionLayout @see #MenuItem_actionProviderClass @see #MenuItem_actionViewClass @see #MenuItem_android_alphabeticShortcut @see #MenuItem_android_checkable @see #MenuItem_android_checked @see #MenuItem_android_enabled @see #MenuItem_android_icon @see #MenuItem_android_id @see #MenuItem_android_menuCategory @see #MenuItem_android_numericShortcut @see #MenuItem_android_onClick @see #MenuItem_android_orderInCategory @see #MenuItem_android_title @see #MenuItem_android_titleCondensed @see #MenuItem_android_visible @see #MenuItem_showAsAction */ public static final int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c }; /** <p> @attr description An optional layout to be used as an action view. See {@link android.view.MenuItem#setActionView(android.view.View)} for more info. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:actionLayout */ public static final int MenuItem_actionLayout = 14; /** <p> @attr description The name of an optional ActionProvider class to instantiate an action view and perform operations such as default action for that menu item. See {@link android.view.MenuItem#setActionProvider(android.view.ActionProvider)} for more info. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:actionProviderClass */ public static final int MenuItem_actionProviderClass = 16; /** <p> @attr description The name of an optional View class to instantiate and use as an action view. See {@link android.view.MenuItem#setActionView(android.view.View)} for more info. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:actionViewClass */ public static final int MenuItem_actionViewClass = 15; /** <p> @attr description The alphabetic shortcut key. This is the shortcut when using a keyboard with alphabetic keys. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#alphabeticShortcut}. @attr name android:alphabeticShortcut */ public static final int MenuItem_android_alphabeticShortcut = 9; /** <p> @attr description Whether the item is capable of displaying a check mark. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#checkable}. @attr name android:checkable */ public static final int MenuItem_android_checkable = 11; /** <p> @attr description Whether the item is checked. Note that you must first have enabled checking with the checkable attribute or else the check mark will not appear. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#checked}. @attr name android:checked */ public static final int MenuItem_android_checked = 3; /** <p> @attr description Whether the item is enabled. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#enabled}. @attr name android:enabled */ public static final int MenuItem_android_enabled = 1; /** <p> @attr description The icon associated with this item. This icon will not always be shown, so the title should be sufficient in describing this item. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#icon}. @attr name android:icon */ public static final int MenuItem_android_icon = 0; /** <p> @attr description The ID of the item. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#id}. @attr name android:id */ public static final int MenuItem_android_id = 2; /** <p> @attr description The category applied to the item. (This will be or'ed with the orderInCategory attribute.) <p>This corresponds to the global attribute resource symbol {@link android.R.attr#menuCategory}. @attr name android:menuCategory */ public static final int MenuItem_android_menuCategory = 5; /** <p> @attr description The numeric shortcut key. This is the shortcut when using a numeric (e.g., 12-key) keyboard. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#numericShortcut}. @attr name android:numericShortcut */ public static final int MenuItem_android_numericShortcut = 10; /** <p> @attr description Name of a method on the Context used to inflate the menu that will be called when the item is clicked. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#onClick}. @attr name android:onClick */ public static final int MenuItem_android_onClick = 12; /** <p> @attr description The order within the category applied to the item. (This will be or'ed with the category attribute.) <p>This corresponds to the global attribute resource symbol {@link android.R.attr#orderInCategory}. @attr name android:orderInCategory */ public static final int MenuItem_android_orderInCategory = 6; /** <p> @attr description The title associated with the item. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#title}. @attr name android:title */ public static final int MenuItem_android_title = 7; /** <p> @attr description The condensed title associated with the item. This is used in situations where the normal title may be too long to be displayed. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#titleCondensed}. @attr name android:titleCondensed */ public static final int MenuItem_android_titleCondensed = 8; /** <p> @attr description Whether the item is shown/visible. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#visible}. @attr name android:visible */ public static final int MenuItem_android_visible = 4; /** <p> @attr description How this item should display in the Action Bar, if present. <p>Must be one or more (separated by '|') of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>never</code></td><td>0</td><td> Never show this item in an action bar, show it in the overflow menu instead. Mutually exclusive with "ifRoom" and "always". </td></tr> <tr><td><code>ifRoom</code></td><td>1</td><td> Show this item in an action bar if there is room for it as determined by the system. Favor this option over "always" where possible. Mutually exclusive with "never" and "always". </td></tr> <tr><td><code>always</code></td><td>2</td><td> Always show this item in an actionbar, even if it would override the system's limits of how much stuff to put there. This may make your action bar look bad on some screens. In most cases you should use "ifRoom" instead. Mutually exclusive with "ifRoom" and "never". </td></tr> <tr><td><code>withText</code></td><td>4</td><td> When this item is shown as an action in the action bar, show a text label with it even if it has an icon representation. </td></tr> <tr><td><code>collapseActionView</code></td><td>8</td><td> This item's action view collapses to a normal menu item. When expanded, the action view takes over a larger segment of its container. </td></tr> </table> <p>This is a private symbol. @attr name com.bbcc.mobilehealth:showAsAction */ public static final int MenuItem_showAsAction = 13; /** Attributes that can be used with a MenuView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td> Default background for the menu header.</td></tr> <tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td> Default horizontal divider between rows of menu items.</td></tr> <tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td> Default background for each menu item.</td></tr> <tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td> Default disabled icon alpha for each menu item that shows an icon.</td></tr> <tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td> Default appearance of menu item text.</td></tr> <tr><td><code>{@link #MenuView_android_preserveIconSpacing android:preserveIconSpacing}</code></td><td> Whether space should be reserved in layout when an icon is missing.</td></tr> <tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td> Default vertical divider between menu items.</td></tr> <tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td> Default animations for the menu.</td></tr> </table> @see #MenuView_android_headerBackground @see #MenuView_android_horizontalDivider @see #MenuView_android_itemBackground @see #MenuView_android_itemIconDisabledAlpha @see #MenuView_android_itemTextAppearance @see #MenuView_android_preserveIconSpacing @see #MenuView_android_verticalDivider @see #MenuView_android_windowAnimationStyle */ public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x01010435 }; /** <p> @attr description Default background for the menu header. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#headerBackground}. @attr name android:headerBackground */ public static final int MenuView_android_headerBackground = 4; /** <p> @attr description Default horizontal divider between rows of menu items. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#horizontalDivider}. @attr name android:horizontalDivider */ public static final int MenuView_android_horizontalDivider = 2; /** <p> @attr description Default background for each menu item. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#itemBackground}. @attr name android:itemBackground */ public static final int MenuView_android_itemBackground = 5; /** <p> @attr description Default disabled icon alpha for each menu item that shows an icon. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#itemIconDisabledAlpha}. @attr name android:itemIconDisabledAlpha */ public static final int MenuView_android_itemIconDisabledAlpha = 6; /** <p> @attr description Default appearance of menu item text. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#itemTextAppearance}. @attr name android:itemTextAppearance */ public static final int MenuView_android_itemTextAppearance = 1; /** <p> @attr description Whether space should be reserved in layout when an icon is missing. <p>This is a private symbol. @attr name android:preserveIconSpacing */ public static final int MenuView_android_preserveIconSpacing = 7; /** <p> @attr description Default vertical divider between menu items. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#verticalDivider}. @attr name android:verticalDivider */ public static final int MenuView_android_verticalDivider = 3; /** <p> @attr description Default animations for the menu. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#windowAnimationStyle}. @attr name android:windowAnimationStyle */ public static final int MenuView_android_windowAnimationStyle = 0; /** Attributes that can be used with a SearchView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #SearchView_android_imeOptions android:imeOptions}</code></td><td> The IME options to set on the query text field.</td></tr> <tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td> The input type to set on the query text field.</td></tr> <tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td> An optional maximum width of the SearchView.</td></tr> <tr><td><code>{@link #SearchView_iconifiedByDefault com.bbcc.mobilehealth:iconifiedByDefault}</code></td><td> The default state of the SearchView.</td></tr> <tr><td><code>{@link #SearchView_queryHint com.bbcc.mobilehealth:queryHint}</code></td><td> An optional query hint string to be displayed in the empty query field.</td></tr> </table> @see #SearchView_android_imeOptions @see #SearchView_android_inputType @see #SearchView_android_maxWidth @see #SearchView_iconifiedByDefault @see #SearchView_queryHint */ public static final int[] SearchView = { 0x0101011f, 0x01010220, 0x01010264, 0x7f010056, 0x7f010057 }; /** <p> @attr description The IME options to set on the query text field. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#imeOptions}. @attr name android:imeOptions */ public static final int SearchView_android_imeOptions = 2; /** <p> @attr description The input type to set on the query text field. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#inputType}. @attr name android:inputType */ public static final int SearchView_android_inputType = 1; /** <p> @attr description An optional maximum width of the SearchView. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#maxWidth}. @attr name android:maxWidth */ public static final int SearchView_android_maxWidth = 0; /** <p> @attr description The default state of the SearchView. If true, it will be iconified when not in use and expanded when clicked. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:iconifiedByDefault */ public static final int SearchView_iconifiedByDefault = 3; /** <p> @attr description An optional query hint string to be displayed in the empty query field. <p>Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character. <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:queryHint */ public static final int SearchView_queryHint = 4; /** Attributes that can be used with a Spinner. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #Spinner_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td> Horizontal offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown".</td></tr> <tr><td><code>{@link #Spinner_android_dropDownSelector android:dropDownSelector}</code></td><td> List selector to use for spinnerMode="dropdown" display.</td></tr> <tr><td><code>{@link #Spinner_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td> Vertical offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown".</td></tr> <tr><td><code>{@link #Spinner_android_dropDownWidth android:dropDownWidth}</code></td><td> Width of the dropdown in spinnerMode="dropdown".</td></tr> <tr><td><code>{@link #Spinner_android_gravity android:gravity}</code></td><td> Gravity setting for positioning the currently selected item.</td></tr> <tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td> Background drawable to use for the dropdown in spinnerMode="dropdown".</td></tr> <tr><td><code>{@link #Spinner_disableChildrenWhenDisabled com.bbcc.mobilehealth:disableChildrenWhenDisabled}</code></td><td> Whether this spinner should mark child views as enabled/disabled when the spinner itself is enabled/disabled.</td></tr> <tr><td><code>{@link #Spinner_popupPromptView com.bbcc.mobilehealth:popupPromptView}</code></td><td> Reference to a layout to use for displaying a prompt in the dropdown for spinnerMode="dropdown".</td></tr> <tr><td><code>{@link #Spinner_prompt com.bbcc.mobilehealth:prompt}</code></td><td> The prompt to display when the spinner's dialog is shown.</td></tr> <tr><td><code>{@link #Spinner_spinnerMode com.bbcc.mobilehealth:spinnerMode}</code></td><td> Display mode for spinner options.</td></tr> </table> @see #Spinner_android_dropDownHorizontalOffset @see #Spinner_android_dropDownSelector @see #Spinner_android_dropDownVerticalOffset @see #Spinner_android_dropDownWidth @see #Spinner_android_gravity @see #Spinner_android_popupBackground @see #Spinner_disableChildrenWhenDisabled @see #Spinner_popupPromptView @see #Spinner_prompt @see #Spinner_spinnerMode */ public static final int[] Spinner = { 0x010100af, 0x01010175, 0x01010176, 0x01010262, 0x010102ac, 0x010102ad, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050 }; /** <p> @attr description Horizontal offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown". <p>This corresponds to the global attribute resource symbol {@link android.R.attr#dropDownHorizontalOffset}. @attr name android:dropDownHorizontalOffset */ public static final int Spinner_android_dropDownHorizontalOffset = 4; /** <p> @attr description List selector to use for spinnerMode="dropdown" display. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#dropDownSelector}. @attr name android:dropDownSelector */ public static final int Spinner_android_dropDownSelector = 1; /** <p> @attr description Vertical offset from the spinner widget for positioning the dropdown in spinnerMode="dropdown". <p>This corresponds to the global attribute resource symbol {@link android.R.attr#dropDownVerticalOffset}. @attr name android:dropDownVerticalOffset */ public static final int Spinner_android_dropDownVerticalOffset = 5; /** <p> @attr description Width of the dropdown in spinnerMode="dropdown". <p>This corresponds to the global attribute resource symbol {@link android.R.attr#dropDownWidth}. @attr name android:dropDownWidth */ public static final int Spinner_android_dropDownWidth = 3; /** <p> @attr description Gravity setting for positioning the currently selected item. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#gravity}. @attr name android:gravity */ public static final int Spinner_android_gravity = 0; /** <p> @attr description Background drawable to use for the dropdown in spinnerMode="dropdown". <p>This corresponds to the global attribute resource symbol {@link android.R.attr#popupBackground}. @attr name android:popupBackground */ public static final int Spinner_android_popupBackground = 2; /** <p> @attr description Whether this spinner should mark child views as enabled/disabled when the spinner itself is enabled/disabled. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:disableChildrenWhenDisabled */ public static final int Spinner_disableChildrenWhenDisabled = 9; /** <p> @attr description Reference to a layout to use for displaying a prompt in the dropdown for spinnerMode="dropdown". This layout must contain a TextView with the id {@code @android:id/text1} to be populated with the prompt text. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:popupPromptView */ public static final int Spinner_popupPromptView = 8; /** <p> @attr description The prompt to display when the spinner's dialog is shown. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:prompt */ public static final int Spinner_prompt = 6; /** <p> @attr description Display mode for spinner options. <p>Must be one of the following constant values.</p> <table> <colgroup align="left" /> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Constant</th><th>Value</th><th>Description</th></tr> <tr><td><code>dialog</code></td><td>0</td><td> Spinner options will be presented to the user as a dialog window. </td></tr> <tr><td><code>dropdown</code></td><td>1</td><td> Spinner options will be presented to the user as an inline dropdown anchored to the spinner widget itself. </td></tr> </table> <p>This is a private symbol. @attr name com.bbcc.mobilehealth:spinnerMode */ public static final int Spinner_spinnerMode = 7; /** These are the standard attributes that make up a complete theme. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #Theme_actionDropDownStyle com.bbcc.mobilehealth:actionDropDownStyle}</code></td><td> Default ActionBar dropdown style.</td></tr> <tr><td><code>{@link #Theme_dropdownListPreferredItemHeight com.bbcc.mobilehealth:dropdownListPreferredItemHeight}</code></td><td> The preferred item height for dropdown lists.</td></tr> <tr><td><code>{@link #Theme_listChoiceBackgroundIndicator com.bbcc.mobilehealth:listChoiceBackgroundIndicator}</code></td><td> Drawable used as a background for selected list items.</td></tr> <tr><td><code>{@link #Theme_panelMenuListTheme com.bbcc.mobilehealth:panelMenuListTheme}</code></td><td> Default Panel Menu style.</td></tr> <tr><td><code>{@link #Theme_panelMenuListWidth com.bbcc.mobilehealth:panelMenuListWidth}</code></td><td> Default Panel Menu width.</td></tr> <tr><td><code>{@link #Theme_popupMenuStyle com.bbcc.mobilehealth:popupMenuStyle}</code></td><td> Default PopupMenu style.</td></tr> </table> @see #Theme_actionDropDownStyle @see #Theme_dropdownListPreferredItemHeight @see #Theme_listChoiceBackgroundIndicator @see #Theme_panelMenuListTheme @see #Theme_panelMenuListWidth @see #Theme_popupMenuStyle */ public static final int[] Theme = { 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046, 0x7f010047, 0x7f010048 }; /** <p> @attr description Default ActionBar dropdown style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:actionDropDownStyle */ public static final int Theme_actionDropDownStyle = 0; /** <p> @attr description The preferred item height for dropdown lists. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:dropdownListPreferredItemHeight */ public static final int Theme_dropdownListPreferredItemHeight = 1; /** <p> @attr description Drawable used as a background for selected list items. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:listChoiceBackgroundIndicator */ public static final int Theme_listChoiceBackgroundIndicator = 5; /** <p> @attr description Default Panel Menu style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:panelMenuListTheme */ public static final int Theme_panelMenuListTheme = 4; /** <p> @attr description Default Panel Menu width. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:panelMenuListWidth */ public static final int Theme_panelMenuListWidth = 3; /** <p> @attr description Default PopupMenu style. <p>Must be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" or to a theme attribute in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>". <p>This is a private symbol. @attr name com.bbcc.mobilehealth:popupMenuStyle */ public static final int Theme_popupMenuStyle = 2; /** Attributes that can be used with a View. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #View_android_focusable android:focusable}</code></td><td> Boolean that controls whether a view can take focus.</td></tr> <tr><td><code>{@link #View_paddingEnd com.bbcc.mobilehealth:paddingEnd}</code></td><td> Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}.</td></tr> <tr><td><code>{@link #View_paddingStart com.bbcc.mobilehealth:paddingStart}</code></td><td> Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}.</td></tr> </table> @see #View_android_focusable @see #View_paddingEnd @see #View_paddingStart */ public static final int[] View = { 0x010100da, 0x7f010034, 0x7f010035 }; /** <p> @attr description Boolean that controls whether a view can take focus. By default the user can not move focus to a view; by setting this attribute to true the view is allowed to take focus. This value does not impact the behavior of directly calling {@link android.view.View#requestFocus}, which will always request focus regardless of this view. It only impacts where focus navigation will try to move focus. <p>This corresponds to the global attribute resource symbol {@link android.R.attr#focusable}. @attr name android:focusable */ public static final int View_android_focusable = 0; /** <p> @attr description Sets the padding, in pixels, of the end edge; see {@link android.R.attr#padding}. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:paddingEnd */ public static final int View_paddingEnd = 2; /** <p> @attr description Sets the padding, in pixels, of the start edge; see {@link android.R.attr#padding}. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. <p>This is a private symbol. @attr name com.bbcc.mobilehealth:paddingStart */ public static final int View_paddingStart = 1; /** Attributes that can be used with a WheelView. <p>Includes the following attributes:</p> <table> <colgroup align="left" /> <colgroup align="left" /> <tr><th>Attribute</th><th>Description</th></tr> <tr><td><code>{@link #WheelView_bottomLineColor com.bbcc.mobilehealth:bottomLineColor}</code></td><td></td></tr> <tr><td><code>{@link #WheelView_firstLineAndSecondLineSpace com.bbcc.mobilehealth:firstLineAndSecondLineSpace}</code></td><td></td></tr> <tr><td><code>{@link #WheelView_isEnable com.bbcc.mobilehealth:isEnable}</code></td><td></td></tr> <tr><td><code>{@link #WheelView_itemNumber com.bbcc.mobilehealth:itemNumber}</code></td><td></td></tr> <tr><td><code>{@link #WheelView_lineColor com.bbcc.mobilehealth:lineColor}</code></td><td></td></tr> <tr><td><code>{@link #WheelView_lineHeight com.bbcc.mobilehealth:lineHeight}</code></td><td></td></tr> <tr><td><code>{@link #WheelView_maskHight com.bbcc.mobilehealth:maskHight}</code></td><td></td></tr> <tr><td><code>{@link #WheelView_noEmpty com.bbcc.mobilehealth:noEmpty}</code></td><td></td></tr> <tr><td><code>{@link #WheelView_normalTextColor com.bbcc.mobilehealth:normalTextColor}</code></td><td></td></tr> <tr><td><code>{@link #WheelView_normalTextSize com.bbcc.mobilehealth:normalTextSize}</code></td><td></td></tr> <tr><td><code>{@link #WheelView_selectedTextColor com.bbcc.mobilehealth:selectedTextColor}</code></td><td></td></tr> <tr><td><code>{@link #WheelView_selectedTextSize com.bbcc.mobilehealth:selectedTextSize}</code></td><td></td></tr> <tr><td><code>{@link #WheelView_unitHight com.bbcc.mobilehealth:unitHight}</code></td><td></td></tr> </table> @see #WheelView_bottomLineColor @see #WheelView_firstLineAndSecondLineSpace @see #WheelView_isEnable @see #WheelView_itemNumber @see #WheelView_lineColor @see #WheelView_lineHeight @see #WheelView_maskHight @see #WheelView_noEmpty @see #WheelView_normalTextColor @see #WheelView_normalTextSize @see #WheelView_selectedTextColor @see #WheelView_selectedTextSize @see #WheelView_unitHight */ public static final int[] WheelView = { 0x7f010075, 0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079, 0x7f01007a, 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e, 0x7f01007f, 0x7f010080, 0x7f010081 }; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#bottomLineColor} attribute's value can be found in the {@link #WheelView} array. <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:bottomLineColor */ public static final int WheelView_bottomLineColor = 7; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#firstLineAndSecondLineSpace} attribute's value can be found in the {@link #WheelView} array. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:firstLineAndSecondLineSpace */ public static final int WheelView_firstLineAndSecondLineSpace = 9; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#isEnable} attribute's value can be found in the {@link #WheelView} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:isEnable */ public static final int WheelView_isEnable = 12; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#itemNumber} attribute's value can be found in the {@link #WheelView} array. <p>Must be an integer value, such as "<code>100</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:itemNumber */ public static final int WheelView_itemNumber = 5; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#lineColor} attribute's value can be found in the {@link #WheelView} array. <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:lineColor */ public static final int WheelView_lineColor = 6; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#lineHeight} attribute's value can be found in the {@link #WheelView} array. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:lineHeight */ public static final int WheelView_lineHeight = 8; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#maskHight} attribute's value can be found in the {@link #WheelView} array. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:maskHight */ public static final int WheelView_maskHight = 10; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#noEmpty} attribute's value can be found in the {@link #WheelView} array. <p>Must be a boolean value, either "<code>true</code>" or "<code>false</code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:noEmpty */ public static final int WheelView_noEmpty = 11; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#normalTextColor} attribute's value can be found in the {@link #WheelView} array. <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:normalTextColor */ public static final int WheelView_normalTextColor = 0; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#normalTextSize} attribute's value can be found in the {@link #WheelView} array. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:normalTextSize */ public static final int WheelView_normalTextSize = 1; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#selectedTextColor} attribute's value can be found in the {@link #WheelView} array. <p>Must be a color value, in the form of "<code>#<i>rgb</i></code>", "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or "<code>#<i>aarrggbb</i></code>". <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:selectedTextColor */ public static final int WheelView_selectedTextColor = 2; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#selectedTextSize} attribute's value can be found in the {@link #WheelView} array. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:selectedTextSize */ public static final int WheelView_selectedTextSize = 3; /** <p>This symbol is the offset where the {@link com.bbcc.mobilehealth.R.attr#unitHight} attribute's value can be found in the {@link #WheelView} array. <p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). <p>This may also be a reference to a resource (in the form "<code>@[<i>package</i>:]<i>type</i>:<i>name</i></code>") or theme attribute (in the form "<code>?[<i>package</i>:][<i>type</i>:]<i>name</i></code>") containing a value of this type. @attr name com.bbcc.mobilehealth:unitHight */ public static final int WheelView_unitHight = 4; }; }
a84e1c950adb6a97bf81f519ecd1a670831731fe
750d26eef421463a1f8e8cb4e825808d419adb21
/bakk/Ticketline/src/ticketline/dao/interfaces/BestellungDAO.java
8448996ae4a94487861ed39f6df5937670b7d8fb
[ "Apache-2.0" ]
permissive
dzena/tuwien
d5e47e8441058e4845f39cac019dff3024b670c9
80bfb4cf2f3ee2cc1761930465b776a0befccd4b
refs/heads/master
2021-01-18T17:20:13.376444
2013-11-01T19:45:39
2013-11-01T19:45:39
59,845,669
28
0
null
2016-05-27T15:43:56
2016-05-27T15:43:56
null
UTF-8
Java
false
false
620
java
package ticketline.dao.interfaces; import ticketline.db.Bestellung; import ticketline.db.BestellungKey; /** * @author geezmo */ public interface BestellungDAO extends DAO { /** * @param bestellungKey * @return Bestellung * @throws RuntimeException */ public Bestellung get(BestellungKey bestellungKey) throws RuntimeException; /** * saves or updates the bestellung. */ public void save(Bestellung bestellung) throws RuntimeException; /** * deletes the bestellung. * * @param bestellung * @throws RuntimeException */ public void remove(Bestellung bestellung) throws RuntimeException; }
903f6bff6b67609385c137c152e791719d1e7618
4532d38f3c1d1508388809a378725e5971fec29e
/src/main/java/edu/arizona/biosemantics/oto2/ontologize2/server/owl/AxiomManager.java
06828ee3a9575e45d41166d1e4fbbeaf7ffa2c37
[]
no_license
rodenhausen/ontologize3
09b4a0d05cde8c443332202ccf3f74e95b570b0d
dceafcf8ad6b0ed432805f3a47bbe0c65d20ead2
refs/heads/master
2021-01-20T22:09:56.429398
2016-08-15T18:26:27
2016-08-15T18:26:27
63,897,574
0
0
null
null
null
null
UTF-8
Java
false
false
13,552
java
package edu.arizona.biosemantics.oto2.ontologize2.server.owl; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Set; import org.semanticweb.owlapi.model.AddAxiom; import org.semanticweb.owlapi.model.IRI; import org.semanticweb.owlapi.model.OWLAnnotation; import org.semanticweb.owlapi.model.OWLAnnotationAssertionAxiom; import org.semanticweb.owlapi.model.OWLAnnotationProperty; import org.semanticweb.owlapi.model.OWLAxiom; import org.semanticweb.owlapi.model.OWLClass; import org.semanticweb.owlapi.model.OWLClassAxiom; import org.semanticweb.owlapi.model.OWLClassExpression; import org.semanticweb.owlapi.model.OWLLiteral; import org.semanticweb.owlapi.model.OWLObjectProperty; import org.semanticweb.owlapi.model.OWLOntology; import org.semanticweb.owlapi.model.OWLOntologyManager; import org.semanticweb.owlapi.model.OWLSubClassOfAxiom; import org.semanticweb.owlapi.model.parameters.Imports; import com.google.common.base.Optional; import edu.arizona.biosemantics.common.ontology.AnnotationProperty; import edu.arizona.biosemantics.oto.model.lite.Synonym; import edu.arizona.biosemantics.oto2.ontologize2.client.Ontologize; import edu.arizona.biosemantics.oto2.ontologize2.server.Configuration; public class AxiomManager { private OWLOntologyManager om; //private OWLClass entityClass; //private OWLClass qualityClass; private OWLObjectProperty partOfProperty; private OWLAnnotationProperty labelProperty; private OWLAnnotationProperty synonymProperty; private OWLAnnotationProperty definitionProperty; private OWLAnnotationProperty creationDateProperty; private OWLAnnotationProperty createdByProperty; private OWLAnnotationProperty relatedSynonymProperty; private OWLAnnotationProperty narrowSynonymProperty; private OWLAnnotationProperty exactSynonymProperty; private OWLAnnotationProperty broadSynonymProperty; private DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd"); public AxiomManager(OWLOntologyManager om) { this.om = om; //entityClass = om.getOWLDataFactory().getOWLClass(IRI.create(Type.ENTITY.getIRI())); //material anatomical entity //qualityClass = om.getOWLDataFactory().getOWLClass(IRI.create(Type.QUALITY.getIRI())); //quality partOfProperty = om.getOWLDataFactory().getOWLObjectProperty(IRI.create(AnnotationProperty.PART_OF.getIRI())); labelProperty = om.getOWLDataFactory().getOWLAnnotationProperty(IRI.create(AnnotationProperty.LABEL.getIRI())); synonymProperty = om.getOWLDataFactory().getOWLAnnotationProperty(IRI.create(AnnotationProperty.SYNONYM.getIRI())); definitionProperty = om.getOWLDataFactory().getOWLAnnotationProperty(IRI.create(AnnotationProperty.DEFINITION.getIRI())); creationDateProperty = om.getOWLDataFactory().getOWLAnnotationProperty(IRI.create(AnnotationProperty.CREATION_DATE.getIRI())); createdByProperty = om.getOWLDataFactory().getOWLAnnotationProperty(IRI.create(AnnotationProperty.CREATED_BY.getIRI())); relatedSynonymProperty = om.getOWLDataFactory().getOWLAnnotationProperty(IRI.create(AnnotationProperty.RELATED_SYNONYM.getIRI())); narrowSynonymProperty = om.getOWLDataFactory().getOWLAnnotationProperty(IRI.create(AnnotationProperty.NARROW_SYNONYM.getIRI())); exactSynonymProperty = om.getOWLDataFactory().getOWLAnnotationProperty(IRI.create(AnnotationProperty.EXACT_SYNONYM.getIRI())); broadSynonymProperty = om.getOWLDataFactory().getOWLAnnotationProperty(IRI.create(AnnotationProperty.BROAD_SYNONYM.getIRI())); } public void addSuperclass(OWLOntology o, OWLClass subclass, OWLClass superclass) { OWLAxiom subclassAxiom = om.getOWLDataFactory().getOWLSubClassOfAxiom(subclass, superclass); om.addAxiom(o, subclassAxiom); } public void addPartOf(OWLOntology o, OWLClass oc, OWLClass poc) { OWLClassExpression partOfExpression = om.getOWLDataFactory().getOWLObjectSomeValuesFrom(partOfProperty, poc); OWLAxiom partOfAxiom = om.getOWLDataFactory().getOWLSubClassOfAxiom(oc, partOfExpression); om.addAxiom(o, partOfAxiom); } public void addSynonym(OWLOntology o, String synonym, OWLClass prefc) { OWLAnnotation synonymAnnotation = om.getOWLDataFactory().getOWLAnnotation(exactSynonymProperty, om.getOWLDataFactory().getOWLLiteral(synonym, "en")); OWLAxiom synonymAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(prefc.getIRI(), synonymAnnotation); om.addAxiom(o, synonymAxiom); } public void addDeclaration(OWLOntology owlOntology, OWLClass newOwlClass) { OWLAxiom declarationAxiom = om.getOWLDataFactory().getOWLDeclarationAxiom(newOwlClass); om.addAxiom(owlOntology, declarationAxiom); } public void addDefinition(OWLOntology owlOntology, OWLClass owlClass, String definition) { OWLAnnotation definitionAnnotation = om.getOWLDataFactory().getOWLAnnotation(definitionProperty, om.getOWLDataFactory().getOWLLiteral(definition, "en")); OWLAxiom definitionAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(owlClass.getIRI(), definitionAnnotation); om.addAxiom(owlOntology, definitionAxiom); } public void addSourceSampleComment(OWLOntology owlOntology, String source, String sample, OWLClass owlClass) { OWLAnnotation commentAnnotation = om.getOWLDataFactory().getOWLAnnotation(om.getOWLDataFactory().getRDFSComment(), om.getOWLDataFactory().getOWLLiteral("source: " + sample + "[taken from: " + source + "]", "en")); OWLAxiom commentAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(owlClass.getIRI(), commentAnnotation); om.addAxiom(owlOntology, commentAxiom); } public void addLabel(OWLOntology owlOntology, OWLClass owlClass, OWLLiteral classLabelLiteral) { OWLAnnotation labelAnnotation = om.getOWLDataFactory().getOWLAnnotation(labelProperty, classLabelLiteral); OWLAxiom labelAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(owlClass.getIRI(), labelAnnotation); om.addAxiom(owlOntology, labelAxiom); } public void addCreationDate(OWLOntology owlOntology, OWLClass owlClass) { OWLAnnotation creationDateAnnotation = om.getOWLDataFactory().getOWLAnnotation(creationDateProperty, om.getOWLDataFactory().getOWLLiteral(dateFormat.format(new Date()))); OWLAxiom creationDateAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(owlClass.getIRI(), creationDateAnnotation); om.addAxiom(owlOntology, creationDateAxiom); } public void addCreatedBy(OWLOntology owlOntology, OWLClass owlClass) { OWLAnnotation createdByAnnotation = om.getOWLDataFactory().getOWLAnnotation(createdByProperty, om.getOWLDataFactory().getOWLLiteral(Ontologize.user)); OWLAxiom createdByAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(owlClass.getIRI(), createdByAnnotation); om.addAxiom(owlOntology, createdByAxiom); } // public void addQualitySubclass(OWLOntology owlOntology, OWLClass owlClass) { // OWLAxiom subclassAxiom = om.getOWLDataFactory().getOWLSubClassOfAxiom(owlClass, qualityClass); // om.addAxiom(owlOntology, subclassAxiom); // } // // public void addEntitySubclass(OWLOntology owlOntology, OWLClass owlClass) { // OWLAxiom subclassAxiom = om.getOWLDataFactory().getOWLSubClassOfAxiom(owlClass, entityClass); // om.addAxiom(owlOntology, subclassAxiom); // } public void addDefaultAxioms(OWLOntology owlOntology) { //add annotation properties //OWLAnnotationProperty label = factory // .getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI()); /* <owl:AnnotationProperty rdf:about="http://purl.obolibrary.org/obo/IAO_0000115"> <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">definition</rdfs:label> </owl:AnnotationProperty> */ //OWLAnnotationProperty annotation = factory.getOWLAnnotationProperty(IRI.create("http://purl.obolibrary.org/obo/IAO_0000115")); OWLLiteral definitionLiteral = om.getOWLDataFactory().getOWLLiteral("definition"); OWLAnnotation definitionAnnotation = om.getOWLDataFactory().getOWLAnnotation(labelProperty, definitionLiteral); OWLAxiom definitionAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(definitionProperty.getIRI(), definitionAnnotation); om.addAxiom(owlOntology, definitionAxiom); /*<owl:AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#hasBroadSynonym"> <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">has_broad_synonym</rdfs:label> </owl:AnnotationProperty>*/ OWLLiteral hasBroadSynonymLiteral = om.getOWLDataFactory().getOWLLiteral("has_broad_synonym"); OWLAnnotation broadSynonymAnnotation = om.getOWLDataFactory().getOWLAnnotation(labelProperty, hasBroadSynonymLiteral); OWLAxiom broadSynonymAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(broadSynonymProperty.getIRI(), broadSynonymAnnotation); om.addAxiom(owlOntology, broadSynonymAxiom); /* <owl:AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#hasExactSynonym"> <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">has_exact_synonym</rdfs:label> </owl:AnnotationProperty>*/ OWLLiteral hasExactSynonymLiteral = om.getOWLDataFactory().getOWLLiteral("has_exact_synonym"); OWLAnnotation exactSynonymAnnotation = om.getOWLDataFactory().getOWLAnnotation(labelProperty, hasExactSynonymLiteral); OWLAxiom exactSynonymAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(exactSynonymProperty.getIRI(), exactSynonymAnnotation); om.addAxiom(owlOntology, exactSynonymAxiom); /* <owl:AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#hasNarrowSynonym"> <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">has_narrow_synonym</rdfs:label> </owl:AnnotationProperty>*/ OWLLiteral hasNarrowSynonymLiteral = om.getOWLDataFactory().getOWLLiteral("has_narrow_synonym"); OWLAnnotation narrowSynonymAnnotation = om.getOWLDataFactory().getOWLAnnotation(labelProperty, hasNarrowSynonymLiteral); OWLAxiom narrowSynonymAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(narrowSynonymProperty.getIRI(), narrowSynonymAnnotation); om.addAxiom(owlOntology, narrowSynonymAxiom); /* <owl:AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#hasRelatedSynonym"> <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">has_related_synonym</rdfs:label> </owl:AnnotationProperty>*/ OWLLiteral hasRelatedSynonymLiteral = om.getOWLDataFactory().getOWLLiteral("has_related_synonym"); OWLAnnotation relatedSynonymAnnotation = om.getOWLDataFactory().getOWLAnnotation(labelProperty, hasRelatedSynonymLiteral); OWLAxiom relatedSynonymAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(relatedSynonymProperty.getIRI(), relatedSynonymAnnotation); om.addAxiom(owlOntology, relatedSynonymAxiom); /* <owl:AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#created_by"/>*/ OWLLiteral createdByLiteral = om.getOWLDataFactory().getOWLLiteral("created_by"); OWLAnnotation createdByAnnotation = om.getOWLDataFactory().getOWLAnnotation(labelProperty, createdByLiteral); OWLAxiom createdByAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(createdByProperty.getIRI(), createdByAnnotation); om.addAxiom(owlOntology, createdByAxiom); /* <owl:AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#creation_date"/>*/ OWLLiteral creationDateLiteral = om.getOWLDataFactory().getOWLLiteral("creation_date"); OWLAnnotation createionDateAnnotation = om.getOWLDataFactory().getOWLAnnotation(labelProperty, creationDateLiteral); OWLAxiom createionDateAxiom = om.getOWLDataFactory().getOWLAnnotationAssertionAxiom(creationDateProperty.getIRI(), createionDateAnnotation); om.addAxiom(owlOntology, createionDateAxiom); //entity and quality classes and part_of, has_part relations are imported from ro, a "general" ontology //PrefixManager pm = new DefaultPrefixManager( // Configuration.etc_ontology_baseIRI+prefix.toLowerCase()+"#"); /*OWLClass entity = factory.getOWLClass(IRI.create("http://purl.obolibrary.org/obo/CARO_0000006")); //material anatomical entity OWLLiteral clabel = factory.getOWLLiteral("material anatomical entity", "en"); axiom = factory.getOWLDeclarationAxiom(entity); manager.addAxiom(ont, axiom); axiom = factory.getOWLAnnotationAssertionAxiom(entity.getIRI(), factory.getOWLAnnotation(label, clabel)); manager.addAxiom(ont, axiom); OWLClass quality = factory.getOWLClass(IRI.create("http://purl.obolibrary.org/obo/PATO_0000001")); //quality clabel = factory.getOWLLiteral("quality", "en"); axiom = factory.getOWLDeclarationAxiom(entity); manager.addAxiom(ont, axiom); axiom = factory.getOWLAnnotationAssertionAxiom(entity.getIRI(), factory.getOWLAnnotation(label, clabel)); manager.addAxiom(ont, axiom); //has_part/part_of inverse object properties OWLObjectProperty hasPart = factory.getOWLObjectProperty(":has_part", pm); OWLObjectProperty partOf = factory.getOWLObjectProperty(":part_of", pm); manager.addAxiom(ont, factory.getOWLInverseObjectPropertiesAxiom(hasPart, partOf)); manager.addAxiom(ont, factory.getOWLTransitiveObjectPropertyAxiom(partOf)); manager.addAxiom(ont, factory.getOWLTransitiveObjectPropertyAxiom(hasPart)); */ //disjoint entity and quality classes //OWLAxiom disjointClassesAxiom = om.getOWLDataFactory().getOWLDisjointClassesAxiom(entityClass, qualityClass); //om.addAxiom(owlOntology, disjointClassesAxiom); } }
771f0156b1c3c13b8e548b6519a9863c1a94a618
225feb175edace5c25ab2ceb1323472613bb1de2
/app/src/main/java/com/liemi/seashellmallclient/data/entity/floor/FloorTypeEntity.java
e168f4f79fcff6fd6063ed5cc37405c171cefd33
[]
no_license
xueyifei123/SeashellMallClient
33676bbaa7ae6cf19e5bab7ae2fac7821bf46ec6
ded24c6a54a290b591367ee7ec5168ea4977dac1
refs/heads/master
2022-11-18T15:09:58.916809
2020-07-09T05:10:47
2020-07-09T05:10:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,015
java
package com.liemi.seashellmallclient.data.entity.floor; import com.netmi.baselibrary.data.entity.BaseEntity; public class FloorTypeEntity extends BaseEntity { private String id; private String name; private String introduction; private String floor_count; private String del_flag; private String sort; private String shop_id; private String create_time; private String update_time; private String position_code; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getIntroduction() { return introduction; } public void setIntroduction(String introduction) { this.introduction = introduction; } public String getFloor_count() { return floor_count; } public void setFloor_count(String floor_count) { this.floor_count = floor_count; } public String getDel_flag() { return del_flag; } public void setDel_flag(String del_flag) { this.del_flag = del_flag; } public String getSort() { return sort; } public void setSort(String sort) { this.sort = sort; } public String getShop_id() { return shop_id; } public void setShop_id(String shop_id) { this.shop_id = shop_id; } public String getCreate_time() { return create_time; } public void setCreate_time(String create_time) { this.create_time = create_time; } public String getUpdate_time() { return update_time; } public void setUpdate_time(String update_time) { this.update_time = update_time; } public String getPosition_code() { return position_code; } public void setPosition_code(String position_code) { this.position_code = position_code; } }
6bc0a7f389dff45836f635294cae6e8a66b2e0cc
c3cf525ba5ebe5207e0c6457549a9af5d11a9753
/src/DiscountServlet.java
31f71ca20085ef7f1060da0c4a20cde7008a832c
[]
no_license
fchbyoung/JAVA-WBD-Product_Discount_Calculator
5c012d39e2038b0c07e59715b9c23490e68a94e9
52ddd1a3dbde6afbd57de301e2d6204f33a2b2cb
refs/heads/master
2020-06-21T01:41:54.406584
2019-07-17T07:45:26
2019-07-17T07:45:26
197,313,465
0
0
null
null
null
null
UTF-8
Java
false
false
1,394
java
import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.PrintWriter; @WebServlet(name = "DiscountServlet", urlPatterns = "display-discount") public class DiscountServlet extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String description = request.getParameter("txtDescription"); double price = Double.parseDouble(request.getParameter("txtPrice")); double listPrice = Double.parseDouble(request.getParameter("txtPrice")); double discountPercent = Double.parseDouble(request.getParameter("txtDiscountPercent")); double amount = listPrice * discountPercent * 0.1; PrintWriter writer = response.getWriter(); writer.println("<html>"); writer.println("Product Description: " + description); writer.println("List Price: " + price); writer.println("Discount Percent: " + discountPercent); writer.println("Discount Amount: " + amount); writer.println("</html>"); } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } }
18de66971eeb8b3a04d91b5e2e5f96b00469847b
397e5b1677173e73f5f5780d988b0a16e6b0d639
/myhrm/src/main/java/com/aynu/documentmanage/controller/DocumentController.java
c8a2a180ccf38a4bf716cf7c2b9973ca2ba45bbd
[]
no_license
c17329353267/SSM
a83f5c256978c1ac9a68f04d1986478bddd16313
b6d4b4730d44d509fd8f0d1587fac075014bce02
refs/heads/master
2022-12-26T16:12:35.532909
2019-10-06T08:29:30
2019-10-06T08:29:30
213,093,412
0
0
null
2022-12-16T04:49:28
2019-10-06T01:26:11
JavaScript
UTF-8
Java
false
false
8,811
java
package com.aynu.documentmanage.controller; import com.aynu.documentmanage.service.DocumentService; import com.aynu.entity.Document; import com.aynu.entity.User; import com.aynu.pages.PageModel; import org.apache.commons.io.FileUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import java.io.File; import java.io.IOException; import java.util.List; @Controller public class DocumentController { @Autowired private DocumentService documentService; //文件查找 @RequestMapping("/findAllDocuments.do") public String findAllDocuments(@RequestParam(defaultValue = "1")Integer pageIndex, Document document, Model model){ //查询数据总记录条数 int counts = documentService.findAllDocumentCounts(document); PageModel pageModel = new PageModel(); pageModel.setPageIndex(pageIndex); pageModel.setPageSize(2); pageModel.setRecordCount(counts); List<Document> documents = documentService.findAllDocuments(document,pageModel); model.addAttribute("documents",documents); model.addAttribute("document",document); model.addAttribute("pageModel",pageModel); return "/jsp/document/document.jsp"; } //文档上传 @RequestMapping("/addDocument.do") public String addDocument(Document document,HttpSession session,Model model) throws IOException { //文件上传的位置 String path = "E:\\uploads"; File upload = new File(path); //判断位置是否存在,不存在即创建 if(!upload.exists()){ upload.mkdirs(); } //获取上传文件的传统文件名,防止上传重复的文件名造成覆盖问题 String fileName =System.currentTimeMillis()+ document.getFile().getOriginalFilename(); //获取登陆人的姓名 User loginUser = (User) session.getAttribute("loginUser"); //属性存到数据库,文档存到对应的文件,路径+文件名 document.getFile().transferTo(new File(path,fileName)); document.setFilename(fileName); document.setUser(loginUser); //System.out.println("loginUser"+loginUser); int rows = documentService.addDocument(document); if(rows > 0){ //上传成功 return "findAllDocuments.do"; }else{ model.addAttribute("fail","文件上传失败"); return "/jsp/fail.jsp"; } } //@Transactional //文件删除 /* 存在的问题,当数据库中存在数据而不存在的文件删除会出现问题 */ @RequestMapping("/removeDocument.do") public String removeDocument(Integer[] ids,Model model){ int num=1; //System.out.println("进入了文件删除"); String path = "E:\\uploads\\"; List<String> filenames = documentService.findDocumentsByIds(ids); //根据id删除数据库中数据 int rows = documentService.removeDocumentsByIds(ids); //根据id查找文件名(filename)并删除, int count = 0; for (String filename:filenames ) { System.out.println(filename + " "); path = path + filename; File delFile = new File(path); if (delFile.isFile() && delFile.exists() && rows >0) { delFile.delete(); count++; } //初始化path path = "E:\\uploads\\"; } //如果删除的文件数和filename数相同,则删除完成,即跳转 if(count == filenames.size()){ return "findAllDocuments.do"; }else { //回滚事务 //TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); model.addAttribute("fail", "文件删除失败"); return "/jsp/fail.jsp"; } } //文档修改 @RequestMapping("/modifyDocument.do") public String modifyDocument(Document document,Model model,Integer flag,HttpSession session) throws IOException { //flag==1进行查找 if(flag == 1){ //根据id进行查找并回显数据//此时文件未查找也未回显 Document returnDocument = documentService.findDocumentsById(document.getId()); model.addAttribute("document",returnDocument); //返回到修改界面 return "/jsp/document/showUpdateDocument.jsp"; }else{ //先删除指定路径下的文档,修改数据库数据,这里判断文件是否重新选择 //怎么判断文件是否重新选择:方式原始文件名或者读取文件类容,当原始文件名不为空且与原始文件名不一致时,重新上传的文件 //根据ducument_id来获取当前数据中的原始文件名和 当前传入的file名字是否相一至 //当前数据库 //System.out.println("修改"+document); if(!document.getFile().isEmpty()){//上传有文件 String path = "E:\\uploads\\"; //根据当前上传的文件获取id,去数据库中查找源文件 Document target = documentService.findDocumentsById(document.getId()); //System.out.println("target源文件"+target); File targetfile = new File(path,target.getFilename()); //判断该路径下是否存在该文件,存在即删除 if(targetfile.exists()){ targetfile.delete(); } //上传当前文件 //获取文件名字 String filename = System.currentTimeMillis()+document.getFile().getOriginalFilename(); File file = new File(path,filename); //上传文件 document.setFilename(filename); document.getFile().transferTo(file); } //更改数据库中的数据 User loginUser = (User) session.getAttribute("loginUser"); document.setUser(loginUser); //只需要修改 标题或者描述 int row = documentService.modifyDocument(document); if(row > 0) { //修改成功后返回到查找界面 return "findAllDocuments.do"; }else{ model.addAttribute("fail","修改失败小猪佩奇"); return "/jsp/fail.jsp"; } } } //文档下载 @RequestMapping("/downloadDocuments.do") public ResponseEntity<byte[]> downloadDocument(Integer id, HttpServletRequest request) throws IOException { //根据传入的id查找目标文件 Document target = documentService.findDocumentsById(id); //获取目标文件名 String filename = target.getFilename(); //下载路径 String path = "E:\\uploads\\"; File file = new File(path,filename); //创建响应头 HttpHeaders headers = new HttpHeaders(); //通知浏览器以下载的方式打开文件 headers.setContentType(MediaType.APPLICATION_OCTET_STREAM); //处理文件在不同浏览器下载出现的中文乱码问题 filename = processFileName(request,filename); headers.setContentDispositionFormData("attachment",filename); return new ResponseEntity<byte[]>(FileUtils.readFileToByteArray(file),headers, HttpStatus.OK); } //IE、chrom、Firefox文件中文乱码问题 public String processFileName(HttpServletRequest request, String fileNames) { String codedfilename = null; try { String agent = request.getHeader("USER-AGENT"); if (null != agent && -1 != agent.indexOf("MSIE") || null != agent && -1 != agent.indexOf("Trident")) {// ie String name = java.net.URLEncoder.encode(fileNames, "UTF8"); codedfilename = name; } else if (null != agent && -1 != agent.indexOf("Mozilla")) {// 火狐,chrome等 codedfilename = new String(fileNames.getBytes("UTF-8"), "iso-8859-1"); } } catch (Exception e) { e.printStackTrace(); } return codedfilename; } }
4c482837b425b04b63c4c34efce93a3d2a7f56ff
25e78aa5a4edffb34e3b1e70c263626958a7e953
/src/main/java/com/cell/dao/impl/RiskPlanDaoImpl.java
de37c9dec06787fab48d83115ccb47e308fba64a
[]
no_license
raledong/RMP
a8f2d59e79c1222e11fb9cde5cf53b2ec26010c9
3e156e9522b502893d7b92be9a77d8ebbafd6148
refs/heads/master
2020-12-24T10:32:09.824670
2016-11-30T13:01:05
2016-11-30T13:01:05
73,155,744
1
4
null
2016-11-08T15:07:45
2016-11-08T06:22:02
Java
UTF-8
Java
false
false
1,146
java
package com.cell.dao.impl; import java.util.List; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import com.cell.dao.RiskPlanDao; import com.cell.model.RiskPlan; @Repository(value="riskPlanDao") @Transactional public class RiskPlanDaoImpl extends GenericDaoImpl<RiskPlan, Integer> implements RiskPlanDao{ public RiskPlanDaoImpl() { super(RiskPlan.class); } @Override public List<RiskPlan> getRiskPlanByUserId(int userId) { String hql = "from RiskPlan riskPlan where riskPlan.createdBy = :createdBy"; return this.findByNamedParam(hql, "createdBy", userId); } public static void main(String[] args){ ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); RiskPlanDao riskPlanDao = ctx.getBean("riskPlanDao", RiskPlanDao.class); RiskPlan riskPlan = new RiskPlan(); riskPlan.setCreatedBy(2); riskPlanDao.add(riskPlan); System.out.println(riskPlanDao.getRiskPlanByUserId(2).size()); } }
4ab8b2cd8dc07335cc4d5ffa8a33dbef40d38a07
d3b788acec7211499db0d5499b9891874d2d116e
/src/main/java/com/upem/rentacar/service/somebank/BankCurrencyService.java
fb89dc96509dde823dce75d28f3a8863c8492a9c
[]
no_license
zaizou/RentaCarApp
5466e5f6d776735cf5c78ca22889d43eb83e79d4
2e0e358bc44e20893219b214dee841ab3227d769
refs/heads/master
2020-04-08T04:54:42.018388
2018-11-29T13:47:06
2018-11-29T13:47:06
159,037,257
0
0
null
null
null
null
UTF-8
Java
false
false
271
java
package com.upem.rentacar.service.somebank; import com.upem.rentacar.model.somebank.BankCurrency; import java.util.List; public interface BankCurrencyService { public List<BankCurrency> getAllCurrencies(); public BankCurrency getCurrencyByName(String name); }
74187fcf92cb3cef25611c4e4c12a789a14b4703
6c71e71e9938bda58b33bff5679f9cc7841f463d
/AdminYhk-P2P/src/main/java/cn/sh/yhk/commone/AdminYhkBaseController.java
15bcc5f15a40ac89ac4d93e8f3955989b3ceb495
[]
no_license
Yanghongkang/Admin-Test
73e4a93bfa94f93b343e4d3d866703da80f3c158
b1dc37b186d5a219c0fb7b4488519bfcdd13e077
refs/heads/master
2021-04-15T11:52:34.171233
2018-01-17T03:11:59
2018-01-17T03:11:59
126,765,925
0
0
null
null
null
null
UTF-8
Java
false
false
1,668
java
package cn.sh.yhk.commone; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.springframework.web.bind.annotation.ModelAttribute; import com.alibaba.fastjson.JSON; /** * * @ClassName: BaseController Contrller基类 * @Description: TODO(这里用一句话描述这个类的作用) * @author AdminYHK(Yanghongkang) * @date 2017年5月18日 下午8:53:03 * */ public class AdminYhkBaseController { protected HttpServletRequest request; protected HttpServletResponse response; protected HttpSession session; @ModelAttribute public void setReqAndRes(HttpServletRequest request, HttpServletResponse response) { this.request = request; this.response = response; this.session = request.getSession(); } public void writeToResponse(Object obj) { try { response.setContentType("text/html;charset=utf-8"); response.getWriter().write(JSON.toJSONString(obj)); // if (obj instanceof java.util.List) { // response.getWriter().write(JSONArray.fromObject(obj).toString()); // // } else { // response.getWriter().write(JSONObject.fromObject(obj).toString()); // } response.getWriter().flush(); response.getWriter().close(); } catch (IOException e) { e.printStackTrace(); } } protected void setRequest(String key, Object obj) { request.setAttribute(key, obj); } protected String getRequestToString(String key) { return request.getAttribute(key)+""; } protected String getHeander(String key) { return request.getHeader(key); } }
c8cf09b5126684db79c5a78e14c53d39ce3cb094
f065ed7f8a808935ae322c515853395aa7baccda
/mysql_webconsole/src/cn/emag/datares/service/TableDispHelper.java
2f7c5c60434088fddfb2f89f59103f3c705fd23d
[]
no_license
healy2012/devstation
d72847d98b9dd3e1d77618b40a72ce6f212d42be
486816ee6752e3b207b18b7833736f53d6762d9f
refs/heads/master
2020-04-18T20:44:06.442349
2018-04-04T01:32:29
2018-04-04T01:32:29
17,582,920
0
0
null
null
null
null
UTF-8
Java
false
false
11,971
java
package cn.emag.datares.service; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang.StringUtils; import cn.emag.datares.domain.Column; import cn.emag.datares.domain.ColumnDisp; import cn.emag.datares.domain.Constant; import cn.emag.datares.domain.Table; import cn.emag.datares.domain.TableDisp; public class TableDispHelper { protected Table table; protected TableDisp tableDisp; protected List<Column> columnList; protected List<ColumnDisp> columnDispList; protected Map<String, List<ColumnDisp>> subTabColListMap; /**表字段与子表信息映射关系*/ protected Map<String,Table> subTabMap; /**所有列表字段sql语句中的表示*/ protected List<String> fieldsForSql = new ArrayList<String>(); /**列表中的所有字段,查询结果中显示的名称*/ protected List<String> fields = new ArrayList<String>(); /**所有主键字段sql语句中的表示*/ protected List<String> prmaryKeysForSql = new ArrayList<String>(); protected List<String> prmaryKeys = new ArrayList<String>(); /**所有列表字段描述*/ protected List<String> fieldsDesc = new ArrayList<String>(); /**所有查询条件字段名称*/ protected List<String> queryFields = new ArrayList<String>(); /**所有查询条件字段描述*/ protected List<String> queryFieldsDesc = new ArrayList<String>(); /**查询用到的所有表*/ protected List<String> tables = new ArrayList<String>(); /**查询条件(主表和子表关联、手工输入的查询条件)*/ protected List<String> queryEntities = new ArrayList<String>(); protected String countSql; protected String queryPageSql; /**数据字典表名*/ static final String DataDictTableName = "sys_base_data"; /**数据字典展示描述字段*/ static final String DataDictTableLabelField = "bd_name"; /**数据字典值字段*/ static final String DataDictTableValueField = "bd_value"; /** * 数据列表展示帮助类 * @param table 物理表配置信息 * @param tableDisp 表展示配置信息 * @param columnList 物理表字段信息 * @param columnDispList 表展示字段配置信息 * @param subTabColListMap 表字段与子表字段列表映射关系 * @param subTabMap 表字段与子表信息映射关系 */ public TableDispHelper(Table table, TableDisp tableDisp, List<Column> columnList, List<ColumnDisp> columnDispList,Map<String, List<ColumnDisp>> subTabColListMap,Map<String,Table> subTabMap) { this.table = table; this.tableDisp = tableDisp; this.columnList = columnList; this.columnDispList = columnDispList; this.subTabColListMap = subTabColListMap; this.subTabMap = subTabMap; init(); } /** * (初始化)组织展示相关数据 */ protected void init() { String main_table_sqlname = table.getTab_sqlname();//主表名称 Map<String, Column> colsMap = new HashMap<String, Column>(); for (int j = 0; j < columnList.size(); j++) { Column col = columnList.get(j); colsMap.put(col.getCol_sqlname(), col); } tables.add(table.getTab_sqlname()); int dataDictTableCount=0;//关联数据字典表次数 for (int i = 0; i < columnDispList.size(); i++) { ColumnDisp colDisp = columnDispList.get(i); String col_sqlname = colDisp.getFull_col_sqlname(); Column col = colsMap.get(col_sqlname); if (Constant.Yes.equals(colDisp.getIs_in_list())) { // 关联子表情况 if (StringUtils.isNotBlank(colDisp.getSub_tab_disp_cols())) { Table subTab = subTabMap.get(col_sqlname); List<ColumnDisp> subTabColList = subTabColListMap.get(col_sqlname); String sub_table_name = subTab.getTab_sqlname(); tables.add(sub_table_name); queryEntities.add(main_table_sqlname + "." + col_sqlname + "=" + sub_table_name + "." + col.getSub_tab_col_sqlname()); String[] sub_tab_cols = colDisp.getSub_tab_disp_cols().replaceAll(" ","").split(","); for(int j=0;j<sub_tab_cols.length;j++){ for(int k=0;k<subTabColList.size();k++){ ColumnDisp tmp = subTabColList.get(k); if(sub_tab_cols[j].equals(tmp.getFull_col_sqlname())){ fieldsForSql.add(sub_table_name + "." + sub_tab_cols[j] + " as \"" + sub_table_name + "." + sub_tab_cols[j] + "\""); fields.add(sub_table_name + "." + sub_tab_cols[j]); fieldsDesc.add(tmp.getList_disp_name()); } } } }else if(StringUtils.isNotBlank(col.getDatadict()) && Integer.parseInt(col.getDatadict()) > 0){//关联数据字典情况 dataDictTableCount++; String dataDictTableAlias = DataDictTableName+dataDictTableCount;//数字字典别名 String dataDictLabelAlias = DataDictTableLabelField + dataDictTableCount; tables.add(DataDictTableName +" as "+dataDictTableAlias); queryEntities.add(main_table_sqlname + "." + col_sqlname + "=" + dataDictTableAlias + "." + DataDictTableValueField + " and "+ dataDictTableAlias +".bd_parent_id="+col.getDatadict()); fieldsForSql.add(dataDictTableAlias + "." + DataDictTableLabelField + " as \"" + dataDictTableAlias + "." + dataDictLabelAlias + "\""); fields.add(dataDictTableAlias + "." + dataDictLabelAlias); fieldsDesc.add(colDisp.getList_disp_name()); } else { fieldsForSql.add(main_table_sqlname + "." + col_sqlname + " as \"" + main_table_sqlname + "." + col_sqlname + "\""); fields.add(main_table_sqlname + "." + col_sqlname); fieldsDesc.add(colDisp.getList_disp_name()); } if (Constant.Yes.equals(colDisp.getSupport_query())) { queryFields.add(main_table_sqlname + "." + col_sqlname); queryFieldsDesc.add(colDisp.getList_disp_name()); } } // 找出主键字段 if (Constant.Yes.equals(col.getIspk())) { prmaryKeysForSql.add(main_table_sqlname + "." + col_sqlname + " as \"" + main_table_sqlname + "." + col_sqlname + "\""); prmaryKeys.add(main_table_sqlname + "." + col_sqlname); } } } /** * 组织分页查询count语句 * @param request 用于获取查询条件 * @return */ public String getCountSql(HttpServletRequest request) { if (countSql != null) { return countSql; } countSql = "select count(*) from "; String tableSql = ""; String querySql = ""; for (int i = 0; i < tables.size(); i++) { tableSql = tableSql + "," + tables.get(i); } if (tableSql.length() > 0) { tableSql = tableSql.substring(1, tableSql.length()); } for (int i = 0; i < queryEntities.size(); i++) { querySql = querySql + " and " + queryEntities.get(i); } // 添加数据表查询条件 // TODO:需要防止SQL注入 for(int i=0;i<queryFields.size();i++){ String searchField = queryFields.get(i); String value = request.getParameter(searchField); if (StringUtils.isNotBlank(value)) { querySql = querySql + " and " + searchField + "='" + value + "'"; } } if (querySql.length() > 0) { querySql = querySql.substring(5, querySql.length()); countSql = countSql + tableSql + " where " + querySql; } else { countSql = countSql + tableSql; } return countSql; } /** * 组织分页查询详细查询SQL * @param pageNumber 当前显示第几页 * @param pageSize 每页显示的记录数 * @param request 用于获取查询条件 * @return */ public String getPageQuerySql(int pageNumber, int pageSize, HttpServletRequest request) { int skip = (pageNumber - 1) * pageSize; int max = pageSize; String fieldsSql = ""; String tableSql = ""; String querySql = ""; for (int i = 0; i < fieldsForSql.size(); i++) { fieldsSql = fieldsSql + "," + fieldsForSql.get(i); } fieldsSql = fieldsSql + ","; // 添加主键字段 for (int i = 0; i < prmaryKeysForSql.size(); i++) { String key = prmaryKeysForSql.get(i); if (fieldsSql.indexOf("," + key + ",") < 0) { fieldsSql = fieldsSql + key + ","; } } fieldsSql = fieldsSql.substring(0, fieldsSql.length() - 1); if (fieldsSql.length() > 0) { fieldsSql = fieldsSql.substring(1, fieldsSql.length()); } for (int i = 0; i < tables.size(); i++) { tableSql = tableSql + "," + tables.get(i); } if (tableSql.length() > 0) { tableSql = tableSql.substring(1, tableSql.length()); } for (int i = 0; i < queryEntities.size(); i++) { querySql = querySql + " and " + queryEntities.get(i); } // 添加数据表查询条件 // TODO:需要防止SQL注入 for(int i=0;i<queryFields.size();i++){ String searchField = queryFields.get(i); String value = request.getParameter(searchField); if (StringUtils.isNotBlank(value)) { querySql = querySql + " and " + searchField + "='" + value + "'"; } } if (querySql.length() > 0) { querySql = querySql.substring(5, querySql.length()); } if (querySql.length() > 0) { queryPageSql = "select " + fieldsSql + " from " + tableSql + " where " + querySql + " LIMIT " + skip + "," + max; } else { queryPageSql = "select " + fieldsSql + " from " + tableSql + " LIMIT " + skip + "," + max; } return queryPageSql; } public List<String> getFieldList() { return fields; } public List<String> getFieldDescList() { return fieldsDesc; } public List<String> getQueryFieldList() { return queryFields; } public List<String> getQueryFieldDescList() { return queryFieldsDesc; } public List<String> getPrmaryKeyList() { return prmaryKeys; } }
7fc4a3d2f5f5f1a323a0bcbe8c6a2f3fc8f4f0fc
5e61b60b7389525507a0f0298f9c3c3f2259616e
/core/ri/src/main/java/org/jredis/ri/alphazero/JRedisClient.java
4a72a8f331b073fdac9c042353d2c4272359628f
[ "Apache-2.0" ]
permissive
kryton/jredis
0d6bf997793bf17cfce60fcd37508181ade8a77c
4b0a893c426b42db3e36e71b5843fc53a3c3aafd
refs/heads/master
2021-01-15T20:34:18.651447
2009-05-28T00:28:42
2009-05-28T00:28:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,181
java
/* * Copyright 2009 Joubin Houshyar * * 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 writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jredis.ri.alphazero; import org.jredis.ClientRuntimeException; import org.jredis.Command; import org.jredis.JRedis; import org.jredis.ProviderException; import org.jredis.Redis; import org.jredis.RedisException; import org.jredis.connector.Connection; import org.jredis.connector.Protocol; import org.jredis.connector.Response; //import org.jredis.ri.alphazero.connection.SocketConnection; import org.jredis.ri.alphazero.support.Assert; /** * [TODO: check documentation and make necessary changes made during refactoring] * * A basic client, using {@link SocketConnection} and handler delegate * <p> * This class is simply an assembly of various other components that address distinct * concerns of a JRedis connection, and effectively defines the connection policy * and use-case patterns by selecting this set of cooperating elements. * <p> * This is a <i>simple client</i> object suitable for long-held open connections * to a redis server by single threaded applications. * <p> * <b>The components that are used ARE NOT thread-safe</b> and assume * synchronised/sequential access to the api defined by {@link JRedis}. * Both the connection and protocol handler delegates of this class are intended for use * by a <b>single</b> thread, or strictly sequential access by a pool of threads. You can * create multiple instances of this class and use dedicated threads for each to create a * service (if you wish). * <p> * Redis protocol is handled by a {@link Protocol} instance obtained from the {@link ProtocolManager}. * This class will by default specify the {@link RedisVersion#current_revision}. * * @author Joubin Houshyar ([email protected]) * @version alpha.0, 04/02/09 * @since alpha.0 * */ @Redis(versions={"0.09"}) public class JRedisClient extends SynchJRedisBase { // ------------------------------------------------------------------------ // Properties // ------------------------------------------------------------------------ private Connection connection; // ------------------------------------------------------------------------ // Construct and initialize // ------------------------------------------------------------------------ /** * New RedisClient for the default protocol version {@link RedisVersion} * obtained from the {@link ProtocolManager} * and using localhost:6379 as its network addressing parameters. * * @see JRedisClient#RedisClient(String, int, String) */ public JRedisClient ( ){ this ("localhost", 6379, RedisVersion.current_revision); } /** * New RedisClient for the default protocol version {@link RedisVersion} * obtained from the {@link ProtocolManager} * * @see JRedisClient#RedisClient(String, int, String) * @param host * @param port */ public JRedisClient(String host, int port) { this(host, port, RedisVersion.current_revision); } /** * Creates a new instance of RedisClient, using the information provided. * <p> * This constructor will delegate all {@link Protocol} issues to a * {@link SocketConnection} instance, for which it will obtain a {@link Protocol} * handler delegate from {@link ProtocolManager} for the user specified redis version * <p> * All specifics regarding the implementation of the {@link JRedis} contract are handled by * the superclass and you should consult that class's documentation for the detailss. * * @param host * @param port * @param redisVersion * @throws ClientRuntimeException */ public JRedisClient (String host, int port, RedisVersion redisVersion) throws ClientRuntimeException { Assert.notNull(host, "host parameter", IllegalArgumentException.class); Assert.notNull(redisVersion, "redisVersion paramter", IllegalArgumentException.class); Connection synchConnection = createSynchConnection (host, port, redisVersion); setConnection (synchConnection); } // ------------------------------------------------------------------------ // Super overrides // ------------------------------------------------------------------------ @Override protected Response serviceRequest(Command cmd, byte[]... args) throws RedisException, ClientRuntimeException, ProviderException { Response response = connection.serviceRequest(cmd, args); // temp bench // reqCnt ++; // if(reqCnt == benchCnt) { // if(start == -1) { // start = System.currentTimeMillis(); // } // else { // long delta = System.currentTimeMillis() - start; // float rate = (benchCnt * 1000)/delta; // Log.log("JRedisService: served %d at %9.2f /sec in %d msecs\n", benchCnt, rate, delta); // start = System.currentTimeMillis(); // } // reqCnt = 0; // } return response; } // long reqCnt = 0; // long start = -1; // int benchCnt = 1000*1; @Override protected final void setConnection (Connection connection) { this.connection = Assert.notNull(connection, "connection on setConnection()", ClientRuntimeException.class); } // ------------------------------------------------------------------------ // Interface // =========================================================== Resource<T> /* * Provides basic Resource support without any state management. Extensions * that use context in a simply manner can rely on these methods. Others may * wish to override. */ // ------------------------------------------------------------------------ /* (non-Javadoc) * @see org.jredis.resource.Resource#getInterface() */ @Override public JRedis getInterface() { return this; } }
c914f0f411863a875ad5c64bb6211b07adc88049
fe45e3b04b6a28cea0147cc168583fda5258976f
/src/com/test/app/task/AlarmReceiver.java
d5a8141b417de619f63d8eb85f07b456834680bb
[]
no_license
Nobodi/App
b9caba31a6bac5e20d087d60ef8d77fca814856d
43a21dadb6b417e0080307cc857759e1e44d97ca
refs/heads/master
2021-01-17T18:22:41.417392
2016-09-15T20:34:02
2016-09-15T20:34:02
59,215,263
0
1
null
null
null
null
UTF-8
Java
false
false
2,184
java
package com.test.app.task; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import com.test.app.NumberPickerPreference; import com.test.app.R; import com.test.app.model.DataModel; import com.test.app.save.ServerService; public class AlarmReceiver extends BroadcastReceiver { private PendingIntent pendingIntent; @Override public void onReceive(Context context, Intent intent) { // Get User Settings from Shared Preferences SharedPreferences sharedPrefs = PreferenceManager .getDefaultSharedPreferences(context); // Start automatic only if the Status is still true if (sharedPrefs.getBoolean("Status", false)) { int repeatValue = NumberPickerPreference .getValueOfPicker(sharedPrefs.getInt(context .getString(R.string.number_key), context .getResources() .getInteger(R.integer.number_default))); Intent alarmIntent = new Intent(context, MyService.class); // Get PendingIntent with unique ID pendingIntent = PendingIntent.getService(context, DataModel.ALARMPID, alarmIntent, 0); AlarmManager manager = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); // Milliseconds per day = 86400 * 1000 int interval = 86400 * 1000 / repeatValue; manager.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), interval, pendingIntent); // Start ServerService if (!sharedPrefs.getBoolean("Server", false)) { // Initialize Service to send Data to Server Intent serverIntent = new Intent(context, ServerService.class); // Get PendingIntent with unique ID PendingIntent pendingIntent = PendingIntent.getService(context, 0, serverIntent, 0); manager = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); manager.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), AlarmManager.INTERVAL_DAY, pendingIntent); } } } }
fbc8f8955393785a8d9cf07d0275e96d42c32d7c
a273be70cd11fd57f1927c7d278bf8fc3e6a6c94
/choerodon-study/src/main/java/com/cn/choerodonstudy/infra/feign/fallback/IamClientFallback.java
25a819d1adfa22e7ae831ba45b7701ab075aabfd
[]
no_license
LRCgtp/study
f743af5eb96422842ad056f4303aaab5e47989e5
39b836f73e3f0dc8ab21ec649abe7463af2bbf27
refs/heads/master
2022-01-26T08:32:35.166433
2019-08-05T01:12:05
2019-08-05T01:12:05
200,356,103
0
0
null
2022-01-21T23:28:11
2019-08-03T09:18:00
Groovy
UTF-8
Java
false
false
412
java
package com.cn.choerodonstudy.infra.feign.fallback; import com.cn.choerodonstudy.infra.dto.OrganizationDTO; import com.cn.choerodonstudy.infra.feign.IamFeignService; import org.springframework.http.ResponseEntity; import javax.validation.Valid; public class IamClientFallback implements IamFeignService { @Override public ResponseEntity<OrganizationDTO> query(Long id) { return null; } }
7ce32bdf86cd44744e80b1e450894aa563a0358e
6311b57c7accb28b5b52b235e00ac8075805e579
/engine-graphql-plugin/src/main/java/org/shaq/plugins/gui/windows/GraphQLReduceSchemaWindow.java
b2f5ab08a4f99026e20a573ab24e16b1857904d1
[]
no_license
shvshv44/amud-haesh-projects
0b51efe13de75ded1371eb6eec6a6716f465b609
7046c2bedc43e9068ba3f7abe6862270d46b6827
refs/heads/master
2022-05-26T03:22:59.045433
2020-04-20T13:14:57
2020-04-20T13:14:57
247,513,310
0
0
null
2022-05-20T21:29:24
2020-03-15T17:14:02
Java
UTF-8
Java
false
false
10,484
java
package org.shaq.plugins.gui.windows; import com.intellij.ui.components.JBList; import lombok.Data; import org.shaq.plugins.exceptions.GraphQLUserChoiceException; import org.shaq.plugins.gui.components.*; import org.shaq.plugins.models.graphql.*; import org.shaq.plugins.models.graphql.enums.GraphQLOperationType; import org.shaq.plugins.models.user.GraphQLChoosenField; import org.shaq.plugins.models.user.UserChoiceGraphQLContext; import javax.swing.*; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.TreePath; import java.awt.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; @Data public class GraphQLReduceSchemaWindow { private JLabel helpText; private JPanel reducePanel; private JPanel mainPanel; private JPanel chooseFieldsPanel; private JScrollPane chooseFieldsPanelScroll; private JPanel chooseParametersPanel; private JScrollPane chooseParametersScroll; private JScrollPane chooseOperationScroll; private JPanel chooseOperationPanel; private GraphQLGenerationContext context; private JList<ChooseGraphQLOperationComponent> operationJList; private JCheckBoxTree fieldTree; public void fillSchema(GraphQLGenerationContext context) { this.context = context; chooseOperationPanel.setLayout(new GridLayout(1,1)); chooseFieldsPanel.setLayout(new GridLayout(1,1)); chooseParametersPanel.setLayout(new GridLayout(1,1)); operationJList = initializeComponentList(); fillChoosingListWithOperations(context.getQueries()); fillChoosingListWithOperations(context.getMutations()); chooseOperationPanel.add(operationJList); } private void fillChoosingListWithOperations(Map<String, GraphQLOperation> operations) { DefaultListModel model = (DefaultListModel) (operationJList.getModel()); for (GraphQLOperation operation : operations.values()) { ChooseGraphQLOperationComponent component = new ChooseGraphQLOperationComponent(); component.setName(operation.getName()); component.setOperationType(operation.getType().getNameInSchema()); component.setReturnType(graphQLTypeToString(operation.getReturnType())); model.addElement(component); } } private JList<ChooseGraphQLOperationComponent> initializeComponentList() { JList<ChooseGraphQLOperationComponent> operationJList = new JBList<>(new DefaultListModel<>()); operationJList.setLayoutOrientation(JList.HORIZONTAL_WRAP); operationJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); operationJList.addListSelectionListener((listSelectionEvent) -> updateChoosenOperationData(operationJList.getSelectedIndex())); return operationJList; } private String graphQLTypeToString(GraphQLFieldType type) { String typeAsString = ""; if (type.getIsCollection()) typeAsString += "["; typeAsString += type.getCoreType().getName(); if (type.getIsCollection()) typeAsString += "]"; if (type.getIsNullable()) typeAsString += "!"; return typeAsString; } private void updateChoosenOperationData(int operationIndex) { ChooseGraphQLOperationComponent operationComponent = operationJList.getModel().getElementAt(operationIndex); GraphQLOperation operation = getGraphQLTypeFromChoosenComponent(operationComponent); updateChooseParametersPanel(operation); updateChooseFieldsPanel(operation); } private void updateChooseFieldsPanel(GraphQLOperation operation) { GraphQLField rootField = new GraphQLField(); rootField.setName(operation.getName()); rootField.setType(operation.getReturnType()); fieldTree = new JCheckBoxTree(createNodesFromFields(rootField)); chooseFieldsPanel.removeAll(); chooseFieldsPanel.add(fieldTree); chooseFieldsPanel.updateUI(); } private DefaultMutableTreeNode createNodesFromFields(GraphQLField field) { FieldNodeDetails details = new FieldNodeDetails(); details.setField(field); DefaultMutableTreeNode root = new DefaultMutableTreeNode(details); GraphQLSimpleType coreType = field.getType().getCoreType(); if (!coreType.getIsScalar() && !coreType.getIsEnum() && coreType.getFields().size() > 0 ) { for (GraphQLField child : coreType.getFields().values()) { root.add(createNodesFromFields(child)); } } return root; } private void updateChooseParametersPanel(GraphQLOperation operation) { chooseParametersPanel.removeAll(); if(operation.getParameters() != null && operation.getParameters().values().size() > 0) { chooseParametersPanel.setLayout(new BoxLayout(chooseParametersPanel,BoxLayout.Y_AXIS)); for (GraphQLParameter parameter : operation.getParameters().values()) { ParameterCheckBoxPanel checkBoxPanel = new ParameterCheckBoxPanel(parameter); chooseParametersPanel.add(checkBoxPanel); } } chooseParametersPanel.updateUI(); } private GraphQLOperation getGraphQLTypeFromChoosenComponent(ChooseGraphQLOperationComponent operationComponent) { if (operationComponent.getOperationType().equals(GraphQLOperationType.QUERY.getNameInSchema())) { return context.getQueries().get(operationComponent.getName()); } return context.getMutations().get(operationComponent.getName()); } public UserChoiceGraphQLContext getUserChoiceContext() { UserChoiceGraphQLContext userChoice = new UserChoiceGraphQLContext(); setOperationChoice(userChoice); setParametersChoice(userChoice); setFieldsChoice(userChoice); userChoice.setTypes(context.getTypes()); return userChoice; } private void setFieldsChoice(UserChoiceGraphQLContext userChoice) { HashMap<Integer, List<TreePath>> pathByLevel = dividePathsByLevel(fieldTree.getCheckedPaths()); TreePath rootPath = pathByLevel.get(1).get(0); GraphQLField field = getFieldFromPath(rootPath); GraphQLChoosenField choosenField = createChoosenFieldFromField(field); if (fieldTree.getCheckedPaths().length > 1) buildFieldTreeFromRoot(choosenField, pathByLevel, 2); userChoice.setRootField(choosenField); } private GraphQLChoosenField createChoosenFieldFromField(GraphQLField field) { GraphQLChoosenField choosenField = new GraphQLChoosenField(); choosenField.setName(field.getName()); choosenField.setOriginalField(field); choosenField.setInnerChoosenFields(new ArrayList<>()); return choosenField; } private void buildFieldTreeFromRoot(GraphQLChoosenField rootField, HashMap<Integer, List<TreePath>> pathByLevel, int currentlevel) { List<TreePath> currentLevelPaths = pathByLevel.get(currentlevel); if (currentLevelPaths != null && currentLevelPaths.size() > 0) { for (TreePath treePath : currentLevelPaths) { GraphQLField currentField = getFieldFromPath(treePath); GraphQLField currentParentField = getFieldFromPath(treePath.getParentPath()); if (currentParentField.getName().equals(rootField.getName())) { GraphQLChoosenField choosenField = createChoosenFieldFromField(currentField); rootField.getInnerChoosenFields().add(choosenField); buildFieldTreeFromRoot(choosenField, pathByLevel, currentlevel + 1); } } } } private GraphQLField getFieldFromPath(TreePath treePath) { DefaultMutableTreeNode lastComponentNode = (DefaultMutableTreeNode) treePath.getLastPathComponent(); FieldNodeDetails fieldNodeDetails = (FieldNodeDetails) lastComponentNode.getUserObject(); return fieldNodeDetails.getField(); } private HashMap<Integer, List<TreePath>> dividePathsByLevel(TreePath[] checkedPaths) { HashMap<Integer, List<TreePath>> pathByLevel = new HashMap<>(); for (TreePath treePath : checkedPaths) { int pathLevel = treePath.getPathCount(); if(pathByLevel.get(pathLevel) == null) pathByLevel.put(pathLevel, new ArrayList<>()); pathByLevel.get(pathLevel).add(treePath); } return pathByLevel; } private void setParametersChoice(UserChoiceGraphQLContext userChoice) { GraphQLOperation choosenOperation = userChoice.getChoosenOperation(); userChoice.setChoosenParameters(new HashMap<>()); if (chooseParametersPanel != null && chooseParametersPanel.getComponents() != null && chooseParametersPanel.getComponents().length > 0) { for (Component component : chooseParametersPanel.getComponents()) { ParameterCheckBoxPanel parameterCheckBox = (ParameterCheckBoxPanel) component; if(parameterCheckBox.hasParameterBeenChoosen()) { GraphQLParameter parameter = choosenOperation.getParameters().get(parameterCheckBox.getParameterName()); if (parameter == null) throw new GraphQLUserChoiceException("Parameter " + parameterCheckBox.getParameterName() + " does not exist in " + choosenOperation.getName()); userChoice.getChoosenParameters().put(parameter.getName(), parameter); } } } } private void setOperationChoice(UserChoiceGraphQLContext userChoice) { int selectedOperationIndex = operationJList.getSelectedIndex(); ChooseGraphQLOperationComponent operationComponent = operationJList.getModel().getElementAt(selectedOperationIndex); GraphQLOperation operation = null; if (operationComponent.getOperationType().equals(GraphQLOperationType.QUERY.getNameInSchema())) operation = context.getQueries().get(operationComponent.getName()); else operation = context.getMutations().get(operationComponent.getName()); if (operation == null) throw new GraphQLUserChoiceException("Operation of type " + operationComponent.getName() + " cannot be handled!"); userChoice.setChoosenOperation(operation); } }
eaf0346da81d861425580f8269586319b0d21788
366ee3d1d42a37e4d0ba0fd81224c3f48be26f86
/ListaCompra/app/src/main/java/com/example/luisr/listacompra/MainActivity.java
2def2a8f13af965b0eee676e134be1ca01aea8f0
[]
no_license
lrcortizo/DM-AndroidStudioProjects
eff2ffd4ad875c551b45f18c0e2c8dc79156b4b1
e9bf056ea804338b6225d5046eae72f4f208aaef
refs/heads/master
2020-03-21T05:26:01.941032
2018-06-21T11:16:50
2018-06-21T11:16:50
138,160,146
0
0
null
null
null
null
UTF-8
Java
false
false
5,636
java
package com.example.luisr.listacompra; import android.content.Context; import android.content.SharedPreferences; import android.graphics.Color; import android.support.v7.app.AppCompatActivity; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.view.ContextMenu; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.*; import java.util.ArrayList; public class MainActivity extends AppCompatActivity { /** * Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate( savedInstanceState ); setContentView( R.layout.activity_main ); this.items = new ArrayList<String>(); Button btAdd = (Button) this.findViewById( R.id.btAdd ); ListView lvItems = (ListView) this.findViewById( R.id.lvItems ); lvItems.setClickable( true ); this.itemsAdapter = new ArrayAdapter<String>( this, android.R.layout.simple_selectable_list_item, this.items ); lvItems.setAdapter( this.itemsAdapter ); lvItems.setOnItemClickListener(new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView<?> adapterView, View view,final int pos, long l ){ if(pos >=0){ AlertDialog.Builder alerta_dialogo; alerta_dialogo = new AlertDialog.Builder(MainActivity.this); final EditText editText = new EditText(MainActivity.this); alerta_dialogo.setTitle("Nuevo Valor"); alerta_dialogo.setMessage("Introduce el nuevo valor"); alerta_dialogo.setView(editText); alerta_dialogo.setPositiveButton("Modificar", new DialogInterface.OnClickListener(){ public void onClick(DialogInterface dialog, int which){ final String texto = editText.getText().toString(); MainActivity.this.items.set(pos, texto); } }); alerta_dialogo.setNegativeButton("Cancel", null); alerta_dialogo.create().show(); } } } ); btAdd.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { MainActivity.this.onAdd(); } }); this.registerForContextMenu(lvItems); } @Override public boolean onCreateOptionsMenu(Menu menu){ super.onCreateOptionsMenu(menu); this.getMenuInflater().inflate(R.menu.main_menu, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem menuItem) { boolean toret = false; switch (menuItem.getItemId()) { case R.id.main_op_inserta: toret = true; onAdd(); break; case R.id.main_op_elimina_ultimo: if (this.items.size() > 0) { this.items.remove(this.items.size()); this.itemsAdapter.notifyDataSetChanged(); toret = true; } break; } return toret; } @Override public boolean onContextItemSelected(MenuItem menuItem){ boolean toret = false; int pos= ((AdapterView.AdapterContextMenuInfo) menuItem.getMenuInfo()).position; switch(menuItem.getItemId()){ case R.id.context_op_elimina: this.elimina(pos); toret=true; break; } return toret; } @Override public void onCreateContextMenu(ContextMenu menu, View view, ContextMenu.ContextMenuInfo cmi){ super.onCreateContextMenu(menu,view,cmi); if(view.getId()==R.id.lvItems){ this.getMenuInflater().inflate(R.menu.contextual_menu, menu); menu.setHeaderTitle(R.string.app_name); } } private void onAdd() { final EditText edText = new EditText( this ); AlertDialog.Builder builder = new AlertDialog.Builder( this ); builder.setTitle("A comprar..."); builder.setMessage( "Nombre" ); builder.setView( edText ); builder.setPositiveButton( "+", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { final String text = edText.getText().toString(); MainActivity.this.itemsAdapter.add( text ); MainActivity.this.updateStatus(); } }); builder.setNegativeButton("Cancel", null); builder.create().show(); } private void elimina(int pos) { if(pos>=0){ MainActivity.this.items.remove(pos); MainActivity.this.itemsAdapter.notifyDataSetChanged(); MainActivity.this.updateStatus(); } } private void updateStatus() { TextView txtNum = (TextView) this.findViewById( R.id.lblNum ); txtNum.setText( Integer.toString( this.itemsAdapter.getCount() ) ); } private ArrayAdapter<String> itemsAdapter; private ArrayList<String> items; }
d49504f568e8ba5cd5ca2ada33552ebfe7a10a5f
1e30a52ce955baae0795eebaf62f6fe4a71ae5b5
/back-end/etapa_1/src/main/java/com/linx/challenge/model/pojo/ExtraInfoPOJO.java
fa933f82740e072f344d1c310f505cd603f6304f
[]
no_license
victorbeleza-dev/loja_nodejs
012f3162afa43f53cd7a4d79d7abdc3618196460
bcb9e7aba7919d5f5c00c3ced0f164ab93562a06
refs/heads/master
2022-12-22T20:08:29.862904
2020-02-17T10:41:05
2020-02-17T10:41:05
239,670,620
0
0
null
2022-12-12T01:56:36
2020-02-11T03:50:42
Java
UTF-8
Java
false
false
959
java
package com.linx.challenge.model.pojo; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "hash" }) public class ExtraInfoPOJO { @JsonProperty("hash") public String hash; @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>(); @JsonAnyGetter public Map<String, Object> getAdditionalProperties() { return this.additionalProperties; } @JsonAnySetter public void setAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); } }
4bb33ecacece14bb36924c089590fd01b9795520
a07126f246a1c3ffb7749624e9be5cdbf58034a9
/andriod/MyApplication5/app/src/main/java/com/example/xieyang/myapplication/LingqianActivity.java
b216d13c4b59250c338fe1bcc19b0cf1b9073a40
[]
no_license
freecullen/fate
3b3d78bcfcefe5961ddcc2f6b04e233008252496
a65c9b83c032eb9e3391084d3bdfbcca33afd6ef
refs/heads/master
2021-01-10T11:43:26.938714
2016-01-08T09:40:36
2016-01-08T09:40:36
46,910,697
1
3
null
null
null
null
UTF-8
Java
false
false
1,018
java
package com.example.xieyang.myapplication; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import com.example.xieyang.myapplication.results.LingqianResult; /** * Created by xieyang on 11-13. */ public class LingqianActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.lingqian); Button btn = (Button) findViewById(R.id.btn_lin); btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { int random=(int) (Math.random()*109+1); String result = LingqianResult.getResult(random); Intent intent = new Intent(LingqianActivity.this, ResultView.class); intent.putExtra("res",result); startActivity(intent); } }); } }
[ "xiyeang_ss" ]
xiyeang_ss
dafe05b76e7a77d10aba2911cb20d90e7a1b1d21
cca87c4ade972a682c9bf0663ffdf21232c9b857
/com/tencent/mm/e/a/d.java
dd7f2f2daa7e1c66bf616fa08dca9f0da163ffd8
[]
no_license
ZoranLi/wechat_reversing
b246d43f7c2d7beb00a339e2f825fcb127e0d1a1
36b10ef49d2c75d69e3c8fdd5b1ea3baa2bba49a
refs/heads/master
2021-07-05T01:17:20.533427
2017-09-25T09:07:33
2017-09-25T09:07:33
104,726,592
12
1
null
null
null
null
UTF-8
Java
false
false
449
java
package com.tencent.mm.e.a; import com.tencent.mm.sdk.b.b; public final class d extends b { public a fCj; public static final class a { public int cGa; public boolean fCk = false; public boolean fCl = false; public boolean isReady = false; } public d() { this((byte) 0); } private d(byte b) { this.fCj = new a(); this.use = false; this.nFq = null; } }
e250762453756abb7ad93b3bc0f03193dac79646
bf16c542a9d1c0d1b6f2b22b36b48e32866de9a8
/src/test/com/inrevo/TestSelect.java
d995241513d9127b7800d6c0918e45aa147aae72
[]
no_license
linchuangang/foxconn-zqzx
5cea7ed7ff0a3c8ec94c899c5547f4cf17c250a4
2a7c7708feedb19dafbdeb21498c7a04d5b106d3
refs/heads/master
2020-04-24T07:55:32.631912
2019-02-21T06:34:50
2019-02-21T06:34:50
171,813,959
0
0
null
null
null
null
UTF-8
Java
false
false
1,230
java
package com.inrevo; import com.alibaba.fastjson.JSON; import com.inrevo.util.InfluxDBUtil; import org.influxdb.dto.QueryResult; import java.util.List; import java.util.stream.Collectors; public class TestSelect { public static void main(String[] args) { InfluxDBUtil influxDBConnection = InfluxDBUtil.getInstance(); QueryResult results = influxDBConnection.query("select * from fsk"); System.out.println(JSON.toJSONString(results)); //results.getResults()是同时查询多条SQL语句的返回值,此处我们只有一条SQL,所以只取第一个结果集即可。 QueryResult.Result oneResult = results.getResults().get(0); System.out.println(JSON.toJSONString(oneResult)); if (oneResult.getSeries() != null) { List<List<List<Object>>> valueList = oneResult.getSeries().stream().map(QueryResult.Series::getValues).collect(Collectors.toList()); System.out.println(JSON.toJSONString(valueList)); if (valueList != null && valueList.size() > 0) { for (List<List<Object>> values : valueList) { System.out.println(JSON.toJSONString(values)); } } } } }
2c22ae655f8f389fde8fba4181049d6237bc28f3
bb014cbe7981d6605ab14c37923e45af48b86027
/MEME/src/java/gov/nih/nlm/umls/jekyll/LexRelsEditor.java
274065493a6508094cbfa5dc572aa7e61e67b28d
[]
no_license
rwynne/nlmlegacymeme
8790c8421fe0c7c1e335c1df02f92a40bc32ac17
76ad061ea3ea29308462d893fd512b4e45db29bc
refs/heads/master
2021-01-01T18:52:27.688542
2017-07-26T18:54:03
2017-07-26T18:54:03
98,453,314
0
0
null
2017-07-26T18:24:06
2017-07-26T18:24:05
null
UTF-8
Java
false
false
29,989
java
/* * LexRelsEditor.java */ package gov.nih.nlm.umls.jekyll; import gov.nih.nlm.meme.MEMEToolkit; import gov.nih.nlm.meme.action.MolecularDeleteRelationshipAction; import gov.nih.nlm.meme.action.MolecularInsertRelationshipAction; import gov.nih.nlm.meme.common.Atom; import gov.nih.nlm.meme.common.Concept; import gov.nih.nlm.meme.common.CoreData; import gov.nih.nlm.meme.common.Relationship; import gov.nih.nlm.meme.common.Source; import gov.nih.nlm.meme.exception.MEMEException; import gov.nih.nlm.meme.exception.MissingDataException; import gov.nih.nlm.meme.exception.StaleDataException; import gov.nih.nlm.swing.DecreaseFontAction; import gov.nih.nlm.swing.FontSizeManager; import gov.nih.nlm.swing.GlassComponent; import gov.nih.nlm.swing.IncreaseFontAction; import gov.nih.nlm.umls.jekyll.swing.EditableTableModel; import gov.nih.nlm.umls.jekyll.swing.ResizableJTable; import java.awt.Color; import java.awt.Component; import java.awt.Container; import java.awt.Cursor; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.net.SocketException; import java.util.Date; import java.util.ResourceBundle; import java.util.Vector; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.Box; import javax.swing.DefaultCellEditor; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.SwingUtilities; import javax.swing.table.TableColumn; import samples.accessory.StringGridBagLayout; /** * Window for displaying and editing SFO/LFO relationships of the current * concept. * * @see <a href="src/LexRelsEditor.java.html">source </a> * @see <a href="src/LexRelsEditorResources.properties.html">properties </a> */ public class LexRelsEditor extends JFrame implements JekyllConstants, Refreshable, StateChangeListener { /** * Resource bundle with default locale */ private ResourceBundle resources = null; // integer values for columns private final int TABLE_ATOM_NAME_SFO_COLUMN = 0; private final int TABLE_ATOM_NAME_LFO_COLUMN = 1; private final int TABLE_STATUS_COLUMN = 2; private final int TABLE_AUTHORIZED_BY_COLUMN = 3; private final int TABLE_AUTHORIZED_ON_COLUMN = 4; private final String SFO_BUTTON = "sfo.button"; private final String LFO_BUTTON = "lfo.button"; // Various components private GlassComponent glass_comp = null; private JTextField conceptNameTF = null; private JTextField conceptIdTF = null; private EditableTableModel relsModel = null; private ResizableJTable relsTable = null; private JTextField sfoAtomIdTF = null; private JTextField lfoAtomIdTF = null; private JTextField sfoAtomNameTF = null; private JTextField lfoAtomNameTF = null; private JMenu editMenu = null; // Actions CloseAction close_action = new CloseAction(this); ChangeStatusAction change_status_action = new ChangeStatusAction(this); TransferAtomAction transfer_atom_action = new TransferAtomAction(this); // Core data private Concept current_concept = null; private Atom sfo_atom = null; private Atom lfo_atom = null; private Vector listOfRels = new Vector(); /** * Default constructor */ public LexRelsEditor() { initResources(); initComponents(); FontSizeManager.addContainer(this); pack(); } // Loads resources using the default locale private void initResources() { resources = ResourceBundle.getBundle("bundles.LexRelsEditorResources"); } private void initComponents() { Box b = null; String columnName = null; TableColumn column = null; JScrollPane sp = null; setTitle(resources.getString("window.title")); setDefaultCloseOperation(HIDE_ON_CLOSE); // set properties on this frame Container contents = getContentPane(); contents.setLayout(new StringGridBagLayout()); glass_comp = new GlassComponent(this); setGlassPane(glass_comp); // concept name text field conceptNameTF = GUIToolkit.getNonEditField(); // concept_id text field conceptIdTF = new JTextField(10); conceptIdTF.setEditable(false); conceptIdTF.setBackground(LABEL_BKG); conceptIdTF.setMinimumSize(conceptIdTF.getPreferredSize()); conceptIdTF.setMaximumSize(conceptIdTF.getPreferredSize()); // "Close" button JButton closeButton = new JButton(close_action); closeButton.setFont(BUTTON_FONT); closeButton.setBackground((Color) close_action.getValue("Background")); // box container b = Box.createHorizontalBox(); b.add(conceptNameTF); b.add(Box.createHorizontalStrut(5)); b.add(conceptIdTF); b.add(Box.createHorizontalStrut(12)); b.add(closeButton); contents .add( "gridx=0,gridy=0,gridwidth=2,fill=HORIZONTAL,anchor=WEST,insets=[12,12,0,11]", b); JLabel lexRelsLabel = new JLabel(); lexRelsLabel.setText(resources.getString("lexRels.label")); contents .add( "gridx=0,gridy=1,gridwidth=2,fill=NONE,anchor=CENTER,insets=[12,12,0,11]", lexRelsLabel); relsModel = new EditableTableModel(); relsModel.setColumnCount(5); relsModel.setRowCount(0); relsTable = GUIToolkit.getTable(relsModel); // table columns settings columnName = relsTable.getColumnName(TABLE_ATOM_NAME_SFO_COLUMN); column = relsTable.getColumn(columnName); column.setHeaderValue(resources .getString("relsTable.atomNameSFO.label")); columnName = relsTable.getColumnName(TABLE_ATOM_NAME_LFO_COLUMN); column = relsTable.getColumn(columnName); column.setHeaderValue(resources .getString("relsTable.atomNameLFO.label")); columnName = relsTable.getColumnName(TABLE_STATUS_COLUMN); column = relsTable.getColumn(columnName); column.setHeaderValue(resources.getString("relsTable.status.label")); column.setIdentifier(StringTableCellRenderer.STATUS_IDENTIFIER); columnName = relsTable.getColumnName(TABLE_AUTHORIZED_BY_COLUMN); column = relsTable.getColumn(columnName); column.setHeaderValue(resources .getString("relsTable.authorizedBy.label")); columnName = relsTable.getColumnName(TABLE_AUTHORIZED_ON_COLUMN); column = relsTable.getColumn(columnName); column.setHeaderValue(resources .getString("relsTable.authorizedOn.label")); relsTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); JTextField tf = new JTextField(); tf.setEditable(false); relsTable.setDefaultEditor(String.class, new DefaultCellEditor(tf)); relsTable.setDefaultEditor(Date.class, new DateCellEditor(tf)); StringTableCellRenderer renderer = new StringTableCellRenderer( relsTable, relsModel); relsTable.setDefaultRenderer(String.class, renderer); relsTable.setDefaultRenderer(Date.class, renderer); sp = new JScrollPane(relsTable); contents .add( "gridx=0,gridy=2,gridwidth=2,fill=BOTH,anchor=CENTER,weightx=1.0,weighty=1.0,insets=[12,12,0,11]", sp); // "SFO" button JButton sfoButton = new JButton(transfer_atom_action); sfoButton.setText(resources.getString("sfoButton.label")); sfoButton.setActionCommand(SFO_BUTTON); sfoButton.setFont(BUTTON_FONT); sfoButton.setBackground((Color) transfer_atom_action .getValue("Background")); // sfo_atom_id text field sfoAtomIdTF = new JTextField(10); sfoAtomIdTF.setEditable(false); sfoAtomIdTF.setBackground(LABEL_BKG); sfoAtomIdTF.setMinimumSize(sfoAtomIdTF.getPreferredSize()); // box container b = Box.createHorizontalBox(); b.add(sfoButton); // b.add(Box.createHorizontalStrut(5)); b.add(sfoAtomIdTF); contents.add( "gridx=0,gridy=3,fill=NONE,anchor=WEST,insets=[12,12,0,11]", b); // "LFO" button JButton lfoButton = new JButton(transfer_atom_action); lfoButton.setText(resources.getString("lfoButton.label")); lfoButton.setActionCommand(LFO_BUTTON); lfoButton.setFont(BUTTON_FONT); lfoButton.setBackground((Color) transfer_atom_action .getValue("Background")); // lfo_atom_id text field lfoAtomIdTF = new JTextField(10); lfoAtomIdTF.setEditable(false); lfoAtomIdTF.setBackground(LABEL_BKG); lfoAtomIdTF.setMinimumSize(lfoAtomIdTF.getPreferredSize()); // box container b = Box.createHorizontalBox(); b.add(lfoButton); // b.add(Box.createHorizontalStrut(5)); b.add(lfoAtomIdTF); contents.add( "gridx=1,gridy=3,fill=NONE,anchor=WEST,insets=[12,12,0,11]", b); // sfo atom name text field sfoAtomNameTF = new JTextField(); sfoAtomNameTF.setEditable(false); sfoAtomNameTF.setBackground(LABEL_BKG); // lfo atom name text field lfoAtomNameTF = new JTextField(); lfoAtomNameTF.setEditable(false); lfoAtomNameTF.setBackground(LABEL_BKG); // box container b = Box.createHorizontalBox(); b.add(sfoAtomNameTF); b.add(Box.createHorizontalStrut(5)); b.add(lfoAtomNameTF); contents .add( "gridx=0,gridy=4,gridwidth=2,fill=HORIZONTAL,anchor=WEST,insets=[12,12,12,11]", b); // adding a menu setJMenuBar(buildMenuBar()); } // initComponents() private JMenuBar buildMenuBar() { JMenuBar menuBar = new JMenuBar(); JMenu menu = null; JMenu submenu = null; JMenuItem item = null; // File menu = new JMenu(); menu.setText(resources.getString("fileMenu.label")); menu.setMnemonic(resources.getString("fileMenu.mnemonic").charAt(0)); // file->close item = new JMenuItem(close_action); menu.add(item); menuBar.add(menu); // Edit editMenu = new JMenu(); editMenu.setText(resources.getString("editMenu.label")); editMenu .setMnemonic(resources.getString("editMenu.mnemonic").charAt(0)); item = new JMenuItem(new AddRelAction(this)); editMenu.add(item); item = new JMenuItem(new DeleteRelsAction(this)); editMenu.add(item); // Status submenu submenu = new JMenu(); submenu.setText(resources.getString("statusSubMenu.label")); item = new JMenuItem(change_status_action); item.setText(resources.getString("statusSubMenuItem.reviewed.label")); item.setActionCommand(String.valueOf(CoreData.FV_STATUS_REVIEWED)); submenu.add(item); item = new JMenuItem(change_status_action); item .setText(resources .getString("statusSubMenuItem.needsReview.label")); item.setActionCommand(String.valueOf(CoreData.FV_STATUS_NEEDS_REVIEW)); submenu.add(item); editMenu.add(submenu); menuBar.add(editMenu); // Options menu = new JMenu(); menu.setText(resources.getString("optionsMenu.label")); menu.setMnemonic(resources.getString("optionsMenu.mnemonic").charAt(0)); // options->increase font item = new JMenuItem(new IncreaseFontAction()); menu.add(item); // options->decrease font item = new JMenuItem(new DecreaseFontAction()); menu.add(item); menuBar.add(menu); return menuBar; } // buildMenuBar() private void clearContent() { conceptNameTF.setText(null); conceptIdTF.setText(null); relsTable.clearSelection(); relsModel.getDataVector().clear(); relsModel.fireTableRowsInserted(0, 1); relsModel.fireTableDataChanged(); listOfRels.clear(); sfoAtomIdTF.setText(null); lfoAtomIdTF.setText(null); sfoAtomNameTF.setText(null); lfoAtomNameTF.setText(null); sfo_atom = null; lfo_atom = null; } // --------------------------------- // Interface implementation // --------------------------------- /** * Implements * {@link StateChangeListener#stateChanged(StateChangeEvent) StateChangeListener.stateChanged(StateChangeEvent)} * method. */ public void stateChanged(StateChangeEvent e) { if (e.getState().equals(StateChangeEvent.BROWSE_STATE)) { editMenu.setEnabled(false); } else { editMenu.setEnabled(true); } } // --------------------------------- // Inner Classes // --------------------------------- /** * Changes status for selected relationship(s). * * @see AbstractAction */ class ChangeStatusAction extends AbstractAction { // constructor public ChangeStatusAction(Component comp) { putValue(Action.NAME, "Status"); putValue(Action.SHORT_DESCRIPTION, "change status of the selected relationship(s)"); // putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_A)); // putValue("Background", Color.cyan); } public void actionPerformed(ActionEvent e) { } public boolean isEnabled() { return false; } } // ChangeStatusAction /** * Transfer Atom information to the screen for inserting relationship. * * @see AbstractAction */ class TransferAtomAction extends AbstractAction { private Component target = null; private String action_cmd = null; // constructor public TransferAtomAction(Component comp) { // putValue(Action.NAME, ""); // putValue(Action.SHORT_DESCRIPTION,""); // putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_A)); putValue("Background", Color.cyan); target = comp; } public void actionPerformed(ActionEvent e) { Atom atom = JekyllKit.getClassesFrame().getSelectedAtom(); if (atom == null) { MEMEToolkit.notifyUser(target, "Please select an atom in the Classes screen."); return; } action_cmd = e.getActionCommand(); if (action_cmd.equals(SFO_BUTTON)) { sfo_atom = atom; sfoAtomIdTF.setText(atom.getIdentifier().toString()); sfoAtomNameTF.setText(atom.getString()); } else { lfo_atom = atom; lfoAtomIdTF.setText(atom.getIdentifier().toString()); lfoAtomNameTF.setText(atom.getString()); } } } // TransferAtomAction /** * Adds SFO/LFO relationship to the current concept. * * @see AbstractAction */ class AddRelAction extends AbstractAction { private Component target = null; // constructor public AddRelAction(Component comp) { putValue(Action.NAME, "Add"); putValue(Action.SHORT_DESCRIPTION, "add an SFO/LFO relationship to the concept"); target = comp; } public void actionPerformed(ActionEvent e) { if (sfo_atom == null || lfo_atom == null) { return; } JekyllKit.disableFrames(); target.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); glass_comp.setVisible(true); Thread t = new Thread(new Runnable() { public void run() { ActionLogger logger = new ActionLogger(AddRelAction.this.getClass() .getName(), true); try { boolean stale_data = false; do { try { Relationship relationship = new Relationship.Default(); relationship.setConcept(current_concept); relationship.setRelatedConcept(current_concept); relationship.setName("SFO/LFO"); relationship.setAtom(sfo_atom); relationship.setRelatedAtom(lfo_atom); // relationship.setAttribute(""); Source source = new Source.Default(JekyllKit .getAuthority().toString()); relationship.setSource(source); // SAB relationship.setSourceOfLabel(source); // SL relationship .setLevel(CoreData.FV_SOURCE_ASSERTED); // relationship // level relationship .setStatus(CoreData.FV_STATUS_NEEDS_REVIEW); // relationship // status relationship .setTobereleased(CoreData.FV_WEAKLY_UNRELEASABLE); // tbr relationship .setReleased(CoreData.FV_NOT_RELEASED); // released MolecularInsertRelationshipAction mira = new MolecularInsertRelationshipAction( relationship); JekyllKit.getDefaultActionClient() .processAction(mira); if (stale_data) { stale_data = false; } } catch (StaleDataException sde) { // re-reading concept current_concept = JekyllKit.getCoreDataClient() .getConcept(current_concept); stale_data = true; } } while (stale_data); // do loop MEMEToolkit.logComment( "SFO/LFO relationship has successfully " + "been created for the concept " + current_concept.getIdentifier() .toString(), true); JekyllKit.getConceptSelector().refreshConcept(); } catch (Exception ex) { if (ex instanceof MissingDataException) { MEMEToolkit.notifyUser(target, "Concept " + current_concept.getIdentifier() .toString() + " is no longer" + "\na valid concept in the database."); } else if (ex instanceof MEMEException && ((MEMEException) ex).getEnclosedException() instanceof SocketException) { MEMEToolkit.reportError(target, "There was a network error." + "\nPlease try the action again.", false); } else { MEMEToolkit .notifyUser( target, "Failed to create SFO/LFO relationship." + "\nConsole/Log file may contain more information."); } ex.printStackTrace(JekyllKit.getLogWriter()); } finally { SwingUtilities.invokeLater(new Runnable() { public void run() { glass_comp.setVisible(false); target .setCursor(Cursor .getPredefinedCursor(Cursor.HAND_CURSOR)); JekyllKit.enableFrames(); } }); logger.logElapsedTime(); } } }); t.start(); } } // AddRelAction /** * Deletes selected relationship(s). * * @see AbstractAction */ class DeleteRelsAction extends AbstractAction { private Component target = null; public DeleteRelsAction(Component comp) { putValue(Action.NAME, "Delete"); putValue(Action.SHORT_DESCRIPTION, "delete selected SFO/LFO relationship(s)"); target = comp; } public void actionPerformed(ActionEvent e) { if (relsTable.getSelectionModel().isSelectionEmpty()) { MEMEToolkit.notifyUser(target, "There are no selected row(s)."); return; } JekyllKit.disableFrames(); target.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); glass_comp.setVisible(true); Thread t = new Thread(new Runnable() { public void run() { ActionLogger logger = new ActionLogger(DeleteRelsAction.this.getClass() .getName(), true); try { int[] selected_rows = relsTable.getSelectedRows(); for (int i = 0; i < selected_rows.length; i++) { Relationship rel = (Relationship) listOfRels .get(relsTable.mapIndex(selected_rows[i])); MolecularDeleteRelationshipAction mcra = new MolecularDeleteRelationshipAction( rel); JekyllKit.getDefaultActionClient().processAction( mcra); MEMEToolkit .logComment( "The SFO/LFO relationships for the concept " + current_concept .getIdentifier() .toString() + " has successfully been deleted.", true); if (i == 0) { current_concept .setStatus(CoreData.FV_STATUS_NEEDS_REVIEW); } } // i loop JekyllKit.getConceptSelector().refreshConcept(); } catch (StaleDataException sde) { try { setContent(JekyllKit.getCoreDataClient() .getConcept(current_concept)); MEMEToolkit .notifyUser( target, "You have attempted to perform an action on a" + "\nconcept that has changed since it was last read." + "\nThe concept was automatically re-read for you." + "\nPlease try the intended action again."); } catch (Exception ex) { if (ex instanceof MissingDataException) { MEMEToolkit.notifyUser(target, "Concept " + current_concept.getIdentifier() .toString() + " is no longer" + "\na valid concept in the database."); } else { ex.printStackTrace(JekyllKit.getLogWriter()); } } } catch (Exception ex) { if (ex instanceof MEMEException && ((MEMEException) ex).getEnclosedException() instanceof SocketException) { MEMEToolkit.reportError(target, "There was a network error." + "\nPlease try the action again.", false); } else { MEMEToolkit .notifyUser( target, "Failed to delete SFO/LFO relationship(s)." + "\nConsole/Log file may contain more information"); } ex.printStackTrace(JekyllKit.getLogWriter()); } finally { SwingUtilities.invokeLater(new Runnable() { public void run() { glass_comp.setVisible(false); target .setCursor(Cursor .getPredefinedCursor(Cursor.HAND_CURSOR)); JekyllKit.enableFrames(); } }); logger.logElapsedTime(); } } }); t.start(); } } // DeleteRelsAction /** * Sets content of this screen. */ public void setContent(Concept concept) { ActionLogger logger = new ActionLogger(this.getClass().getName() + ".setContent()", true); try { current_concept = concept; setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); glass_comp.setVisible(true); clearContent(); conceptNameTF.setText(current_concept.getPreferredAtom() .getString()); // concept name conceptIdTF.setText(current_concept.getIdentifier().toString()); // concept_id Relationship[] rels = current_concept.getRelationships(); if (rels.length == 0) { JekyllKit.getCoreDataClient().populateRelationships( current_concept); rels = current_concept.getRelationships(); } for (int i = 0; i < rels.length; i++) { if (rels[i].getName().equals("SFO/LFO")) { final Vector row = new Vector(); row.add(rels[i].getAtom().getString()); // sfo // atom // name row.add(rels[i].getRelatedAtom().getString()); // lfo // atom // name row.add(String.valueOf(rels[i].getStatus())); // status row.add(rels[i].getAuthority().toString()); // authority row.add(rels[i].getTimestamp()); // authorized // on relsModel.addRow(row); listOfRels.add(rels[i]); } } } catch (Exception ex) { if (ex instanceof MEMEException && ((MEMEException) ex).getEnclosedException() instanceof SocketException) { MEMEToolkit.reportError(LexRelsEditor.this, "There was a network error." + "\nPlease try the action again.", false); } else { MEMEToolkit .notifyUser( this, "There was problem in setting content" + "\nof this window for concept: " + ((current_concept == null) ? "" : current_concept .getIdentifier() .toString()) + "\nPlease check console/log file for more information."); } ex.printStackTrace(JekyllKit.getLogWriter()); } finally { glass_comp.setVisible(false); setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); logger.logElapsedTime(); } } // setContent() // window's size public Dimension getPreferredSize() { return new Dimension(870, 530); } public void setVisible(boolean b) { super.setVisible(b); if (!b) { relsTable.setSortState(-1, false); } } }
26d19ddade7924ca6580c20a340866eaa26e7d6e
f10a37495ff8a7a1570978b466ff214edc17b9bd
/xinzi/web/src/cn/internalaudit/audit/pojo/bo/impl/CommodityBo.java
9045eb11a5a020b63c691408f0335ecabbdfd344
[]
no_license
gongjianpeng/xinzi
5546b89f9d18f43aa96d442cf9e371cb2023e1b0
8ad8234fd643a32032bf90daf5ac09a24153d1a9
refs/heads/master
2020-05-18T16:06:43.713659
2014-04-14T09:59:02
2014-04-14T09:59:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,099
java
package cn.internalaudit.audit.pojo.bo.impl; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Service; import cn.internalaudit.audit.base.Bo; import cn.internalaudit.audit.pojo.Commodity; import cn.internalaudit.audit.pojo.bo.ICommodityBo; import cn.internalaudit.audit.pojo.dao.ICommodityDao; @Service("CommodityBo") public class CommodityBo extends Bo<Commodity, ICommodityDao> implements ICommodityBo { /** * */ private static final long serialVersionUID = 1L; @Resource(name = "commodityDao") private ICommodityDao commodityDao; @Override protected ICommodityDao getDao() { return commodityDao; } @Override public List<Commodity> findCommodityByTypeId(String id) { return commodityDao.findCommodityByTypeId(id); } @Override public List<Commodity> findCommodityById(long id) { return commodityDao.findCommodityById(id); } @Override public void delete(Commodity mode) { commodityDao.remove(mode); } @Override public List<Commodity> findByParms(Map map) { System.out.println("BO--------------"); return commodityDao.findByParms(map); } @Override public List<Commodity> findByParmsandorg(Map map,String orgid) { System.out.println("BO--------------"); return commodityDao.findByParmsandorg(map, orgid); } @Override public List<Commodity> findCommodityByid(Long id) { return commodityDao.findCommodityById(id); } @Override public void update(Commodity mode) { commodityDao.merge(mode); } @Override public List<Commodity> findCommodityByproClass(String proclass) { return commodityDao.findCommodityByproClass(proclass); } @Override public List<Commodity> findProLimitAll() { return commodityDao.findProLimitAll(); } @Override public List<Commodity> findProductListAll(Map params) { return commodityDao.findProductListAll(params); } }
9ecf60730def532095b8cec41eca6102db6e9863
5208049ee2a1c451ef6e359f444b7c4514ce0b20
/app/src/main/java/com/rashaka/fragments/main/home/weight/WeightFragment.java
1bc6b607d5a515f7edb6ce7ff0bce6407551ab17
[]
no_license
NickLink/Rashaka
f473a6bf1c0961decac63f98e696d3fdf08761aa
07c9a516e35a84cbb214cab5a3cec4dd9e9a7f28
refs/heads/master
2021-01-22T14:15:14.498787
2017-11-15T10:19:40
2017-11-15T10:19:40
100,709,201
0
0
null
null
null
null
UTF-8
Java
false
false
5,536
java
package com.rashaka.fragments.main.home.weight; import android.content.Context; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuInflater; import android.view.View; import android.widget.ImageView; import android.widget.SeekBar; import android.widget.TextView; import com.rashaka.MainRouter; import com.rashaka.R; import com.rashaka.RaApp; import com.rashaka.fragments.BaseFragment; import com.rashaka.system.lang.LangKeys; import com.rashaka.utils.helpers.structure.SuperPresenter; import com.rashaka.utils.helpers.structure.helpers.Layout; import com.rashaka.utils.helpers.views.pager.WrapContentViewPager; import butterknife.BindView; import butterknife.ButterKnife; /** * Created by User on 24.08.2017. */ @Layout(id = R.layout.fr_home_weight) public class WeightFragment extends BaseFragment implements WeightView { private MainRouter myRouter; private WeightPresenter mPresenter; @Override public void onAttach(Context context) { super.onAttach(context); myRouter = (MainRouter) getActivity(); mPresenter = new WeightPresenter(); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); } @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar(); if (actionBar != null) { actionBar.setHomeButtonEnabled(false); actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setHomeAsUpIndicator(R.drawable.ic_abar_back); } } @Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); ButterKnife.bind(this, view); mWeightButtonPlus.setOnClickListener(view1 -> mPresenter.onPlusClick()); mWeightButtonMinus.setOnClickListener(view12 -> mPresenter.onMinusClick()); mWeightButtonSave.setOnClickListener(view13 -> mPresenter.onSaveClick()); mResultTabs.addTab(mResultTabs.newTab().setText(RaApp.getLabel(LangKeys.key_week))); mResultTabs.addTab(mResultTabs.newTab().setText(RaApp.getLabel(LangKeys.key_month))); mResultTabs.addTab(mResultTabs.newTab().setText(RaApp.getLabel(LangKeys.key_years))); mResultTabs.setTabGravity(TabLayout.GRAVITY_FILL); mPresenter.setupViewPager(mViewPager, getChildFragmentManager()); //getActivity() mResultTabs.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() { @Override public void onTabSelected(TabLayout.Tab tab) { mViewPager.setCurrentItem(tab.getPosition()); } @Override public void onTabUnselected(TabLayout.Tab tab) { } @Override public void onTabReselected(TabLayout.Tab tab) { } }); mViewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() { @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { } @Override public void onPageSelected(int position) { mViewPager.reMeasureCurrentPage(mViewPager.getCurrentItem()); mResultTabs.getTabAt(position).select(); } @Override public void onPageScrollStateChanged(int state) { } }); mSeekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { @Override public void onProgressChanged(SeekBar seekBar, int i, boolean b) { mPresenter.setSeekValue(i); } @Override public void onStartTrackingTouch(SeekBar seekBar) { } @Override public void onStopTrackingTouch(SeekBar seekBar) { } }); } @Override public void recreatePager(){ mPresenter.setupViewPager(mViewPager, getChildFragmentManager()); } @NonNull @Override public SuperPresenter getPresenter() { return mPresenter; } @Override public void setViewsValues() { mPageTitle.setText(RaApp.getLabel("key_track_weight")); mCurrentWeightText.setText(RaApp.getLabel("key_current_weight")); } @Override public void setSeekBarValue(int value) { mSeekBar.setProgress(value); } @Override public void setBigWeightText(String text) { mWeightBigText.setText(text); } @BindView(R.id.page_title) TextView mPageTitle; @BindView(R.id.current_weight_text) TextView mCurrentWeightText; @BindView(R.id.weight_button_plus) ImageView mWeightButtonPlus; @BindView(R.id.weight_button_minus) ImageView mWeightButtonMinus; @BindView(R.id.weight_big_text) TextView mWeightBigText; @BindView(R.id.weight_button_save) TextView mWeightButtonSave; @BindView(R.id.result_tabs) TabLayout mResultTabs; @BindView(R.id.viewpager) WrapContentViewPager mViewPager; @BindView(R.id.seekBar) SeekBar mSeekBar; }
b5e16e39c6788eba1588ff72435bbc483701dfec
76764a93f83519c9eacd5306aa2106825bf94158
/basics/src/basics/AreaRectangle.java
758adbc7912bbf48d3197fa0f9c1c417459f2b8c
[]
no_license
umang00013/basics
f10d4367d05105adae2d4ecbf2d7ba5bd61290a2
1a266df5429fc75ec499415a78bf2317e1ce85ac
refs/heads/master
2023-07-04T12:04:48.039073
2021-08-04T13:45:50
2021-08-04T13:45:50
392,704,993
0
0
null
null
null
null
UTF-8
Java
false
false
390
java
package basics; import java.util.Scanner; public class AreaRectangle { public static void main(String[] args) { double a,b; int area; Scanner s=new Scanner(System.in); System.out.println("Enter length:"); a=s.nextDouble(); System.out.println("Enter breadth:"); b=s.nextDouble(); area=(int)(a*b); System.out.println("Area of Rectangle:"+area); } }
fea589ff84246205c4e32664cdfbdaea7e4fe2b5
d0b6e7236864816e5062d1337e477fb708a989af
/src/org/jmol/jvxl/data/JvxlData.java
087c7a1d2aa0939ce8515e18c39fefd9e68345b9
[]
no_license
aniketisin/INCAR
f80d61e9e568fba7a78a81f538fd64e87a0f5a29
82497cba5f09518034ffda827fe6880f18f38a5f
refs/heads/master
2020-04-25T12:59:52.738591
2015-08-23T11:55:32
2015-08-23T11:55:32
41,247,615
0
0
null
null
null
null
UTF-8
Java
false
false
7,634
java
/* $RCSfile$ * $Author: hansonr $ * $Date: 2007-03-30 11:40:16 -0500 (Fri, 30 Mar 2007) $ * $Revision: 7273 $ * * Copyright (C) 2007 Miguel, Bob, Jmol Development * * Contact: [email protected] * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ /* * The JVXL file format * -------------------- * * see http://www.stolaf.edu/academics/chemapps/jmol/docs/misc/JVXL-format.pdf * * The JVXL (Jmol VoXeL) format is a file format specifically designed * to encode an isosurface or planar slice through a set of 3D scalar values * in lieu of a that set. A JVXL file can contain coordinates, and in fact * it must contain at least one coordinate, but additional coordinates are * optional. The file can contain any finite number of encoded surfaces. * However, the compression of 300-500:1 is based on the reduction of the * data to a SINGLE surface. * * * The original Marching Cubes code was written by Miguel Howard in 2005. * The classes Parser, ArrayUtil, and TextFormat are condensed versions * of the classes found in org.jmol.util. * * All code relating to JVXL format is copyrighted 2006-2009 and invented by * Robert M. Hanson, * Professor of Chemistry, * St. Olaf College, * 1520 St. Olaf Ave. * Northfield, MN. 55057. * * Implementations of the JVXL format should reference * "Robert M. Hanson, St. Olaf College" and the opensource Jmol project. * * * implementing marching squares; see * http://www.secam.ex.ac.uk/teaching/ug/studyres/COM3404/COM3404-2006-Lecture15.pdf * */ package org.jmol.jvxl.data; import java.util.Map; import org.jmol.java.BS; import javajs.util.Lst; import javajs.util.SB; import javajs.util.P3; import javajs.util.P4; /* * the JvxlData class holds parameters and data * that needs to be passed among IsosurfaceMesh, * marching cubes/squares, JvxlCoder, and JvxlReader. * */ public class JvxlData { public JvxlData() { } public boolean wasJvxl; public boolean wasCubic; public String jvxlFileTitle; public String jvxlFileMessage; public String jvxlSurfaceData; public String jvxlEdgeData; public String jvxlColorData; public String jvxlVolumeDataXml; public BS[] jvxlExcluded = new BS[4]; public P4 jvxlPlane; public boolean isJvxlPrecisionColor; public boolean jvxlDataIsColorMapped; public boolean jvxlDataIs2dContour; public boolean jvxlDataIsColorDensity; public boolean isColorReversed; public int thisSet = Integer.MIN_VALUE; public int edgeFractionBase = JvxlCoder.defaultEdgeFractionBase; public int edgeFractionRange = JvxlCoder.defaultEdgeFractionRange; public int colorFractionBase = JvxlCoder.defaultColorFractionBase; public int colorFractionRange = JvxlCoder.defaultColorFractionRange; public boolean dataXYReversed; public boolean insideOut; public boolean isXLowToHigh; public boolean isContoured; public boolean isBicolorMap; public boolean isTruncated; public boolean isCutoffAbsolute; public boolean vertexDataOnly; public float mappedDataMin; public float mappedDataMax; public float valueMappedToRed; public float valueMappedToBlue; public float cutoff; public float pointsPerAngstrom; public int nPointsX, nPointsY, nPointsZ; public long nBytes; public int nContours; public int nEdges; public int nSurfaceInts; public int vertexCount; // contour data is here instead of in MeshData because // sometimes it comes from the file or marching squares // directly. public Lst<Object>[] vContours; public short[] contourColixes; public String contourColors; public float[] contourValues; public float[] contourValuesUsed; public float scale3d; public short minColorIndex = -1; public short maxColorIndex = 0; public String[] title; public String version; public P3[] boundingBox; public int excludedTriangleCount; public int excludedVertexCount; public boolean colorDensity; public float pointSize; public String moleculeXml; public float dataMin, dataMax; public int saveVertexCount; // added Jmol 12.1.50 public Map<String, BS> vertexColorMap; // from color isosurface {atom subset} red public int nVertexColors; public int[] vertexColors; public String color; public String meshColor; public float translucency; public String colorScheme; public String rendering; public int slabValue = Integer.MIN_VALUE; public boolean isSlabbable; public int diameter; public String slabInfo; public boolean allowVolumeRender; public float voxelVolume; public P3 mapLattice; public String baseColor; public void clear() { allowVolumeRender = true; jvxlSurfaceData = ""; jvxlEdgeData = ""; jvxlColorData = ""; jvxlVolumeDataXml = ""; color = null; colorScheme = null; colorDensity = false; pointSize = Float.NaN; contourValues = null; contourValuesUsed = null; contourColixes = null; contourColors = null; isSlabbable = false; mapLattice = null; meshColor = null; nPointsX = 0; nVertexColors = 0; slabInfo = null; slabValue = Integer.MIN_VALUE; thisSet = Integer.MIN_VALUE; rendering = null; translucency = 0; vContours = null; vertexColorMap = null; vertexColors = null; voxelVolume = 0; } public void setSurfaceInfo(P4 thePlane, P3 mapLattice, int nSurfaceInts, String surfaceData) { jvxlSurfaceData = surfaceData; if (jvxlSurfaceData.indexOf("--") == 0) jvxlSurfaceData = jvxlSurfaceData.substring(2); jvxlPlane = thePlane; this.mapLattice = mapLattice; this.nSurfaceInts = nSurfaceInts; } public void setSurfaceInfoFromBitSet(BS bs, P4 thePlane) { setSurfaceInfoFromBitSetPts(bs, thePlane, null); } public void setSurfaceInfoFromBitSetPts(BS bs, P4 thePlane, P3 mapLattice) { SB sb = new SB(); int nSurfaceInts = (thePlane != null ? 0 : JvxlCoder.jvxlEncodeBitSetBuffer(bs, nPointsX * nPointsY * nPointsZ, sb)); setSurfaceInfo(thePlane, mapLattice, nSurfaceInts, sb.toString()); } public void jvxlUpdateInfo(String[] title, long nBytes) { this.title = title; this.nBytes = nBytes; } public static String updateSurfaceData(String edgeData, float[] vertexValues, int vertexCount, int vertexIncrement, char isNaN) { if (edgeData.length() == 0) return ""; char[] chars = edgeData.toCharArray(); for (int i = 0, ipt = 0; i < vertexCount; i += vertexIncrement, ipt++) if (Float.isNaN(vertexValues[i])) chars[ipt] = isNaN; return String.copyValueOf(chars); } }
287a321bc5f99a39254939d2b282dced2370e910
5a90459d642c6f0a1023a82be19698af985b6202
/B_2839/src/Main.java
d05bb508d4f1900940acf3ab03ed701d8934435c
[]
no_license
sk392/BaekjoonAlgorithm
a0a2ab03a7c0ceb9729ec627996bd3c22972f9e1
039033b0dcb08443c893e6f3291d09f22f1e6f44
refs/heads/master
2021-01-01T19:37:00.525048
2017-07-28T11:59:21
2017-07-28T11:59:21
98,626,453
0
0
null
null
null
null
UHC
Java
false
false
998
java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int result = 0;// 결과값 int inputN = sc.nextInt();//설탕 키로수 if(inputN<3 || inputN>5000) System.exit(999); else{ int number1 =inputN %10; if(number1==1 ||number1 ==6){ if((inputN-6)%5 != 0 || (inputN-6)<0) result = -1; else result = 2 + (inputN-6)/5; }else if(number1==2 ||number1 ==7){ if((inputN-12)%5 != 0 || (inputN-12)<0) result = -1; else result = 4 + (inputN-12)/5; }else if(number1==3 ||number1 ==8){ if((inputN-3)%5 != 0 || (inputN-3)<0) result = -1; else result = 1 + (inputN-3)/5; }else if(number1==4 ||number1 ==9){ if((inputN-9)%5 != 0 || (inputN-9)<0) result = -1; else result = 3 + (inputN-9)/5; }else{ if((inputN)%5 != 0) result = -1; else result =(inputN)/5; } System.out.println(result); } } }
c6b3903603ec48a00876e4258aa1ba7f07adb7f9
71733833fec36faff64920f251e95009cc4fd847
/POM/src/objectrepository/RediffHomePage.java
91fa87c8078069ea7346a7605087b4cdbc30e041
[]
no_license
sirishamarupakala/Gitdemo
a2a0ef7aaccea803b765d439d173cc79915ca966
8f040b2b6226ffba785445ce4026bd61af231af5
refs/heads/master
2023-04-22T18:50:03.298296
2021-04-20T07:08:43
2021-04-20T07:08:43
359,450,393
0
0
null
null
null
null
UTF-8
Java
false
false
485
java
package objectrepository; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; public class RediffHomePage { WebDriver driver; public RediffHomePage(WebDriver driver) { this.driver=driver; } By search=By.id("srchword"); By searchbtn=By.className("newsrchbtn"); public WebElement Search() { return driver.findElement(search); } public WebElement SearchBtn() { return driver.findElement(searchbtn); } }
f96b980b2e5320da5c05599eafe34fd78a57fd57
f80e402e592ce0fe9abac06cc109ba07adbdedd1
/org.eventb.core/src/org/eventb/internal/core/pm/RevertProofComponentOperation.java
7829fcd0b8a0fe113c150ddf029e7680b571a78d
[]
no_license
systerel/RodinCore
f82be2bbfe2f63a91b4fc43cae6aa481a18d601f
cbba1f1cfe439952b78123067915845f2f6cc2ec
refs/heads/master
2023-04-27T07:11:32.841339
2023-04-13T14:27:43
2023-04-13T14:27:43
150,590,697
4
2
null
null
null
null
UTF-8
Java
false
false
1,439
java
/******************************************************************************* * Copyright (c) 2008, 2017 Systerel and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Systerel - initial API and implementation *******************************************************************************/ package org.eventb.internal.core.pm; import org.eclipse.core.resources.IWorkspaceRunnable; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.SubMonitor; /** * Implements reverting of a proof file. Instances must be run while locking all * files of the corresponding proof component. * * @author Laurent Voisin */ class RevertProofComponentOperation implements IWorkspaceRunnable { private final ProofComponent pc; RevertProofComponentOperation(ProofComponent pc) { this.pc = pc; } @Override public void run(IProgressMonitor pm) throws CoreException { final SubMonitor sMonitor = SubMonitor.convert(pm, "Reverting proof files", 2); try { pc.getPRRoot().getRodinFile().makeConsistent(sMonitor.split(1)); pc.getPSRoot().getRodinFile().makeConsistent(sMonitor.split(1)); } finally { pm.done(); } } }
442d2f1831b11f3783092f686791187341b71a2a
a2a366b6879a97c0fac1d028684621fc706029f3
/reactor/Dispatcher.java
ec50604c1bcf3d1e127bab2283d60ea0d9e7a4de
[]
no_license
ivantishchenko/Reactor-Hangman-Assignment
87f4f53049dcd4c0328e46dd26db28596cad5a2c
c59b5defbbe74a84c641607fc308abe69bc8cdc6
refs/heads/master
2021-01-10T10:28:49.049059
2015-11-02T20:05:36
2015-11-02T20:05:36
45,418,869
0
0
null
null
null
null
UTF-8
Java
false
false
1,902
java
package reactor; import java.util.ArrayList; import hangman.AcceptHandle; import hangman.TCPTextHandle; import reactorapi.*; public class Dispatcher { private BlockingEventQueue<Object> eventsQueue; private ArrayList<EventHandler> handlers; private WorkerThread wt; public Dispatcher() { eventsQueue = new BlockingEventQueue<Object>(10); handlers = new ArrayList<EventHandler>(); } public Dispatcher(int capacity) { eventsQueue = new BlockingEventQueue<Object>(capacity); handlers = new ArrayList<EventHandler>(); } public void handleEvents() throws InterruptedException { Event<?> event; while ( !handlers.isEmpty() ) { event = select(); // if an event is registered if ( handlers.contains(event.getHandler()) ) { event.handle(); } } } public Event<?> select() throws InterruptedException { return eventsQueue.get(); } public void addHandler(EventHandler<?> h) { handlers.add(h); wt = new WorkerThread(h, eventsQueue); wt.start(); } public void removeHandler(EventHandler<?> h) { handlers.remove(h); } // Add methods and fields as needed. // this function receives messages from hangmanserver and prints them to // player consoles public void BroadCastMessage(String message) { for (Object eventHandler : handlers) { try { ((TCPTextHandle) ((EventHandler) eventHandler).getHandle()) .write(message); } catch (Exception ex) { } } } // this function is initiated when the game is over. It closes all the // handles of tcptexthandle and accepthandle and thus removes all the event // handlers public void ClearHandlers() { for (Object eventHandler : handlers) { try { ((TCPTextHandle) ((EventHandler) eventHandler).getHandle()) .close(); } catch (Exception ex) { ((AcceptHandle) ((EventHandler) eventHandler).getHandle()) .close(); } } handlers.clear(); } }
9840497b78ba89536186ec08f3e2c06b35e34d4b
b0ccffc5a9304ee30cdf32ec35e9a05d0a7f1b59
/Backend/blogPessoal/src/main/java/org/generation/blogPessoal/model/Postagem.java
869e91c0262f617233155bafa13cd99c47668822
[]
no_license
arantesd/Ativ.Generation
361ff760b3c0a7876f46f9e0ebfd7c9fe3a3cf93
6c0623b1376034bf41de678a59efe8b203428806
refs/heads/main
2023-04-20T17:21:10.803941
2021-05-07T23:57:24
2021-05-07T23:57:24
341,685,928
0
0
null
null
null
null
UTF-8
Java
false
false
1,761
java
package org.generation.blogPessoal.model; import java.util.Date; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @Entity @Table(name = "postagem") //nome tabela public class Postagem { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) //Esse atributo transformará em PK private Long id; @NotNull @Size(min = 5, max = 100) private String titulo; @NotNull @Size(min = 10, max = 500) private String texto; @Temporal(TemporalType.TIMESTAMP) private Date date = new java.sql.Date(System.currentTimeMillis()); @ManyToOne @JsonIgnoreProperties("postagem") private Tema tema; @ManyToOne(fetch = FetchType.EAGER) private Usuario criadoPor; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTitulo() { return titulo; } public void setTitulo(String titulo) { this.titulo = titulo; } public String getTexto() { return texto; } public void setTexto(String texto) { this.texto = texto; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public Tema getTema() { return tema; } public void setTema(Tema tema) { this.tema = tema; } public Usuario getCriadoPor() { return criadoPor; } public void setCriadoPor(Usuario criadoPor) { this.criadoPor = criadoPor; } }
8d68ef859b18d126c89b66da78c9b5b5b3197b55
cbdd81e6b9cf00859ce7169df36cf566417e4c8b
/4.JavaCollections/src/com/javarush/task/task33/task3310/strategy/FileStorageStrategy_git.java
358c751252cf6a3d2bc5a6ca91d27f1eca6670f4
[]
no_license
id2k1149/JavaRushTasks
3f13cd5d37977e38e8933e581f17fd48597f90d8
450a432649aa20608e6e9a46ada35123056480cf
refs/heads/master
2023-03-31T21:03:06.944109
2021-03-19T00:58:45
2021-03-19T00:58:45
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,914
java
package com.javarush.task.task33.task3310.strategy; public class FileStorageStrategy_git implements StorageStrategy { private static final int DEFAULT_INITIAL_CAPACITY = 16; private static final long DEFAULT_BUCKET_SIZE_LIMIT = 1000L; private FileBucket[] table = new FileBucket[DEFAULT_INITIAL_CAPACITY]; private int size; private long bucketSizeLimit = DEFAULT_BUCKET_SIZE_LIMIT; private long maxBucketSize; public long getBucketSizeLimit() { return bucketSizeLimit; } public void setBucketSizeLimit(long bucketSizeLimit) { this.bucketSizeLimit = bucketSizeLimit; } public int hash(Long k) { int h; return (k == null) ? 0 : (h = k.hashCode()) ^ (h >>> 16); } public int indexFor(int hash, int length) { return (length - 1) & hash; } private Entry getEntry(Long key) { int hash = hash(key); FileBucket bucket = table[indexFor(hash, table.length)]; for (Entry e = bucket.getEntry(); e != null ; e = e.next) { Long k; if (e.hash == hash && ((k = e.key) == key || key.equals(k))) { return e; } } return null; } public void resize(int newCapacity) { FileBucket[] newTable = new FileBucket[newCapacity]; transfer(newTable); this.table = newTable; for (FileBucket bucket : table) { bucket.remove(); } } public void transfer(FileBucket[] newTable) { FileBucket[] src = this.table; int newCapacity = newTable.length; for (int j = 0; j < src.length; j++) { FileBucket oldTableBucket = src[j]; Entry e = oldTableBucket.getEntry(); if (e != null) { src[j] = null; do { Entry next = e.next; int i = indexFor(e.hash, newCapacity); FileBucket newTableBucket; if (newTable[i] == null) { newTableBucket = new FileBucket(); newTable[i] = newTableBucket; } else { newTableBucket = newTable[i]; } e.next = newTableBucket.getEntry(); newTableBucket.putEntry(e); e = next; } while (e != null); } } } public void addEntry(int hash, Long key, String value, int bucketIndex) { createEntry(hash, key, value, bucketIndex); FileBucket bucket = table[bucketIndex]; if (bucket.getFileSize() > bucketSizeLimit) { resize(table.length * 2); } } public void createEntry(int hash, Long key, String value, int bucketIndex) { FileBucket bucket = table[bucketIndex]; if (bucket == null) { bucket = new FileBucket(); table[bucketIndex] = bucket; } Entry e = bucket.getEntry(); Entry newEntry = new Entry(hash, key, value, e); bucket.putEntry(newEntry); size++; } @Override public boolean containsKey(Long key) { return getEntry(key) != null; } @Override public boolean containsValue(String value) { for (int i = 0; i < table.length; i++) { FileBucket bucket = table[i]; if (bucket == null) { continue; } for (Entry entry = bucket.getEntry(); entry != null; entry = entry.next) { if (entry.getValue().equals(value)) { return true; } } } return false; } @Override public void put(Long key, String value) { int hash = hash(key); int index = indexFor(hash, table.length); FileBucket bucket = table[index]; if (bucket == null) { bucket = new FileBucket(); table[index] = bucket; } for (Entry entry = bucket.getEntry(); entry != null; entry = entry.next) { Long k; if (entry.hash == hash && ((k = entry.key) == key || key.equals(k))) { entry.value = value; return; } } addEntry(hash, key, value, index); } @Override public Long getKey(String value) { for (int i = 0; i < table.length; i++) { FileBucket currentBucket = table[i]; if (currentBucket == null) { continue; } for (Entry e = currentBucket.getEntry(); e != null; e = e.next) { if (e.getValue().equals(value)) { return e.getKey(); } } } return null; } @Override public String getValue(Long key) { return getEntry(key).getValue(); } }
1dbc6c08a5a55d81bd47eba3c26efad5a146b41c
bbee778d10c68ff461b2a549acf7c3cea3ca1c1d
/app/src/main/java/com/reus/basedemo/network/BasicParamsInject.java
95f383f57f46aa66ef105469cac9e6bddff314e6
[]
no_license
sunflower-reus/BaseProject
1e022fda8e737f4a122923d7777954ec995e42c9
b7b8fbbd019d37bba0456aae4ce0f5d16942469d
refs/heads/master
2023-03-29T16:23:10.604511
2021-03-31T08:29:44
2021-03-31T08:29:44
353,266,868
3
0
null
null
null
null
UTF-8
Java
false
false
1,466
java
package com.reus.basedemo.network; import com.views.network.interceptor.BasicParamsInterceptor; import com.views.network.interceptor.IBasicDynamic; import okhttp3.Interceptor; /** * Description: 拦截器 - 用于添加签名参数 * * 个人理解:请求拦截器 用于设置请求头及每个接口都包含的字段 不用反复写. OKHttp在每次请求前进行拦截 然后封装进去 在去进行请求. */ class BasicParamsInject { private BasicParamsInterceptor interceptor; BasicParamsInject() { // 设置静态参数 interceptor = new BasicParamsInterceptor.Builder() //设置请求头 及共有参数. // .addHeaderParam() // .addBodyParam(Constant.APP_KEY, BaseParams.APP_KEY) // .addBodyParam(Constant.MOBILE_TYPE, BaseParams.MOBILE_TYPE) // .addBodyParam(Constant.VERSION_NUMBER, DeviceInfoUtils.getVersionName(ContextHolder.getContext())) .build(); // 设置动态参数 interceptor.setIBasicDynamic(new IBasicDynamic() { @Override public String signParams(String postBodyString) { //这行代码的意思是对字符串进行了签名处理. // return UrlUtils.getInstance().signParams(postBodyString); return postBodyString; } }); } Interceptor getInterceptor() { return interceptor; } }
4232dba81d0a2e066821137b115c4cf4c60d5901
cad3fdbe427901113f650f33146d0a6d2ca00f04
/com/streaming/anlytics/Main2.java
0ac1c47eac29bb757961d82ec517a6a7ebce9bec
[]
no_license
hkris710/Java-Examples
49816f3e302371c29f0841866f704234509d7d88
b2e68cbc73624ead6fdb7d9fc7cd62d7691e475b
refs/heads/master
2021-08-23T21:45:04.379638
2017-12-06T17:49:38
2017-12-06T17:49:38
113,346,350
0
0
null
null
null
null
UTF-8
Java
false
false
2,284
java
package com.streaming.anlytics; import java.util.HashSet; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Scanner; public class Main2 { static class DateResults{ String date; //no need to create a date object for this problem int totalSold; HashSet<String> allItems = new HashSet<String>(); DateResults(String date, String totalSold, String item){ //constructor used first time DateResult object is created for that date this.date = date; this.totalSold = Integer.parseInt(totalSold); allItems.add(item); } public void addItem(String totalSold, String item) { //method used to add an item to an existing DateResult object this.totalSold += Integer.parseInt(totalSold); allItems.add(item); } public String toString() { // how the DateResult object will get printed when called StringBuffer out = new StringBuffer(); out.append(date); out.append(","); out.append(Integer.toString(totalSold)); out.append(","); out.append(String.format("%.2f",((double) totalSold) / allItems.size())); out.append(","); out.append(Integer.toString(allItems.size())); return out.toString(); } } public static void main(String[] args) { Scanner s = new Scanner(System.in); HashMap<String, DateResults> allDates = new HashMap<String, DateResults>(); // Map to store each days DateResult object mapped to that days date string ArrayList<String> dates = new ArrayList<String>(); // an arraylist containing the date strings of all the days, to be sorted to print the output in sorted order while(s.hasNextLine()) { String input = s.nextLine(); if (input.equals("")) { break; } String[] splitInput = input.split(","); String date = splitInput[0]; String quantity = splitInput[1]; String productId = splitInput[2]; if (allDates.containsKey(date)) { allDates.get(date).addItem(quantity, productId); } else { allDates.put(date, new DateResults(date, quantity, productId)); dates.add(date); } } Collections.sort(dates); //sort the arraylist to access and print the mapped DateResults object in the correct order for(int i = 0; i < dates.size(); i++ ) { System.out.println(allDates.get(dates.get(i))); } s.close(); } }
e713e9ef81a6bb1b0139de30490d773827b5ac81
d86f850a01dd4bc1b2e2ab70e7dd1e7638d3a9b9
/app/src/main/java/com/pusatgadaiindonesia/app/Model/Notification/ResponseNotification.java
2b21edc7bafd22cbea33d804e686faba8ef70c58
[]
no_license
ghufransmth/PGI-app-rapier-git
eff4c398a10f74b0084dcac5499727a3efa266fc
9ecbd167298747628c177fca86af8b06ea499b44
refs/heads/main
2023-04-20T11:46:29.019675
2021-04-13T11:43:09
2021-04-13T11:43:09
357,748,850
0
0
null
null
null
null
UTF-8
Java
false
false
700
java
package com.pusatgadaiindonesia.app.Model.Notification; import com.google.gson.annotations.SerializedName; public class ResponseNotification { @SerializedName("status") private String status; @SerializedName("reason") private String reason; @SerializedName("data") private DataNotification data; public ResponseNotification(String status, String reason, DataNotification data) { this.status = status; this.reason = reason; this.data = data; } public String getstatus() { return status; } public String getreason() { return reason; } public DataNotification getdata() { return data; } }